3 Copyright (c) 2006 - 2007 Intel Corporation. All rights reserved.
4 This software and associated documentation (if any) is furnished
5 under a license and may only be used or copied in accordance
6 with the terms of the license. Except as permitted by such
7 license, no part of this software or documentation may be
8 reproduced, stored in a retrieval system, or transmitted in any
9 form or by any means without the express written consent of
19 ACPI 1.0b definitions from the ACPI Specification, revision 1.0b
26 #include "IndustryStandard/Acpi.h"
29 // Ensure proper structure formats
33 // ACPI 1.0b table structures
36 // Root System Description Pointer Structure
44 } EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER
;
47 // Root System Description Table
48 // No definition needed as it is a common description table header followed by a
49 // variable number of UINT32 table pointers.
52 // RSDT Revision (as defined in ACPI 1.0b spec.)
54 #define EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
57 // Fixed ACPI Description Table Structure (FADT)
60 EFI_ACPI_DESCRIPTION_HEADER Header
;
100 } EFI_ACPI_1_0_FIXED_ACPI_DESCRIPTION_TABLE
;
103 // FADT Version (as defined in ACPI 1.0b spec.)
105 #define EFI_ACPI_1_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x01
108 // Fixed ACPI Description Table Fixed Feature Flags
109 // All other bits are reserved and must be set to 0.
111 #define EFI_ACPI_1_0_WBINVD (1 << 0)
112 #define EFI_ACPI_1_0_WBINVD_FLUSH (1 << 1)
113 #define EFI_ACPI_1_0_PROC_C1 (1 << 2)
114 #define EFI_ACPI_1_0_P_LVL2_UP (1 << 3)
115 #define EFI_ACPI_1_0_PWR_BUTTON (1 << 4)
116 #define EFI_ACPI_1_0_SLP_BUTTON (1 << 5)
117 #define EFI_ACPI_1_0_FIX_RTC (1 << 6)
118 #define EFI_ACPI_1_0_RTC_S4 (1 << 7)
119 #define EFI_ACPI_1_0_TMR_VAL_EXT (1 << 8)
120 #define EFI_ACPI_1_0_DCK_CAP (1 << 9)
123 // Firmware ACPI Control Structure
128 UINT32 HardwareSignature
;
129 UINT32 FirmwareWakingVector
;
133 } EFI_ACPI_1_0_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
136 // Firmware Control Structure Feature Flags
137 // All other bits are reserved and must be set to 0.
139 #define EFI_ACPI_1_0_S4BIOS_F (1 << 0)
142 // Multiple APIC Description Table header definition. The rest of the table
143 // must be defined in a platform specific manner.
146 EFI_ACPI_DESCRIPTION_HEADER Header
;
147 UINT32 LocalApicAddress
;
149 } EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
152 // MADT Revision (as defined in ACPI 1.0b spec.)
154 #define EFI_ACPI_1_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x01
157 // Multiple APIC Flags
158 // All other bits are reserved and must be set to 0.
160 #define EFI_ACPI_1_0_PCAT_COMPAT (1 << 0)
163 // Multiple APIC Description Table APIC structure types
164 // All other values between 0x09 an 0xFF are reserved and
165 // will be ignored by OSPM.
167 #define EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC 0x00
168 #define EFI_ACPI_1_0_IO_APIC 0x01
169 #define EFI_ACPI_1_0_INTERRUPT_SOURCE_OVERRIDE 0x02
170 #define EFI_ACPI_1_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
171 #define EFI_ACPI_1_0_LOCAL_APIC_NMI 0x04
174 // APIC Structure Definitions
177 // Processor Local APIC Structure Definition
182 UINT8 AcpiProcessorId
;
185 } EFI_ACPI_1_0_PROCESSOR_LOCAL_APIC_STRUCTURE
;
188 // Local APIC Flags. All other bits are reserved and must be 0.
190 #define EFI_ACPI_1_0_LOCAL_APIC_ENABLED (1 << 0)
200 UINT32 IoApicAddress
;
201 UINT32 SystemVectorBase
;
202 } EFI_ACPI_1_0_IO_APIC_STRUCTURE
;
205 // Interrupt Source Override Structure
212 UINT32 GlobalSystemInterruptVector
;
214 } EFI_ACPI_1_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
217 // Non-Maskable Interrupt Source Structure
223 UINT32 GlobalSystemInterruptVector
;
224 } EFI_ACPI_1_0_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
227 // Local APIC NMI Structure
232 UINT8 AcpiProcessorId
;
235 } EFI_ACPI_1_0_LOCAL_APIC_NMI_STRUCTURE
;
238 // Smart Battery Description Table (SBST)
241 EFI_ACPI_DESCRIPTION_HEADER Header
;
242 UINT32 WarningEnergyLevel
;
243 UINT32 LowEnergyLevel
;
244 UINT32 CriticalEnergyLevel
;
245 } EFI_ACPI_1_0_SMART_BATTERY_DESCRIPTION_TABLE
;
248 // Known table signatures
251 // "RSD PTR " Root System Description Pointer
253 #define EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE 0x2052545020445352ULL
256 // "APIC" Multiple APIC Description Table
258 #define EFI_ACPI_1_0_APIC_SIGNATURE 0x43495041
261 // "DSDT" Differentiated System Description Table
263 #define EFI_ACPI_1_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445344
266 // "FACS" Firmware ACPI Control Structure
268 #define EFI_ACPI_1_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE 0x53434146
271 // "FACP" Fixed ACPI Description Table
273 #define EFI_ACPI_1_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE 0x50434146
276 // "PSDT" Persistent System Description Table
278 #define EFI_ACPI_1_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445350
281 // "RSDT" Root System Description Table
283 #define EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445352
286 // "SBST" Smart Battery Specification Table
288 #define EFI_ACPI_1_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE 0x54534253
291 // "SSDT" Secondary System Description Table
293 #define EFI_ACPI_1_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445353