efi.h (8ecba5af948cb58bf6d5eb1537c0df53cbc319c4) | efi.h (6b59e366e074d3962e04f01efb8acc10a33c0e1e) |
---|---|
1#ifndef _ASM_X86_EFI_H 2#define _ASM_X86_EFI_H 3 4#ifdef CONFIG_X86_32 5 6#define EFI_LOADER_SIGNATURE "EL32" 7 8extern unsigned long asmlinkage efi_call_phys(void *, ...); --- 88 unchanged lines hidden (view full) --- 97extern unsigned long x86_efi_facility; 98extern void efi_set_executable(efi_memory_desc_t *md, bool executable); 99extern int efi_memblock_x86_reserve_range(void); 100extern void efi_call_phys_prelog(void); 101extern void efi_call_phys_epilog(void); 102extern void efi_unmap_memmap(void); 103extern void efi_memory_uc(u64 addr, unsigned long size); 104 | 1#ifndef _ASM_X86_EFI_H 2#define _ASM_X86_EFI_H 3 4#ifdef CONFIG_X86_32 5 6#define EFI_LOADER_SIGNATURE "EL32" 7 8extern unsigned long asmlinkage efi_call_phys(void *, ...); --- 88 unchanged lines hidden (view full) --- 97extern unsigned long x86_efi_facility; 98extern void efi_set_executable(efi_memory_desc_t *md, bool executable); 99extern int efi_memblock_x86_reserve_range(void); 100extern void efi_call_phys_prelog(void); 101extern void efi_call_phys_epilog(void); 102extern void efi_unmap_memmap(void); 103extern void efi_memory_uc(u64 addr, unsigned long size); 104 |
105#ifndef CONFIG_EFI | 105#ifdef CONFIG_EFI 106 107static inline bool efi_is_native(void) 108{ 109 return IS_ENABLED(CONFIG_X86_64) == efi_enabled(EFI_64BIT); 110} 111 112#else |
106/* 107 * IF EFI is not configured, have the EFI calls return -ENOSYS. 108 */ 109#define efi_call0(_f) (-ENOSYS) 110#define efi_call1(_f, _a1) (-ENOSYS) 111#define efi_call2(_f, _a1, _a2) (-ENOSYS) 112#define efi_call3(_f, _a1, _a2, _a3) (-ENOSYS) 113#define efi_call4(_f, _a1, _a2, _a3, _a4) (-ENOSYS) 114#define efi_call5(_f, _a1, _a2, _a3, _a4, _a5) (-ENOSYS) 115#define efi_call6(_f, _a1, _a2, _a3, _a4, _a5, _a6) (-ENOSYS) 116#endif /* CONFIG_EFI */ 117 118#endif /* _ASM_X86_EFI_H */ | 113/* 114 * IF EFI is not configured, have the EFI calls return -ENOSYS. 115 */ 116#define efi_call0(_f) (-ENOSYS) 117#define efi_call1(_f, _a1) (-ENOSYS) 118#define efi_call2(_f, _a1, _a2) (-ENOSYS) 119#define efi_call3(_f, _a1, _a2, _a3) (-ENOSYS) 120#define efi_call4(_f, _a1, _a2, _a3, _a4) (-ENOSYS) 121#define efi_call5(_f, _a1, _a2, _a3, _a4, _a5) (-ENOSYS) 122#define efi_call6(_f, _a1, _a2, _a3, _a4, _a5, _a6) (-ENOSYS) 123#endif /* CONFIG_EFI */ 124 125#endif /* _ASM_X86_EFI_H */ |