efi-bgrt.h 644 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_EFI_BGRT_H
  3. #define _LINUX_EFI_BGRT_H
  4. #include <linux/acpi.h>
  5. #ifdef CONFIG_ACPI_BGRT
  6. void efi_bgrt_init(struct acpi_table_header *table);
  7. int __init acpi_parse_bgrt(struct acpi_table_header *table);
  8. /* The BGRT data itself; only valid if bgrt_image != NULL. */
  9. extern size_t bgrt_image_size;
  10. extern struct acpi_table_bgrt bgrt_tab;
  11. #else /* !CONFIG_ACPI_BGRT */
  12. static inline void efi_bgrt_init(struct acpi_table_header *table) {}
  13. static inline int __init acpi_parse_bgrt(struct acpi_table_header *table)
  14. {
  15. return 0;
  16. }
  17. #endif /* !CONFIG_ACPI_BGRT */
  18. #endif /* _LINUX_EFI_BGRT_H */