\r
Copyright (c) 2012, 2013, Red Hat, Inc.\r
Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
- This program and the accompanying materials are\r
- 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
- 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
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
#define EFI_ACPI_CREATOR_ID SIGNATURE_32('O','V','M','F')\r
#define EFI_ACPI_CREATOR_REVISION 0x00000099\r
\r
-#define INT_MODEL 0x01\r
#define SCI_INT_VECTOR 0x0009\r
#define SMI_CMD_IO_PORT 0xB2\r
#define ACPI_ENABLE 0xF1\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\r
+#define FLAG (EFI_ACPI_2_0_WBINVD | \\r
+ EFI_ACPI_2_0_PROC_C1 | \\r
+ EFI_ACPI_2_0_SLP_BUTTON | \\r
+ EFI_ACPI_2_0_RTC_S4 | \\r
+ EFI_ACPI_2_0_RESET_REG_SUP)\r
+#define RESET_REG 0xCF9\r
+#define RESET_VALUE (BIT2 | BIT1) // PIIX3 Reset CPU + System Reset\r
\r
-#endif\r
+//\r
+// Byte-aligned IO port register block initializer for\r
+// EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE\r
+//\r
+#define GAS2_IO(Base, Size) { \\r
+ EFI_ACPI_2_0_SYSTEM_IO, /* AddressSpaceId */ \\r
+ (Size) * 8, /* RegisterBitWidth */ \\r
+ 0, /* RegisterBitOffset */ \\r
+ 0, /* Reserved */ \\r
+ (Base) /* Address */ \\r
+ }\r
\r
+#endif\r