diff options
Diffstat (limited to 'include/linux/efi.h')
| -rw-r--r-- | include/linux/efi.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index 56add823f190..401e4b254e30 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
| @@ -894,6 +894,16 @@ typedef struct _efi_file_handle { | |||
| 894 | void *flush; | 894 | void *flush; |
| 895 | } efi_file_handle_t; | 895 | } efi_file_handle_t; |
| 896 | 896 | ||
| 897 | typedef struct { | ||
| 898 | u64 revision; | ||
| 899 | u32 open_volume; | ||
| 900 | } efi_file_io_interface_32_t; | ||
| 901 | |||
| 902 | typedef struct { | ||
| 903 | u64 revision; | ||
| 904 | u64 open_volume; | ||
| 905 | } efi_file_io_interface_64_t; | ||
| 906 | |||
| 897 | typedef struct _efi_file_io_interface { | 907 | typedef struct _efi_file_io_interface { |
| 898 | u64 revision; | 908 | u64 revision; |
| 899 | int (*open_volume)(struct _efi_file_io_interface *, | 909 | int (*open_volume)(struct _efi_file_io_interface *, |
| @@ -988,14 +998,12 @@ extern void efi_memmap_walk (efi_freemem_callback_t callback, void *arg); | |||
| 988 | extern void efi_gettimeofday (struct timespec64 *ts); | 998 | extern void efi_gettimeofday (struct timespec64 *ts); |
| 989 | extern void efi_enter_virtual_mode (void); /* switch EFI to virtual mode, if possible */ | 999 | extern void efi_enter_virtual_mode (void); /* switch EFI to virtual mode, if possible */ |
| 990 | #ifdef CONFIG_X86 | 1000 | #ifdef CONFIG_X86 |
| 991 | extern void efi_late_init(void); | ||
| 992 | extern void efi_free_boot_services(void); | 1001 | extern void efi_free_boot_services(void); |
| 993 | extern efi_status_t efi_query_variable_store(u32 attributes, | 1002 | extern efi_status_t efi_query_variable_store(u32 attributes, |
| 994 | unsigned long size, | 1003 | unsigned long size, |
| 995 | bool nonblocking); | 1004 | bool nonblocking); |
| 996 | extern void efi_find_mirror(void); | 1005 | extern void efi_find_mirror(void); |
| 997 | #else | 1006 | #else |
| 998 | static inline void efi_late_init(void) {} | ||
| 999 | static inline void efi_free_boot_services(void) {} | 1007 | static inline void efi_free_boot_services(void) {} |
| 1000 | 1008 | ||
| 1001 | static inline efi_status_t efi_query_variable_store(u32 attributes, | 1009 | static inline efi_status_t efi_query_variable_store(u32 attributes, |
| @@ -1651,4 +1659,7 @@ struct linux_efi_tpm_eventlog { | |||
| 1651 | 1659 | ||
| 1652 | extern int efi_tpm_eventlog_init(void); | 1660 | extern int efi_tpm_eventlog_init(void); |
| 1653 | 1661 | ||
| 1662 | /* Workqueue to queue EFI Runtime Services */ | ||
| 1663 | extern struct workqueue_struct *efi_rts_wq; | ||
| 1664 | |||
| 1654 | #endif /* _LINUX_EFI_H */ | 1665 | #endif /* _LINUX_EFI_H */ |
