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>
This commit is contained in:
Heinrich Schuchardt 2021-01-05 07:52:48 +01:00
parent 5f59518a7b
commit 85fc2ad4d1
2 changed files with 5 additions and 2 deletions

View File

@ -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.
*

View File

@ -34,8 +34,6 @@ enum efi_timer_delay {
EFI_TIMER_RELATIVE = 2
};
#define efi_intn_t ssize_t
#define efi_uintn_t size_t
typedef void *efi_hii_handle_t;
typedef u16 *efi_string_t;
typedef u16 efi_string_id_t;