+++ /dev/null
-/** @file\r
- Platform specific defines for constructing ACPI tables\r
-\r
- Copyright (c) 2012, 2013, Red Hat, Inc.\r
- Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#ifndef _Platform_h_INCLUDED_\r
-#define _Platform_h_INCLUDED_\r
-\r
-#include <PiDxe.h>\r
-#include <IndustryStandard/Acpi.h>\r
-\r
-//\r
-// ACPI table information used to initialize tables.\r
-//\r
-#define EFI_ACPI_OEM_ID 'O','V','M','F',' ',' ' // OEMID 6 bytes long\r
-#define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64('O','V','M','F','E','D','K','2') // OEM table id 8 bytes long\r
-#define EFI_ACPI_OEM_REVISION 0x20130221\r
-#define EFI_ACPI_CREATOR_ID SIGNATURE_32('O','V','M','F')\r
-#define EFI_ACPI_CREATOR_REVISION 0x00000099\r
-\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 0x0000b000\r
-#define PM1a_CNT_BLK 0x0000b004\r
-#define PM_TMR_BLK 0x0000b008\r
-#define GPE0_BLK 0x0000afe0\r
-#define PM1_EVT_LEN 0x04\r
-#define PM1_CNT_LEN 0x02\r
-#define PM_TM_LEN 0x04\r
-#define GPE0_BLK_LEN 0x04\r
-#define RESERVED 0x00\r
-#define P_LVL2_LAT 0x0065\r
-#define P_LVL3_LAT 0x03E9\r
-#define FLUSH_SIZE 0x0000\r
-#define FLUSH_STRIDE 0x0000\r
-#define DUTY_OFFSET 0x00\r
-#define DUTY_WIDTH 0x00\r
-#define DAY_ALRM 0x00\r
-#define MON_ALRM 0x00\r
-#define CENTURY 0x00\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
-//\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