mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi_loader: move struct efi_device_path to efi.h
Avoid forward declaration of struct efi_device_path. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
e472ef8a3d
commit
92b931b8ef
2 changed files with 12 additions and 7 deletions
|
@ -52,7 +52,18 @@
|
|||
#define EFI32_LOADER_SIGNATURE "EL32"
|
||||
#define EFI64_LOADER_SIGNATURE "EL64"
|
||||
|
||||
struct efi_device_path;
|
||||
/**
|
||||
* struct efi_device_path - device path protocol
|
||||
*
|
||||
* @type: device path type
|
||||
* @sub_type: device path sub-type
|
||||
* @length: length of the device path node including the header
|
||||
*/
|
||||
struct efi_device_path {
|
||||
u8 type;
|
||||
u8 sub_type;
|
||||
u16 length;
|
||||
} __packed;
|
||||
|
||||
/*
|
||||
* The EFI spec defines the EFI_GUID as
|
||||
|
|
|
@ -557,12 +557,6 @@ struct efi_loaded_image {
|
|||
# define DEVICE_PATH_SUB_TYPE_INSTANCE_END 0x01
|
||||
# define DEVICE_PATH_SUB_TYPE_END 0xff
|
||||
|
||||
struct efi_device_path {
|
||||
u8 type;
|
||||
u8 sub_type;
|
||||
u16 length;
|
||||
} __packed;
|
||||
|
||||
struct efi_mac_addr {
|
||||
u8 addr[32];
|
||||
} __packed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue