3 Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 Abstract: The fixed ACPI description Table (FADT) Structure
25 #include "EDKIIGlueDxe.h"
29 #include <IndustryStandard/Acpi50.h>
30 #include "AcpiTablePlatform.h"
32 EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE FACP = {
34 EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE,
35 sizeof (EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE),
36 EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION,
37 0, // to make sum of entire table == 0
38 EFI_ACPI_OEM_ID, // OEMID is a 6 bytes long field
39 EFI_ACPI_OEM_TABLE_ID, // OEM table identification(8 bytes long)
40 EFI_ACPI_OEM_REVISION, // OEM revision number
41 EFI_ACPI_CREATOR_ID, // ASL compiler vendor ID
42 EFI_ACPI_CREATOR_REVISION // ASL compiler revision number
44 0, // Physical addesss of FACS
45 0, // Physical address of DSDT
46 INT_MODEL, // System Interrupt Model (ignored in 2k and later, must be 0 for 98)
47 PM_PROFILE, // Preferred PM Profile
48 SCI_INT_VECTOR, // System vector of SCI interrupt
49 SMI_CMD_IO_PORT, // Port address of SMI command port
50 ACPI_ENABLE, // value to write to port smi_cmd to enable ACPI
51 ACPI_DISABLE, // value to write to port smi_cmd to disable ACPI
52 S4BIOS_REQ, // Value to write to SMI CMD port to enter the S4BIOS state
53 PSTATE_CNT, // PState control
54 PM1a_EVT_BLK, // Port address of Power Mgt 1a Event Reg Blk
55 PM1b_EVT_BLK, // Port address of Power Mgt 1b Event Reg Blk
56 PM1a_CNT_BLK, // Port address of Power Mgt 1a Ctrl Reg Blk
57 PM1b_CNT_BLK, // Port address of Power Mgt 1b Ctrl Reg Blk
58 PM2_CNT_BLK, // Port address of Power Mgt 2 Ctrl Reg Blk
59 PM_TMR_BLK, // Port address of Power Mgt Timer Ctrl Reg Blk
60 GPE0_BLK, // Port addr of General Purpose Event 0 Reg Blk
61 GPE1_BLK, // Port addr of General Purpose Event 1 Reg Blk
62 PM1_EVT_LEN, // Byte Length of ports at pm1X_evt_blk
63 PM1_CNT_LEN, // Byte Length of ports at pm1X_cnt_blk
64 PM2_CNT_LEN, // Byte Length of ports at pm2_cnt_blk
65 PM_TM_LEN, // Byte Length of ports at pm_tm_blk
66 GPE0_BLK_LEN, // Byte Length of ports at gpe0_blk
67 GPE1_BLK_LEN, // Byte Length of ports at gpe1_blk
68 GPE1_BASE, // offset in gpe model where gpe1 events start
69 CST_CNT, // _CST support
70 P_LVL2_LAT, // worst case HW latency to enter/exit C2 state
71 P_LVL3_LAT, // worst case HW latency to enter/exit C3 state
72 FLUSH_SIZE, // Size of area read to flush caches
73 FLUSH_STRIDE, // Stride used in flushing caches
74 DUTY_OFFSET, // bit location of duty cycle field in p_cnt reg
75 DUTY_WIDTH, // bit width of duty cycle field in p_cnt reg
76 DAY_ALRM, // index to day-of-month alarm in RTC CMOS RAM
77 MON_ALRM, // index to month-of-year alarm in RTC CMOS RAM
78 CENTURY, // index to century in RTC CMOS RAM
79 IAPC_BOOT_ARCH, // IA-PCI Boot Architecture Flag
83 EFI_ACPI_5_0_SYSTEM_IO,
89 0x0E, // Hardware reset value
94 // X_PM1a Event Register Block
96 EFI_ACPI_5_0_SYSTEM_IO,
103 // X_PM1b Event Register Block
105 EFI_ACPI_5_0_SYSTEM_IO,
108 EFI_ACPI_RESERVED_BYTE,
112 // X_PM1a Control Register Block
114 EFI_ACPI_5_0_SYSTEM_IO,
121 // X_PM1b Control Register Block
123 EFI_ACPI_5_0_SYSTEM_IO,
126 EFI_ACPI_RESERVED_BYTE,
130 // X_PM2 Control Register Block
132 EFI_ACPI_5_0_SYSTEM_IO,
139 // X_PM Timer Control Register Block
141 EFI_ACPI_5_0_SYSTEM_IO,
148 // X_General Purpose Event 0 Register Block
150 EFI_ACPI_5_0_SYSTEM_IO,
153 EFI_ACPI_RESERVED_BYTE,
157 // X_General Purpose Event 1 Register Block
159 EFI_ACPI_5_0_SYSTEM_IO,
162 EFI_ACPI_RESERVED_BYTE,
166 // Sleep Control Register Block
168 EFI_ACPI_5_0_SYSTEM_IO,
171 EFI_ACPI_RESERVED_BYTE,
175 // Sleep Status Register Block
177 EFI_ACPI_5_0_SYSTEM_IO,
180 EFI_ACPI_RESERVED_BYTE,
190 // Reference the table being generated to prevent the optimizer from
191 // removing the data structure from the executable