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); |
Bhupesh Sharma | 6e7300c | 2017-04-04 17:02:41 +0100 | [diff] [blame] | 9 | int __init acpi_parse_bgrt(struct acpi_table_header *table); |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 10 | |
| 11 | /* The BGRT data itself; only valid if bgrt_image != NULL. */ |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 12 | extern size_t bgrt_image_size; |
Dave Young | 7b0a911 | 2017-01-31 13:21:40 +0000 | [diff] [blame] | 13 | extern struct acpi_table_bgrt bgrt_tab; |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 14 | |
| 15 | #else /* !CONFIG_ACPI_BGRT */ |
| 16 | |
Dave Young | 7b0a911 | 2017-01-31 13:21:40 +0000 | [diff] [blame] | 17 | static inline void efi_bgrt_init(struct acpi_table_header *table) {} |
Bhupesh Sharma | 6e7300c | 2017-04-04 17:02:41 +0100 | [diff] [blame] | 18 | static inline int __init acpi_parse_bgrt(struct acpi_table_header *table) |
| 19 | { |
| 20 | return 0; |
| 21 | } |
Josh Triplett | 2223af3 | 2012-09-28 17:57:05 -0700 | [diff] [blame] | 22 | |
| 23 | #endif /* !CONFIG_ACPI_BGRT */ |
| 24 | |
| 25 | #endif /* _LINUX_EFI_BGRT_H */ |