summaryrefslogtreecommitdiff
path: root/include/efi.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-05 09:52:48 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-01-13 04:38:01 +0300
commit85fc2ad4d13e1311652049c7322f5d36aacfc572 (patch)
tree041e7d76d285fa17a1c6c19da9225de1daf9dc17 /include/efi.h
parent5f59518a7b1aef9ad3a91defa06cff82dd01cdc5 (diff)
downloadu-boot-85fc2ad4d13e1311652049c7322f5d36aacfc572.tar.xz
efi_loader: move efi_(u)intn_t to efi.h
Move efi_intn_t and efi_uintn_t to include/efi.h to allow usage without efi_api.h Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi.h')
-rw-r--r--include/efi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h
index 5695273ce9..503fbf060b 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -20,6 +20,11 @@
#include <linux/string.h>
#include <linux/types.h>
+/* Type INTN in UEFI specification */
+#define efi_intn_t ssize_t
+/* Type UINTN in UEFI specification*/
+#define efi_uintn_t size_t
+
/*
* EFI on x86_64 uses the Microsoft ABI which is not the default for GCC.
*