diff options
author | Alexander Graf <agraf@suse.de> | 2016-03-04 01:09:57 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-03-15 15:19:23 -0400 |
commit | 2bb9b79d64ca5112af3147a267ece894945aa470 (patch) | |
tree | 1d87fe340e55d0b6d53f7deff3f427642a774f0e /include/efi.h | |
parent | d96a98045aa5aadba473d89872a987ac50a023ea (diff) | |
download | u-boot-2bb9b79d64ca5112af3147a267ece894945aa470.tar.gz u-boot-2bb9b79d64ca5112af3147a267ece894945aa470.tar.bz2 u-boot-2bb9b79d64ca5112af3147a267ece894945aa470.zip |
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>
Diffstat (limited to 'include/efi.h')
-rw-r--r-- | include/efi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h index fcafda0b0b..1dbc3b77b4 100644 --- a/include/efi.h +++ b/include/efi.h @@ -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; |