2 ACPI 6.0 definitions from the ACPI Specification Revision 6.0 April, 2015.
4 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. 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.
17 #include <IndustryStandard/Acpi51.h>
20 // Ensure proper structure formats
25 /// ACPI 6.0 Generic Address Space definition
29 UINT8 RegisterBitWidth
;
30 UINT8 RegisterBitOffset
;
33 } EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE
;
36 // Generic Address Space Address IDs
38 #define EFI_ACPI_6_0_SYSTEM_MEMORY 0
39 #define EFI_ACPI_6_0_SYSTEM_IO 1
40 #define EFI_ACPI_6_0_PCI_CONFIGURATION_SPACE 2
41 #define EFI_ACPI_6_0_EMBEDDED_CONTROLLER 3
42 #define EFI_ACPI_6_0_SMBUS 4
43 #define EFI_ACPI_6_0_PLATFORM_COMMUNICATION_CHANNEL 0x0A
44 #define EFI_ACPI_6_0_FUNCTIONAL_FIXED_HARDWARE 0x7F
47 // Generic Address Space Access Sizes
49 #define EFI_ACPI_6_0_UNDEFINED 0
50 #define EFI_ACPI_6_0_BYTE 1
51 #define EFI_ACPI_6_0_WORD 2
52 #define EFI_ACPI_6_0_DWORD 3
53 #define EFI_ACPI_6_0_QWORD 4
56 // ACPI 6.0 table structures
60 /// Root System Description Pointer Structure
70 UINT8 ExtendedChecksum
;
72 } EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_POINTER
;
75 /// RSD_PTR Revision (as defined in ACPI 6.0 spec.)
77 #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 6.0) says current value is 2
80 /// Common table header, this prefaces all ACPI tables, including FACS, but
81 /// excluding the RSD PTR structure
86 } EFI_ACPI_6_0_COMMON_HEADER
;
89 // Root System Description Table
90 // No definition needed as it is a common description table header, the same with
91 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
95 /// RSDT Revision (as defined in ACPI 6.0 spec.)
97 #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
100 // Extended System Description Table
101 // No definition needed as it is a common description table header, the same with
102 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
106 /// XSDT Revision (as defined in ACPI 6.0 spec.)
108 #define EFI_ACPI_6_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
111 /// Fixed ACPI Description Table Structure (FADT)
114 EFI_ACPI_DESCRIPTION_HEADER Header
;
118 UINT8 PreferredPmProfile
;
153 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE ResetReg
;
157 UINT64 XFirmwareCtrl
;
159 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk
;
160 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk
;
161 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk
;
162 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk
;
163 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk
;
164 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk
;
165 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XGpe0Blk
;
166 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE XGpe1Blk
;
167 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE SleepControlReg
;
168 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE SleepStatusReg
;
169 UINT64 HypervisorVendorIdentity
;
170 } EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE
;
173 /// FADT Version (as defined in ACPI 6.0 spec.)
175 #define EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06
176 #define EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x00
179 // Fixed ACPI Description Table Preferred Power Management Profile
181 #define EFI_ACPI_6_0_PM_PROFILE_UNSPECIFIED 0
182 #define EFI_ACPI_6_0_PM_PROFILE_DESKTOP 1
183 #define EFI_ACPI_6_0_PM_PROFILE_MOBILE 2
184 #define EFI_ACPI_6_0_PM_PROFILE_WORKSTATION 3
185 #define EFI_ACPI_6_0_PM_PROFILE_ENTERPRISE_SERVER 4
186 #define EFI_ACPI_6_0_PM_PROFILE_SOHO_SERVER 5
187 #define EFI_ACPI_6_0_PM_PROFILE_APPLIANCE_PC 6
188 #define EFI_ACPI_6_0_PM_PROFILE_PERFORMANCE_SERVER 7
189 #define EFI_ACPI_6_0_PM_PROFILE_TABLET 8
192 // Fixed ACPI Description Table Boot Architecture Flags
193 // All other bits are reserved and must be set to 0.
195 #define EFI_ACPI_6_0_LEGACY_DEVICES BIT0
196 #define EFI_ACPI_6_0_8042 BIT1
197 #define EFI_ACPI_6_0_VGA_NOT_PRESENT BIT2
198 #define EFI_ACPI_6_0_MSI_NOT_SUPPORTED BIT3
199 #define EFI_ACPI_6_0_PCIE_ASPM_CONTROLS BIT4
200 #define EFI_ACPI_6_0_CMOS_RTC_NOT_PRESENT BIT5
203 // Fixed ACPI Description Table Arm Boot Architecture Flags
204 // All other bits are reserved and must be set to 0.
206 #define EFI_ACPI_6_0_ARM_PSCI_COMPLIANT BIT0
207 #define EFI_ACPI_6_0_ARM_PSCI_USE_HVC BIT1
210 // Fixed ACPI Description Table Fixed Feature Flags
211 // All other bits are reserved and must be set to 0.
213 #define EFI_ACPI_6_0_WBINVD BIT0
214 #define EFI_ACPI_6_0_WBINVD_FLUSH BIT1
215 #define EFI_ACPI_6_0_PROC_C1 BIT2
216 #define EFI_ACPI_6_0_P_LVL2_UP BIT3
217 #define EFI_ACPI_6_0_PWR_BUTTON BIT4
218 #define EFI_ACPI_6_0_SLP_BUTTON BIT5
219 #define EFI_ACPI_6_0_FIX_RTC BIT6
220 #define EFI_ACPI_6_0_RTC_S4 BIT7
221 #define EFI_ACPI_6_0_TMR_VAL_EXT BIT8
222 #define EFI_ACPI_6_0_DCK_CAP BIT9
223 #define EFI_ACPI_6_0_RESET_REG_SUP BIT10
224 #define EFI_ACPI_6_0_SEALED_CASE BIT11
225 #define EFI_ACPI_6_0_HEADLESS BIT12
226 #define EFI_ACPI_6_0_CPU_SW_SLP BIT13
227 #define EFI_ACPI_6_0_PCI_EXP_WAK BIT14
228 #define EFI_ACPI_6_0_USE_PLATFORM_CLOCK BIT15
229 #define EFI_ACPI_6_0_S4_RTC_STS_VALID BIT16
230 #define EFI_ACPI_6_0_REMOTE_POWER_ON_CAPABLE BIT17
231 #define EFI_ACPI_6_0_FORCE_APIC_CLUSTER_MODEL BIT18
232 #define EFI_ACPI_6_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
233 #define EFI_ACPI_6_0_HW_REDUCED_ACPI BIT20
234 #define EFI_ACPI_6_0_LOW_POWER_S0_IDLE_CAPABLE BIT21
237 /// Firmware ACPI Control Structure
242 UINT32 HardwareSignature
;
243 UINT32 FirmwareWakingVector
;
246 UINT64 XFirmwareWakingVector
;
251 } EFI_ACPI_6_0_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
254 /// FACS Version (as defined in ACPI 6.0 spec.)
256 #define EFI_ACPI_6_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
259 /// Firmware Control Structure Feature Flags
260 /// All other bits are reserved and must be set to 0.
262 #define EFI_ACPI_6_0_S4BIOS_F BIT0
263 #define EFI_ACPI_6_0_64BIT_WAKE_SUPPORTED_F BIT1
266 /// OSPM Enabled Firmware Control Structure Flags
267 /// All other bits are reserved and must be set to 0.
269 #define EFI_ACPI_6_0_OSPM_64BIT_WAKE_F BIT0
272 // Differentiated System Description Table,
273 // Secondary System Description Table
274 // and Persistent System Description Table,
275 // no definition needed as they are common description table header, the same with
276 // EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
278 #define EFI_ACPI_6_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
279 #define EFI_ACPI_6_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
282 /// Multiple APIC Description Table header definition. The rest of the table
283 /// must be defined in a platform specific manner.
286 EFI_ACPI_DESCRIPTION_HEADER Header
;
287 UINT32 LocalApicAddress
;
289 } EFI_ACPI_6_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
292 /// MADT Revision (as defined in ACPI 6.0 spec.)
294 #define EFI_ACPI_6_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
297 /// Multiple APIC Flags
298 /// All other bits are reserved and must be set to 0.
300 #define EFI_ACPI_6_0_PCAT_COMPAT BIT0
303 // Multiple APIC Description Table APIC structure types
304 // All other values between 0x0D and 0x7F are reserved and
305 // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
307 #define EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC 0x00
308 #define EFI_ACPI_6_0_IO_APIC 0x01
309 #define EFI_ACPI_6_0_INTERRUPT_SOURCE_OVERRIDE 0x02
310 #define EFI_ACPI_6_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
311 #define EFI_ACPI_6_0_LOCAL_APIC_NMI 0x04
312 #define EFI_ACPI_6_0_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
313 #define EFI_ACPI_6_0_IO_SAPIC 0x06
314 #define EFI_ACPI_6_0_LOCAL_SAPIC 0x07
315 #define EFI_ACPI_6_0_PLATFORM_INTERRUPT_SOURCES 0x08
316 #define EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC 0x09
317 #define EFI_ACPI_6_0_LOCAL_X2APIC_NMI 0x0A
318 #define EFI_ACPI_6_0_GIC 0x0B
319 #define EFI_ACPI_6_0_GICD 0x0C
320 #define EFI_ACPI_6_0_GIC_MSI_FRAME 0x0D
321 #define EFI_ACPI_6_0_GICR 0x0E
322 #define EFI_ACPI_6_0_GIC_ITS 0x0F
325 // APIC Structure Definitions
329 /// Processor Local APIC Structure Definition
334 UINT8 AcpiProcessorUid
;
337 } EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_STRUCTURE
;
340 /// Local APIC Flags. All other bits are reserved and must be 0.
342 #define EFI_ACPI_6_0_LOCAL_APIC_ENABLED BIT0
345 /// IO APIC Structure
352 UINT32 IoApicAddress
;
353 UINT32 GlobalSystemInterruptBase
;
354 } EFI_ACPI_6_0_IO_APIC_STRUCTURE
;
357 /// Interrupt Source Override Structure
364 UINT32 GlobalSystemInterrupt
;
366 } EFI_ACPI_6_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
369 /// Platform Interrupt Sources Structure Definition
379 UINT32 GlobalSystemInterrupt
;
380 UINT32 PlatformInterruptSourceFlags
;
381 UINT8 CpeiProcessorOverride
;
383 } EFI_ACPI_6_0_PLATFORM_INTERRUPT_APIC_STRUCTURE
;
387 // All other bits are reserved and must be set to 0.
389 #define EFI_ACPI_6_0_POLARITY (3 << 0)
390 #define EFI_ACPI_6_0_TRIGGER_MODE (3 << 2)
393 /// Non-Maskable Interrupt Source Structure
399 UINT32 GlobalSystemInterrupt
;
400 } EFI_ACPI_6_0_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
403 /// Local APIC NMI Structure
408 UINT8 AcpiProcessorUid
;
411 } EFI_ACPI_6_0_LOCAL_APIC_NMI_STRUCTURE
;
414 /// Local APIC Address Override Structure
420 UINT64 LocalApicAddress
;
421 } EFI_ACPI_6_0_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE
;
424 /// IO SAPIC Structure
431 UINT32 GlobalSystemInterruptBase
;
432 UINT64 IoSapicAddress
;
433 } EFI_ACPI_6_0_IO_SAPIC_STRUCTURE
;
436 /// Local SAPIC Structure
437 /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
442 UINT8 AcpiProcessorId
;
447 UINT32 ACPIProcessorUIDValue
;
448 } EFI_ACPI_6_0_PROCESSOR_LOCAL_SAPIC_STRUCTURE
;
451 /// Platform Interrupt Sources Structure
461 UINT32 GlobalSystemInterrupt
;
462 UINT32 PlatformInterruptSourceFlags
;
463 } EFI_ACPI_6_0_PLATFORM_INTERRUPT_SOURCES_STRUCTURE
;
466 /// Platform Interrupt Source Flags.
467 /// All other bits are reserved and must be set to 0.
469 #define EFI_ACPI_6_0_CPEI_PROCESSOR_OVERRIDE BIT0
472 /// Processor Local x2APIC Structure Definition
480 UINT32 AcpiProcessorUid
;
481 } EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC_STRUCTURE
;
484 /// Local x2APIC NMI Structure
490 UINT32 AcpiProcessorUid
;
491 UINT8 LocalX2ApicLint
;
493 } EFI_ACPI_6_0_LOCAL_X2APIC_NMI_STRUCTURE
;
502 UINT32 CPUInterfaceNumber
;
503 UINT32 AcpiProcessorUid
;
505 UINT32 ParkingProtocolVersion
;
506 UINT32 PerformanceInterruptGsiv
;
507 UINT64 ParkedAddress
;
508 UINT64 PhysicalBaseAddress
;
511 UINT32 VGICMaintenanceInterrupt
;
512 UINT64 GICRBaseAddress
;
514 UINT8 ProcessorPowerEfficiencyClass
;
516 } EFI_ACPI_6_0_GIC_STRUCTURE
;
519 /// GIC Flags. All other bits are reserved and must be 0.
521 #define EFI_ACPI_6_0_GIC_ENABLED BIT0
522 #define EFI_ACPI_6_0_PERFORMANCE_INTERRUPT_MODEL BIT1
523 #define EFI_ACPI_6_0_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
526 /// GIC Distributor Structure
533 UINT64 PhysicalBaseAddress
;
534 UINT32 SystemVectorBase
;
536 } EFI_ACPI_6_0_GIC_DISTRIBUTOR_STRUCTURE
;
539 /// GIC MSI Frame Structure
545 UINT32 GicMsiFrameId
;
546 UINT64 PhysicalBaseAddress
;
550 } EFI_ACPI_6_0_GIC_MSI_FRAME_STRUCTURE
;
553 /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
555 #define EFI_ACPI_6_0_SPI_COUNT_BASE_SELECT BIT0
564 UINT64 DiscoveryRangeBaseAddress
;
565 UINT32 DiscoveryRangeLength
;
566 } EFI_ACPI_6_0_GICR_STRUCTURE
;
569 /// GIC Interrupt Translation Service Structure
576 UINT64 PhysicalBaseAddress
;
578 } EFI_ACPI_6_0_GIC_ITS_STRUCTURE
;
581 /// Smart Battery Description Table (SBST)
584 EFI_ACPI_DESCRIPTION_HEADER Header
;
585 UINT32 WarningEnergyLevel
;
586 UINT32 LowEnergyLevel
;
587 UINT32 CriticalEnergyLevel
;
588 } EFI_ACPI_6_0_SMART_BATTERY_DESCRIPTION_TABLE
;
591 /// SBST Version (as defined in ACPI 6.0 spec.)
593 #define EFI_ACPI_6_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
596 /// Embedded Controller Boot Resources Table (ECDT)
597 /// The table is followed by a null terminated ASCII string that contains
598 /// a fully qualified reference to the name space object.
601 EFI_ACPI_DESCRIPTION_HEADER Header
;
602 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE EcControl
;
603 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE EcData
;
606 } EFI_ACPI_6_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE
;
609 /// ECDT Version (as defined in ACPI 6.0 spec.)
611 #define EFI_ACPI_6_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
614 /// System Resource Affinity Table (SRAT). The rest of the table
615 /// must be defined in a platform specific manner.
618 EFI_ACPI_DESCRIPTION_HEADER Header
;
619 UINT32 Reserved1
; ///< Must be set to 1
621 } EFI_ACPI_6_0_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER
;
624 /// SRAT Version (as defined in ACPI 6.0 spec.)
626 #define EFI_ACPI_6_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
629 // SRAT structure types.
630 // All other values between 0x04 an 0xFF are reserved and
631 // will be ignored by OSPM.
633 #define EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
634 #define EFI_ACPI_6_0_MEMORY_AFFINITY 0x01
635 #define EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
636 #define EFI_ACPI_6_0_GICC_AFFINITY 0x03
639 /// Processor Local APIC/SAPIC Affinity Structure Definition
644 UINT8 ProximityDomain7To0
;
648 UINT8 ProximityDomain31To8
[3];
650 } EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE
;
653 /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
655 #define EFI_ACPI_6_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
658 /// Memory Affinity Structure Definition
663 UINT32 ProximityDomain
;
665 UINT32 AddressBaseLow
;
666 UINT32 AddressBaseHigh
;
672 } EFI_ACPI_6_0_MEMORY_AFFINITY_STRUCTURE
;
675 // Memory Flags. All other bits are reserved and must be 0.
677 #define EFI_ACPI_6_0_MEMORY_ENABLED (1 << 0)
678 #define EFI_ACPI_6_0_MEMORY_HOT_PLUGGABLE (1 << 1)
679 #define EFI_ACPI_6_0_MEMORY_NONVOLATILE (1 << 2)
682 /// Processor Local x2APIC Affinity Structure Definition
688 UINT32 ProximityDomain
;
693 } EFI_ACPI_6_0_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE
;
696 /// GICC Affinity Structure Definition
701 UINT32 ProximityDomain
;
702 UINT32 AcpiProcessorUid
;
705 } EFI_ACPI_6_0_GICC_AFFINITY_STRUCTURE
;
708 /// GICC Flags. All other bits are reserved and must be 0.
710 #define EFI_ACPI_6_0_GICC_ENABLED (1 << 0)
713 /// System Locality Distance Information Table (SLIT).
714 /// The rest of the table is a matrix.
717 EFI_ACPI_DESCRIPTION_HEADER Header
;
718 UINT64 NumberOfSystemLocalities
;
719 } EFI_ACPI_6_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER
;
722 /// SLIT Version (as defined in ACPI 6.0 spec.)
724 #define EFI_ACPI_6_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
727 /// Corrected Platform Error Polling Table (CPEP)
730 EFI_ACPI_DESCRIPTION_HEADER Header
;
732 } EFI_ACPI_6_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER
;
735 /// CPEP Version (as defined in ACPI 6.0 spec.)
737 #define EFI_ACPI_6_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
740 // CPEP processor structure types.
742 #define EFI_ACPI_6_0_CPEP_PROCESSOR_APIC_SAPIC 0x00
745 /// Corrected Platform Error Polling Processor Structure Definition
752 UINT32 PollingInterval
;
753 } EFI_ACPI_6_0_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE
;
756 /// Maximum System Characteristics Table (MSCT)
759 EFI_ACPI_DESCRIPTION_HEADER Header
;
760 UINT32 OffsetProxDomInfo
;
761 UINT32 MaximumNumberOfProximityDomains
;
762 UINT32 MaximumNumberOfClockDomains
;
763 UINT64 MaximumPhysicalAddress
;
764 } EFI_ACPI_6_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER
;
767 /// MSCT Version (as defined in ACPI 6.0 spec.)
769 #define EFI_ACPI_6_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
772 /// Maximum Proximity Domain Information Structure Definition
777 UINT32 ProximityDomainRangeLow
;
778 UINT32 ProximityDomainRangeHigh
;
779 UINT32 MaximumProcessorCapacity
;
780 UINT64 MaximumMemoryCapacity
;
781 } EFI_ACPI_6_0_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE
;
784 /// ACPI RAS Feature Table definition.
787 EFI_ACPI_DESCRIPTION_HEADER Header
;
788 UINT8 PlatformCommunicationChannelIdentifier
[12];
789 } EFI_ACPI_6_0_RAS_FEATURE_TABLE
;
792 /// RASF Version (as defined in ACPI 6.0 spec.)
794 #define EFI_ACPI_6_0_RAS_FEATURE_TABLE_REVISION 0x01
797 /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
804 UINT8 RASCapabilities
[16];
805 UINT8 SetRASCapabilities
[16];
806 UINT16 NumberOfRASFParameterBlocks
;
807 UINT32 SetRASCapabilitiesStatus
;
808 } EFI_ACPI_6_0_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
811 /// ACPI RASF PCC command code
813 #define EFI_ACPI_6_0_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
816 /// ACPI RASF Platform RAS Capabilities
818 #define EFI_ACPI_6_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED 0x01
819 #define EFI_ACPI_6_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED_AND_EXPOSED_TO_SOFTWARE 0x02
822 /// ACPI RASF Parameter Block structure for PATROL_SCRUB
828 UINT16 PatrolScrubCommand
;
829 UINT64 RequestedAddressRange
[2];
830 UINT64 ActualAddressRange
[2];
832 UINT8 RequestedSpeed
;
833 } EFI_ACPI_6_0_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE
;
836 /// ACPI RASF Patrol Scrub command
838 #define EFI_ACPI_6_0_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
839 #define EFI_ACPI_6_0_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
840 #define EFI_ACPI_6_0_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
843 /// Memory Power State Table definition.
846 EFI_ACPI_DESCRIPTION_HEADER Header
;
847 UINT8 PlatformCommunicationChannelIdentifier
;
849 // Memory Power Node Structure
850 // Memory Power State Characteristics
851 } EFI_ACPI_6_0_MEMORY_POWER_STATUS_TABLE
;
854 /// MPST Version (as defined in ACPI 6.0 spec.)
856 #define EFI_ACPI_6_0_MEMORY_POWER_STATE_TABLE_REVISION 0x01
859 /// MPST Platform Communication Channel Shared Memory Region definition.
865 UINT32 MemoryPowerCommandRegister
;
866 UINT32 MemoryPowerStatusRegister
;
868 UINT32 MemoryPowerNodeId
;
869 UINT64 MemoryEnergyConsumed
;
870 UINT64 ExpectedAveragePowerComsuned
;
871 } EFI_ACPI_6_0_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
874 /// ACPI MPST PCC command code
876 #define EFI_ACPI_6_0_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
879 /// ACPI MPST Memory Power command
881 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
882 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
883 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
884 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
887 /// MPST Memory Power Node Table
890 UINT8 PowerStateValue
;
891 UINT8 PowerStateInformationIndex
;
892 } EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE
;
897 UINT16 MemoryPowerNodeId
;
900 UINT64 AddressLength
;
901 UINT32 NumberOfPowerStates
;
902 UINT32 NumberOfPhysicalComponents
;
903 //EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
904 //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
905 } EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE
;
907 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
908 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
909 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
912 UINT16 MemoryPowerNodeCount
;
914 } EFI_ACPI_6_0_MPST_MEMORY_POWER_NODE_TABLE
;
917 /// MPST Memory Power State Characteristics Table
920 UINT8 PowerStateStructureID
;
923 UINT32 AveragePowerConsumedInMPS0
;
924 UINT32 RelativePowerSavingToMPS0
;
925 UINT64 ExitLatencyToMPS0
;
926 } EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE
;
928 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
929 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
930 #define EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
933 UINT16 MemoryPowerStateCharacteristicsCount
;
935 } EFI_ACPI_6_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE
;
938 /// Memory Topology Table definition.
941 EFI_ACPI_DESCRIPTION_HEADER Header
;
943 } EFI_ACPI_6_0_MEMORY_TOPOLOGY_TABLE
;
946 /// PMTT Version (as defined in ACPI 6.0 spec.)
948 #define EFI_ACPI_6_0_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
951 /// Common Memory Aggregator Device Structure.
959 } EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
962 /// Memory Aggregator Device Type
964 #define EFI_ACPI_6_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x1
965 #define EFI_ACPI_6_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
966 #define EFI_ACPI_6_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x3
969 /// Socket Memory Aggregator Device Structure.
972 EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
973 UINT16 SocketIdentifier
;
975 //EFI_ACPI_6_0_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
976 } EFI_ACPI_6_0_PMMT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
979 /// MemoryController Memory Aggregator Device Structure.
982 EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
985 UINT32 ReadBandwidth
;
986 UINT32 WriteBandwidth
;
987 UINT16 OptimalAccessUnit
;
988 UINT16 OptimalAccessAlignment
;
990 UINT16 NumberOfProximityDomains
;
991 //UINT32 ProximityDomain[NumberOfProximityDomains];
992 //EFI_ACPI_6_0_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
993 } EFI_ACPI_6_0_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
996 /// DIMM Memory Aggregator Device Structure.
999 EFI_ACPI_6_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1000 UINT16 PhysicalComponentIdentifier
;
1003 UINT32 SmbiosHandle
;
1004 } EFI_ACPI_6_0_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1007 /// Boot Graphics Resource Table definition.
1010 EFI_ACPI_DESCRIPTION_HEADER Header
;
1012 /// 2-bytes (16 bit) version ID. This value must be 1.
1016 /// 1-byte status field indicating current status about the table.
1017 /// Bits[7:1] = Reserved (must be zero)
1018 /// Bit [0] = Valid. A one indicates the boot image graphic is valid.
1022 /// 1-byte enumerated type field indicating format of the image.
1024 /// 1 - 255 Reserved (for future use)
1028 /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
1029 /// of the image bitmap.
1031 UINT64 ImageAddress
;
1033 /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
1034 /// (X, Y) display offset of the top left corner of the boot image.
1035 /// The top left corner of the display is at offset (0, 0).
1037 UINT32 ImageOffsetX
;
1039 /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
1040 /// (X, Y) display offset of the top left corner of the boot image.
1041 /// The top left corner of the display is at offset (0, 0).
1043 UINT32 ImageOffsetY
;
1044 } EFI_ACPI_6_0_BOOT_GRAPHICS_RESOURCE_TABLE
;
1049 #define EFI_ACPI_6_0_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1054 #define EFI_ACPI_6_0_BGRT_VERSION 0x01
1059 #define EFI_ACPI_6_0_BGRT_STATUS_NOT_DISPLAYED 0x00
1060 #define EFI_ACPI_6_0_BGRT_STATUS_DISPLAYED 0x01
1065 #define EFI_ACPI_6_0_BGRT_IMAGE_TYPE_BMP 0x00
1068 /// FPDT Version (as defined in ACPI 6.0 spec.)
1070 #define EFI_ACPI_6_0_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1073 /// FPDT Performance Record Types
1075 #define EFI_ACPI_6_0_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1076 #define EFI_ACPI_6_0_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1079 /// FPDT Performance Record Revision
1081 #define EFI_ACPI_6_0_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1082 #define EFI_ACPI_6_0_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1085 /// FPDT Runtime Performance Record Types
1087 #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1088 #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1089 #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1092 /// FPDT Runtime Performance Record Revision
1094 #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1095 #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1096 #define EFI_ACPI_6_0_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1099 /// FPDT Performance Record header
1105 } EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER
;
1108 /// FPDT Performance Table header
1113 } EFI_ACPI_6_0_FPDT_PERFORMANCE_TABLE_HEADER
;
1116 /// FPDT Firmware Basic Boot Performance Pointer Record Structure
1119 EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1122 /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
1124 UINT64 BootPerformanceTablePointer
;
1125 } EFI_ACPI_6_0_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD
;
1128 /// FPDT S3 Performance Table Pointer Record Structure
1131 EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1134 /// 64-bit processor-relative physical address of the S3 Performance Table.
1136 UINT64 S3PerformanceTablePointer
;
1137 } EFI_ACPI_6_0_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD
;
1140 /// FPDT Firmware Basic Boot Performance Record Structure
1143 EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1146 /// Timer value logged at the beginning of firmware image execution.
1147 /// This may not always be zero or near zero.
1151 /// Timer value logged just prior to loading the OS boot loader into memory.
1152 /// For non-UEFI compatible boots, this field must be zero.
1154 UINT64 OsLoaderLoadImageStart
;
1156 /// Timer value logged just prior to launching the previously loaded OS boot loader image.
1157 /// For non-UEFI compatible boots, the timer value logged will be just prior
1158 /// to the INT 19h handler invocation.
1160 UINT64 OsLoaderStartImageStart
;
1162 /// Timer value logged at the point when the OS loader calls the
1163 /// ExitBootServices function for UEFI compatible firmware.
1164 /// For non-UEFI compatible boots, this field must be zero.
1166 UINT64 ExitBootServicesEntry
;
1168 /// Timer value logged at the point just prior towhen the OS loader gaining
1169 /// control back from calls the ExitBootServices function for UEFI compatible firmware.
1170 /// For non-UEFI compatible boots, this field must be zero.
1172 UINT64 ExitBootServicesExit
;
1173 } EFI_ACPI_6_0_FPDT_FIRMWARE_BASIC_BOOT_RECORD
;
1176 /// FPDT Firmware Basic Boot Performance Table signature
1178 #define EFI_ACPI_6_0_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1181 // FPDT Firmware Basic Boot Performance Table
1184 EFI_ACPI_6_0_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1186 // one or more Performance Records.
1188 } EFI_ACPI_6_0_FPDT_FIRMWARE_BASIC_BOOT_TABLE
;
1191 /// FPDT "S3PT" S3 Performance Table
1193 #define EFI_ACPI_6_0_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1196 // FPDT Firmware S3 Boot Performance Table
1199 EFI_ACPI_6_0_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1201 // one or more Performance Records.
1203 } EFI_ACPI_6_0_FPDT_FIRMWARE_S3_BOOT_TABLE
;
1206 /// FPDT Basic S3 Resume Performance Record
1209 EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1211 /// A count of the number of S3 resume cycles since the last full boot sequence.
1215 /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
1216 /// OS waking vector. Only the most recent resume cycle's time is retained.
1220 /// Average timer value of all resume cycles logged since the last full boot
1221 /// sequence, including the most recent resume. Note that the entire log of
1222 /// timer values does not need to be retained in order to calculate this average.
1224 UINT64 AverageResume
;
1225 } EFI_ACPI_6_0_FPDT_S3_RESUME_RECORD
;
1228 /// FPDT Basic S3 Suspend Performance Record
1231 EFI_ACPI_6_0_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1233 /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
1234 /// Only the most recent suspend cycle's timer value is retained.
1236 UINT64 SuspendStart
;
1238 /// Timer value recorded at the final firmware write to SLP_TYP (or other
1239 /// mechanism) used to trigger hardware entry to S3.
1240 /// Only the most recent suspend cycle's timer value is retained.
1243 } EFI_ACPI_6_0_FPDT_S3_SUSPEND_RECORD
;
1246 /// Firmware Performance Record Table definition.
1249 EFI_ACPI_DESCRIPTION_HEADER Header
;
1250 } EFI_ACPI_6_0_FIRMWARE_PERFORMANCE_RECORD_TABLE
;
1253 /// Generic Timer Description Table definition.
1256 EFI_ACPI_DESCRIPTION_HEADER Header
;
1257 UINT64 CntControlBasePhysicalAddress
;
1259 UINT32 SecurePL1TimerGSIV
;
1260 UINT32 SecurePL1TimerFlags
;
1261 UINT32 NonSecurePL1TimerGSIV
;
1262 UINT32 NonSecurePL1TimerFlags
;
1263 UINT32 VirtualTimerGSIV
;
1264 UINT32 VirtualTimerFlags
;
1265 UINT32 NonSecurePL2TimerGSIV
;
1266 UINT32 NonSecurePL2TimerFlags
;
1267 UINT64 CntReadBasePhysicalAddress
;
1268 UINT32 PlatformTimerCount
;
1269 UINT32 PlatformTimerOffset
;
1270 } EFI_ACPI_6_0_GENERIC_TIMER_DESCRIPTION_TABLE
;
1273 /// GTDT Version (as defined in ACPI 6.0 spec.)
1275 #define EFI_ACPI_6_0_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x02
1278 /// Timer Flags. All other bits are reserved and must be 0.
1280 #define EFI_ACPI_6_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1281 #define EFI_ACPI_6_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1282 #define EFI_ACPI_6_0_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
1285 /// Platform Timer Type
1287 #define EFI_ACPI_6_0_GTDT_GT_BLOCK 0
1288 #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG 1
1291 /// GT Block Structure
1298 UINT32 GTBlockTimerCount
;
1299 UINT32 GTBlockTimerOffset
;
1300 } EFI_ACPI_6_0_GTDT_GT_BLOCK_STRUCTURE
;
1303 /// GT Block Timer Structure
1306 UINT8 GTFrameNumber
;
1310 UINT32 GTxPhysicalTimerGSIV
;
1311 UINT32 GTxPhysicalTimerFlags
;
1312 UINT32 GTxVirtualTimerGSIV
;
1313 UINT32 GTxVirtualTimerFlags
;
1314 UINT32 GTxCommonFlags
;
1315 } EFI_ACPI_6_0_GTDT_GT_BLOCK_TIMER_STRUCTURE
;
1318 /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
1320 #define EFI_ACPI_6_0_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1321 #define EFI_ACPI_6_0_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1324 /// Common Flags Flags. All other bits are reserved and must be 0.
1326 #define EFI_ACPI_6_0_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
1327 #define EFI_ACPI_6_0_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
1330 /// SBSA Generic Watchdog Structure
1336 UINT64 RefreshFramePhysicalAddress
;
1337 UINT64 WatchdogControlFramePhysicalAddress
;
1338 UINT32 WatchdogTimerGSIV
;
1339 UINT32 WatchdogTimerFlags
;
1340 } EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE
;
1343 /// SBSA Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
1345 #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
1346 #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1347 #define EFI_ACPI_6_0_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
1350 // NVDIMM Firmware Interface Table definition.
1353 EFI_ACPI_DESCRIPTION_HEADER Header
;
1355 } EFI_ACPI_6_0_NVDIMM_FIRMWARE_INTERFACE_TABLE
;
1358 // NFIT Version (as defined in ACPI 6.0 spec.)
1360 #define EFI_ACPI_6_0_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1
1363 // Definition for NFIT Table Structure Types
1365 #define EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE 0
1366 #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_TO_SYSTEM_ADDRESS_RANGE_MAP_STRUCTURE_TYPE 1
1367 #define EFI_ACPI_6_0_NFIT_INTERLEAVE_STRUCTURE_TYPE 2
1368 #define EFI_ACPI_6_0_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE 3
1369 #define EFI_ACPI_6_0_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE 4
1370 #define EFI_ACPI_6_0_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE 5
1371 #define EFI_ACPI_6_0_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE 6
1374 // Definition for NFIT Structure Header
1379 } EFI_ACPI_6_0_NFIT_STRUCTURE_HEADER
;
1382 // Definition for System Physical Address Range Structure
1384 #define EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGION_FOR_MANAGEMENT BIT0
1385 #define EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DOMAIN_VALID BIT1
1386 #define EFI_ACPI_6_0_NFIT_GUID_VOLATILE_MEMORY_REGION { 0x7305944F, 0xFDDA, 0x44E3, 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52, 0xE5, 0xD0 }
1387 #define EFI_ACPI_6_0_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION { 0x66F0D379, 0xB4F3, 0x4074, 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7, 0x8C, 0xDB }
1388 #define EFI_ACPI_6_0_NFIT_GUID_NVDIMM_CONTROL_REGION { 0x92F701F6, 0x13B4, 0x405D, 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8, 0x23, 0x4C }
1389 #define EFI_ACPI_6_0_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION { 0x91AF0530, 0x5D86, 0x470E, 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40, 0x82, 0x49 }
1390 #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE { 0x77AB535A, 0x45FC, 0x624B, 0x55, 0x60, 0xF7, 0xB2, 0x81, 0xD1, 0xF9, 0x6E }
1391 #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE { 0x3D5ABD30, 0x4175, 0x87CE, 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23, 0xC4, 0xBB }
1392 #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0, 0x96, 0xF9 }
1393 #define EFI_ACPI_6_0_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT { 0x08018188, 0x42CD, 0xBB48, 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D, 0xED, 0x3D }
1397 UINT16 SPARangeStructureIndex
;
1400 UINT32 ProximityDomain
;
1401 GUID AddressRangeTypeGUID
;
1402 UINT64 SystemPhysicalAddressRangeBase
;
1403 UINT64 SystemPhysicalAddressRangeLength
;
1404 UINT64 AddressRangeMemoryMappingAttribute
;
1405 } EFI_ACPI_6_0_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE
;
1408 // Definition for Memory Device to System Physical Address Range Mapping Structure
1411 UINT32 DIMMNumber
:4;
1412 UINT32 MemoryChannelNumber
:4;
1413 UINT32 MemoryControllerID
:4;
1415 UINT32 NodeControllerID
:12;
1416 UINT32 Reserved_28
:4;
1417 } EFI_ACPI_6_0_NFIT_DEVICE_HANDLE
;
1419 #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL BIT0
1420 #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL BIT1
1421 #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL BIT2
1422 #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSPM_HAND_OFF BIT3
1423 #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PRIOR_OSPM_HAND_OFF BIT4
1424 #define EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NOTIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5
1428 EFI_ACPI_6_0_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1429 UINT16 MemoryDevicePhysicalID
;
1430 UINT16 MemoryDeviceRegionID
;
1431 UINT16 SPARangeStructureIndex
;
1432 UINT16 NVDIMMControlRegionStructureIndex
;
1433 UINT64 MemoryDeviceRegionSize
;
1434 UINT64 RegionOffset
;
1435 UINT64 MemoryDevicePhysicalAddressRegionBase
;
1436 UINT16 InterleaveStructureIndex
;
1437 UINT16 InterleaveWays
;
1438 UINT16 MemoryDeviceStateFlags
;
1440 } EFI_ACPI_6_0_NFIT_MEMORY_DEVICE_TO_SYSTEM_ADDRESS_RANGE_MAP_STRUCTURE
;
1443 // Definition for Interleave Structure
1448 UINT16 InterleaveStructureIndex
;
1450 UINT32 NumberOfLines
;
1452 //UINT32 LineOffset[NumberOfLines];
1453 } EFI_ACPI_6_0_NFIT_INTERLEAVE_STRUCTURE
;
1456 // Definition for SMBIOS Management Information Structure
1463 } EFI_ACPI_6_0_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE
;
1466 // Definition for NVDIMM Control Region Structure
1468 #define EFI_ACPI_6_0_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_BUFFERED BIT0
1472 UINT16 NVDIMMControlRegionStructureIndex
;
1476 UINT16 SubsystemVendorID
;
1477 UINT16 SubsystemDeviceID
;
1478 UINT16 SubsystemRevisionID
;
1479 UINT8 Reserved_18
[6];
1480 UINT32 SerialNumber
;
1481 UINT16 RegionFormatInterfaceCode
;
1482 UINT16 NumberOfBlockControlWindows
;
1483 UINT64 SizeOfBlockControlWindow
;
1484 UINT64 CommandRegisterOffsetInBlockControlWindow
;
1485 UINT64 SizeOfCommandRegisterInBlockControlWindows
;
1486 UINT64 StatusRegisterOffsetInBlockControlWindow
;
1487 UINT64 SizeOfStatusRegisterInBlockControlWindows
;
1488 UINT16 NVDIMMControlRegionFlag
;
1489 UINT8 Reserved_74
[6];
1490 } EFI_ACPI_6_0_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE
;
1493 // Definition for NVDIMM Block Data Window Region Structure
1498 UINT16 NVDIMMControlRegionStructureIndex
;
1499 UINT16 NumberOfBlockDataWindows
;
1500 UINT64 BlockDataWindowStartOffset
;
1501 UINT64 SizeOfBlockDataWindow
;
1502 UINT64 BlockAccessibleMemoryCapacity
;
1503 UINT64 BeginningAddressOfFirstBlockInBlockAccessibleMemory
;
1504 } EFI_ACPI_6_0_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE
;
1507 // Definition for Flush Hint Address Structure
1512 EFI_ACPI_6_0_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1513 UINT16 NumberOfFlushHintAddresses
;
1514 UINT8 Reserved_10
[6];
1515 //UINT64 FlushHintAddress[NumberOfFlushHintAddresses];
1516 } EFI_ACPI_6_0_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE
;
1519 /// Boot Error Record Table (BERT)
1522 EFI_ACPI_DESCRIPTION_HEADER Header
;
1523 UINT32 BootErrorRegionLength
;
1524 UINT64 BootErrorRegion
;
1525 } EFI_ACPI_6_0_BOOT_ERROR_RECORD_TABLE_HEADER
;
1528 /// BERT Version (as defined in ACPI 6.0 spec.)
1530 #define EFI_ACPI_6_0_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1533 /// Boot Error Region Block Status Definition
1536 UINT32 UncorrectableErrorValid
:1;
1537 UINT32 CorrectableErrorValid
:1;
1538 UINT32 MultipleUncorrectableErrors
:1;
1539 UINT32 MultipleCorrectableErrors
:1;
1540 UINT32 ErrorDataEntryCount
:10;
1542 } EFI_ACPI_6_0_ERROR_BLOCK_STATUS
;
1545 /// Boot Error Region Definition
1548 EFI_ACPI_6_0_ERROR_BLOCK_STATUS BlockStatus
;
1549 UINT32 RawDataOffset
;
1550 UINT32 RawDataLength
;
1552 UINT32 ErrorSeverity
;
1553 } EFI_ACPI_6_0_BOOT_ERROR_REGION_STRUCTURE
;
1556 // Boot Error Severity types
1558 #define EFI_ACPI_6_0_ERROR_SEVERITY_CORRECTABLE 0x00
1559 #define EFI_ACPI_6_0_ERROR_SEVERITY_FATAL 0x01
1560 #define EFI_ACPI_6_0_ERROR_SEVERITY_CORRECTED 0x02
1561 #define EFI_ACPI_6_0_ERROR_SEVERITY_NONE 0x03
1564 /// Generic Error Data Entry Definition
1567 UINT8 SectionType
[16];
1568 UINT32 ErrorSeverity
;
1570 UINT8 ValidationBits
;
1572 UINT32 ErrorDataLength
;
1575 } EFI_ACPI_6_0_GENERIC_ERROR_DATA_ENTRY_STRUCTURE
;
1578 /// Generic Error Data Entry Version (as defined in ACPI 6.0 spec.)
1580 #define EFI_ACPI_6_0_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
1583 /// HEST - Hardware Error Source Table
1586 EFI_ACPI_DESCRIPTION_HEADER Header
;
1587 UINT32 ErrorSourceCount
;
1588 } EFI_ACPI_6_0_HARDWARE_ERROR_SOURCE_TABLE_HEADER
;
1591 /// HEST Version (as defined in ACPI 6.0 spec.)
1593 #define EFI_ACPI_6_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1596 // Error Source structure types.
1598 #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1599 #define EFI_ACPI_6_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1600 #define EFI_ACPI_6_0_IA32_ARCHITECTURE_NMI_ERROR 0x02
1601 #define EFI_ACPI_6_0_PCI_EXPRESS_ROOT_PORT_AER 0x06
1602 #define EFI_ACPI_6_0_PCI_EXPRESS_DEVICE_AER 0x07
1603 #define EFI_ACPI_6_0_PCI_EXPRESS_BRIDGE_AER 0x08
1604 #define EFI_ACPI_6_0_GENERIC_HARDWARE_ERROR 0x09
1607 // Error Source structure flags.
1609 #define EFI_ACPI_6_0_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1610 #define EFI_ACPI_6_0_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1613 /// IA-32 Architecture Machine Check Exception Structure Definition
1621 UINT32 NumberOfRecordsToPreAllocate
;
1622 UINT32 MaxSectionsPerRecord
;
1623 UINT64 GlobalCapabilityInitData
;
1624 UINT64 GlobalControlInitData
;
1625 UINT8 NumberOfHardwareBanks
;
1627 } EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE
;
1630 /// IA-32 Architecture Machine Check Bank Structure Definition
1634 UINT8 ClearStatusOnInitialization
;
1635 UINT8 StatusDataFormat
;
1637 UINT32 ControlRegisterMsrAddress
;
1638 UINT64 ControlInitData
;
1639 UINT32 StatusRegisterMsrAddress
;
1640 UINT32 AddressRegisterMsrAddress
;
1641 UINT32 MiscRegisterMsrAddress
;
1642 } EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE
;
1645 /// IA-32 Architecture Machine Check Bank Structure MCA data format
1647 #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1648 #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1649 #define EFI_ACPI_6_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1652 // Hardware Error Notification types. All other values are reserved
1654 #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1655 #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1656 #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1657 #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1658 #define EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1661 /// Hardware Error Notification Configuration Write Enable Structure Definition
1665 UINT16 PollInterval
:1;
1666 UINT16 SwitchToPollingThresholdValue
:1;
1667 UINT16 SwitchToPollingThresholdWindow
:1;
1668 UINT16 ErrorThresholdValue
:1;
1669 UINT16 ErrorThresholdWindow
:1;
1671 } EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE
;
1674 /// Hardware Error Notification Structure Definition
1679 EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable
;
1680 UINT32 PollInterval
;
1682 UINT32 SwitchToPollingThresholdValue
;
1683 UINT32 SwitchToPollingThresholdWindow
;
1684 UINT32 ErrorThresholdValue
;
1685 UINT32 ErrorThresholdWindow
;
1686 } EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE
;
1689 /// IA-32 Architecture Corrected Machine Check Structure Definition
1697 UINT32 NumberOfRecordsToPreAllocate
;
1698 UINT32 MaxSectionsPerRecord
;
1699 EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1700 UINT8 NumberOfHardwareBanks
;
1702 } EFI_ACPI_6_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE
;
1705 /// IA-32 Architecture NMI Error Structure Definition
1711 UINT32 NumberOfRecordsToPreAllocate
;
1712 UINT32 MaxSectionsPerRecord
;
1713 UINT32 MaxRawDataLength
;
1714 } EFI_ACPI_6_0_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE
;
1717 /// PCI Express Root Port AER Structure Definition
1725 UINT32 NumberOfRecordsToPreAllocate
;
1726 UINT32 MaxSectionsPerRecord
;
1730 UINT16 DeviceControl
;
1732 UINT32 UncorrectableErrorMask
;
1733 UINT32 UncorrectableErrorSeverity
;
1734 UINT32 CorrectableErrorMask
;
1735 UINT32 AdvancedErrorCapabilitiesAndControl
;
1736 UINT32 RootErrorCommand
;
1737 } EFI_ACPI_6_0_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE
;
1740 /// PCI Express Device AER Structure Definition
1748 UINT32 NumberOfRecordsToPreAllocate
;
1749 UINT32 MaxSectionsPerRecord
;
1753 UINT16 DeviceControl
;
1755 UINT32 UncorrectableErrorMask
;
1756 UINT32 UncorrectableErrorSeverity
;
1757 UINT32 CorrectableErrorMask
;
1758 UINT32 AdvancedErrorCapabilitiesAndControl
;
1759 } EFI_ACPI_6_0_PCI_EXPRESS_DEVICE_AER_STRUCTURE
;
1762 /// PCI Express Bridge AER Structure Definition
1770 UINT32 NumberOfRecordsToPreAllocate
;
1771 UINT32 MaxSectionsPerRecord
;
1775 UINT16 DeviceControl
;
1777 UINT32 UncorrectableErrorMask
;
1778 UINT32 UncorrectableErrorSeverity
;
1779 UINT32 CorrectableErrorMask
;
1780 UINT32 AdvancedErrorCapabilitiesAndControl
;
1781 UINT32 SecondaryUncorrectableErrorMask
;
1782 UINT32 SecondaryUncorrectableErrorSeverity
;
1783 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl
;
1784 } EFI_ACPI_6_0_PCI_EXPRESS_BRIDGE_AER_STRUCTURE
;
1787 /// Generic Hardware Error Source Structure Definition
1792 UINT16 RelatedSourceId
;
1795 UINT32 NumberOfRecordsToPreAllocate
;
1796 UINT32 MaxSectionsPerRecord
;
1797 UINT32 MaxRawDataLength
;
1798 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
1799 EFI_ACPI_6_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1800 UINT32 ErrorStatusBlockLength
;
1801 } EFI_ACPI_6_0_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE
;
1804 /// Generic Error Status Definition
1807 EFI_ACPI_6_0_ERROR_BLOCK_STATUS BlockStatus
;
1808 UINT32 RawDataOffset
;
1809 UINT32 RawDataLength
;
1811 UINT32 ErrorSeverity
;
1812 } EFI_ACPI_6_0_GENERIC_ERROR_STATUS_STRUCTURE
;
1815 /// ERST - Error Record Serialization Table
1818 EFI_ACPI_DESCRIPTION_HEADER Header
;
1819 UINT32 SerializationHeaderSize
;
1821 UINT32 InstructionEntryCount
;
1822 } EFI_ACPI_6_0_ERROR_RECORD_SERIALIZATION_TABLE_HEADER
;
1825 /// ERST Version (as defined in ACPI 6.0 spec.)
1827 #define EFI_ACPI_6_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
1830 /// ERST Serialization Actions
1832 #define EFI_ACPI_6_0_ERST_BEGIN_WRITE_OPERATION 0x00
1833 #define EFI_ACPI_6_0_ERST_BEGIN_READ_OPERATION 0x01
1834 #define EFI_ACPI_6_0_ERST_BEGIN_CLEAR_OPERATION 0x02
1835 #define EFI_ACPI_6_0_ERST_END_OPERATION 0x03
1836 #define EFI_ACPI_6_0_ERST_SET_RECORD_OFFSET 0x04
1837 #define EFI_ACPI_6_0_ERST_EXECUTE_OPERATION 0x05
1838 #define EFI_ACPI_6_0_ERST_CHECK_BUSY_STATUS 0x06
1839 #define EFI_ACPI_6_0_ERST_GET_COMMAND_STATUS 0x07
1840 #define EFI_ACPI_6_0_ERST_GET_RECORD_IDENTIFIER 0x08
1841 #define EFI_ACPI_6_0_ERST_SET_RECORD_IDENTIFIER 0x09
1842 #define EFI_ACPI_6_0_ERST_GET_RECORD_COUNT 0x0A
1843 #define EFI_ACPI_6_0_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
1844 #define EFI_ACPI_6_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
1845 #define EFI_ACPI_6_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
1846 #define EFI_ACPI_6_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
1849 /// ERST Action Command Status
1851 #define EFI_ACPI_6_0_ERST_STATUS_SUCCESS 0x00
1852 #define EFI_ACPI_6_0_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
1853 #define EFI_ACPI_6_0_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
1854 #define EFI_ACPI_6_0_ERST_STATUS_FAILED 0x03
1855 #define EFI_ACPI_6_0_ERST_STATUS_RECORD_STORE_EMPTY 0x04
1856 #define EFI_ACPI_6_0_ERST_STATUS_RECORD_NOT_FOUND 0x05
1859 /// ERST Serialization Instructions
1861 #define EFI_ACPI_6_0_ERST_READ_REGISTER 0x00
1862 #define EFI_ACPI_6_0_ERST_READ_REGISTER_VALUE 0x01
1863 #define EFI_ACPI_6_0_ERST_WRITE_REGISTER 0x02
1864 #define EFI_ACPI_6_0_ERST_WRITE_REGISTER_VALUE 0x03
1865 #define EFI_ACPI_6_0_ERST_NOOP 0x04
1866 #define EFI_ACPI_6_0_ERST_LOAD_VAR1 0x05
1867 #define EFI_ACPI_6_0_ERST_LOAD_VAR2 0x06
1868 #define EFI_ACPI_6_0_ERST_STORE_VAR1 0x07
1869 #define EFI_ACPI_6_0_ERST_ADD 0x08
1870 #define EFI_ACPI_6_0_ERST_SUBTRACT 0x09
1871 #define EFI_ACPI_6_0_ERST_ADD_VALUE 0x0A
1872 #define EFI_ACPI_6_0_ERST_SUBTRACT_VALUE 0x0B
1873 #define EFI_ACPI_6_0_ERST_STALL 0x0C
1874 #define EFI_ACPI_6_0_ERST_STALL_WHILE_TRUE 0x0D
1875 #define EFI_ACPI_6_0_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
1876 #define EFI_ACPI_6_0_ERST_GOTO 0x0F
1877 #define EFI_ACPI_6_0_ERST_SET_SRC_ADDRESS_BASE 0x10
1878 #define EFI_ACPI_6_0_ERST_SET_DST_ADDRESS_BASE 0x11
1879 #define EFI_ACPI_6_0_ERST_MOVE_DATA 0x12
1882 /// ERST Instruction Flags
1884 #define EFI_ACPI_6_0_ERST_PRESERVE_REGISTER 0x01
1887 /// ERST Serialization Instruction Entry
1890 UINT8 SerializationAction
;
1894 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
1897 } EFI_ACPI_6_0_ERST_SERIALIZATION_INSTRUCTION_ENTRY
;
1900 /// EINJ - Error Injection Table
1903 EFI_ACPI_DESCRIPTION_HEADER Header
;
1904 UINT32 InjectionHeaderSize
;
1905 UINT8 InjectionFlags
;
1907 UINT32 InjectionEntryCount
;
1908 } EFI_ACPI_6_0_ERROR_INJECTION_TABLE_HEADER
;
1911 /// EINJ Version (as defined in ACPI 6.0 spec.)
1913 #define EFI_ACPI_6_0_ERROR_INJECTION_TABLE_REVISION 0x01
1916 /// EINJ Error Injection Actions
1918 #define EFI_ACPI_6_0_EINJ_BEGIN_INJECTION_OPERATION 0x00
1919 #define EFI_ACPI_6_0_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
1920 #define EFI_ACPI_6_0_EINJ_SET_ERROR_TYPE 0x02
1921 #define EFI_ACPI_6_0_EINJ_GET_ERROR_TYPE 0x03
1922 #define EFI_ACPI_6_0_EINJ_END_OPERATION 0x04
1923 #define EFI_ACPI_6_0_EINJ_EXECUTE_OPERATION 0x05
1924 #define EFI_ACPI_6_0_EINJ_CHECK_BUSY_STATUS 0x06
1925 #define EFI_ACPI_6_0_EINJ_GET_COMMAND_STATUS 0x07
1926 #define EFI_ACPI_6_0_EINJ_TRIGGER_ERROR 0xFF
1929 /// EINJ Action Command Status
1931 #define EFI_ACPI_6_0_EINJ_STATUS_SUCCESS 0x00
1932 #define EFI_ACPI_6_0_EINJ_STATUS_UNKNOWN_FAILURE 0x01
1933 #define EFI_ACPI_6_0_EINJ_STATUS_INVALID_ACCESS 0x02
1936 /// EINJ Error Type Definition
1938 #define EFI_ACPI_6_0_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
1939 #define EFI_ACPI_6_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
1940 #define EFI_ACPI_6_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
1941 #define EFI_ACPI_6_0_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
1942 #define EFI_ACPI_6_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
1943 #define EFI_ACPI_6_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
1944 #define EFI_ACPI_6_0_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
1945 #define EFI_ACPI_6_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
1946 #define EFI_ACPI_6_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
1947 #define EFI_ACPI_6_0_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
1948 #define EFI_ACPI_6_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
1949 #define EFI_ACPI_6_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
1952 /// EINJ Injection Instructions
1954 #define EFI_ACPI_6_0_EINJ_READ_REGISTER 0x00
1955 #define EFI_ACPI_6_0_EINJ_READ_REGISTER_VALUE 0x01
1956 #define EFI_ACPI_6_0_EINJ_WRITE_REGISTER 0x02
1957 #define EFI_ACPI_6_0_EINJ_WRITE_REGISTER_VALUE 0x03
1958 #define EFI_ACPI_6_0_EINJ_NOOP 0x04
1961 /// EINJ Instruction Flags
1963 #define EFI_ACPI_6_0_EINJ_PRESERVE_REGISTER 0x01
1966 /// EINJ Injection Instruction Entry
1969 UINT8 InjectionAction
;
1973 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
1976 } EFI_ACPI_6_0_EINJ_INJECTION_INSTRUCTION_ENTRY
;
1979 /// EINJ Trigger Action Table
1986 } EFI_ACPI_6_0_EINJ_TRIGGER_ACTION_TABLE
;
1989 /// Platform Communications Channel Table (PCCT)
1992 EFI_ACPI_DESCRIPTION_HEADER Header
;
1995 } EFI_ACPI_6_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER
;
1998 /// PCCT Version (as defined in ACPI 6.0 spec.)
2000 #define EFI_ACPI_6_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x01
2003 /// PCCT Global Flags
2005 #define EFI_ACPI_6_0_PCCT_FLAGS_SCI_DOORBELL BIT0
2008 // PCCT Subspace type
2010 #define EFI_ACPI_6_0_PCCT_SUBSPACE_TYPE_GENERIC 0x00
2013 /// PCC Subspace Structure Header
2018 } EFI_ACPI_6_0_PCCT_SUBSPACE_HEADER
;
2021 /// Generic Communications Subspace Structure
2028 UINT64 AddressLength
;
2029 EFI_ACPI_6_0_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2030 UINT64 DoorbellPreserve
;
2031 UINT64 DoorbellWrite
;
2032 UINT32 NominalLatency
;
2033 UINT32 MaximumPeriodicAccessRate
;
2034 UINT16 MinimumRequestTurnaroundTime
;
2035 } EFI_ACPI_6_0_PCCT_SUBSPACE_GENERIC
;
2038 /// Generic Communications Channel Shared Memory Region
2044 UINT8 GenerateSci
:1;
2045 } EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND
;
2048 UINT8 CommandComplete
:1;
2049 UINT8 SciDoorbell
:1;
2051 UINT8 PlatformNotification
:1;
2054 } EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS
;
2058 EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command
;
2059 EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status
;
2060 } EFI_ACPI_6_0_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER
;
2063 // Known table signatures
2067 /// "RSD PTR " Root System Description Pointer
2069 #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
2072 /// "APIC" Multiple APIC Description Table
2074 #define EFI_ACPI_6_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
2077 /// "BERT" Boot Error Record Table
2079 #define EFI_ACPI_6_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
2082 /// "BGRT" Boot Graphics Resource Table
2084 #define EFI_ACPI_6_0_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
2087 /// "CPEP" Corrected Platform Error Polling Table
2089 #define EFI_ACPI_6_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
2092 /// "DSDT" Differentiated System Description Table
2094 #define EFI_ACPI_6_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
2097 /// "ECDT" Embedded Controller Boot Resources Table
2099 #define EFI_ACPI_6_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
2102 /// "EINJ" Error Injection Table
2104 #define EFI_ACPI_6_0_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
2107 /// "ERST" Error Record Serialization Table
2109 #define EFI_ACPI_6_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
2112 /// "FACP" Fixed ACPI Description Table
2114 #define EFI_ACPI_6_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
2117 /// "FACS" Firmware ACPI Control Structure
2119 #define EFI_ACPI_6_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
2122 /// "FPDT" Firmware Performance Data Table
2124 #define EFI_ACPI_6_0_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
2127 /// "GTDT" Generic Timer Description Table
2129 #define EFI_ACPI_6_0_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
2132 /// "HEST" Hardware Error Source Table
2134 #define EFI_ACPI_6_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
2137 /// "MPST" Memory Power State Table
2139 #define EFI_ACPI_6_0_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
2142 /// "MSCT" Maximum System Characteristics Table
2144 #define EFI_ACPI_6_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
2147 /// "NFIT" NVDIMM Firmware Interface Table
2149 #define EFI_ACPI_6_0_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('N', 'F', 'I', 'T')
2152 /// "PMTT" Platform Memory Topology Table
2154 #define EFI_ACPI_6_0_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
2157 /// "PSDT" Persistent System Description Table
2159 #define EFI_ACPI_6_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
2162 /// "RASF" ACPI RAS Feature Table
2164 #define EFI_ACPI_6_0_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
2167 /// "RSDT" Root System Description Table
2169 #define EFI_ACPI_6_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
2172 /// "SBST" Smart Battery Specification Table
2174 #define EFI_ACPI_6_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
2177 /// "SLIT" System Locality Information Table
2179 #define EFI_ACPI_6_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
2182 /// "SRAT" System Resource Affinity Table
2184 #define EFI_ACPI_6_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2187 /// "SSDT" Secondary System Description Table
2189 #define EFI_ACPI_6_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2192 /// "XSDT" Extended System Description Table
2194 #define EFI_ACPI_6_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2197 /// "BOOT" MS Simple Boot Spec
2199 #define EFI_ACPI_6_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2202 /// "CSRT" MS Core System Resource Table
2204 #define EFI_ACPI_6_0_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2207 /// "DBG2" MS Debug Port 2 Spec
2209 #define EFI_ACPI_6_0_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2212 /// "DBGP" MS Debug Port Spec
2214 #define EFI_ACPI_6_0_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2217 /// "DMAR" DMA Remapping Table
2219 #define EFI_ACPI_6_0_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2222 /// "DRTM" Dynamic Root of Trust for Measurement Table
2224 #define EFI_ACPI_6_0_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2227 /// "ETDT" Event Timer Description Table
2229 #define EFI_ACPI_6_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2232 /// "HPET" IA-PC High Precision Event Timer Table
2234 #define EFI_ACPI_6_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2237 /// "iBFT" iSCSI Boot Firmware Table
2239 #define EFI_ACPI_6_0_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2242 /// "IORT" Interrupt Source Override
2244 #define EFI_ACPI_6_0_INTERRUPT_SOURCE_OVERRIDE_SIGNATURE SIGNATURE_32('I', 'O', 'R', 'T')
2247 /// "IVRS" I/O Virtualization Reporting Structure
2249 #define EFI_ACPI_6_0_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2252 /// "LPIT" Low Power Idle Table
2254 #define EFI_ACPI_6_0_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
2257 /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
2259 #define EFI_ACPI_6_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2262 /// "MCHI" Management Controller Host Interface Table
2264 #define EFI_ACPI_6_0_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2267 /// "MSDM" MS Data Management Table
2269 #define EFI_ACPI_6_0_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2272 /// "SLIC" MS Software Licensing Table Specification
2274 #define EFI_ACPI_6_0_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2277 /// "SPCR" Serial Port Concole Redirection Table
2279 #define EFI_ACPI_6_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2282 /// "SPMI" Server Platform Management Interface Table
2284 #define EFI_ACPI_6_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2287 /// "STAO" _STA Override Table
2289 #define EFI_ACPI_6_0_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', 'A', 'O')
2292 /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
2294 #define EFI_ACPI_6_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2297 /// "TPM2" Trusted Computing Platform 1 Table
2299 #define EFI_ACPI_6_0_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2302 /// "UEFI" UEFI ACPI Data Table
2304 #define EFI_ACPI_6_0_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2307 /// "WAET" Windows ACPI Emulated Devices Table
2309 #define EFI_ACPI_6_0_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
2312 /// "WDAT" Watchdog Action Table
2314 #define EFI_ACPI_6_0_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2317 /// "WDRT" Watchdog Resource Table
2319 #define EFI_ACPI_6_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2322 /// "WPBT" MS Platform Binary Table
2324 #define EFI_ACPI_6_0_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
2327 /// "XENV" Xen Project Table
2329 #define EFI_ACPI_6_0_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', 'N', 'V')