Implemented ACPI Table protocol

This commit is contained in:
Jozef Nagy 2024-03-31 20:00:45 +02:00
parent 330af730eb
commit b556021507
No known key found for this signature in database
GPG key ID: 5B49DC29F09685D6
2 changed files with 34 additions and 0 deletions

33
protocols/acpi.h Normal file
View file

@ -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 */