2012-09-29 04:57:05 +04:00
|
|
|
#ifndef _LINUX_EFI_BGRT_H
|
|
|
|
#define _LINUX_EFI_BGRT_H
|
|
|
|
|
|
|
|
#include <linux/acpi.h>
|
|
|
|
|
2017-01-31 16:21:40 +03:00
|
|
|
#ifdef CONFIG_ACPI_BGRT
|
|
|
|
|
|
|
|
void efi_bgrt_init(struct acpi_table_header *table);
|
2017-04-04 19:02:41 +03:00
|
|
|
int __init acpi_parse_bgrt(struct acpi_table_header *table);
|
2012-09-29 04:57:05 +04:00
|
|
|
|
|
|
|
/* The BGRT data itself; only valid if bgrt_image != NULL. */
|
|
|
|
extern size_t bgrt_image_size;
|
2017-01-31 16:21:40 +03:00
|
|
|
extern struct acpi_table_bgrt bgrt_tab;
|
2012-09-29 04:57:05 +04:00
|
|
|
|
|
|
|
#else /* !CONFIG_ACPI_BGRT */
|
|
|
|
|
2017-01-31 16:21:40 +03:00
|
|
|
static inline void efi_bgrt_init(struct acpi_table_header *table) {}
|
2017-04-04 19:02:41 +03:00
|
|
|
static inline int __init acpi_parse_bgrt(struct acpi_table_header *table)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2012-09-29 04:57:05 +04:00
|
|
|
|
|
|
|
#endif /* !CONFIG_ACPI_BGRT */
|
|
|
|
|
|
|
|
#endif /* _LINUX_EFI_BGRT_H */
|