diff options
Diffstat (limited to 'arch/x86/include/asm/efi.h')
| -rw-r--r-- | arch/x86/include/asm/efi.h | 16 | 
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h index 28677c55113..2fb5d5884e2 100644 --- a/arch/x86/include/asm/efi.h +++ b/arch/x86/include/asm/efi.h @@ -102,7 +102,21 @@ extern void efi_call_phys_epilog(void);  extern void efi_unmap_memmap(void);  extern void efi_memory_uc(u64 addr, unsigned long size); -#ifndef CONFIG_EFI +struct efi_var_bootdata { +	struct setup_data data; +	u64 store_size; +	u64 remaining_size; +	u64 max_var_size; +}; + +#ifdef CONFIG_EFI + +static inline bool efi_is_native(void) +{ +	return IS_ENABLED(CONFIG_X86_64) == efi_enabled(EFI_64BIT); +} + +#else  /*   * IF EFI is not configured, have the EFI calls return -ENOSYS.   */  |