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