]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: move struct efi_device_path to efi.h
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 19 Mar 2023 07:59:33 +0000 (08:59 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 25 Mar 2023 10:06:03 +0000 (11:06 +0100)
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>
include/efi.h
include/efi_api.h

index c3087d3da28eafb648a76be6f972beeff509cf86..2f312da3cba5efdcee8c52b72977c328ce90d2f9 100644 (file)
 #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
index c57868abbd9c1fcb0ab04509d5f63d450e8bef49..7f092538a0253c1565d9cb208743453459856114 100644 (file)
@@ -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;