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