]>
Commit | Line | Data |
---|---|---|
49ba9447 | 1 | /** @file\r |
2 | Platform specific defines for constructing ACPI tables\r | |
3 | \r | |
69eeadbb | 4 | Copyright (c) 2012, 2013, Red Hat, Inc.\r |
56d7640a HT |
5 | Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r |
6 | This program and the accompanying materials are\r | |
49ba9447 | 7 | licensed and made available under the terms and conditions of the BSD License\r |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
2712ab4f | 10 | \r |
49ba9447 | 11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
2712ab4f | 14 | **/\r |
49ba9447 | 15 | \r |
16 | #ifndef _Platform_h_INCLUDED_\r | |
17 | #define _Platform_h_INCLUDED_\r | |
18 | \r | |
2712ab4f | 19 | #include <PiDxe.h>\r |
49ba9447 | 20 | #include <IndustryStandard/Acpi.h>\r |
21 | \r | |
22 | //\r | |
23 | // ACPI table information used to initialize tables.\r | |
24 | //\r | |
25 | #define EFI_ACPI_OEM_ID 'O','V','M','F',' ',' ' // OEMID 6 bytes long\r | |
26 | #define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64('O','V','M','F','E','D','K','2') // OEM table id 8 bytes long\r | |
69eeadbb | 27 | #define EFI_ACPI_OEM_REVISION 0x20130221\r |
49ba9447 | 28 | #define EFI_ACPI_CREATOR_ID SIGNATURE_32('O','V','M','F')\r |
69eeadbb | 29 | #define EFI_ACPI_CREATOR_REVISION 0x00000099\r |
49ba9447 | 30 | \r |
2712ab4f | 31 | #define SCI_INT_VECTOR 0x0009\r |
7c9ff57b | 32 | #define SMI_CMD_IO_PORT 0xB2\r |
33 | #define ACPI_ENABLE 0xF1\r | |
34 | #define ACPI_DISABLE 0xF0\r | |
49ba9447 | 35 | #define S4BIOS_REQ 0x00\r |
834d3ccd | 36 | #define PM1a_EVT_BLK 0x0000b000\r |
834d3ccd | 37 | #define PM1a_CNT_BLK 0x0000b004\r |
834d3ccd | 38 | #define PM_TMR_BLK 0x0000b008\r |
b2b16999 | 39 | #define GPE0_BLK 0x0000afe0\r |
49ba9447 | 40 | #define PM1_EVT_LEN 0x04\r |
41 | #define PM1_CNT_LEN 0x02\r | |
49ba9447 | 42 | #define PM_TM_LEN 0x04\r |
43 | #define GPE0_BLK_LEN 0x04\r | |
49ba9447 | 44 | #define RESERVED 0x00\r |
45 | #define P_LVL2_LAT 0x0065\r | |
46 | #define P_LVL3_LAT 0x03E9\r | |
cf5cfe8d | 47 | #define FLUSH_SIZE 0x0000\r |
48 | #define FLUSH_STRIDE 0x0000\r | |
49ba9447 | 49 | #define DUTY_OFFSET 0x00\r |
50 | #define DUTY_WIDTH 0x00\r | |
5bf66edf | 51 | #define DAY_ALRM 0x00\r |
49ba9447 | 52 | #define MON_ALRM 0x00\r |
53 | #define CENTURY 0x00\r | |
304606c0 | 54 | #define FLAG (EFI_ACPI_2_0_WBINVD | \\r |
55 | EFI_ACPI_2_0_PROC_C1 | \\r | |
56 | EFI_ACPI_2_0_SLP_BUTTON | \\r | |
1bccb20c | 57 | EFI_ACPI_2_0_RTC_S4 | \\r |
58 | EFI_ACPI_2_0_RESET_REG_SUP)\r | |
59 | #define RESET_REG 0xCF9\r | |
60 | #define RESET_VALUE (BIT2 | BIT1) // PIIX3 Reset CPU + System Reset\r | |
49ba9447 | 61 | \r |
304606c0 | 62 | //\r |
63 | // Byte-aligned IO port register block initializer for\r | |
64 | // EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE\r | |
65 | //\r | |
66 | #define GAS2_IO(Base, Size) { \\r | |
67 | EFI_ACPI_2_0_SYSTEM_IO, /* AddressSpaceId */ \\r | |
68 | (Size) * 8, /* RegisterBitWidth */ \\r | |
69 | 0, /* RegisterBitOffset */ \\r | |
70 | 0, /* Reserved */ \\r | |
71 | (Base) /* Address */ \\r | |
72 | }\r | |
49ba9447 | 73 | \r |
304606c0 | 74 | #endif\r |