X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=OvmfPkg%2FAcpiTables%2FPlatform.h;h=d96b847239668fc1131d6b1e8991606b1525eaec;hb=0a781bdc7f87f87b8c3ef57c2837f116daa8b580;hp=547a5a3e6c4fb1001d08a5a2cc12316082206d36;hpb=e1fad9b3ba8187038b9787f2307e48f02ef78b80;p=mirror_edk2.git diff --git a/OvmfPkg/AcpiTables/Platform.h b/OvmfPkg/AcpiTables/Platform.h index 547a5a3e6c..d96b847239 100644 --- a/OvmfPkg/AcpiTables/Platform.h +++ b/OvmfPkg/AcpiTables/Platform.h @@ -28,7 +28,6 @@ #define EFI_ACPI_CREATOR_ID SIGNATURE_32('O','V','M','F') #define EFI_ACPI_CREATOR_REVISION 0x00000099 -#define INT_MODEL 0x01 #define SCI_INT_VECTOR 0x0009 #define SMI_CMD_IO_PORT 0xB2 #define ACPI_ENABLE 0xF1 @@ -52,7 +51,24 @@ #define DAY_ALRM 0x00 #define MON_ALRM 0x00 #define CENTURY 0x00 -#define FLAG EFI_ACPI_1_0_WBINVD | EFI_ACPI_1_0_PROC_C1 | EFI_ACPI_1_0_SLP_BUTTON | EFI_ACPI_1_0_RTC_S4 +#define FLAG (EFI_ACPI_2_0_WBINVD | \ + EFI_ACPI_2_0_PROC_C1 | \ + EFI_ACPI_2_0_SLP_BUTTON | \ + EFI_ACPI_2_0_RTC_S4 | \ + EFI_ACPI_2_0_RESET_REG_SUP) +#define RESET_REG 0xCF9 +#define RESET_VALUE (BIT2 | BIT1) // PIIX3 Reset CPU + System Reset -#endif +// +// Byte-aligned IO port register block initializer for +// EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE +// +#define GAS2_IO(Base, Size) { \ + EFI_ACPI_2_0_SYSTEM_IO, /* AddressSpaceId */ \ + (Size) * 8, /* RegisterBitWidth */ \ + 0, /* RegisterBitOffset */ \ + 0, /* Reserved */ \ + (Base) /* Address */ \ + } +#endif