mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-01 17:12:11 +00:00
efi_loader: TODO for the EFI file protocol
We currently only support EFI_FILE_PROTOCOL_REVISION while UEFI specs 2.4 - 2.7 prescribe EFI_FILE_PROTOCOL_REVISION2. Add a todo. Add missing constants for the EFI file protocol revision. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
d0826507e2
commit
17394f9a66
3 changed files with 14 additions and 1 deletions
|
@ -329,6 +329,9 @@ This driver is only available if U-Boot is configured with
|
||||||
* persistence
|
* persistence
|
||||||
* runtime support
|
* runtime support
|
||||||
|
|
||||||
|
* incompletely implemented protocols
|
||||||
|
* support version 0x00020000 of the EFI file protocol
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
* [1](http://uefi.org/specifications)
|
* [1](http://uefi.org/specifications)
|
||||||
|
|
|
@ -1323,6 +1323,8 @@ struct efi_pxe {
|
||||||
EFI_GUID(0x964e5b22, 0x6459, 0x11d2, \
|
EFI_GUID(0x964e5b22, 0x6459, 0x11d2, \
|
||||||
0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
|
0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
|
||||||
#define EFI_FILE_PROTOCOL_REVISION 0x00010000
|
#define EFI_FILE_PROTOCOL_REVISION 0x00010000
|
||||||
|
#define EFI_FILE_PROTOCOL_REVISION2 0x00020000
|
||||||
|
#define EFI_FILE_PROTOCOL_LATEST_REVISION EFI_FILE_PROTOCOL_REVISION2
|
||||||
|
|
||||||
struct efi_file_handle {
|
struct efi_file_handle {
|
||||||
u64 rev;
|
u64 rev;
|
||||||
|
@ -1346,6 +1348,10 @@ struct efi_file_handle {
|
||||||
const efi_guid_t *info_type, efi_uintn_t buffer_size,
|
const efi_guid_t *info_type, efi_uintn_t buffer_size,
|
||||||
void *buffer);
|
void *buffer);
|
||||||
efi_status_t (EFIAPI *flush)(struct efi_file_handle *file);
|
efi_status_t (EFIAPI *flush)(struct efi_file_handle *file);
|
||||||
|
/*
|
||||||
|
* TODO: We currently only support EFI file protocol revision 0x00010000
|
||||||
|
* while UEFI specs 2.4 - 2.7 prescribe revision 0x00020000.
|
||||||
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
#define EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION 0x00010000
|
#define EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_REVISION 0x00010000
|
||||||
|
|
|
@ -628,6 +628,10 @@ static efi_status_t EFIAPI efi_file_flush(struct efi_file_handle *file)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct efi_file_handle efi_file_handle_protocol = {
|
static const struct efi_file_handle efi_file_handle_protocol = {
|
||||||
|
/*
|
||||||
|
* TODO: We currently only support EFI file protocol revision 0x00010000
|
||||||
|
* while UEFI specs 2.4 - 2.7 prescribe revision 0x00020000.
|
||||||
|
*/
|
||||||
.rev = EFI_FILE_PROTOCOL_REVISION,
|
.rev = EFI_FILE_PROTOCOL_REVISION,
|
||||||
.open = efi_file_open,
|
.open = efi_file_open,
|
||||||
.close = efi_file_close,
|
.close = efi_file_close,
|
||||||
|
|
Loading…
Add table
Reference in a new issue