summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDionna Glaze <dionnaglaze@google.com>2024-12-18 04:57:52 +0000
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-06-25 20:53:49 +0000
commitd7110cd638c00f2d5697783630c82cbffe63823d (patch)
tree53f7f9b353dfe25d67717d5fa7d1fa847381783d
parente0852f75d8b9dd1ccf38e89f833922884893af26 (diff)
downloadedk2-d7110cd638c00f2d5697783630c82cbffe63823d.zip
edk2-d7110cd638c00f2d5697783630c82cbffe63823d.tar.gz
edk2-d7110cd638c00f2d5697783630c82cbffe63823d.tar.bz2
MdePkg: Add ACPI 5.1 table definition for WAET
This is a struct needed for virtualizing Windows. https://uefi.org/acpi entry for WAET links to https://learn.microsoft.com/en-us/previous-versions/gg487524(v=msdn.10) which describes the 32-bit flags field with bits 0 and 1 defined. Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
-rw-r--r--MdePkg/Include/IndustryStandard/Acpi51.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/MdePkg/Include/IndustryStandard/Acpi51.h b/MdePkg/Include/IndustryStandard/Acpi51.h
index 8ad4077..a39d651 100644
--- a/MdePkg/Include/IndustryStandard/Acpi51.h
+++ b/MdePkg/Include/IndustryStandard/Acpi51.h
@@ -1835,6 +1835,25 @@ typedef struct {
} EFI_ACPI_5_1_EINJ_TRIGGER_ACTION_TABLE;
///
+/// Windows ACPI Emulated devices Table
+///
+typedef struct {
+ EFI_ACPI_DESCRIPTION_HEADER Header;
+ ///
+ /// Container of a bitmask of Windows behavior that this system requires
+ /// Bit 0 - RTC good
+ /// Bit 1 - ACPI PM timer good
+ ///
+ UINT32 EmulatedDeviceFlags;
+} EFI_ACPI_5_1_WAET_TABLE;
+
+///
+/// WAET Flags. All other bits are reserved and must be 0.
+///
+#define EFI_ACPI_5_1_WAET_FLAGS_RTC_GOOD BIT0
+#define EFI_ACPI_5_1_WAET_FLAGS_ACPI_PM_TIMER_GOOD BIT1
+
+///
/// Platform Communications Channel Table (PCCT)
///
typedef struct {