summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/efi.h
diff options
context:
space:
mode:
authorRuss Anderson2008-10-03 18:59:15 +0200
committerIngo Molnar2008-10-16 16:53:13 +0200
commit7f5942329e0787087a5e4dced838cee711ac2b58 (patch)
tree7bf3d4d91e15694977ff5d46bf6ceab7ebbd6c54 /include/asm-x86/efi.h
parentx86: Add UV EFI table entry v4 (diff)
downloadkernel-qcow2-linux-7f5942329e0787087a5e4dced838cee711ac2b58.tar.gz
kernel-qcow2-linux-7f5942329e0787087a5e4dced838cee711ac2b58.tar.xz
kernel-qcow2-linux-7f5942329e0787087a5e4dced838cee711ac2b58.zip
x86: Add UV bios call infrastructure v4
Add the EFI callback function and associated wrapper code. Initialize SAL system table entry info at boot time. Signed-off-by: Russ Anderson <rja@sgi.com> Signed-off-by: Paul Jackson <pj@sgi.com> Acked-by: Huang Ying <ying.huang@intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/efi.h')
-rw-r--r--include/asm-x86/efi.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-x86/efi.h b/include/asm-x86/efi.h
index ed2de22e8705..313438e63348 100644
--- a/include/asm-x86/efi.h
+++ b/include/asm-x86/efi.h
@@ -94,4 +94,17 @@ extern void efi_reserve_early(void);
extern void efi_call_phys_prelog(void);
extern void efi_call_phys_epilog(void);
+#ifndef CONFIG_EFI
+/*
+ * IF EFI is not configured, have the EFI calls return -ENOSYS.
+ */
+#define efi_call0(_f) (-ENOSYS)
+#define efi_call1(_f, _a1) (-ENOSYS)
+#define efi_call2(_f, _a1, _a2) (-ENOSYS)
+#define efi_call3(_f, _a1, _a2, _a3) (-ENOSYS)
+#define efi_call4(_f, _a1, _a2, _a3, _a4) (-ENOSYS)
+#define efi_call5(_f, _a1, _a2, _a3, _a4, _a5) (-ENOSYS)
+#define efi_call6(_f, _a1, _a2, _a3, _a4, _a5, _a6) (-ENOSYS)
+#endif /* CONFIG_EFI */
+
#endif /* ASM_X86__EFI_H */