From b556021507eecdd2400ee7778f674b8739a92a76 Mon Sep 17 00:00:00 2001 From: Jozef Nagy Date: Sun, 31 Mar 2024 20:00:45 +0200 Subject: [PATCH] Implemented ACPI Table protocol --- efi.h | 1 + protocols/acpi.h | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 protocols/acpi.h diff --git a/efi.h b/efi.h index 1c40608..fced12a 100644 --- a/efi.h +++ b/efi.h @@ -17,6 +17,7 @@ typedef struct { #include "efi_rs.h" #include "efi_bs.h" +#include "protocols/acpi.h" #include "protocols/boot_manager_policy.h" #include "protocols/console_support.h" #include "protocols/device_path.h" diff --git a/protocols/acpi.h b/protocols/acpi.h new file mode 100644 index 0000000..4223352 --- /dev/null +++ b/protocols/acpi.h @@ -0,0 +1,33 @@ +#ifndef EFI_PROTOCOLS_ACPI_H +#define EFI_PROTOCOLS_ACPI_H + +//// +// ACPI Table Protocol +/// + +#define EFI_ACPI_TABLE_PROTOCOL_GUID {0xffe06bdd,0x6107,0x46a6, {0x7b,0xb2,0x5a,0x9c,0x7e,0xc5,0x27,0x5c}} + +typedef struct _EFI_ACPI_TABLE_PROTOCOL EFI_ACPI_TABLE_PROTOCOL; + +typedef +EFI_STATUS +(EFIAPI *EFI_ACPI_TABLE_INSTALL_ACPI_TABLE)( + IN EFI_ACPI_TABLE_PROTOCOL *This, + IN VOID *AcpiTableBuffer, + IN UINTN AcpiTableBufferSize, + OUT UINTN *TableKey +); + +typedef +EFI_STATUS +(EFIAPI *EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE)( + IN EFI_ACPI_TABLE_PROTOCOL *This, + IN UINTN TableKey +); + +typedef struct _EFI_ACPI_TABLE_PROTOCOL { + EFI_ACPI_TABLE_INSTALL_ACPI_TABLE InstallAcpiTable; + EFI_ACPI_TABLE_UNINSTALL_ACPI_TABLE UninstallAcpiTable; +} EFI_ACPI_TABLE_PROTOCOL; + +#endif /* EFI_PROTOCOLS_ACPI_H */