diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-23 12:44:12 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-23 12:44:12 -0400 |
commit | 4865db07169126ca0205f1a6265adf01bd69b3df (patch) | |
tree | 0e655eaf50b9edc572509c8feea58b2401fc01f9 /include/efi.h | |
parent | 18f4e858762d3fc858c1a076616208aa4ab6c9be (diff) | |
parent | 9a4b3c8e914dbb9d06640d8e04db8a06dedca051 (diff) |
Merge tag 'efi-2021-10-rc3' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2021-10-rc3
Documentation:
* Rename Freescale to NXP
* Document structures used for the UEFI TCG2 protocol
UEFI:
* Device paths must use EfiBootServicesData
Diffstat (limited to 'include/efi.h')
-rw-r--r-- | include/efi.h | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/include/efi.h b/include/efi.h index 6417a9b8c53..18c13e0370a 100644 --- a/include/efi.h +++ b/include/efi.h @@ -125,8 +125,36 @@ struct efi_table_hdr { u32 reserved; }; +/* Allocation types for calls to boottime->allocate_pages*/ +/** + * enum efi_allocate_type - address restriction for memory allocation + */ +enum efi_allocate_type { + /** + * @EFI_ALLOCATE_ANY_PAGES: + * Allocate any block of sufficient size. Ignore memory address. + */ + EFI_ALLOCATE_ANY_PAGES, + /** + * @EFI_ALLOCATE_MAX_ADDRESS: + * Allocate a memory block with an uppermost address less or equal + * to the indicated address. + */ + EFI_ALLOCATE_MAX_ADDRESS, + /** + * @EFI_ALLOCATE_ADDRESS: + * Allocate a memory block starting at the indicatged adress. + */ + EFI_ALLOCATE_ADDRESS, + /** + * @EFI_MAX_ALLOCATE_TYPE: + * Value use for range checking. + */ + EFI_MAX_ALLOCATE_TYPE, +}; + /* Enumeration of memory types introduced in UEFI */ -enum efi_mem_type { +enum efi_memory_type { EFI_RESERVED_MEMORY_TYPE, /* * The code portions of a loaded application. @@ -224,12 +252,6 @@ struct efi_mem_desc { #define EFI_MEMORY_DESCRIPTOR_VERSION 1 -/* Allocation types for calls to boottime->allocate_pages*/ -#define EFI_ALLOCATE_ANY_PAGES 0 -#define EFI_ALLOCATE_MAX_ADDRESS 1 -#define EFI_ALLOCATE_ADDRESS 2 -#define EFI_MAX_ALLOCATE_TYPE 3 - /* Types and defines for Time Services */ #define EFI_TIME_ADJUST_DAYLIGHT 0x1 #define EFI_TIME_IN_DAYLIGHT 0x2 |