diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/efi-bgrt.h | 21 | ||||
| -rw-r--r-- | include/linux/efi.h | 2 |
2 files changed, 23 insertions, 0 deletions
diff --git a/include/linux/efi-bgrt.h b/include/linux/efi-bgrt.h new file mode 100644 index 000000000000..051b21fedf68 --- /dev/null +++ b/include/linux/efi-bgrt.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #ifndef _LINUX_EFI_BGRT_H | ||
| 2 | #define _LINUX_EFI_BGRT_H | ||
| 3 | |||
| 4 | #ifdef CONFIG_ACPI_BGRT | ||
| 5 | |||
| 6 | #include <linux/acpi.h> | ||
| 7 | |||
| 8 | void efi_bgrt_init(void); | ||
| 9 | |||
| 10 | /* The BGRT data itself; only valid if bgrt_image != NULL. */ | ||
| 11 | extern void *bgrt_image; | ||
| 12 | extern size_t bgrt_image_size; | ||
| 13 | extern struct acpi_table_bgrt *bgrt_tab; | ||
| 14 | |||
| 15 | #else /* !CONFIG_ACPI_BGRT */ | ||
| 16 | |||
| 17 | static inline void efi_bgrt_init(void) {} | ||
| 18 | |||
| 19 | #endif /* !CONFIG_ACPI_BGRT */ | ||
| 20 | |||
| 21 | #endif /* _LINUX_EFI_BGRT_H */ | ||
diff --git a/include/linux/efi.h b/include/linux/efi.h index fff135d9375e..8670eb1eb8cd 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
| @@ -497,8 +497,10 @@ extern void efi_memmap_walk (efi_freemem_callback_t callback, void *arg); | |||
| 497 | extern void efi_gettimeofday (struct timespec *ts); | 497 | extern void efi_gettimeofday (struct timespec *ts); |
| 498 | extern void efi_enter_virtual_mode (void); /* switch EFI to virtual mode, if possible */ | 498 | extern void efi_enter_virtual_mode (void); /* switch EFI to virtual mode, if possible */ |
| 499 | #ifdef CONFIG_X86 | 499 | #ifdef CONFIG_X86 |
| 500 | extern void efi_late_init(void); | ||
| 500 | extern void efi_free_boot_services(void); | 501 | extern void efi_free_boot_services(void); |
| 501 | #else | 502 | #else |
| 503 | static inline void efi_late_init(void) {} | ||
| 502 | static inline void efi_free_boot_services(void) {} | 504 | static inline void efi_free_boot_services(void) {} |
| 503 | #endif | 505 | #endif |
| 504 | extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr); | 506 | extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr); |
