mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
efi: Use device device path type Messaging for network interface node
When adding network interface node use Messaging device path with subtype MAC Address and device's MAC address as a value instead of Media Device path type with subtype File Path and path "Net" Signed-off-by: Oleksandr Tymoshenko <gonzo@bluezbox.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:

committed by
Alexander Graf

parent
456ca6ba04
commit
d7608aba38
@ -268,6 +268,19 @@ struct efi_device_path {
|
||||
u16 length;
|
||||
};
|
||||
|
||||
struct efi_mac_addr {
|
||||
u8 addr[32];
|
||||
};
|
||||
|
||||
#define DEVICE_PATH_TYPE_MESSAGING_DEVICE 0x03
|
||||
# define DEVICE_PATH_SUB_TYPE_MSG_MAC_ADDR 0x0b
|
||||
|
||||
struct efi_device_path_mac_addr {
|
||||
struct efi_device_path dp;
|
||||
struct efi_mac_addr mac;
|
||||
u8 if_type;
|
||||
};
|
||||
|
||||
#define DEVICE_PATH_TYPE_MEDIA_DEVICE 0x04
|
||||
# define DEVICE_PATH_SUB_TYPE_FILE_PATH 0x04
|
||||
|
||||
|
Reference in New Issue
Block a user