blob: e6f624b53c3d89c6ba575bb61a3d868a251473ae [file] [log] [blame]
Josh Triplett2223af32012-09-28 17:57:05 -07001#ifndef _LINUX_EFI_BGRT_H
2#define _LINUX_EFI_BGRT_H
3
Josh Triplett2223af32012-09-28 17:57:05 -07004#include <linux/acpi.h>
5
Dave Young7b0a9112017-01-31 13:21:40 +00006#ifdef CONFIG_ACPI_BGRT
7
8void efi_bgrt_init(struct acpi_table_header *table);
Bhupesh Sharma6e7300c2017-04-04 17:02:41 +01009int __init acpi_parse_bgrt(struct acpi_table_header *table);
Josh Triplett2223af32012-09-28 17:57:05 -070010
11/* The BGRT data itself; only valid if bgrt_image != NULL. */
Josh Triplett2223af32012-09-28 17:57:05 -070012extern size_t bgrt_image_size;
Dave Young7b0a9112017-01-31 13:21:40 +000013extern struct acpi_table_bgrt bgrt_tab;
Josh Triplett2223af32012-09-28 17:57:05 -070014
15#else /* !CONFIG_ACPI_BGRT */
16
Dave Young7b0a9112017-01-31 13:21:40 +000017static inline void efi_bgrt_init(struct acpi_table_header *table) {}
Bhupesh Sharma6e7300c2017-04-04 17:02:41 +010018static inline int __init acpi_parse_bgrt(struct acpi_table_header *table)
19{
20 return 0;
21}
Josh Triplett2223af32012-09-28 17:57:05 -070022
23#endif /* !CONFIG_ACPI_BGRT */
24
25#endif /* _LINUX_EFI_BGRT_H */