Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_EFI_BGRT_H
0003 #define _LINUX_EFI_BGRT_H
0004 
0005 #include <linux/acpi.h>
0006 
0007 #ifdef CONFIG_ACPI_BGRT
0008 
0009 void efi_bgrt_init(struct acpi_table_header *table);
0010 int __init acpi_parse_bgrt(struct acpi_table_header *table);
0011 
0012 /* The BGRT data itself; only valid if bgrt_image != NULL. */
0013 extern size_t bgrt_image_size;
0014 extern struct acpi_table_bgrt bgrt_tab;
0015 
0016 #else /* !CONFIG_ACPI_BGRT */
0017 
0018 static inline void efi_bgrt_init(struct acpi_table_header *table) {}
0019 static inline int __init acpi_parse_bgrt(struct acpi_table_header *table)
0020 {
0021     return 0;
0022 }
0023 
0024 #endif /* !CONFIG_ACPI_BGRT */
0025 
0026 #endif /* _LINUX_EFI_BGRT_H */