]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/AcpiTables/Platform.h
OvmfPkg: _DIS and _SRS methods should have permanent effect
[mirror_edk2.git] / OvmfPkg / AcpiTables / Platform.h
CommitLineData
49ba9447 1/** @file\r
2 Platform specific defines for constructing ACPI tables\r
3\r
56d7640a
HT
4 Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials are\r
49ba9447 6 licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
2712ab4f 9\r
49ba9447 10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
2712ab4f 13**/\r
49ba9447 14\r
15#ifndef _Platform_h_INCLUDED_\r
16#define _Platform_h_INCLUDED_\r
17\r
2712ab4f 18#include <PiDxe.h>\r
49ba9447 19#include <IndustryStandard/Acpi.h>\r
20\r
21//\r
22// ACPI table information used to initialize tables.\r
23//\r
24#define EFI_ACPI_OEM_ID 'O','V','M','F',' ',' ' // OEMID 6 bytes long\r
25#define EFI_ACPI_OEM_TABLE_ID SIGNATURE_64('O','V','M','F','E','D','K','2') // OEM table id 8 bytes long\r
26#define EFI_ACPI_OEM_REVISION 0x02000820\r
27#define EFI_ACPI_CREATOR_ID SIGNATURE_32('O','V','M','F')\r
28#define EFI_ACPI_CREATOR_REVISION 0x00000097\r
29\r
30#define INT_MODEL 0x01\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
49ba9447 37#define PM1b_EVT_BLK 0x00000000\r
834d3ccd 38#define PM1a_CNT_BLK 0x0000b004\r
49ba9447 39#define PM1b_CNT_BLK 0x00000000\r
062c1cf7 40#define PM2_CNT_BLK 0x00000000\r
834d3ccd 41#define PM_TMR_BLK 0x0000b008\r
b2b16999 42#define GPE0_BLK 0x0000afe0\r
49ba9447 43#define GPE1_BLK 0x00000000\r
44#define PM1_EVT_LEN 0x04\r
45#define PM1_CNT_LEN 0x02\r
062c1cf7 46#define PM2_CNT_LEN 0x00\r
49ba9447 47#define PM_TM_LEN 0x04\r
48#define GPE0_BLK_LEN 0x04\r
49#define GPE1_BLK_LEN 0x00\r
50#define GPE1_BASE 0x00\r
51#define RESERVED 0x00\r
52#define P_LVL2_LAT 0x0065\r
53#define P_LVL3_LAT 0x03E9\r
cf5cfe8d 54#define FLUSH_SIZE 0x0000\r
55#define FLUSH_STRIDE 0x0000\r
49ba9447 56#define DUTY_OFFSET 0x00\r
57#define DUTY_WIDTH 0x00\r
5bf66edf 58#define DAY_ALRM 0x00\r
49ba9447 59#define MON_ALRM 0x00\r
60#define CENTURY 0x00\r
c2129fe6 61#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
49ba9447 62\r
63#endif\r
64\r