blob: e6cd510056332df569bda0c3bb17541f9fcb2764 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Josh Triplett2223af32012-09-28 17:57:05 -07002#ifndef _LINUX_EFI_BGRT_H
3#define _LINUX_EFI_BGRT_H
4
Josh Triplett2223af32012-09-28 17:57:05 -07005#include <linux/acpi.h>
6
Dave Young7b0a9112017-01-31 13:21:40 +00007#ifdef CONFIG_ACPI_BGRT
8
9void efi_bgrt_init(struct acpi_table_header *table);
Bhupesh Sharma6e7300c2017-04-04 17:02:41 +010010int __init acpi_parse_bgrt(struct acpi_table_header *table);
Josh Triplett2223af32012-09-28 17:57:05 -070011
12/* The BGRT data itself; only valid if bgrt_image != NULL. */
Josh Triplett2223af32012-09-28 17:57:05 -070013extern size_t bgrt_image_size;
Dave Young7b0a9112017-01-31 13:21:40 +000014extern struct acpi_table_bgrt bgrt_tab;
Josh Triplett2223af32012-09-28 17:57:05 -070015
16#else /* !CONFIG_ACPI_BGRT */
17
Dave Young7b0a9112017-01-31 13:21:40 +000018static inline void efi_bgrt_init(struct acpi_table_header *table) {}
Bhupesh Sharma6e7300c2017-04-04 17:02:41 +010019static inline int __init acpi_parse_bgrt(struct acpi_table_header *table)
20{
21 return 0;
22}
Josh Triplett2223af32012-09-28 17:57:05 -070023
24#endif /* !CONFIG_ACPI_BGRT */
25
26#endif /* _LINUX_EFI_BGRT_H */