]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/AcpiTables/Platform.h
OvmfPkg: fix interrupt routing in the DSDT, bump revision number
[mirror_edk2.git] / OvmfPkg / AcpiTables / Platform.h
index a79bfd8703ea58c93d03ce0c455ad6a27e06d353..4b03897614a8d209a13ed4122e29f855c586d69a 100644 (file)
@@ -6,16 +6,16 @@
   licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
   http://opensource.org/licenses/bsd-license.php\r
-  \r
+\r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
-**/ \r
+**/\r
 \r
 #ifndef _Platform_h_INCLUDED_\r
 #define _Platform_h_INCLUDED_\r
 \r
-#include <PiDxe.h> \r
+#include <PiDxe.h>\r
 #include <IndustryStandard/Acpi.h>\r
 \r
 //\r
 #define EFI_ACPI_CREATOR_REVISION 0x00000097\r
 \r
 #define INT_MODEL       0x01\r
-#define SCI_INT_VECTOR  0x0009 \r
-#define SMI_CMD_IO_PORT 0 // If SMM was supported, then this would be 0xB2\r
-#define ACPI_ENABLE     0\r
-#define ACPI_DISABLE    0\r
+#define SCI_INT_VECTOR  0x0009\r
+#define SMI_CMD_IO_PORT 0xB2\r
+#define ACPI_ENABLE     0xF1\r
+#define ACPI_DISABLE    0xF0\r
 #define S4BIOS_REQ      0x00\r
-#define PM1a_EVT_BLK    0x00000400\r
+#define PM1a_EVT_BLK    0x0000b000\r
 #define PM1b_EVT_BLK    0x00000000\r
-#define PM1a_CNT_BLK    0x00000404\r
+#define PM1a_CNT_BLK    0x0000b004\r
 #define PM1b_CNT_BLK    0x00000000\r
-#define PM2_CNT_BLK     0x00000022\r
-#define PM_TMR_BLK      0x00000408\r
+#define PM2_CNT_BLK     0x00000000\r
+#define PM_TMR_BLK      0x0000b008\r
 #define GPE0_BLK        0x0000afe0\r
 #define GPE1_BLK        0x00000000\r
 #define PM1_EVT_LEN     0x04\r
 #define PM1_CNT_LEN     0x02\r
-#define PM2_CNT_LEN     0x01\r
+#define PM2_CNT_LEN     0x00\r
 #define PM_TM_LEN       0x04\r
 #define GPE0_BLK_LEN    0x04\r
 #define GPE1_BLK_LEN    0x00\r
 #define RESERVED        0x00\r
 #define P_LVL2_LAT      0x0065\r
 #define P_LVL3_LAT      0x03E9\r
-#define FLUSH_SIZE      0x0400\r
-#define FLUSH_STRIDE    0x0010\r
+#define FLUSH_SIZE      0x0000\r
+#define FLUSH_STRIDE    0x0000\r
 #define DUTY_OFFSET     0x00\r
 #define DUTY_WIDTH      0x00\r
-#define DAY_ALRM        0x0D\r
+#define DAY_ALRM        0x00\r
 #define MON_ALRM        0x00\r
 #define CENTURY         0x00\r
-#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 | EFI_ACPI_1_0_TMR_VAL_EXT\r
+#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\r
 \r
 #endif\r
 \r