diff options
author | Matt Fleming <matt.fleming@intel.com> | 2011-11-15 07:57:03 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-12-09 20:35:44 -0500 |
commit | bb05e4ba452ada7966fbced4e829aa029f546445 (patch) | |
tree | 975d0b460bcc0381a73d2f0777575d54e2165f35 /include/linux/efi.h | |
parent | 8e84f345e2f2189a37492c77c566c7494b7b6b23 (diff) |
efi.h: Add allocation types for boottime->allocate_pages()
Add the allocation types detailed in section 6.2 - "AllocatePages()"
of the UEFI 2.3 specification. These definitions will be used by the
x86 EFI boot stub which needs to allocate memory during boot.
Cc: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Link: http://lkml.kernel.org/r/1318848017-12301-1-git-send-email-matt@console-pimps.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'include/linux/efi.h')
-rw-r--r-- | include/linux/efi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index e35005f451db..378f2cd1f7c3 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
@@ -109,6 +109,14 @@ typedef struct { | |||
109 | u32 imagesize; | 109 | u32 imagesize; |
110 | } efi_capsule_header_t; | 110 | } efi_capsule_header_t; |
111 | 111 | ||
112 | /* | ||
113 | * Allocation types for calls to boottime->allocate_pages. | ||
114 | */ | ||
115 | #define EFI_ALLOCATE_ANY_PAGES 0 | ||
116 | #define EFI_ALLOCATE_MAX_ADDRESS 1 | ||
117 | #define EFI_ALLOCATE_ADDRESS 2 | ||
118 | #define EFI_MAX_ALLOCATE_TYPE 3 | ||
119 | |||
112 | typedef int (*efi_freemem_callback_t) (u64 start, u64 end, void *arg); | 120 | typedef int (*efi_freemem_callback_t) (u64 start, u64 end, void *arg); |
113 | 121 | ||
114 | /* | 122 | /* |