diff options
| -rw-r--r-- | arch/x86/include/asm/efi.h | 28 | ||||
| -rw-r--r-- | include/linux/efi.h | 28 |
2 files changed, 28 insertions, 28 deletions
diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h index 2fb5d5884e23..5b33686b6995 100644 --- a/arch/x86/include/asm/efi.h +++ b/arch/x86/include/asm/efi.h | |||
| @@ -52,40 +52,40 @@ extern u64 efi_call6(void *fp, u64 arg1, u64 arg2, u64 arg3, | |||
| 52 | u64 arg4, u64 arg5, u64 arg6); | 52 | u64 arg4, u64 arg5, u64 arg6); |
| 53 | 53 | ||
| 54 | #define efi_call_phys0(f) \ | 54 | #define efi_call_phys0(f) \ |
| 55 | efi_call0((void *)(f)) | 55 | efi_call0((f)) |
| 56 | #define efi_call_phys1(f, a1) \ | 56 | #define efi_call_phys1(f, a1) \ |
| 57 | efi_call1((void *)(f), (u64)(a1)) | 57 | efi_call1((f), (u64)(a1)) |
| 58 | #define efi_call_phys2(f, a1, a2) \ | 58 | #define efi_call_phys2(f, a1, a2) \ |
| 59 | efi_call2((void *)(f), (u64)(a1), (u64)(a2)) | 59 | efi_call2((f), (u64)(a1), (u64)(a2)) |
| 60 | #define efi_call_phys3(f, a1, a2, a3) \ | 60 | #define efi_call_phys3(f, a1, a2, a3) \ |
| 61 | efi_call3((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3)) | 61 | efi_call3((f), (u64)(a1), (u64)(a2), (u64)(a3)) |
| 62 | #define efi_call_phys4(f, a1, a2, a3, a4) \ | 62 | #define efi_call_phys4(f, a1, a2, a3, a4) \ |
| 63 | efi_call4((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3), \ | 63 | efi_call4((f), (u64)(a1), (u64)(a2), (u64)(a3), \ |
| 64 | (u64)(a4)) | 64 | (u64)(a4)) |
| 65 | #define efi_call_phys5(f, a1, a2, a3, a4, a5) \ | 65 | #define efi_call_phys5(f, a1, a2, a3, a4, a5) \ |
| 66 | efi_call5((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3), \ | 66 | efi_call5((f), (u64)(a1), (u64)(a2), (u64)(a3), \ |
| 67 | (u64)(a4), (u64)(a5)) | 67 | (u64)(a4), (u64)(a5)) |
| 68 | #define efi_call_phys6(f, a1, a2, a3, a4, a5, a6) \ | 68 | #define efi_call_phys6(f, a1, a2, a3, a4, a5, a6) \ |
| 69 | efi_call6((void *)(f), (u64)(a1), (u64)(a2), (u64)(a3), \ | 69 | efi_call6((f), (u64)(a1), (u64)(a2), (u64)(a3), \ |
| 70 | (u64)(a4), (u64)(a5), (u64)(a6)) | 70 | (u64)(a4), (u64)(a5), (u64)(a6)) |
| 71 | 71 | ||
| 72 | #define efi_call_virt0(f) \ | 72 | #define efi_call_virt0(f) \ |
| 73 | efi_call0((void *)(efi.systab->runtime->f)) | 73 | efi_call0((efi.systab->runtime->f)) |
| 74 | #define efi_call_virt1(f, a1) \ | 74 | #define efi_call_virt1(f, a1) \ |
| 75 | efi_call1((void *)(efi.systab->runtime->f), (u64)(a1)) | 75 | efi_call1((efi.systab->runtime->f), (u64)(a1)) |
| 76 | #define efi_call_virt2(f, a1, a2) \ | 76 | #define efi_call_virt2(f, a1, a2) \ |
| 77 | efi_call2((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2)) | 77 | efi_call2((efi.systab->runtime->f), (u64)(a1), (u64)(a2)) |
| 78 | #define efi_call_virt3(f, a1, a2, a3) \ | 78 | #define efi_call_virt3(f, a1, a2, a3) \ |
| 79 | efi_call3((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ | 79 | efi_call3((efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ |
| 80 | (u64)(a3)) | 80 | (u64)(a3)) |
| 81 | #define efi_call_virt4(f, a1, a2, a3, a4) \ | 81 | #define efi_call_virt4(f, a1, a2, a3, a4) \ |
| 82 | efi_call4((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ | 82 | efi_call4((efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ |
| 83 | (u64)(a3), (u64)(a4)) | 83 | (u64)(a3), (u64)(a4)) |
| 84 | #define efi_call_virt5(f, a1, a2, a3, a4, a5) \ | 84 | #define efi_call_virt5(f, a1, a2, a3, a4, a5) \ |
| 85 | efi_call5((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ | 85 | efi_call5((efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ |
| 86 | (u64)(a3), (u64)(a4), (u64)(a5)) | 86 | (u64)(a3), (u64)(a4), (u64)(a5)) |
| 87 | #define efi_call_virt6(f, a1, a2, a3, a4, a5, a6) \ | 87 | #define efi_call_virt6(f, a1, a2, a3, a4, a5, a6) \ |
| 88 | efi_call6((void *)(efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ | 88 | efi_call6((efi.systab->runtime->f), (u64)(a1), (u64)(a2), \ |
| 89 | (u64)(a3), (u64)(a4), (u64)(a5), (u64)(a6)) | 89 | (u64)(a3), (u64)(a4), (u64)(a5), (u64)(a6)) |
| 90 | 90 | ||
| 91 | extern void __iomem *efi_ioremap(unsigned long addr, unsigned long size, | 91 | extern void __iomem *efi_ioremap(unsigned long addr, unsigned long size, |
diff --git a/include/linux/efi.h b/include/linux/efi.h index 2bc0ad78d058..21ae6b3c0359 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
| @@ -287,20 +287,20 @@ typedef struct { | |||
| 287 | 287 | ||
| 288 | typedef struct { | 288 | typedef struct { |
| 289 | efi_table_hdr_t hdr; | 289 | efi_table_hdr_t hdr; |
| 290 | unsigned long get_time; | 290 | void *get_time; |
| 291 | unsigned long set_time; | 291 | void *set_time; |
| 292 | unsigned long get_wakeup_time; | 292 | void *get_wakeup_time; |
| 293 | unsigned long set_wakeup_time; | 293 | void *set_wakeup_time; |
| 294 | unsigned long set_virtual_address_map; | 294 | void *set_virtual_address_map; |
| 295 | unsigned long convert_pointer; | 295 | void *convert_pointer; |
| 296 | unsigned long get_variable; | 296 | void *get_variable; |
| 297 | unsigned long get_next_variable; | 297 | void *get_next_variable; |
| 298 | unsigned long set_variable; | 298 | void *set_variable; |
| 299 | unsigned long get_next_high_mono_count; | 299 | void *get_next_high_mono_count; |
| 300 | unsigned long reset_system; | 300 | void *reset_system; |
| 301 | unsigned long update_capsule; | 301 | void *update_capsule; |
| 302 | unsigned long query_capsule_caps; | 302 | void *query_capsule_caps; |
| 303 | unsigned long query_variable_info; | 303 | void *query_variable_info; |
| 304 | } efi_runtime_services_t; | 304 | } efi_runtime_services_t; |
| 305 | 305 | ||
| 306 | typedef efi_status_t efi_get_time_t (efi_time_t *tm, efi_time_cap_t *tc); | 306 | typedef efi_status_t efi_get_time_t (efi_time_t *tm, efi_time_cap_t *tc); |
