2 ACPI 6.4 definitions from the ACPI Specification Revision 6.4 Jan, 2021.
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 Copyright (c) 2019 - 2021, ARM Ltd. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include <IndustryStandard/Acpi63.h>
16 // Ensure proper structure formats
21 /// ACPI 6.4 Generic Address Space definition
25 UINT8 RegisterBitWidth
;
26 UINT8 RegisterBitOffset
;
29 } EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE
;
32 // Generic Address Space Address IDs
34 #define EFI_ACPI_6_4_SYSTEM_MEMORY 0x00
35 #define EFI_ACPI_6_4_SYSTEM_IO 0x01
36 #define EFI_ACPI_6_4_PCI_CONFIGURATION_SPACE 0x02
37 #define EFI_ACPI_6_4_EMBEDDED_CONTROLLER 0x03
38 #define EFI_ACPI_6_4_SMBUS 0x04
39 #define EFI_ACPI_6_4_SYSTEM_CMOS 0x05
40 #define EFI_ACPI_6_4_PCI_BAR_TARGET 0x06
41 #define EFI_ACPI_6_4_IPMI 0x07
42 #define EFI_ACPI_6_4_GENERAL_PURPOSE_IO 0x08
43 #define EFI_ACPI_6_4_GENERIC_SERIAL_BUS 0x09
44 #define EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL 0x0A
45 #define EFI_ACPI_6_4_FUNCTIONAL_FIXED_HARDWARE 0x7F
48 // Generic Address Space Access Sizes
50 #define EFI_ACPI_6_4_UNDEFINED 0
51 #define EFI_ACPI_6_4_BYTE 1
52 #define EFI_ACPI_6_4_WORD 2
53 #define EFI_ACPI_6_4_DWORD 3
54 #define EFI_ACPI_6_4_QWORD 4
57 // ACPI 6.4 table structures
61 /// Root System Description Pointer Structure
71 UINT8 ExtendedChecksum
;
73 } EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER
;
76 /// RSD_PTR Revision (as defined in ACPI 6.4 spec.)
78 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 6.4) says current value is 2
81 /// Common table header, this prefaces all ACPI tables, including FACS, but
82 /// excluding the RSD PTR structure
87 } EFI_ACPI_6_4_COMMON_HEADER
;
90 // Root System Description Table
91 // No definition needed as it is a common description table header, the same with
92 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
96 /// RSDT Revision (as defined in ACPI 6.4 spec.)
98 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
101 // Extended System Description Table
102 // No definition needed as it is a common description table header, the same with
103 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
107 /// XSDT Revision (as defined in ACPI 6.4 spec.)
109 #define EFI_ACPI_6_4_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
112 /// Fixed ACPI Description Table Structure (FADT)
115 EFI_ACPI_DESCRIPTION_HEADER Header
;
119 UINT8 PreferredPmProfile
;
154 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ResetReg
;
158 UINT64 XFirmwareCtrl
;
160 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk
;
161 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk
;
162 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk
;
163 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk
;
164 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk
;
165 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk
;
166 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XGpe0Blk
;
167 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XGpe1Blk
;
168 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE SleepControlReg
;
169 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE SleepStatusReg
;
170 UINT64 HypervisorVendorIdentity
;
171 } EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE
;
174 /// FADT Version (as defined in ACPI 6.4 spec.)
176 #define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06
177 #define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x04
180 // Fixed ACPI Description Table Preferred Power Management Profile
182 #define EFI_ACPI_6_4_PM_PROFILE_UNSPECIFIED 0
183 #define EFI_ACPI_6_4_PM_PROFILE_DESKTOP 1
184 #define EFI_ACPI_6_4_PM_PROFILE_MOBILE 2
185 #define EFI_ACPI_6_4_PM_PROFILE_WORKSTATION 3
186 #define EFI_ACPI_6_4_PM_PROFILE_ENTERPRISE_SERVER 4
187 #define EFI_ACPI_6_4_PM_PROFILE_SOHO_SERVER 5
188 #define EFI_ACPI_6_4_PM_PROFILE_APPLIANCE_PC 6
189 #define EFI_ACPI_6_4_PM_PROFILE_PERFORMANCE_SERVER 7
190 #define EFI_ACPI_6_4_PM_PROFILE_TABLET 8
193 // Fixed ACPI Description Table Boot Architecture Flags
194 // All other bits are reserved and must be set to 0.
196 #define EFI_ACPI_6_4_LEGACY_DEVICES BIT0
197 #define EFI_ACPI_6_4_8042 BIT1
198 #define EFI_ACPI_6_4_VGA_NOT_PRESENT BIT2
199 #define EFI_ACPI_6_4_MSI_NOT_SUPPORTED BIT3
200 #define EFI_ACPI_6_4_PCIE_ASPM_CONTROLS BIT4
201 #define EFI_ACPI_6_4_CMOS_RTC_NOT_PRESENT BIT5
204 // Fixed ACPI Description Table Arm Boot Architecture Flags
205 // All other bits are reserved and must be set to 0.
207 #define EFI_ACPI_6_4_ARM_PSCI_COMPLIANT BIT0
208 #define EFI_ACPI_6_4_ARM_PSCI_USE_HVC BIT1
211 // Fixed ACPI Description Table Fixed Feature Flags
212 // All other bits are reserved and must be set to 0.
214 #define EFI_ACPI_6_4_WBINVD BIT0
215 #define EFI_ACPI_6_4_WBINVD_FLUSH BIT1
216 #define EFI_ACPI_6_4_PROC_C1 BIT2
217 #define EFI_ACPI_6_4_P_LVL2_UP BIT3
218 #define EFI_ACPI_6_4_PWR_BUTTON BIT4
219 #define EFI_ACPI_6_4_SLP_BUTTON BIT5
220 #define EFI_ACPI_6_4_FIX_RTC BIT6
221 #define EFI_ACPI_6_4_RTC_S4 BIT7
222 #define EFI_ACPI_6_4_TMR_VAL_EXT BIT8
223 #define EFI_ACPI_6_4_DCK_CAP BIT9
224 #define EFI_ACPI_6_4_RESET_REG_SUP BIT10
225 #define EFI_ACPI_6_4_SEALED_CASE BIT11
226 #define EFI_ACPI_6_4_HEADLESS BIT12
227 #define EFI_ACPI_6_4_CPU_SW_SLP BIT13
228 #define EFI_ACPI_6_4_PCI_EXP_WAK BIT14
229 #define EFI_ACPI_6_4_USE_PLATFORM_CLOCK BIT15
230 #define EFI_ACPI_6_4_S4_RTC_STS_VALID BIT16
231 #define EFI_ACPI_6_4_REMOTE_POWER_ON_CAPABLE BIT17
232 #define EFI_ACPI_6_4_FORCE_APIC_CLUSTER_MODEL BIT18
233 #define EFI_ACPI_6_4_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
234 #define EFI_ACPI_6_4_HW_REDUCED_ACPI BIT20
235 #define EFI_ACPI_6_4_LOW_POWER_S0_IDLE_CAPABLE BIT21
238 /// Firmware ACPI Control Structure
243 UINT32 HardwareSignature
;
244 UINT32 FirmwareWakingVector
;
247 UINT64 XFirmwareWakingVector
;
252 } EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
255 /// FACS Version (as defined in ACPI 6.4 spec.)
257 #define EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
260 /// Firmware Control Structure Feature Flags
261 /// All other bits are reserved and must be set to 0.
263 #define EFI_ACPI_6_4_S4BIOS_F BIT0
264 #define EFI_ACPI_6_4_64BIT_WAKE_SUPPORTED_F BIT1
267 /// OSPM Enabled Firmware Control Structure Flags
268 /// All other bits are reserved and must be set to 0.
270 #define EFI_ACPI_6_4_OSPM_64BIT_WAKE_F BIT0
273 // Differentiated System Description Table,
274 // Secondary System Description Table
275 // and Persistent System Description Table,
276 // no definition needed as they are common description table header, the same with
277 // EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
279 #define EFI_ACPI_6_4_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
280 #define EFI_ACPI_6_4_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
283 /// Multiple APIC Description Table header definition. The rest of the table
284 /// must be defined in a platform specific manner.
287 EFI_ACPI_DESCRIPTION_HEADER Header
;
288 UINT32 LocalApicAddress
;
290 } EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
293 /// MADT Revision (as defined in ACPI 6.4 spec.)
295 #define EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x05
298 /// Multiple APIC Flags
299 /// All other bits are reserved and must be set to 0.
301 #define EFI_ACPI_6_4_PCAT_COMPAT BIT0
304 // Multiple APIC Description Table APIC structure types
305 // All other values between 0x0D and 0x7F are reserved and
306 // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
308 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC 0x00
309 #define EFI_ACPI_6_4_IO_APIC 0x01
310 #define EFI_ACPI_6_4_INTERRUPT_SOURCE_OVERRIDE 0x02
311 #define EFI_ACPI_6_4_NON_MASKABLE_INTERRUPT_SOURCE 0x03
312 #define EFI_ACPI_6_4_LOCAL_APIC_NMI 0x04
313 #define EFI_ACPI_6_4_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
314 #define EFI_ACPI_6_4_IO_SAPIC 0x06
315 #define EFI_ACPI_6_4_LOCAL_SAPIC 0x07
316 #define EFI_ACPI_6_4_PLATFORM_INTERRUPT_SOURCES 0x08
317 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC 0x09
318 #define EFI_ACPI_6_4_LOCAL_X2APIC_NMI 0x0A
319 #define EFI_ACPI_6_4_GIC 0x0B
320 #define EFI_ACPI_6_4_GICD 0x0C
321 #define EFI_ACPI_6_4_GIC_MSI_FRAME 0x0D
322 #define EFI_ACPI_6_4_GICR 0x0E
323 #define EFI_ACPI_6_4_GIC_ITS 0x0F
326 // APIC Structure Definitions
330 /// Processor Local APIC Structure Definition
335 UINT8 AcpiProcessorUid
;
338 } EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_STRUCTURE
;
341 /// Local APIC Flags. All other bits are reserved and must be 0.
343 #define EFI_ACPI_6_4_LOCAL_APIC_ENABLED BIT0
344 #define EFI_ACPI_6_4_LOCAL_APIC_ONLINE_CAPABLE BIT1
347 /// IO APIC Structure
354 UINT32 IoApicAddress
;
355 UINT32 GlobalSystemInterruptBase
;
356 } EFI_ACPI_6_4_IO_APIC_STRUCTURE
;
359 /// Interrupt Source Override Structure
366 UINT32 GlobalSystemInterrupt
;
368 } EFI_ACPI_6_4_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
371 /// Platform Interrupt Sources Structure Definition
381 UINT32 GlobalSystemInterrupt
;
382 UINT32 PlatformInterruptSourceFlags
;
383 UINT8 CpeiProcessorOverride
;
385 } EFI_ACPI_6_4_PLATFORM_INTERRUPT_APIC_STRUCTURE
;
389 // All other bits are reserved and must be set to 0.
391 #define EFI_ACPI_6_4_POLARITY (3 << 0)
392 #define EFI_ACPI_6_4_TRIGGER_MODE (3 << 2)
395 /// Non-Maskable Interrupt Source Structure
401 UINT32 GlobalSystemInterrupt
;
402 } EFI_ACPI_6_4_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
405 /// Local APIC NMI Structure
410 UINT8 AcpiProcessorUid
;
413 } EFI_ACPI_6_4_LOCAL_APIC_NMI_STRUCTURE
;
416 /// Local APIC Address Override Structure
422 UINT64 LocalApicAddress
;
423 } EFI_ACPI_6_4_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE
;
426 /// IO SAPIC Structure
433 UINT32 GlobalSystemInterruptBase
;
434 UINT64 IoSapicAddress
;
435 } EFI_ACPI_6_4_IO_SAPIC_STRUCTURE
;
438 /// Local SAPIC Structure
439 /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
444 UINT8 AcpiProcessorId
;
449 UINT32 ACPIProcessorUIDValue
;
450 } EFI_ACPI_6_4_PROCESSOR_LOCAL_SAPIC_STRUCTURE
;
453 /// Platform Interrupt Sources Structure
463 UINT32 GlobalSystemInterrupt
;
464 UINT32 PlatformInterruptSourceFlags
;
465 } EFI_ACPI_6_4_PLATFORM_INTERRUPT_SOURCES_STRUCTURE
;
468 /// Platform Interrupt Source Flags.
469 /// All other bits are reserved and must be set to 0.
471 #define EFI_ACPI_6_4_CPEI_PROCESSOR_OVERRIDE BIT0
474 /// Processor Local x2APIC Structure Definition
482 UINT32 AcpiProcessorUid
;
483 } EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_STRUCTURE
;
486 /// Local x2APIC NMI Structure
492 UINT32 AcpiProcessorUid
;
493 UINT8 LocalX2ApicLint
;
495 } EFI_ACPI_6_4_LOCAL_X2APIC_NMI_STRUCTURE
;
504 UINT32 CPUInterfaceNumber
;
505 UINT32 AcpiProcessorUid
;
507 UINT32 ParkingProtocolVersion
;
508 UINT32 PerformanceInterruptGsiv
;
509 UINT64 ParkedAddress
;
510 UINT64 PhysicalBaseAddress
;
513 UINT32 VGICMaintenanceInterrupt
;
514 UINT64 GICRBaseAddress
;
516 UINT8 ProcessorPowerEfficiencyClass
;
518 UINT16 SpeOverflowInterrupt
;
519 } EFI_ACPI_6_4_GIC_STRUCTURE
;
522 /// GIC Flags. All other bits are reserved and must be 0.
524 #define EFI_ACPI_6_4_GIC_ENABLED BIT0
525 #define EFI_ACPI_6_4_PERFORMANCE_INTERRUPT_MODEL BIT1
526 #define EFI_ACPI_6_4_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
529 /// GIC Distributor Structure
536 UINT64 PhysicalBaseAddress
;
537 UINT32 SystemVectorBase
;
540 } EFI_ACPI_6_4_GIC_DISTRIBUTOR_STRUCTURE
;
545 #define EFI_ACPI_6_4_GIC_V1 0x01
546 #define EFI_ACPI_6_4_GIC_V2 0x02
547 #define EFI_ACPI_6_4_GIC_V3 0x03
548 #define EFI_ACPI_6_4_GIC_V4 0x04
551 /// GIC MSI Frame Structure
557 UINT32 GicMsiFrameId
;
558 UINT64 PhysicalBaseAddress
;
562 } EFI_ACPI_6_4_GIC_MSI_FRAME_STRUCTURE
;
565 /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
567 #define EFI_ACPI_6_4_SPI_COUNT_BASE_SELECT BIT0
576 UINT64 DiscoveryRangeBaseAddress
;
577 UINT32 DiscoveryRangeLength
;
578 } EFI_ACPI_6_4_GICR_STRUCTURE
;
581 /// GIC Interrupt Translation Service Structure
588 UINT64 PhysicalBaseAddress
;
590 } EFI_ACPI_6_4_GIC_ITS_STRUCTURE
;
593 /// Smart Battery Description Table (SBST)
596 EFI_ACPI_DESCRIPTION_HEADER Header
;
597 UINT32 WarningEnergyLevel
;
598 UINT32 LowEnergyLevel
;
599 UINT32 CriticalEnergyLevel
;
600 } EFI_ACPI_6_4_SMART_BATTERY_DESCRIPTION_TABLE
;
603 /// SBST Version (as defined in ACPI 6.4 spec.)
605 #define EFI_ACPI_6_4_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
608 /// Embedded Controller Boot Resources Table (ECDT)
609 /// The table is followed by a null terminated ASCII string that contains
610 /// a fully qualified reference to the name space object.
613 EFI_ACPI_DESCRIPTION_HEADER Header
;
614 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE EcControl
;
615 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE EcData
;
618 } EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE
;
621 /// ECDT Version (as defined in ACPI 6.4 spec.)
623 #define EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
626 /// System Resource Affinity Table (SRAT). The rest of the table
627 /// must be defined in a platform specific manner.
630 EFI_ACPI_DESCRIPTION_HEADER Header
;
631 UINT32 Reserved1
; ///< Must be set to 1
633 } EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER
;
636 /// SRAT Version (as defined in ACPI 6.4 spec.)
638 #define EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
641 // SRAT structure types.
642 // All other values between 0x06 an 0xFF are reserved and
643 // will be ignored by OSPM.
645 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
646 #define EFI_ACPI_6_4_MEMORY_AFFINITY 0x01
647 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
648 #define EFI_ACPI_6_4_GICC_AFFINITY 0x03
649 #define EFI_ACPI_6_4_GIC_ITS_AFFINITY 0x04
650 #define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY 0x05
653 /// Processor Local APIC/SAPIC Affinity Structure Definition
658 UINT8 ProximityDomain7To0
;
662 UINT8 ProximityDomain31To8
[3];
664 } EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE
;
667 /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
669 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
672 /// Memory Affinity Structure Definition
677 UINT32 ProximityDomain
;
679 UINT32 AddressBaseLow
;
680 UINT32 AddressBaseHigh
;
686 } EFI_ACPI_6_4_MEMORY_AFFINITY_STRUCTURE
;
689 // Memory Flags. All other bits are reserved and must be 0.
691 #define EFI_ACPI_6_4_MEMORY_ENABLED (1 << 0)
692 #define EFI_ACPI_6_4_MEMORY_HOT_PLUGGABLE (1 << 1)
693 #define EFI_ACPI_6_4_MEMORY_NONVOLATILE (1 << 2)
696 /// Processor Local x2APIC Affinity Structure Definition
702 UINT32 ProximityDomain
;
707 } EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE
;
710 /// GICC Affinity Structure Definition
715 UINT32 ProximityDomain
;
716 UINT32 AcpiProcessorUid
;
719 } EFI_ACPI_6_4_GICC_AFFINITY_STRUCTURE
;
722 /// GICC Flags. All other bits are reserved and must be 0.
724 #define EFI_ACPI_6_4_GICC_ENABLED (1 << 0)
727 /// GIC Interrupt Translation Service (ITS) Affinity Structure Definition
732 UINT32 ProximityDomain
;
735 } EFI_ACPI_6_4_GIC_ITS_AFFINITY_STRUCTURE
;
738 // Generic Initiator Affinity Structure Device Handle Types
739 // All other values between 0x02 an 0xFF are reserved and
740 // will be ignored by OSPM.
742 #define EFI_ACPI_6_4_ACPI_DEVICE_HANDLE 0x00
743 #define EFI_ACPI_6_4_PCI_DEVICE_HANDLE 0x01
746 /// Device Handle - ACPI
752 } EFI_ACPI_6_4_DEVICE_HANDLE_ACPI
;
755 /// Device Handle - PCI
761 } EFI_ACPI_6_4_DEVICE_HANDLE_PCI
;
764 /// Generic Initiator Affinity Structure
770 UINT8 DeviceHandleType
;
771 UINT32 ProximityDomain
;
774 EFI_ACPI_6_4_DEVICE_HANDLE_ACPI Acpi
;
775 EFI_ACPI_6_4_DEVICE_HANDLE_PCI Pci
;
780 } EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE
;
783 /// Generic Initiator Affinity Structure Flags. All other bits are reserved
786 #define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ENABLED (1 << 0)
789 /// System Locality Distance Information Table (SLIT).
790 /// The rest of the table is a matrix.
793 EFI_ACPI_DESCRIPTION_HEADER Header
;
794 UINT64 NumberOfSystemLocalities
;
795 } EFI_ACPI_6_4_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER
;
798 /// SLIT Version (as defined in ACPI 6.4 spec.)
800 #define EFI_ACPI_6_4_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
803 /// Corrected Platform Error Polling Table (CPEP)
806 EFI_ACPI_DESCRIPTION_HEADER Header
;
808 } EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER
;
811 /// CPEP Version (as defined in ACPI 6.4 spec.)
813 #define EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
816 // CPEP processor structure types.
818 #define EFI_ACPI_6_4_CPEP_PROCESSOR_APIC_SAPIC 0x00
821 /// Corrected Platform Error Polling Processor Structure Definition
828 UINT32 PollingInterval
;
829 } EFI_ACPI_6_4_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE
;
832 /// Maximum System Characteristics Table (MSCT)
835 EFI_ACPI_DESCRIPTION_HEADER Header
;
836 UINT32 OffsetProxDomInfo
;
837 UINT32 MaximumNumberOfProximityDomains
;
838 UINT32 MaximumNumberOfClockDomains
;
839 UINT64 MaximumPhysicalAddress
;
840 } EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER
;
843 /// MSCT Version (as defined in ACPI 6.4 spec.)
845 #define EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
848 /// Maximum Proximity Domain Information Structure Definition
853 UINT32 ProximityDomainRangeLow
;
854 UINT32 ProximityDomainRangeHigh
;
855 UINT32 MaximumProcessorCapacity
;
856 UINT64 MaximumMemoryCapacity
;
857 } EFI_ACPI_6_4_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE
;
860 /// ACPI RAS Feature Table definition.
863 EFI_ACPI_DESCRIPTION_HEADER Header
;
864 UINT8 PlatformCommunicationChannelIdentifier
[12];
865 } EFI_ACPI_6_4_RAS_FEATURE_TABLE
;
868 /// RASF Version (as defined in ACPI 6.4 spec.)
870 #define EFI_ACPI_6_4_RAS_FEATURE_TABLE_REVISION 0x01
873 /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
880 UINT8 RASCapabilities
[16];
881 UINT8 SetRASCapabilities
[16];
882 UINT16 NumberOfRASFParameterBlocks
;
883 UINT32 SetRASCapabilitiesStatus
;
884 } EFI_ACPI_6_4_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
887 /// ACPI RASF PCC command code
889 #define EFI_ACPI_6_4_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
892 /// ACPI RASF Platform RAS Capabilities
894 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED BIT0
895 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED_AND_EXPOSED_TO_SOFTWARE BIT1
896 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT2
897 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT3
898 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT4
901 /// ACPI RASF Parameter Block structure for PATROL_SCRUB
907 UINT16 PatrolScrubCommand
;
908 UINT64 RequestedAddressRange
[2];
909 UINT64 ActualAddressRange
[2];
911 UINT8 RequestedSpeed
;
912 } EFI_ACPI_6_4_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE
;
915 /// ACPI RASF Patrol Scrub command
917 #define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
918 #define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
919 #define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
922 /// Memory Power State Table definition.
925 EFI_ACPI_DESCRIPTION_HEADER Header
;
926 UINT8 PlatformCommunicationChannelIdentifier
;
928 // Memory Power Node Structure
929 // Memory Power State Characteristics
930 } EFI_ACPI_6_4_MEMORY_POWER_STATUS_TABLE
;
933 /// MPST Version (as defined in ACPI 6.4 spec.)
935 #define EFI_ACPI_6_4_MEMORY_POWER_STATE_TABLE_REVISION 0x01
938 /// MPST Platform Communication Channel Shared Memory Region definition.
944 UINT32 MemoryPowerCommandRegister
;
945 UINT32 MemoryPowerStatusRegister
;
947 UINT32 MemoryPowerNodeId
;
948 UINT64 MemoryEnergyConsumed
;
949 UINT64 ExpectedAveragePowerComsuned
;
950 } EFI_ACPI_6_4_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
953 /// ACPI MPST PCC command code
955 #define EFI_ACPI_6_4_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
958 /// ACPI MPST Memory Power command
960 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
961 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
962 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
963 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
966 /// MPST Memory Power Node Table
969 UINT8 PowerStateValue
;
970 UINT8 PowerStateInformationIndex
;
971 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE
;
976 UINT16 MemoryPowerNodeId
;
979 UINT64 AddressLength
;
980 UINT32 NumberOfPowerStates
;
981 UINT32 NumberOfPhysicalComponents
;
982 //EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
983 //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
984 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE
;
986 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
987 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
988 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
991 UINT16 MemoryPowerNodeCount
;
993 } EFI_ACPI_6_4_MPST_MEMORY_POWER_NODE_TABLE
;
996 /// MPST Memory Power State Characteristics Table
999 UINT8 PowerStateStructureID
;
1002 UINT32 AveragePowerConsumedInMPS0
;
1003 UINT32 RelativePowerSavingToMPS0
;
1004 UINT64 ExitLatencyToMPS0
;
1005 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE
;
1007 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
1008 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
1009 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
1012 UINT16 MemoryPowerStateCharacteristicsCount
;
1014 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE
;
1017 /// Memory Topology Table definition.
1020 EFI_ACPI_DESCRIPTION_HEADER Header
;
1022 } EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE
;
1025 /// PMTT Version (as defined in ACPI 6.4 spec.)
1027 #define EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
1030 /// Common Memory Aggregator Device Structure.
1038 } EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1041 /// Memory Aggregator Device Type
1043 #define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x1
1044 #define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
1045 #define EFI_ACPI_6_4_PMTT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x3
1048 /// Socket Memory Aggregator Device Structure.
1051 EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1052 UINT16 SocketIdentifier
;
1054 //EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
1055 } EFI_ACPI_6_4_PMTT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1058 /// MemoryController Memory Aggregator Device Structure.
1061 EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1063 UINT32 WriteLatency
;
1064 UINT32 ReadBandwidth
;
1065 UINT32 WriteBandwidth
;
1066 UINT16 OptimalAccessUnit
;
1067 UINT16 OptimalAccessAlignment
;
1069 UINT16 NumberOfProximityDomains
;
1070 //UINT32 ProximityDomain[NumberOfProximityDomains];
1071 //EFI_ACPI_6_4_PMTT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
1072 } EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1075 /// DIMM Memory Aggregator Device Structure.
1078 EFI_ACPI_6_4_PMTT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1079 UINT16 PhysicalComponentIdentifier
;
1082 UINT32 SmbiosHandle
;
1083 } EFI_ACPI_6_4_PMTT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1086 /// Boot Graphics Resource Table definition.
1089 EFI_ACPI_DESCRIPTION_HEADER Header
;
1091 /// 2-bytes (16 bit) version ID. This value must be 1.
1095 /// 1-byte status field indicating current status about the table.
1096 /// Bits[7:3] = Reserved (must be zero)
1097 /// Bits[2:1] = Orientation Offset. These bits describe the clockwise
1098 /// degree offset from the image's default orientation.
1099 /// [00] = 0, no offset
1103 /// Bit [0] = Displayed. A one indicates the boot image graphic is
1108 /// 1-byte enumerated type field indicating format of the image.
1110 /// 1 - 255 Reserved (for future use)
1114 /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
1115 /// of the image bitmap.
1117 UINT64 ImageAddress
;
1119 /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
1120 /// (X, Y) display offset of the top left corner of the boot image.
1121 /// The top left corner of the display is at offset (0, 0).
1123 UINT32 ImageOffsetX
;
1125 /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
1126 /// (X, Y) display offset of the top left corner of the boot image.
1127 /// The top left corner of the display is at offset (0, 0).
1129 UINT32 ImageOffsetY
;
1130 } EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE
;
1135 #define EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1140 #define EFI_ACPI_6_4_BGRT_VERSION 0x01
1145 #define EFI_ACPI_6_4_BGRT_STATUS_NOT_DISPLAYED 0x00
1146 #define EFI_ACPI_6_4_BGRT_STATUS_DISPLAYED 0x01
1151 #define EFI_ACPI_6_4_BGRT_IMAGE_TYPE_BMP 0x00
1154 /// FPDT Version (as defined in ACPI 6.4 spec.)
1156 #define EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1159 /// FPDT Performance Record Types
1161 #define EFI_ACPI_6_4_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1162 #define EFI_ACPI_6_4_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1165 /// FPDT Performance Record Revision
1167 #define EFI_ACPI_6_4_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1168 #define EFI_ACPI_6_4_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1171 /// FPDT Runtime Performance Record Types
1173 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1174 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1175 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1178 /// FPDT Runtime Performance Record Revision
1180 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1181 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1182 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1185 /// FPDT Performance Record header
1191 } EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER
;
1194 /// FPDT Performance Table header
1199 } EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER
;
1202 /// FPDT Firmware Basic Boot Performance Pointer Record Structure
1205 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1208 /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
1210 UINT64 BootPerformanceTablePointer
;
1211 } EFI_ACPI_6_4_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD
;
1214 /// FPDT S3 Performance Table Pointer Record Structure
1217 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1220 /// 64-bit processor-relative physical address of the S3 Performance Table.
1222 UINT64 S3PerformanceTablePointer
;
1223 } EFI_ACPI_6_4_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD
;
1226 /// FPDT Firmware Basic Boot Performance Record Structure
1229 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1232 /// Timer value logged at the beginning of firmware image execution.
1233 /// This may not always be zero or near zero.
1237 /// Timer value logged just prior to loading the OS boot loader into memory.
1238 /// For non-UEFI compatible boots, this field must be zero.
1240 UINT64 OsLoaderLoadImageStart
;
1242 /// Timer value logged just prior to launching the previously loaded OS boot loader image.
1243 /// For non-UEFI compatible boots, the timer value logged will be just prior
1244 /// to the INT 19h handler invocation.
1246 UINT64 OsLoaderStartImageStart
;
1248 /// Timer value logged at the point when the OS loader calls the
1249 /// ExitBootServices function for UEFI compatible firmware.
1250 /// For non-UEFI compatible boots, this field must be zero.
1252 UINT64 ExitBootServicesEntry
;
1254 /// Timer value logged at the point just prior towhen the OS loader gaining
1255 /// control back from calls the ExitBootServices function for UEFI compatible firmware.
1256 /// For non-UEFI compatible boots, this field must be zero.
1258 UINT64 ExitBootServicesExit
;
1259 } EFI_ACPI_6_4_FPDT_FIRMWARE_BASIC_BOOT_RECORD
;
1262 /// FPDT Firmware Basic Boot Performance Table signature
1264 #define EFI_ACPI_6_4_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1267 // FPDT Firmware Basic Boot Performance Table
1270 EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1272 // one or more Performance Records.
1274 } EFI_ACPI_6_4_FPDT_FIRMWARE_BASIC_BOOT_TABLE
;
1277 /// FPDT "S3PT" S3 Performance Table
1279 #define EFI_ACPI_6_4_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1282 // FPDT Firmware S3 Boot Performance Table
1285 EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1287 // one or more Performance Records.
1289 } EFI_ACPI_6_4_FPDT_FIRMWARE_S3_BOOT_TABLE
;
1292 /// FPDT Basic S3 Resume Performance Record
1295 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1297 /// A count of the number of S3 resume cycles since the last full boot sequence.
1301 /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
1302 /// OS waking vector. Only the most recent resume cycle's time is retained.
1306 /// Average timer value of all resume cycles logged since the last full boot
1307 /// sequence, including the most recent resume. Note that the entire log of
1308 /// timer values does not need to be retained in order to calculate this average.
1310 UINT64 AverageResume
;
1311 } EFI_ACPI_6_4_FPDT_S3_RESUME_RECORD
;
1314 /// FPDT Basic S3 Suspend Performance Record
1317 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1319 /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
1320 /// Only the most recent suspend cycle's timer value is retained.
1322 UINT64 SuspendStart
;
1324 /// Timer value recorded at the final firmware write to SLP_TYP (or other
1325 /// mechanism) used to trigger hardware entry to S3.
1326 /// Only the most recent suspend cycle's timer value is retained.
1329 } EFI_ACPI_6_4_FPDT_S3_SUSPEND_RECORD
;
1332 /// Firmware Performance Record Table definition.
1335 EFI_ACPI_DESCRIPTION_HEADER Header
;
1336 } EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_RECORD_TABLE
;
1339 /// Generic Timer Description Table definition.
1342 EFI_ACPI_DESCRIPTION_HEADER Header
;
1343 UINT64 CntControlBasePhysicalAddress
;
1345 UINT32 SecurePL1TimerGSIV
;
1346 UINT32 SecurePL1TimerFlags
;
1347 UINT32 NonSecurePL1TimerGSIV
;
1348 UINT32 NonSecurePL1TimerFlags
;
1349 UINT32 VirtualTimerGSIV
;
1350 UINT32 VirtualTimerFlags
;
1351 UINT32 NonSecurePL2TimerGSIV
;
1352 UINT32 NonSecurePL2TimerFlags
;
1353 UINT64 CntReadBasePhysicalAddress
;
1354 UINT32 PlatformTimerCount
;
1355 UINT32 PlatformTimerOffset
;
1356 UINT32 VirtualPL2TimerGSIV
;
1357 UINT32 VirtualPL2TimerFlags
;
1358 } EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE
;
1361 /// GTDT Version (as defined in ACPI 6.4 spec.)
1363 #define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x03
1366 /// Timer Flags. All other bits are reserved and must be 0.
1368 #define EFI_ACPI_6_4_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1369 #define EFI_ACPI_6_4_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1370 #define EFI_ACPI_6_4_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
1373 /// Platform Timer Type
1375 #define EFI_ACPI_6_4_GTDT_GT_BLOCK 0
1376 #define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG 1
1379 /// GT Block Structure
1386 UINT32 GTBlockTimerCount
;
1387 UINT32 GTBlockTimerOffset
;
1388 } EFI_ACPI_6_4_GTDT_GT_BLOCK_STRUCTURE
;
1391 /// GT Block Timer Structure
1394 UINT8 GTFrameNumber
;
1398 UINT32 GTxPhysicalTimerGSIV
;
1399 UINT32 GTxPhysicalTimerFlags
;
1400 UINT32 GTxVirtualTimerGSIV
;
1401 UINT32 GTxVirtualTimerFlags
;
1402 UINT32 GTxCommonFlags
;
1403 } EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_STRUCTURE
;
1406 /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
1408 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1409 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1412 /// Common Flags Flags. All other bits are reserved and must be 0.
1414 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
1415 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
1418 /// SBSA Generic Watchdog Structure
1424 UINT64 RefreshFramePhysicalAddress
;
1425 UINT64 WatchdogControlFramePhysicalAddress
;
1426 UINT32 WatchdogTimerGSIV
;
1427 UINT32 WatchdogTimerFlags
;
1428 } EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE
;
1431 /// SBSA Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
1433 #define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
1434 #define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1435 #define EFI_ACPI_6_4_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
1438 // NVDIMM Firmware Interface Table definition.
1441 EFI_ACPI_DESCRIPTION_HEADER Header
;
1443 } EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE
;
1446 // NFIT Version (as defined in ACPI 6.4 spec.)
1448 #define EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1
1451 // Definition for NFIT Table Structure Types
1453 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE 0
1454 #define EFI_ACPI_6_4_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE_TYPE 1
1455 #define EFI_ACPI_6_4_NFIT_INTERLEAVE_STRUCTURE_TYPE 2
1456 #define EFI_ACPI_6_4_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE 3
1457 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE 4
1458 #define EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE 5
1459 #define EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE 6
1462 // Definition for NFIT Structure Header
1467 } EFI_ACPI_6_4_NFIT_STRUCTURE_HEADER
;
1470 // Definition for System Physical Address Range Structure
1472 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGION_FOR_MANAGEMENT BIT0
1473 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DOMAIN_VALID BIT1
1474 #define EFI_ACPI_6_4_NFIT_GUID_VOLATILE_MEMORY_REGION { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52, 0xE5, 0xD0 }}
1475 #define EFI_ACPI_6_4_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7, 0x8C, 0xDB }}
1476 #define EFI_ACPI_6_4_NFIT_GUID_NVDIMM_CONTROL_REGION { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8, 0x23, 0x4C }}
1477 #define EFI_ACPI_6_4_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION { 0x91AF0530, 0x5D86, 0x470E, { 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40, 0x82, 0x49 }}
1478 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE { 0x77AB535A, 0x45FC, 0x624B, { 0x55, 0x60, 0xF7, 0xB2, 0x81, 0xD1, 0xF9, 0x6E }}
1479 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE { 0x3D5ABD30, 0x4175, 0x87CE, { 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23, 0xC4, 0xBB }}
1480 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, { 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0, 0x96, 0xF9 }}
1481 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT { 0x08018188, 0x42CD, 0xBB48, { 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D, 0xED, 0x3D }}
1485 UINT16 SPARangeStructureIndex
;
1488 UINT32 ProximityDomain
;
1489 GUID AddressRangeTypeGUID
;
1490 UINT64 SystemPhysicalAddressRangeBase
;
1491 UINT64 SystemPhysicalAddressRangeLength
;
1492 UINT64 AddressRangeMemoryMappingAttribute
;
1493 } EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE
;
1496 // Definition for Memory Device to System Physical Address Range Mapping Structure
1499 UINT32 DIMMNumber
:4;
1500 UINT32 MemoryChannelNumber
:4;
1501 UINT32 MemoryControllerID
:4;
1503 UINT32 NodeControllerID
:12;
1504 UINT32 Reserved_28
:4;
1505 } EFI_ACPI_6_4_NFIT_DEVICE_HANDLE
;
1507 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL BIT0
1508 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL BIT1
1509 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL BIT2
1510 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSPM_HAND_OFF BIT3
1511 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PRIOR_OSPM_HAND_OFF BIT4
1512 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NOTIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5
1513 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_NOT_MAP_NVDIMM_TO_SPA BIT6
1517 EFI_ACPI_6_4_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1518 UINT16 NVDIMMPhysicalID
;
1519 UINT16 NVDIMMRegionID
;
1520 UINT16 SPARangeStructureIndex
;
1521 UINT16 NVDIMMControlRegionStructureIndex
;
1522 UINT64 NVDIMMRegionSize
;
1523 UINT64 RegionOffset
;
1524 UINT64 NVDIMMPhysicalAddressRegionBase
;
1525 UINT16 InterleaveStructureIndex
;
1526 UINT16 InterleaveWays
;
1527 UINT16 NVDIMMStateFlags
;
1529 } EFI_ACPI_6_4_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE
;
1532 // Definition for Interleave Structure
1537 UINT16 InterleaveStructureIndex
;
1539 UINT32 NumberOfLines
;
1541 //UINT32 LineOffset[NumberOfLines];
1542 } EFI_ACPI_6_4_NFIT_INTERLEAVE_STRUCTURE
;
1545 // Definition for SMBIOS Management Information Structure
1552 } EFI_ACPI_6_4_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE
;
1555 // Definition for NVDIMM Control Region Structure
1557 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_VALID_FIELDS_MANUFACTURING BIT0
1559 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_BUFFERED BIT0
1563 UINT16 NVDIMMControlRegionStructureIndex
;
1567 UINT16 SubsystemVendorID
;
1568 UINT16 SubsystemDeviceID
;
1569 UINT16 SubsystemRevisionID
;
1571 UINT8 ManufacturingLocation
;
1572 UINT16 ManufacturingDate
;
1573 UINT8 Reserved_22
[2];
1574 UINT32 SerialNumber
;
1575 UINT16 RegionFormatInterfaceCode
;
1576 UINT16 NumberOfBlockControlWindows
;
1577 UINT64 SizeOfBlockControlWindow
;
1578 UINT64 CommandRegisterOffsetInBlockControlWindow
;
1579 UINT64 SizeOfCommandRegisterInBlockControlWindows
;
1580 UINT64 StatusRegisterOffsetInBlockControlWindow
;
1581 UINT64 SizeOfStatusRegisterInBlockControlWindows
;
1582 UINT16 NVDIMMControlRegionFlag
;
1583 UINT8 Reserved_74
[6];
1584 } EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE
;
1587 // Definition for NVDIMM Block Data Window Region Structure
1592 UINT16 NVDIMMControlRegionStructureIndex
;
1593 UINT16 NumberOfBlockDataWindows
;
1594 UINT64 BlockDataWindowStartOffset
;
1595 UINT64 SizeOfBlockDataWindow
;
1596 UINT64 BlockAccessibleMemoryCapacity
;
1597 UINT64 BeginningAddressOfFirstBlockInBlockAccessibleMemory
;
1598 } EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE
;
1601 // Definition for Flush Hint Address Structure
1606 EFI_ACPI_6_4_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1607 UINT16 NumberOfFlushHintAddresses
;
1608 UINT8 Reserved_10
[6];
1609 //UINT64 FlushHintAddress[NumberOfFlushHintAddresses];
1610 } EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE
;
1613 /// Secure DEVices Table (SDEV)
1616 EFI_ACPI_DESCRIPTION_HEADER Header
;
1617 } EFI_ACPI_6_4_SECURE_DEVICES_TABLE_HEADER
;
1620 /// SDEV Revision (as defined in ACPI 6.4 spec.)
1622 #define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_REVISION 0x01
1625 /// Secure Devcice types
1627 #define EFI_ACPI_6_4_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01
1628 #define EFI_ACPI_6_4_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00
1631 /// Secure Devcice flags
1633 #define EFI_ACPI_6_4_SDEV_FLAG_ALLOW_HANDOFF BIT0
1636 /// SDEV Structure Header
1642 } EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER
;
1645 /// PCIe Endpoint Device based Secure Device Structure
1651 UINT16 PciSegmentNumber
;
1652 UINT16 StartBusNumber
;
1653 UINT16 PciPathOffset
;
1654 UINT16 PciPathLength
;
1655 UINT16 VendorSpecificDataOffset
;
1656 UINT16 VendorSpecificDataLength
;
1657 } EFI_ACPI_6_4_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE
;
1660 /// ACPI_NAMESPACE_DEVICE based Secure Device Structure
1666 UINT16 DeviceIdentifierOffset
;
1667 UINT16 DeviceIdentifierLength
;
1668 UINT16 VendorSpecificDataOffset
;
1669 UINT16 VendorSpecificDataLength
;
1670 } EFI_ACPI_6_4_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE
;
1673 /// Boot Error Record Table (BERT)
1676 EFI_ACPI_DESCRIPTION_HEADER Header
;
1677 UINT32 BootErrorRegionLength
;
1678 UINT64 BootErrorRegion
;
1679 } EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_HEADER
;
1682 /// BERT Version (as defined in ACPI 6.4 spec.)
1684 #define EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1687 /// Boot Error Region Block Status Definition
1690 UINT32 UncorrectableErrorValid
:1;
1691 UINT32 CorrectableErrorValid
:1;
1692 UINT32 MultipleUncorrectableErrors
:1;
1693 UINT32 MultipleCorrectableErrors
:1;
1694 UINT32 ErrorDataEntryCount
:10;
1696 } EFI_ACPI_6_4_ERROR_BLOCK_STATUS
;
1699 /// Boot Error Region Definition
1702 EFI_ACPI_6_4_ERROR_BLOCK_STATUS BlockStatus
;
1703 UINT32 RawDataOffset
;
1704 UINT32 RawDataLength
;
1706 UINT32 ErrorSeverity
;
1707 } EFI_ACPI_6_4_BOOT_ERROR_REGION_STRUCTURE
;
1710 // Boot Error Severity types
1712 #define EFI_ACPI_6_4_ERROR_SEVERITY_CORRECTABLE 0x00
1713 #define EFI_ACPI_6_4_ERROR_SEVERITY_FATAL 0x01
1714 #define EFI_ACPI_6_4_ERROR_SEVERITY_CORRECTED 0x02
1715 #define EFI_ACPI_6_4_ERROR_SEVERITY_NONE 0x03
1718 /// Generic Error Data Entry Definition
1721 UINT8 SectionType
[16];
1722 UINT32 ErrorSeverity
;
1724 UINT8 ValidationBits
;
1726 UINT32 ErrorDataLength
;
1730 } EFI_ACPI_6_4_GENERIC_ERROR_DATA_ENTRY_STRUCTURE
;
1733 /// Generic Error Data Entry Version (as defined in ACPI 6.4 spec.)
1735 #define EFI_ACPI_6_4_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0300
1738 /// HEST - Hardware Error Source Table
1741 EFI_ACPI_DESCRIPTION_HEADER Header
;
1742 UINT32 ErrorSourceCount
;
1743 } EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_HEADER
;
1746 /// HEST Version (as defined in ACPI 6.4 spec.)
1748 #define EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1751 // Error Source structure types.
1753 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1754 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1755 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_NMI_ERROR 0x02
1756 #define EFI_ACPI_6_4_PCI_EXPRESS_ROOT_PORT_AER 0x06
1757 #define EFI_ACPI_6_4_PCI_EXPRESS_DEVICE_AER 0x07
1758 #define EFI_ACPI_6_4_PCI_EXPRESS_BRIDGE_AER 0x08
1759 #define EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR 0x09
1760 #define EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_VERSION_2 0x0A
1761 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK 0x0B
1764 // Error Source structure flags.
1766 #define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1767 #define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1768 #define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_GHES_ASSIST (1 << 2)
1771 /// IA-32 Architecture Machine Check Exception Structure Definition
1779 UINT32 NumberOfRecordsToPreAllocate
;
1780 UINT32 MaxSectionsPerRecord
;
1781 UINT64 GlobalCapabilityInitData
;
1782 UINT64 GlobalControlInitData
;
1783 UINT8 NumberOfHardwareBanks
;
1785 } EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE
;
1788 /// IA-32 Architecture Machine Check Bank Structure Definition
1792 UINT8 ClearStatusOnInitialization
;
1793 UINT8 StatusDataFormat
;
1795 UINT32 ControlRegisterMsrAddress
;
1796 UINT64 ControlInitData
;
1797 UINT32 StatusRegisterMsrAddress
;
1798 UINT32 AddressRegisterMsrAddress
;
1799 UINT32 MiscRegisterMsrAddress
;
1800 } EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE
;
1803 /// IA-32 Architecture Machine Check Bank Structure MCA data format
1805 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1806 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1807 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1810 // Hardware Error Notification types. All other values are reserved
1812 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1813 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1814 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1815 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1816 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1817 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CMCI 0x05
1818 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_MCE 0x06
1819 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_GPIO_SIGNAL 0x07
1820 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEA 0x08
1821 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEI 0x09
1822 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_GSIV 0x0A
1823 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_SOFTWARE_DELEGATED_EXCEPTION 0x0B
1826 /// Hardware Error Notification Configuration Write Enable Structure Definition
1830 UINT16 PollInterval
:1;
1831 UINT16 SwitchToPollingThresholdValue
:1;
1832 UINT16 SwitchToPollingThresholdWindow
:1;
1833 UINT16 ErrorThresholdValue
:1;
1834 UINT16 ErrorThresholdWindow
:1;
1836 } EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE
;
1839 /// Hardware Error Notification Structure Definition
1844 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable
;
1845 UINT32 PollInterval
;
1847 UINT32 SwitchToPollingThresholdValue
;
1848 UINT32 SwitchToPollingThresholdWindow
;
1849 UINT32 ErrorThresholdValue
;
1850 UINT32 ErrorThresholdWindow
;
1851 } EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE
;
1854 /// IA-32 Architecture Corrected Machine Check Structure Definition
1862 UINT32 NumberOfRecordsToPreAllocate
;
1863 UINT32 MaxSectionsPerRecord
;
1864 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1865 UINT8 NumberOfHardwareBanks
;
1867 } EFI_ACPI_6_4_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE
;
1870 /// IA-32 Architecture NMI Error Structure Definition
1876 UINT32 NumberOfRecordsToPreAllocate
;
1877 UINT32 MaxSectionsPerRecord
;
1878 UINT32 MaxRawDataLength
;
1879 } EFI_ACPI_6_4_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE
;
1882 /// PCI Express Root Port AER Structure Definition
1890 UINT32 NumberOfRecordsToPreAllocate
;
1891 UINT32 MaxSectionsPerRecord
;
1895 UINT16 DeviceControl
;
1897 UINT32 UncorrectableErrorMask
;
1898 UINT32 UncorrectableErrorSeverity
;
1899 UINT32 CorrectableErrorMask
;
1900 UINT32 AdvancedErrorCapabilitiesAndControl
;
1901 UINT32 RootErrorCommand
;
1902 } EFI_ACPI_6_4_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE
;
1905 /// PCI Express Device AER Structure Definition
1913 UINT32 NumberOfRecordsToPreAllocate
;
1914 UINT32 MaxSectionsPerRecord
;
1918 UINT16 DeviceControl
;
1920 UINT32 UncorrectableErrorMask
;
1921 UINT32 UncorrectableErrorSeverity
;
1922 UINT32 CorrectableErrorMask
;
1923 UINT32 AdvancedErrorCapabilitiesAndControl
;
1924 } EFI_ACPI_6_4_PCI_EXPRESS_DEVICE_AER_STRUCTURE
;
1927 /// PCI Express Bridge AER Structure Definition
1935 UINT32 NumberOfRecordsToPreAllocate
;
1936 UINT32 MaxSectionsPerRecord
;
1940 UINT16 DeviceControl
;
1942 UINT32 UncorrectableErrorMask
;
1943 UINT32 UncorrectableErrorSeverity
;
1944 UINT32 CorrectableErrorMask
;
1945 UINT32 AdvancedErrorCapabilitiesAndControl
;
1946 UINT32 SecondaryUncorrectableErrorMask
;
1947 UINT32 SecondaryUncorrectableErrorSeverity
;
1948 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl
;
1949 } EFI_ACPI_6_4_PCI_EXPRESS_BRIDGE_AER_STRUCTURE
;
1952 /// Generic Hardware Error Source Structure Definition
1957 UINT16 RelatedSourceId
;
1960 UINT32 NumberOfRecordsToPreAllocate
;
1961 UINT32 MaxSectionsPerRecord
;
1962 UINT32 MaxRawDataLength
;
1963 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
1964 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1965 UINT32 ErrorStatusBlockLength
;
1966 } EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE
;
1969 /// Generic Hardware Error Source Version 2 Structure Definition
1974 UINT16 RelatedSourceId
;
1977 UINT32 NumberOfRecordsToPreAllocate
;
1978 UINT32 MaxSectionsPerRecord
;
1979 UINT32 MaxRawDataLength
;
1980 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
1981 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1982 UINT32 ErrorStatusBlockLength
;
1983 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ReadAckRegister
;
1984 UINT64 ReadAckPreserve
;
1985 UINT64 ReadAckWrite
;
1986 } EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_SOURCE_VERSION_2_STRUCTURE
;
1989 /// Generic Error Status Definition
1992 EFI_ACPI_6_4_ERROR_BLOCK_STATUS BlockStatus
;
1993 UINT32 RawDataOffset
;
1994 UINT32 RawDataLength
;
1996 UINT32 ErrorSeverity
;
1997 } EFI_ACPI_6_4_GENERIC_ERROR_STATUS_STRUCTURE
;
2000 /// IA-32 Architecture Deferred Machine Check Structure Definition
2008 UINT32 NumberOfRecordsToPreAllocate
;
2009 UINT32 MaxSectionsPerRecord
;
2010 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
2011 UINT8 NumberOfHardwareBanks
;
2013 } EFI_ACPI_6_4_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK_STRUCTURE
;;
2016 /// HMAT - Heterogeneous Memory Attribute Table
2019 EFI_ACPI_DESCRIPTION_HEADER Header
;
2021 } EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_HEADER
;
2024 /// HMAT Revision (as defined in ACPI 6.4 spec.)
2026 #define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION 0x02
2031 #define EFI_ACPI_6_4_HMAT_TYPE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES 0x00
2032 #define EFI_ACPI_6_4_HMAT_TYPE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO 0x01
2033 #define EFI_ACPI_6_4_HMAT_TYPE_MEMORY_SIDE_CACHE_INFO 0x02
2036 /// HMAT Structure Header
2042 } EFI_ACPI_6_4_HMAT_STRUCTURE_HEADER
;
2045 /// Memory Proximity Domain Attributes Structure flags
2048 UINT16 InitiatorProximityDomainValid
:1;
2050 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS
;
2053 /// Memory Proximity Domain Attributes Structure
2059 EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS Flags
;
2061 UINT32 InitiatorProximityDomain
;
2062 UINT32 MemoryProximityDomain
;
2063 UINT8 Reserved2
[20];
2064 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES
;
2067 /// System Locality Latency and Bandwidth Information Structure flags
2070 UINT8 MemoryHierarchy
:4;
2072 } EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS
;
2075 /// System Locality Latency and Bandwidth Information Structure
2081 EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS Flags
;
2084 UINT32 NumberOfInitiatorProximityDomains
;
2085 UINT32 NumberOfTargetProximityDomains
;
2087 UINT64 EntryBaseUnit
;
2088 } EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO
;
2091 /// Memory Side Cache Information Structure cache attributes
2094 UINT32 TotalCacheLevels
:4;
2095 UINT32 CacheLevel
:4;
2096 UINT32 CacheAssociativity
:4;
2097 UINT32 WritePolicy
:4;
2098 UINT32 CacheLineSize
:16;
2099 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES
;
2102 /// Memory Side Cache Information Structure
2108 UINT32 MemoryProximityDomain
;
2110 UINT64 MemorySideCacheSize
;
2111 EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES CacheAttributes
;
2113 UINT16 NumberOfSmbiosHandles
;
2114 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO
;
2117 /// ERST - Error Record Serialization Table
2120 EFI_ACPI_DESCRIPTION_HEADER Header
;
2121 UINT32 SerializationHeaderSize
;
2123 UINT32 InstructionEntryCount
;
2124 } EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_HEADER
;
2127 /// ERST Version (as defined in ACPI 6.4 spec.)
2129 #define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
2132 /// ERST Serialization Actions
2134 #define EFI_ACPI_6_4_ERST_BEGIN_WRITE_OPERATION 0x00
2135 #define EFI_ACPI_6_4_ERST_BEGIN_READ_OPERATION 0x01
2136 #define EFI_ACPI_6_4_ERST_BEGIN_CLEAR_OPERATION 0x02
2137 #define EFI_ACPI_6_4_ERST_END_OPERATION 0x03
2138 #define EFI_ACPI_6_4_ERST_SET_RECORD_OFFSET 0x04
2139 #define EFI_ACPI_6_4_ERST_EXECUTE_OPERATION 0x05
2140 #define EFI_ACPI_6_4_ERST_CHECK_BUSY_STATUS 0x06
2141 #define EFI_ACPI_6_4_ERST_GET_COMMAND_STATUS 0x07
2142 #define EFI_ACPI_6_4_ERST_GET_RECORD_IDENTIFIER 0x08
2143 #define EFI_ACPI_6_4_ERST_SET_RECORD_IDENTIFIER 0x09
2144 #define EFI_ACPI_6_4_ERST_GET_RECORD_COUNT 0x0A
2145 #define EFI_ACPI_6_4_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
2146 #define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
2147 #define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
2148 #define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
2149 #define EFI_ACPI_6_4_ERST_GET_EXECUTE_OPERATION_TIMINGS 0x10
2152 /// ERST Action Command Status
2154 #define EFI_ACPI_6_4_ERST_STATUS_SUCCESS 0x00
2155 #define EFI_ACPI_6_4_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
2156 #define EFI_ACPI_6_4_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
2157 #define EFI_ACPI_6_4_ERST_STATUS_FAILED 0x03
2158 #define EFI_ACPI_6_4_ERST_STATUS_RECORD_STORE_EMPTY 0x04
2159 #define EFI_ACPI_6_4_ERST_STATUS_RECORD_NOT_FOUND 0x05
2162 /// ERST Serialization Instructions
2164 #define EFI_ACPI_6_4_ERST_READ_REGISTER 0x00
2165 #define EFI_ACPI_6_4_ERST_READ_REGISTER_VALUE 0x01
2166 #define EFI_ACPI_6_4_ERST_WRITE_REGISTER 0x02
2167 #define EFI_ACPI_6_4_ERST_WRITE_REGISTER_VALUE 0x03
2168 #define EFI_ACPI_6_4_ERST_NOOP 0x04
2169 #define EFI_ACPI_6_4_ERST_LOAD_VAR1 0x05
2170 #define EFI_ACPI_6_4_ERST_LOAD_VAR2 0x06
2171 #define EFI_ACPI_6_4_ERST_STORE_VAR1 0x07
2172 #define EFI_ACPI_6_4_ERST_ADD 0x08
2173 #define EFI_ACPI_6_4_ERST_SUBTRACT 0x09
2174 #define EFI_ACPI_6_4_ERST_ADD_VALUE 0x0A
2175 #define EFI_ACPI_6_4_ERST_SUBTRACT_VALUE 0x0B
2176 #define EFI_ACPI_6_4_ERST_STALL 0x0C
2177 #define EFI_ACPI_6_4_ERST_STALL_WHILE_TRUE 0x0D
2178 #define EFI_ACPI_6_4_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
2179 #define EFI_ACPI_6_4_ERST_GOTO 0x0F
2180 #define EFI_ACPI_6_4_ERST_SET_SRC_ADDRESS_BASE 0x10
2181 #define EFI_ACPI_6_4_ERST_SET_DST_ADDRESS_BASE 0x11
2182 #define EFI_ACPI_6_4_ERST_MOVE_DATA 0x12
2185 /// ERST Instruction Flags
2187 #define EFI_ACPI_6_4_ERST_PRESERVE_REGISTER 0x01
2190 /// ERST Serialization Instruction Entry
2193 UINT8 SerializationAction
;
2197 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2200 } EFI_ACPI_6_4_ERST_SERIALIZATION_INSTRUCTION_ENTRY
;
2203 /// EINJ - Error Injection Table
2206 EFI_ACPI_DESCRIPTION_HEADER Header
;
2207 UINT32 InjectionHeaderSize
;
2208 UINT8 InjectionFlags
;
2210 UINT32 InjectionEntryCount
;
2211 } EFI_ACPI_6_4_ERROR_INJECTION_TABLE_HEADER
;
2214 /// EINJ Version (as defined in ACPI 6.4 spec.)
2216 #define EFI_ACPI_6_4_ERROR_INJECTION_TABLE_REVISION 0x01
2219 /// EINJ Error Injection Actions
2221 #define EFI_ACPI_6_4_EINJ_BEGIN_INJECTION_OPERATION 0x00
2222 #define EFI_ACPI_6_4_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
2223 #define EFI_ACPI_6_4_EINJ_SET_ERROR_TYPE 0x02
2224 #define EFI_ACPI_6_4_EINJ_GET_ERROR_TYPE 0x03
2225 #define EFI_ACPI_6_4_EINJ_END_OPERATION 0x04
2226 #define EFI_ACPI_6_4_EINJ_EXECUTE_OPERATION 0x05
2227 #define EFI_ACPI_6_4_EINJ_CHECK_BUSY_STATUS 0x06
2228 #define EFI_ACPI_6_4_EINJ_GET_COMMAND_STATUS 0x07
2229 #define EFI_ACPI_6_4_EINJ_TRIGGER_ERROR 0xFF
2232 /// EINJ Action Command Status
2234 #define EFI_ACPI_6_4_EINJ_STATUS_SUCCESS 0x00
2235 #define EFI_ACPI_6_4_EINJ_STATUS_UNKNOWN_FAILURE 0x01
2236 #define EFI_ACPI_6_4_EINJ_STATUS_INVALID_ACCESS 0x02
2239 /// EINJ Error Type Definition
2241 #define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
2242 #define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
2243 #define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
2244 #define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
2245 #define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
2246 #define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
2247 #define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
2248 #define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
2249 #define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
2250 #define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
2251 #define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
2252 #define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
2255 /// EINJ Injection Instructions
2257 #define EFI_ACPI_6_4_EINJ_READ_REGISTER 0x00
2258 #define EFI_ACPI_6_4_EINJ_READ_REGISTER_VALUE 0x01
2259 #define EFI_ACPI_6_4_EINJ_WRITE_REGISTER 0x02
2260 #define EFI_ACPI_6_4_EINJ_WRITE_REGISTER_VALUE 0x03
2261 #define EFI_ACPI_6_4_EINJ_NOOP 0x04
2264 /// EINJ Instruction Flags
2266 #define EFI_ACPI_6_4_EINJ_PRESERVE_REGISTER 0x01
2269 /// EINJ Injection Instruction Entry
2272 UINT8 InjectionAction
;
2276 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2279 } EFI_ACPI_6_4_EINJ_INJECTION_INSTRUCTION_ENTRY
;
2282 /// EINJ Trigger Action Table
2289 } EFI_ACPI_6_4_EINJ_TRIGGER_ACTION_TABLE
;
2292 /// Platform Communications Channel Table (PCCT)
2295 EFI_ACPI_DESCRIPTION_HEADER Header
;
2298 } EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER
;
2301 /// PCCT Version (as defined in ACPI 6.4 spec.)
2303 #define EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x02
2306 /// PCCT Global Flags
2308 #define EFI_ACPI_6_4_PCCT_FLAGS_PLATFORM_INTERRUPT BIT0
2311 // PCCT Subspace type
2313 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_GENERIC 0x00
2314 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS 0x01
2315 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS 0x02
2316 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC 0x03
2317 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC 0x04
2320 /// PCC Subspace Structure Header
2325 } EFI_ACPI_6_4_PCCT_SUBSPACE_HEADER
;
2328 /// Generic Communications Subspace Structure
2335 UINT64 AddressLength
;
2336 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2337 UINT64 DoorbellPreserve
;
2338 UINT64 DoorbellWrite
;
2339 UINT32 NominalLatency
;
2340 UINT32 MaximumPeriodicAccessRate
;
2341 UINT16 MinimumRequestTurnaroundTime
;
2342 } EFI_ACPI_6_4_PCCT_SUBSPACE_GENERIC
;
2345 /// Generic Communications Channel Shared Memory Region
2351 UINT8 NotifyOnCompletion
:1;
2352 } EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND
;
2355 UINT8 CommandComplete
:1;
2356 UINT8 PlatformInterrupt
:1;
2358 UINT8 PlatformNotification
:1;
2361 } EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS
;
2365 EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command
;
2366 EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status
;
2367 } EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER
;
2369 #define EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_POLARITY BIT0
2370 #define EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE BIT1
2373 /// Type 1 HW-Reduced Communications Subspace Structure
2378 UINT32 PlatformInterrupt
;
2379 UINT8 PlatformInterruptFlags
;
2382 UINT64 AddressLength
;
2383 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2384 UINT64 DoorbellPreserve
;
2385 UINT64 DoorbellWrite
;
2386 UINT32 NominalLatency
;
2387 UINT32 MaximumPeriodicAccessRate
;
2388 UINT16 MinimumRequestTurnaroundTime
;
2389 } EFI_ACPI_6_4_PCCT_SUBSPACE_1_HW_REDUCED_COMMUNICATIONS
;
2392 /// Type 2 HW-Reduced Communications Subspace Structure
2397 UINT32 PlatformInterrupt
;
2398 UINT8 PlatformInterruptFlags
;
2401 UINT64 AddressLength
;
2402 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2403 UINT64 DoorbellPreserve
;
2404 UINT64 DoorbellWrite
;
2405 UINT32 NominalLatency
;
2406 UINT32 MaximumPeriodicAccessRate
;
2407 UINT16 MinimumRequestTurnaroundTime
;
2408 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2409 UINT64 PlatformInterruptAckPreserve
;
2410 UINT64 PlatformInterruptAckWrite
;
2411 } EFI_ACPI_6_4_PCCT_SUBSPACE_2_HW_REDUCED_COMMUNICATIONS
;
2414 /// Type 3 Extended PCC Subspace Structure
2419 UINT32 PlatformInterrupt
;
2420 UINT8 PlatformInterruptFlags
;
2423 UINT32 AddressLength
;
2424 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2425 UINT64 DoorbellPreserve
;
2426 UINT64 DoorbellWrite
;
2427 UINT32 NominalLatency
;
2428 UINT32 MaximumPeriodicAccessRate
;
2429 UINT32 MinimumRequestTurnaroundTime
;
2430 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2431 UINT64 PlatformInterruptAckPreserve
;
2432 UINT64 PlatformInterruptAckSet
;
2434 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister
;
2435 UINT64 CommandCompleteCheckMask
;
2436 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteUpdateRegister
;
2437 UINT64 CommandCompleteUpdatePreserve
;
2438 UINT64 CommandCompleteUpdateSet
;
2439 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister
;
2440 UINT64 ErrorStatusMask
;
2441 } EFI_ACPI_6_4_PCCT_SUBSPACE_3_EXTENDED_PCC
;
2444 /// Type 4 Extended PCC Subspace Structure
2446 typedef EFI_ACPI_6_4_PCCT_SUBSPACE_3_EXTENDED_PCC EFI_ACPI_6_4_PCCT_SUBSPACE_4_EXTENDED_PCC
;
2448 #define EFI_ACPI_6_4_PCCT_MASTER_SLAVE_COMMUNICATIONS_CHANNEL_FLAGS_NOTIFY_ON_COMPLETION BIT0
2455 } EFI_ACPI_6_4_PCCT_EXTENDED_PCC_SHARED_MEMORY_REGION_HEADER
;
2458 /// Platform Debug Trigger Table (PDTT)
2461 EFI_ACPI_DESCRIPTION_HEADER Header
;
2464 UINT32 TriggerIdentifierArrayOffset
;
2465 } EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_HEADER
;
2468 /// PDTT Revision (as defined in ACPI 6.4 spec.)
2470 #define EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_REVISION 0x00
2473 /// PDTT Platform Communication Channel Identifier Structure
2476 UINT16 SubChannelIdentifer
:8;
2478 UINT16 WaitForCompletion
:1;
2479 UINT16 TriggerOrder
:1;
2481 } EFI_ACPI_6_4_PDTT_PCC_IDENTIFIER
;
2484 /// PCC Commands Codes used by Platform Debug Trigger Table
2486 #define EFI_ACPI_6_4_PDTT_PCC_COMMAND_DOORBELL_ONLY 0x00
2487 #define EFI_ACPI_6_4_PDTT_PCC_COMMAND_VENDOR_SPECIFIC 0x01
2490 /// PDTT Platform Communication Channel
2492 typedef EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER EFI_ACPI_6_4_PDTT_PCC
;
2495 /// Processor Properties Topology Table (PPTT)
2498 EFI_ACPI_DESCRIPTION_HEADER Header
;
2499 } EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_HEADER
;
2502 /// PPTT Revision (as defined in ACPI 6.4 spec.)
2504 #define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x02
2509 #define EFI_ACPI_6_4_PPTT_TYPE_PROCESSOR 0x00
2510 #define EFI_ACPI_6_4_PPTT_TYPE_CACHE 0x01
2511 #define EFI_ACPI_6_4_PPTT_TYPE_ID 0x02
2514 /// PPTT Structure Header
2520 } EFI_ACPI_6_4_PPTT_STRUCTURE_HEADER
;
2523 /// For PPTT struct processor flags
2525 #define EFI_ACPI_6_4_PPTT_PACKAGE_NOT_PHYSICAL 0x0
2526 #define EFI_ACPI_6_4_PPTT_PACKAGE_PHYSICAL 0x1
2527 #define EFI_ACPI_6_4_PPTT_PROCESSOR_ID_INVALID 0x0
2528 #define EFI_ACPI_6_4_PPTT_PROCESSOR_ID_VALID 0x1
2529 #define EFI_ACPI_6_4_PPTT_PROCESSOR_IS_NOT_THREAD 0x0
2530 #define EFI_ACPI_6_4_PPTT_PROCESSOR_IS_THREAD 0x1
2531 #define EFI_ACPI_6_4_PPTT_NODE_IS_NOT_LEAF 0x0
2532 #define EFI_ACPI_6_4_PPTT_NODE_IS_LEAF 0x1
2533 #define EFI_ACPI_6_4_PPTT_IMPLEMENTATION_NOT_IDENTICAL 0x0
2534 #define EFI_ACPI_6_4_PPTT_IMPLEMENTATION_IDENTICAL 0x1
2537 /// Processor hierarchy node structure flags
2540 UINT32 PhysicalPackage
:1;
2541 UINT32 AcpiProcessorIdValid
:1;
2542 UINT32 ProcessorIsAThread
:1;
2543 UINT32 NodeIsALeaf
:1;
2544 UINT32 IdenticalImplementation
:1;
2546 } EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR_FLAGS
;
2549 /// Processor hierarchy node structure
2555 EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR_FLAGS Flags
;
2557 UINT32 AcpiProcessorId
;
2558 UINT32 NumberOfPrivateResources
;
2559 } EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR
;
2562 /// For PPTT struct cache flags
2564 #define EFI_ACPI_6_4_PPTT_CACHE_SIZE_INVALID 0x0
2565 #define EFI_ACPI_6_4_PPTT_CACHE_SIZE_VALID 0x1
2566 #define EFI_ACPI_6_4_PPTT_NUMBER_OF_SETS_INVALID 0x0
2567 #define EFI_ACPI_6_4_PPTT_NUMBER_OF_SETS_VALID 0x1
2568 #define EFI_ACPI_6_4_PPTT_ASSOCIATIVITY_INVALID 0x0
2569 #define EFI_ACPI_6_4_PPTT_ASSOCIATIVITY_VALID 0x1
2570 #define EFI_ACPI_6_4_PPTT_ALLOCATION_TYPE_INVALID 0x0
2571 #define EFI_ACPI_6_4_PPTT_ALLOCATION_TYPE_VALID 0x1
2572 #define EFI_ACPI_6_4_PPTT_CACHE_TYPE_INVALID 0x0
2573 #define EFI_ACPI_6_4_PPTT_CACHE_TYPE_VALID 0x1
2574 #define EFI_ACPI_6_4_PPTT_WRITE_POLICY_INVALID 0x0
2575 #define EFI_ACPI_6_4_PPTT_WRITE_POLICY_VALID 0x1
2576 #define EFI_ACPI_6_4_PPTT_LINE_SIZE_INVALID 0x0
2577 #define EFI_ACPI_6_4_PPTT_LINE_SIZE_VALID 0x1
2580 /// Cache Type Structure flags
2583 UINT32 SizePropertyValid
:1;
2584 UINT32 NumberOfSetsValid
:1;
2585 UINT32 AssociativityValid
:1;
2586 UINT32 AllocationTypeValid
:1;
2587 UINT32 CacheTypeValid
:1;
2588 UINT32 WritePolicyValid
:1;
2589 UINT32 LineSizeValid
:1;
2591 } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS
;
2594 /// For cache attributes
2596 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0
2597 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1
2598 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2
2599 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0
2600 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1
2601 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2
2602 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0
2603 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1
2606 /// Cache Type Structure cache attributes
2609 UINT8 AllocationType
:2;
2611 UINT8 WritePolicy
:1;
2613 } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_ATTRIBUTES
;
2616 /// Cache Type Structure
2622 EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS Flags
;
2623 UINT32 NextLevelOfCache
;
2625 UINT32 NumberOfSets
;
2626 UINT8 Associativity
;
2627 EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_ATTRIBUTES Attributes
;
2629 } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE
;
2644 } EFI_ACPI_6_4_PPTT_STRUCTURE_ID
;
2647 // Known table signatures
2651 /// "RSD PTR " Root System Description Pointer
2653 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
2656 /// "APIC" Multiple APIC Description Table
2658 #define EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
2661 /// "BERT" Boot Error Record Table
2663 #define EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
2666 /// "BGRT" Boot Graphics Resource Table
2668 #define EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
2671 /// "CDIT" Component Distance Information Table
2673 #define EFI_ACPI_6_4_COMPONENT_DISTANCE_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('C', 'D', 'I', 'T')
2676 /// "CPEP" Corrected Platform Error Polling Table
2678 #define EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
2681 /// "CRAT" Component Resource Attribute Table
2683 #define EFI_ACPI_6_4_COMPONENT_RESOURCE_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('C', 'R', 'A', 'T')
2686 /// "DSDT" Differentiated System Description Table
2688 #define EFI_ACPI_6_4_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
2691 /// "ECDT" Embedded Controller Boot Resources Table
2693 #define EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
2696 /// "EINJ" Error Injection Table
2698 #define EFI_ACPI_6_4_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
2701 /// "ERST" Error Record Serialization Table
2703 #define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
2706 /// "FACP" Fixed ACPI Description Table
2708 #define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
2711 /// "FACS" Firmware ACPI Control Structure
2713 #define EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
2716 /// "FPDT" Firmware Performance Data Table
2718 #define EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
2721 /// "GTDT" Generic Timer Description Table
2723 #define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
2726 /// "HEST" Hardware Error Source Table
2728 #define EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
2731 /// "HMAT" Heterogeneous Memory Attribute Table
2733 #define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('H', 'M', 'A', 'T')
2736 /// "MPST" Memory Power State Table
2738 #define EFI_ACPI_6_4_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
2741 /// "MSCT" Maximum System Characteristics Table
2743 #define EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
2746 /// "NFIT" NVDIMM Firmware Interface Table
2748 #define EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('N', 'F', 'I', 'T')
2751 /// "PDTT" Platform Debug Trigger Table
2753 #define EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'D', 'T', 'T')
2756 /// "PMTT" Platform Memory Topology Table
2758 #define EFI_ACPI_6_4_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
2761 /// "PPTT" Processor Properties Topology Table
2763 #define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'P', 'T', 'T')
2766 /// "PSDT" Persistent System Description Table
2768 #define EFI_ACPI_6_4_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
2771 /// "RASF" ACPI RAS Feature Table
2773 #define EFI_ACPI_6_4_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
2776 /// "RSDT" Root System Description Table
2778 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
2781 /// "SBST" Smart Battery Specification Table
2783 #define EFI_ACPI_6_4_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
2786 /// "SDEV" Secure DEVices Table
2788 #define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'V')
2791 /// "SLIT" System Locality Information Table
2793 #define EFI_ACPI_6_4_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
2796 /// "SRAT" System Resource Affinity Table
2798 #define EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2801 /// "SSDT" Secondary System Description Table
2803 #define EFI_ACPI_6_4_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2806 /// "XSDT" Extended System Description Table
2808 #define EFI_ACPI_6_4_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2811 /// "BOOT" MS Simple Boot Spec
2813 #define EFI_ACPI_6_4_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2816 /// "CSRT" MS Core System Resource Table
2818 #define EFI_ACPI_6_4_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2821 /// "DBG2" MS Debug Port 2 Spec
2823 #define EFI_ACPI_6_4_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2826 /// "DBGP" MS Debug Port Spec
2828 #define EFI_ACPI_6_4_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2831 /// "DMAR" DMA Remapping Table
2833 #define EFI_ACPI_6_4_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2836 /// "DPPT" DMA Protection Policy Table
2838 #define EFI_ACPI_6_4_DMA_PROTECTION_POLICY_TABLE_SIGNATURE SIGNATURE_32('D', 'P', 'P', 'T')
2841 /// "DRTM" Dynamic Root of Trust for Measurement Table
2843 #define EFI_ACPI_6_4_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2846 /// "ETDT" Event Timer Description Table
2848 #define EFI_ACPI_6_4_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2851 /// "HPET" IA-PC High Precision Event Timer Table
2853 #define EFI_ACPI_6_4_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2856 /// "iBFT" iSCSI Boot Firmware Table
2858 #define EFI_ACPI_6_4_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2861 /// "IORT" I/O Remapping Table
2863 #define EFI_ACPI_6_4_IO_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('I', 'O', 'R', 'T')
2866 /// "IVRS" I/O Virtualization Reporting Structure
2868 #define EFI_ACPI_6_4_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2871 /// "LPIT" Low Power Idle Table
2873 #define EFI_ACPI_6_4_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
2876 /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
2878 #define EFI_ACPI_6_4_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2881 /// "MCHI" Management Controller Host Interface Table
2883 #define EFI_ACPI_6_4_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2886 /// "MSDM" MS Data Management Table
2888 #define EFI_ACPI_6_4_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2891 /// "PCCT" Platform Communications Channel Table
2893 #define EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGNATURE_32('P', 'C', 'C', 'T')
2896 /// "SDEI" Software Delegated Exceptions Interface Table
2898 #define EFI_ACPI_6_4_SOFTWARE_DELEGATED_EXCEPTIONS_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'I')
2901 /// "SLIC" MS Software Licensing Table Specification
2903 #define EFI_ACPI_6_4_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2906 /// "SPCR" Serial Port Concole Redirection Table
2908 #define EFI_ACPI_6_4_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2911 /// "SPMI" Server Platform Management Interface Table
2913 #define EFI_ACPI_6_4_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2916 /// "STAO" _STA Override Table
2918 #define EFI_ACPI_6_4_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', 'A', 'O')
2921 /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
2923 #define EFI_ACPI_6_4_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2926 /// "TPM2" Trusted Computing Platform 1 Table
2928 #define EFI_ACPI_6_4_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2931 /// "UEFI" UEFI ACPI Data Table
2933 #define EFI_ACPI_6_4_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2936 /// "WAET" Windows ACPI Emulated Devices Table
2938 #define EFI_ACPI_6_4_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
2941 /// "WDAT" Watchdog Action Table
2943 #define EFI_ACPI_6_4_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2946 /// "WDRT" Watchdog Resource Table
2948 #define EFI_ACPI_6_4_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2951 /// "WPBT" MS Platform Binary Table
2953 #define EFI_ACPI_6_4_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
2956 /// "WSMT" Windows SMM Security Mitigation Table
2958 #define EFI_ACPI_6_4_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE SIGNATURE_32('W', 'S', 'M', 'T')
2961 /// "XENV" Xen Project Table
2963 #define EFI_ACPI_6_4_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', 'N', 'V')