3 ACPI 2.0 definitions from the ACPI Specification, revision 2.0
5 Copyright (c) 2006 - 2007, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 // Ensure proper structure formats
25 // ACPI Specification Revision
27 #define EFI_ACPI_2_0_REVISION 0x02
30 // BUGBUG: OEM values need to be moved somewhere else, probably read from data hub
31 // and produced by a platform specific driver.
36 #define EFI_ACPI_2_0_OEM_ID "INTEL "
37 #define EFI_ACPI_2_0_OEM_TABLE_ID 0x5034303738543245 // "E2T8704P"
41 #define EFI_ACPI_2_0_OEM_REVISION 0x00000002
44 // ACPI table creator ID
46 #define EFI_ACPI_2_0_CREATOR_ID 0x5446534D // TBD "MSFT"
48 // ACPI table creator revision
50 #define EFI_ACPI_2_0_CREATOR_REVISION 0x01000013 // TBD
52 // ACPI 2.0 Generic Address Space definition
56 UINT8 RegisterBitWidth
;
57 UINT8 RegisterBitOffset
;
60 } EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE
;
63 // Generic Address Space Address IDs
65 #define EFI_ACPI_2_0_SYSTEM_MEMORY 0
66 #define EFI_ACPI_2_0_SYSTEM_IO 1
67 #define EFI_ACPI_2_0_PCI_CONFIGURATION_SPACE 2
68 #define EFI_ACPI_2_0_EMBEDDED_CONTROLLER 3
69 #define EFI_ACPI_2_0_SMBUS 4
70 #define EFI_ACPI_2_0_FUNCTIONAL_FIXED_HARDWARE 0x7F
73 // ACPI 2.0 table structures
76 // Root System Description Pointer Structure
86 UINT8 ExtendedChecksum
;
88 } EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER
;
91 // RSD_PTR Revision (as defined in ACPI 2.0 spec.)
93 #define EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02
96 // Common table header, this prefaces all ACPI tables, including FACS, but
97 // excluding the RSD PTR structure
102 } EFI_ACPI_2_0_COMMON_HEADER
;
105 // Root System Description Table
106 // No definition needed as it is a common description table header followed by a
107 // variable number of UINT32 table pointers.
110 // RSDT Revision (as defined in ACPI 2.0 spec.)
112 #define EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
115 // Extended System Description Table
116 // No definition needed as it is a common description table header followed by a
117 // variable number of UINT64 table pointers.
120 // XSDT Revision (as defined in ACPI 2.0 spec.)
122 #define EFI_ACPI_2_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
125 // Fixed ACPI Description Table Structure (FADT)
128 EFI_ACPI_DESCRIPTION_HEADER Header
;
132 UINT8 PreferredPmProfile
;
167 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE ResetReg
;
170 UINT64 XFirmwareCtrl
;
172 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk
;
173 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk
;
174 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk
;
175 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk
;
176 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk
;
177 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk
;
178 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XGpe0Blk
;
179 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk
;
180 } EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE
;
183 // FADT Version (as defined in ACPI 2.0 spec.)
185 #define EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x03
188 // Fixed ACPI Description Table Boot Architecture Flags
189 // All other bits are reserved and must be set to 0.
191 #define EFI_ACPI_2_0_LEGACY_DEVICES (1 << 0)
192 #define EFI_ACPI_2_0_8042 (1 << 1)
195 // Fixed ACPI Description Table Fixed Feature Flags
196 // All other bits are reserved and must be set to 0.
198 #define EFI_ACPI_2_0_WBINVD (1 << 0)
199 #define EFI_ACPI_2_0_WBINVD_FLUSH (1 << 1)
200 #define EFI_ACPI_2_0_PROC_C1 (1 << 2)
201 #define EFI_ACPI_2_0_P_LVL2_UP (1 << 3)
202 #define EFI_ACPI_2_0_PWR_BUTTON (1 << 4)
203 #define EFI_ACPI_2_0_SLP_BUTTON (1 << 5)
204 #define EFI_ACPI_2_0_FIX_RTC (1 << 6)
205 #define EFI_ACPI_2_0_RTC_S4 (1 << 7)
206 #define EFI_ACPI_2_0_TMR_VAL_EXT (1 << 8)
207 #define EFI_ACPI_2_0_DCK_CAP (1 << 9)
208 #define EFI_ACPI_2_0_RESET_REG_SUP (1 << 10)
209 #define EFI_ACPI_2_0_SEALED_CASE (1 << 11)
210 #define EFI_ACPI_2_0_HEADLESS (1 << 12)
211 #define EFI_ACPI_2_0_CPU_SW_SLP (1 << 13)
214 // Firmware ACPI Control Structure
219 UINT32 HardwareSignature
;
220 UINT32 FirmwareWakingVector
;
223 UINT64 XFirmwareWakingVector
;
226 } EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
229 // FACS Version (as defined in ACPI 2.0 spec.)
231 #define EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x01
234 // Firmware Control Structure Feature Flags
235 // All other bits are reserved and must be set to 0.
237 #define EFI_ACPI_2_0_S4BIOS_F (1 << 0)
240 // Multiple APIC Description Table header definition. The rest of the table
241 // must be defined in a platform specific manner.
244 EFI_ACPI_DESCRIPTION_HEADER Header
;
245 UINT32 LocalApicAddress
;
247 } EFI_ACPI_2_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
250 // MADT Revision (as defined in ACPI 2.0 spec.)
252 #define EFI_ACPI_2_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x01
255 // Multiple APIC Flags
256 // All other bits are reserved and must be set to 0.
258 #define EFI_ACPI_2_0_PCAT_COMPAT (1 << 0)
261 // Multiple APIC Description Table APIC structure types
262 // All other values between 0x09 an 0xFF are reserved and
263 // will be ignored by OSPM.
265 #define EFI_ACPI_2_0_PROCESSOR_LOCAL_APIC 0x00
266 #define EFI_ACPI_2_0_IO_APIC 0x01
267 #define EFI_ACPI_2_0_INTERRUPT_SOURCE_OVERRIDE 0x02
268 #define EFI_ACPI_2_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
269 #define EFI_ACPI_2_0_LOCAL_APIC_NMI 0x04
270 #define EFI_ACPI_2_0_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
271 #define EFI_ACPI_2_0_IO_SAPIC 0x06
272 #define EFI_ACPI_2_0_PROCESSOR_LOCAL_SAPIC 0x07
273 #define EFI_ACPI_2_0_PLATFORM_INTERRUPT_SOURCES 0x08
276 // APIC Structure Definitions
279 // Processor Local APIC Structure Definition
284 UINT8 AcpiProcessorId
;
287 } EFI_ACPI_2_0_PROCESSOR_LOCAL_APIC_STRUCTURE
;
290 // Local APIC Flags. All other bits are reserved and must be 0.
292 #define EFI_ACPI_2_0_LOCAL_APIC_ENABLED (1 << 0)
302 UINT32 IoApicAddress
;
303 UINT32 GlobalSystemInterruptBase
;
304 } EFI_ACPI_2_0_IO_APIC_STRUCTURE
;
307 // Interrupt Source Override Structure
314 UINT32 GlobalSystemInterrupt
;
316 } EFI_ACPI_2_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
319 // Non-Maskable Interrupt Source Structure
325 UINT32 GlobalSystemInterrupt
;
326 } EFI_ACPI_2_0_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
329 // Local APIC NMI Structure
334 UINT8 AcpiProcessorId
;
337 } EFI_ACPI_2_0_LOCAL_APIC_NMI_STRUCTURE
;
340 // Local APIC Address Override Structure
346 UINT64 LocalApicAddress
;
347 } EFI_ACPI_2_0_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE
;
350 // IO SAPIC Structure
357 UINT32 GlobalSystemInterruptBase
;
358 UINT64 IoSapicAddress
;
359 } EFI_ACPI_2_0_IO_SAPIC_STRUCTURE
;
362 // Local SAPIC Structure
367 UINT8 AcpiProcessorId
;
372 } EFI_ACPI_2_0_PROCESSOR_LOCAL_SAPIC_STRUCTURE
;
375 // Platform Interrupt Sources Structure
385 UINT32 GlobalSystemInterrupt
;
387 } EFI_ACPI_2_0_PLATFORM_INTERRUPT_SOURCES_STRUCTURE
;
390 // Smart Battery Description Table (SBST)
393 EFI_ACPI_DESCRIPTION_HEADER Header
;
394 UINT32 WarningEnergyLevel
;
395 UINT32 LowEnergyLevel
;
396 UINT32 CriticalEnergyLevel
;
397 } EFI_ACPI_2_0_SMART_BATTERY_DESCRIPTION_TABLE
;
400 // SBST Version (as defined in ACPI 2.0 spec.)
402 #define EFI_ACPI_2_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
405 // Embedded Controller Boot Resources Table (ECDT)
406 // The table is followed by a null terminated ASCII string that contains
407 // a fully qualified reference to the name space object.
410 EFI_ACPI_DESCRIPTION_HEADER Header
;
411 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE EcControl
;
412 EFI_ACPI_2_0_GENERIC_ADDRESS_STRUCTURE EcData
;
415 } EFI_ACPI_2_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE
;
418 // ECDT Version (as defined in ACPI 2.0 spec.)
420 #define EFI_ACPI_2_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
423 // Known table signatures
426 // "RSD PTR " Root System Description Pointer
428 #define EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE 0x2052545020445352
431 // "SPIC" Multiple SAPIC Description Table
433 // BUGBUG: Don't know where this came from except SR870BN4 uses it.
434 // #define EFI_ACPI_2_0_MULTIPLE_SAPIC_DESCRIPTION_TABLE_SIGNATURE 0x43495053
436 #define EFI_ACPI_2_0_MULTIPLE_SAPIC_DESCRIPTION_TABLE_SIGNATURE 0x43495041
439 // "BOOT" MS Simple Boot Spec
441 #define EFI_ACPI_2_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE 0x544F4F42
444 // "DBGP" MS Bebug Port Spec
446 #define EFI_ACPI_2_0_DEBUG_PORT_TABLE_SIGNATURE 0x50474244
449 // "DSDT" Differentiated System Description Table
451 #define EFI_ACPI_2_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445344
454 // "ECDT" Embedded Controller Boot Resources Table
456 #define EFI_ACPI_2_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE 0x54444345
459 // "ETDT" Event Timer Description Table
461 #define EFI_ACPI_2_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE 0x54445445
464 // "FACS" Firmware ACPI Control Structure
466 #define EFI_ACPI_2_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE 0x53434146
469 // "FACP" Fixed ACPI Description Table
471 #define EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE 0x50434146
474 // "APIC" Multiple APIC Description Table
476 #define EFI_ACPI_2_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE 0x43495041
479 // "PSDT" Persistent System Description Table
481 #define EFI_ACPI_2_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445350
484 // "RSDT" Root System Description Table
486 #define EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445352
489 // "SBST" Smart Battery Specification Table
491 #define EFI_ACPI_2_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE 0x54534253
494 // "SLIT" System Locality Information Table
496 #define EFI_ACPI_2_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE 0x54494C53
499 // "SPCR" Serial Port Concole Redirection Table
501 #define EFI_ACPI_2_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE 0x52435053
504 // "SRAT" Static Resource Affinity Table
506 #define EFI_ACPI_2_0_STATIC_RESOURCE_AFFINITY_TABLE_SIGNATURE 0x54415253
509 // "SSDT" Secondary System Description Table
511 #define EFI_ACPI_2_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445353
514 // "SPMI" Server Platform Management Interface Table
516 #define EFI_ACPI_2_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_SIGNATURE 0x494D5053
519 // "XSDT" Extended System Description Table
521 #define EFI_ACPI_2_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE 0x54445358