mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
include/efi_api.h: Add more detailed API definitions
The EFI API header is great, but missing a good chunk of function prototype, GUID defines and enum declarations. This patch extends it to cover more of the EFI API. It's still not 100% complete, but sufficient enough for our EFI payload interface. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d96a98045a
commit
2bb9b79d64
2 changed files with 162 additions and 36 deletions
|
@ -38,6 +38,7 @@ struct efi_device_path;
|
|||
#define EFI_WRITE_PROTECTED (8 | (1UL << (BITS_PER_LONG - 1)))
|
||||
#define EFI_OUT_OF_RESOURCES (9 | (1UL << (BITS_PER_LONG - 1)))
|
||||
#define EFI_NOT_FOUND (14 | (1UL << (BITS_PER_LONG - 1)))
|
||||
#define EFI_ACCESS_DENIED (15 | (1UL << (BITS_PER_LONG - 1)))
|
||||
#define EFI_SECURITY_VIOLATION (26 | (1UL << (BITS_PER_LONG - 1)))
|
||||
|
||||
typedef unsigned long efi_status_t;
|
||||
|
@ -139,6 +140,7 @@ enum {
|
|||
|
||||
#define EFI_PAGE_SHIFT 12
|
||||
#define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT)
|
||||
#define EFI_PAGE_MASK (EFI_PAGE_SIZE - 1)
|
||||
|
||||
struct efi_mem_desc {
|
||||
u32 type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue