Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 1 | #ifndef _LINUX_EFI_BGRT_H |
| 2 | #define _LINUX_EFI_BGRT_H |
| 3 | |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 4 | #include <linux/acpi.h> |
| 5 | |
Dave Young | 7b0a911 | 2017-01-31 13:21:40 +0000 | [diff] [blame] | 6 | #ifdef CONFIG_ACPI_BGRT |
| 7 | |
| 8 | void efi_bgrt_init(struct acpi_table_header *table); |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 9 | |
| 10 | /* The BGRT data itself; only valid if bgrt_image != NULL. */ |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 11 | extern size_t bgrt_image_size; |
Dave Young | 7b0a911 | 2017-01-31 13:21:40 +0000 | [diff] [blame] | 12 | extern struct acpi_table_bgrt bgrt_tab; |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 13 | |
| 14 | #else /* !CONFIG_ACPI_BGRT */ |
| 15 | |
Dave Young | 7b0a911 | 2017-01-31 13:21:40 +0000 | [diff] [blame] | 16 | static inline void efi_bgrt_init(struct acpi_table_header *table) {} |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 17 | |
| 18 | #endif /* !CONFIG_ACPI_BGRT */ |
| 19 | |
| 20 | #endif /* _LINUX_EFI_BGRT_H */ |