diff options
author | Heinrich Schuchardt | 2023-03-19 08:59:33 +0100 |
---|---|---|
committer | Heinrich Schuchardt | 2023-03-25 11:06:03 +0100 |
commit | 92b931b8ef3b08068f8911ecfd7482b3c4660320 (patch) | |
tree | 9cd758d8156461852c68bd883301ac0348bbecfe /include/efi.h | |
parent | e472ef8a3d5e94a0f0bc5ad50a4a86a67316e876 (diff) |
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>
Diffstat (limited to 'include/efi.h')
-rw-r--r-- | include/efi.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/efi.h b/include/efi.h index c3087d3da28..2f312da3cba 100644 --- a/include/efi.h +++ b/include/efi.h @@ -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 |