3 Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 ACPI 1.0b definitions from the ACPI Specification, revision 1.0b
26 // Statements that include other files
28 #include "AcpiCommon.h"
31 // Ensure proper structure formats
35 // ACPI 1.0b table structures
38 // Root System Description Pointer Structure
46 } EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER
;
49 // Root System Description Table
50 // No definition needed as it is a common description table header followed by a
51 // variable number of UINT32 table pointers.
54 // RSDT Revision (as defined in ACPI 1.0b spec.)
56 #define EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
59 // Fixed ACPI Description Table Structure (FADT)
62 EFI_ACPI_DESCRIPTION_HEADER Header
;
102 } EFI_ACPI_1_0_FIXED_ACPI_DESCRIPTION_TABLE
;
105 // FADT Version (as defined in ACPI 1.0b spec.)
107 #define EFI_ACPI_1_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x01
110 // Fixed ACPI Description Table Fixed Feature Flags
111 // All other bits are reserved and must be set to 0.
113 #define EFI_ACPI_1_0_WBINVD (1 << 0)
114 #define EFI_ACPI_1_0_WBINVD_FLUSH (1 << 1)
115 #define EFI_ACPI_1_0_PROC_C1 (1 << 2)
116 #define EFI_ACPI_1_0_P_LVL2_UP (1 << 3)
117 #define EFI_ACPI_1_0_PWR_BUTTON (1 << 4)
118 #define EFI_ACPI_1_0_SLP_BUTTON (1 << 5)
119 #define EFI_ACPI_1_0_FIX_RTC (1 << 6)
120 #define EFI_ACPI_1_0_RTC_S4 (1 << 7)
121 #define EFI_ACPI_1_0_TMR_VAL_EXT (1 << 8)
122 #define EFI_ACPI_1_0_DCK_CAP (1 << 9)
125 // Firmware ACPI Control Structure
130 UINT32 HardwareSignature
;
131 UINT32 FirmwareWakingVector
;
135 } EFI_ACPI_1_0_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
138 // Firmware Control Structure Feature Flags
139 // All other bits are reserved and must be set to 0.
141 #define EFI_ACPI_1_0_S4BIOS_F (1 << 0)
144 // Multiple APIC Description Table header definition. The rest of the table
145 // must be defined in a platform specific manner.
148 EFI_ACPI_DESCRIPTION_HEADER Header
;
149 UINT32 LocalApicAddress
;
151 } EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
154 // MADT Revision (as defined in ACPI 1.0b spec.)
156 #define EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x01
159 // Multiple APIC Flags
160 // All other bits are reserved and must be set to 0.
162 #define EFI_ACPI_1_0_PCAT_COMPAT (1 << 0)
165 // Multiple APIC Description Table APIC structure types
166 // All other values between 0x09 an 0xFF are reserved and
167 // will be ignored by OSPM.
169 #define EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC 0x00
170 #define EFI_ACPI_1_0_IO_APIC 0x01
171 #define EFI_ACPI_1_0_INTERRUPT_SOURCE_OVERRIDE 0x02
172 #define EFI_ACPI_1_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
173 #define EFI_ACPI_1_0_LOCAL_APIC_NMI 0x04
176 // APIC Structure Definitions
179 // Processor Local APIC Structure Definition
184 UINT8 AcpiProcessorId
;
187 } EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC_STRUCTURE
;
190 // Local APIC Flags. All other bits are reserved and must be 0.
192 #define EFI_ACPI_1_0_LOCAL_APIC_ENABLED (1 << 0)
202 UINT32 IoApicAddress
;
203 UINT32 SystemVectorBase
;
204 } EFI_ACPI_1_0_IO_APIC_STRUCTURE
;
207 // Interrupt Source Override Structure
214 UINT32 GlobalSystemInterruptVector
;
216 } EFI_ACPI_1_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
219 // Non-Maskable Interrupt Source Structure
225 UINT32 GlobalSystemInterruptVector
;
226 } EFI_ACPI_1_0_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
229 // Local APIC NMI Structure
234 UINT8 AcpiProcessorId
;
237 } EFI_ACPI_1_0_LOCAL_APIC_NMI_STRUCTURE
;
240 // Smart Battery Description Table (SBST)
243 EFI_ACPI_DESCRIPTION_HEADER Header
;
244 UINT32 WarningEnergyLevel
;
245 UINT32 LowEnergyLevel
;
246 UINT32 CriticalEnergyLevel
;
247 } EFI_ACPI_1_0_SMART_BATTERY_DESCRIPTION_TABLE
;
250 // Known table signatures
253 // "RSD PTR " Root System Description Pointer
255 #define EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE 0x2052545020445352
258 // "APIC" Multiple APIC Description Table
260 #define EFI_ACPI_1_0_APIC_SIGNATURE 0x43495041
263 // "DSDT" Differentiated System Description Table
265 #define EFI_ACPI_1_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445344
268 // "FACS" Firmware ACPI Control Structure
270 #define EFI_ACPI_1_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE 0x53434146
273 // "FACP" Fixed ACPI Description Table
275 #define EFI_ACPI_1_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE 0x50434146
278 // "PSDT" Persistent System Description Table
280 #define EFI_ACPI_1_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445350
283 // "RSDT" Root System Description Table
285 #define EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445352
288 // "SBST" Smart Battery Specification Table
290 #define EFI_ACPI_1_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE 0x54534253
293 // "SSDT" Secondary System Description Table
295 #define EFI_ACPI_1_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445353