Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2223af38 JT |
2 | #ifndef _LINUX_EFI_BGRT_H |
3 | #define _LINUX_EFI_BGRT_H | |
4 | ||
2223af38 JT |
5 | #include <linux/acpi.h> |
6 | ||
7b0a9114 DY |
7 | #ifdef CONFIG_ACPI_BGRT |
8 | ||
9 | void efi_bgrt_init(struct acpi_table_header *table); | |
6e7300cf | 10 | int __init acpi_parse_bgrt(struct acpi_table_header *table); |
2223af38 JT |
11 | |
12 | /* The BGRT data itself; only valid if bgrt_image != NULL. */ | |
2223af38 | 13 | extern size_t bgrt_image_size; |
7b0a9114 | 14 | extern struct acpi_table_bgrt bgrt_tab; |
2223af38 JT |
15 | |
16 | #else /* !CONFIG_ACPI_BGRT */ | |
17 | ||
7b0a9114 | 18 | static inline void efi_bgrt_init(struct acpi_table_header *table) {} |
6e7300cf BS |
19 | static inline int __init acpi_parse_bgrt(struct acpi_table_header *table) |
20 | { | |
21 | return 0; | |
22 | } | |
2223af38 JT |
23 | |
24 | #endif /* !CONFIG_ACPI_BGRT */ | |
25 | ||
26 | #endif /* _LINUX_EFI_BGRT_H */ |