Go to the documentation of this file.
6 #define EFI_LOADER_SIGNATURE "EL32"
10 #define efi_call_phys0(f) efi_call_phys(f)
11 #define efi_call_phys1(f, a1) efi_call_phys(f, a1)
12 #define efi_call_phys2(f, a1, a2) efi_call_phys(f, a1, a2)
13 #define efi_call_phys3(f, a1, a2, a3) efi_call_phys(f, a1, a2, a3)
14 #define efi_call_phys4(f, a1, a2, a3, a4) \
15 efi_call_phys(f, a1, a2, a3, a4)
16 #define efi_call_phys5(f, a1, a2, a3, a4, a5) \
17 efi_call_phys(f, a1, a2, a3, a4, a5)
18 #define efi_call_phys6(f, a1, a2, a3, a4, a5, a6) \
19 efi_call_phys(f, a1, a2, a3, a4, a5, a6)
24 #define efi_call_virt(f, args...) \
25 ((efi_##f##_t __attribute__((regparm(0)))*)efi.systab->runtime->f)(args)
27 #define efi_call_virt0(f) efi_call_virt(f)
28 #define efi_call_virt1(f, a1) efi_call_virt(f, a1)
29 #define efi_call_virt2(f, a1, a2) efi_call_virt(f, a1, a2)
30 #define efi_call_virt3(f, a1, a2, a3) efi_call_virt(f, a1, a2, a3)
31 #define efi_call_virt4(f, a1, a2, a3, a4) \
32 efi_call_virt(f, a1, a2, a3, a4)
33 #define efi_call_virt5(f, a1, a2, a3, a4, a5) \
34 efi_call_virt(f, a1, a2, a3, a4, a5)
35 #define efi_call_virt6(f, a1, a2, a3, a4, a5, a6) \
36 efi_call_virt(f, a1, a2, a3, a4, a5, a6)
38 #define efi_ioremap(addr, size, type, attr) ioremap_cache(addr, size)
42 #define EFI_LOADER_SIGNATURE "EL64"
54 #define efi_call_phys0(f) \
55 efi_call0((void *)(f))
56 #define efi_call_phys1(f, a1) \
57 efi_call1((void *)(f), (u64)(a1))
58 #define efi_call_phys2(f, a1, a2) \
59 efi_call2((void *)(f), (u64)(a1), (u64)(a2))
60 #define efi_call_phys3(f, a1, a2, a3) \
61 efi_call3((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3))
62 #define efi_call_phys4(f, a1, a2, a3, a4) \
63 efi_call4((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3), \
65 #define efi_call_phys5(f, a1, a2, a3, a4, a5) \
66 efi_call5((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3), \
68 #define efi_call_phys6(f, a1, a2, a3, a4, a5, a6) \
69 efi_call6((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3), \
70 (u64)(a4), (u64)(a5), (u64)(a6))
72 #define efi_call_virt0(f) \
73 efi_call0((void *)(efi.systab->runtime->f))
74 #define efi_call_virt1(f, a1) \
75 efi_call1((void *)(efi.systab->runtime->f), (u64)(a1))
76 #define efi_call_virt2(f, a1, a2) \
77 efi_call2((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2))
78 #define efi_call_virt3(f, a1, a2, a3) \
79 efi_call3((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \
81 #define efi_call_virt4(f, a1, a2, a3, a4) \
82 efi_call4((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \
84 #define efi_call_virt5(f, a1, a2, a3, a4, a5) \
85 efi_call5((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \
86 (u64)(a3), (u64)(a4), (u64)(a5))
87 #define efi_call_virt6(f, a1, a2, a3, a4, a5, a6) \
88 efi_call6((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \
89 (u64)(a3), (u64)(a4), (u64)(a5), (u64)(a6))
108 #define efi_call0(_f) (-ENOSYS)
109 #define efi_call1(_f, _a1) (-ENOSYS)
110 #define efi_call2(_f, _a1, _a2) (-ENOSYS)
111 #define efi_call3(_f, _a1, _a2, _a3) (-ENOSYS)
112 #define efi_call4(_f, _a1, _a2, _a3, _a4) (-ENOSYS)
113 #define efi_call5(_f, _a1, _a2, _a3, _a4, _a5) (-ENOSYS)
114 #define efi_call6(_f, _a1, _a2, _a3, _a4, _a5, _a6) (-ENOSYS)