2 ACPI 6.3 definitions from the ACPI Specification Revision 6.3 Jan, 2019.
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 Copyright (c) 2019, ARM Ltd. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
13 #include <IndustryStandard/Acpi62.h>
16 // Ensure proper structure formats
21 /// ACPI 6.3 Generic Address Space definition
25 UINT8 RegisterBitWidth
;
26 UINT8 RegisterBitOffset
;
29 } EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE
;
32 // Generic Address Space Address IDs
34 #define EFI_ACPI_6_3_SYSTEM_MEMORY 0x00
35 #define EFI_ACPI_6_3_SYSTEM_IO 0x01
36 #define EFI_ACPI_6_3_PCI_CONFIGURATION_SPACE 0x02
37 #define EFI_ACPI_6_3_EMBEDDED_CONTROLLER 0x03
38 #define EFI_ACPI_6_3_SMBUS 0x04
39 #define EFI_ACPI_6_3_SYSTEM_CMOS 0x05
40 #define EFI_ACPI_6_3_PCI_BAR_TARGET 0x06
41 #define EFI_ACPI_6_3_IPMI 0x07
42 #define EFI_ACPI_6_3_GENERAL_PURPOSE_IO 0x08
43 #define EFI_ACPI_6_3_GENERIC_SERIAL_BUS 0x09
44 #define EFI_ACPI_6_3_PLATFORM_COMMUNICATION_CHANNEL 0x0A
45 #define EFI_ACPI_6_3_FUNCTIONAL_FIXED_HARDWARE 0x7F
48 // Generic Address Space Access Sizes
50 #define EFI_ACPI_6_3_UNDEFINED 0
51 #define EFI_ACPI_6_3_BYTE 1
52 #define EFI_ACPI_6_3_WORD 2
53 #define EFI_ACPI_6_3_DWORD 3
54 #define EFI_ACPI_6_3_QWORD 4
57 // ACPI 6.3 table structures
61 /// Root System Description Pointer Structure
71 UINT8 ExtendedChecksum
;
73 } EFI_ACPI_6_3_ROOT_SYSTEM_DESCRIPTION_POINTER
;
76 /// RSD_PTR Revision (as defined in ACPI 6.3 spec.)
78 #define EFI_ACPI_6_3_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 6.3) 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_3_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.3 spec.)
98 #define EFI_ACPI_6_3_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.3 spec.)
109 #define EFI_ACPI_6_3_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_3_GENERIC_ADDRESS_STRUCTURE ResetReg
;
158 UINT64 XFirmwareCtrl
;
160 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk
;
161 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk
;
162 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk
;
163 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk
;
164 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk
;
165 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk
;
166 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XGpe0Blk
;
167 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE XGpe1Blk
;
168 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE SleepControlReg
;
169 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE SleepStatusReg
;
170 UINT64 HypervisorVendorIdentity
;
171 } EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE
;
174 /// FADT Version (as defined in ACPI 6.3 spec.)
176 #define EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06
177 #define EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x03
180 // Fixed ACPI Description Table Preferred Power Management Profile
182 #define EFI_ACPI_6_3_PM_PROFILE_UNSPECIFIED 0
183 #define EFI_ACPI_6_3_PM_PROFILE_DESKTOP 1
184 #define EFI_ACPI_6_3_PM_PROFILE_MOBILE 2
185 #define EFI_ACPI_6_3_PM_PROFILE_WORKSTATION 3
186 #define EFI_ACPI_6_3_PM_PROFILE_ENTERPRISE_SERVER 4
187 #define EFI_ACPI_6_3_PM_PROFILE_SOHO_SERVER 5
188 #define EFI_ACPI_6_3_PM_PROFILE_APPLIANCE_PC 6
189 #define EFI_ACPI_6_3_PM_PROFILE_PERFORMANCE_SERVER 7
190 #define EFI_ACPI_6_3_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_3_LEGACY_DEVICES BIT0
197 #define EFI_ACPI_6_3_8042 BIT1
198 #define EFI_ACPI_6_3_VGA_NOT_PRESENT BIT2
199 #define EFI_ACPI_6_3_MSI_NOT_SUPPORTED BIT3
200 #define EFI_ACPI_6_3_PCIE_ASPM_CONTROLS BIT4
201 #define EFI_ACPI_6_3_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_3_ARM_PSCI_COMPLIANT BIT0
208 #define EFI_ACPI_6_3_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_3_WBINVD BIT0
215 #define EFI_ACPI_6_3_WBINVD_FLUSH BIT1
216 #define EFI_ACPI_6_3_PROC_C1 BIT2
217 #define EFI_ACPI_6_3_P_LVL2_UP BIT3
218 #define EFI_ACPI_6_3_PWR_BUTTON BIT4
219 #define EFI_ACPI_6_3_SLP_BUTTON BIT5
220 #define EFI_ACPI_6_3_FIX_RTC BIT6
221 #define EFI_ACPI_6_3_RTC_S4 BIT7
222 #define EFI_ACPI_6_3_TMR_VAL_EXT BIT8
223 #define EFI_ACPI_6_3_DCK_CAP BIT9
224 #define EFI_ACPI_6_3_RESET_REG_SUP BIT10
225 #define EFI_ACPI_6_3_SEALED_CASE BIT11
226 #define EFI_ACPI_6_3_HEADLESS BIT12
227 #define EFI_ACPI_6_3_CPU_SW_SLP BIT13
228 #define EFI_ACPI_6_3_PCI_EXP_WAK BIT14
229 #define EFI_ACPI_6_3_USE_PLATFORM_CLOCK BIT15
230 #define EFI_ACPI_6_3_S4_RTC_STS_VALID BIT16
231 #define EFI_ACPI_6_3_REMOTE_POWER_ON_CAPABLE BIT17
232 #define EFI_ACPI_6_3_FORCE_APIC_CLUSTER_MODEL BIT18
233 #define EFI_ACPI_6_3_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
234 #define EFI_ACPI_6_3_HW_REDUCED_ACPI BIT20
235 #define EFI_ACPI_6_3_LOW_POWER_S0_IDLE_CAPABLE BIT21
238 /// Firmware ACPI Control Structure
243 UINT32 HardwareSignature
;
244 UINT32 FirmwareWakingVector
;
247 UINT64 XFirmwareWakingVector
;
252 } EFI_ACPI_6_3_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
255 /// FACS Version (as defined in ACPI 6.3 spec.)
257 #define EFI_ACPI_6_3_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_3_S4BIOS_F BIT0
264 #define EFI_ACPI_6_3_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_3_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_3_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
280 #define EFI_ACPI_6_3_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_3_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
293 /// MADT Revision (as defined in ACPI 6.3 spec.)
295 #define EFI_ACPI_6_3_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_3_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_3_PROCESSOR_LOCAL_APIC 0x00
309 #define EFI_ACPI_6_3_IO_APIC 0x01
310 #define EFI_ACPI_6_3_INTERRUPT_SOURCE_OVERRIDE 0x02
311 #define EFI_ACPI_6_3_NON_MASKABLE_INTERRUPT_SOURCE 0x03
312 #define EFI_ACPI_6_3_LOCAL_APIC_NMI 0x04
313 #define EFI_ACPI_6_3_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
314 #define EFI_ACPI_6_3_IO_SAPIC 0x06
315 #define EFI_ACPI_6_3_LOCAL_SAPIC 0x07
316 #define EFI_ACPI_6_3_PLATFORM_INTERRUPT_SOURCES 0x08
317 #define EFI_ACPI_6_3_PROCESSOR_LOCAL_X2APIC 0x09
318 #define EFI_ACPI_6_3_LOCAL_X2APIC_NMI 0x0A
319 #define EFI_ACPI_6_3_GIC 0x0B
320 #define EFI_ACPI_6_3_GICD 0x0C
321 #define EFI_ACPI_6_3_GIC_MSI_FRAME 0x0D
322 #define EFI_ACPI_6_3_GICR 0x0E
323 #define EFI_ACPI_6_3_GIC_ITS 0x0F
326 // APIC Structure Definitions
330 /// Processor Local APIC Structure Definition
335 UINT8 AcpiProcessorUid
;
338 } EFI_ACPI_6_3_PROCESSOR_LOCAL_APIC_STRUCTURE
;
341 /// Local APIC Flags. All other bits are reserved and must be 0.
343 #define EFI_ACPI_6_3_LOCAL_APIC_ENABLED BIT0
344 #define EFI_ACPI_6_3_LOCAL_APIC_ONLINE_CAPABLE BIT1
347 /// IO APIC Structure
354 UINT32 IoApicAddress
;
355 UINT32 GlobalSystemInterruptBase
;
356 } EFI_ACPI_6_3_IO_APIC_STRUCTURE
;
359 /// Interrupt Source Override Structure
366 UINT32 GlobalSystemInterrupt
;
368 } EFI_ACPI_6_3_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
371 /// Platform Interrupt Sources Structure Definition
381 UINT32 GlobalSystemInterrupt
;
382 UINT32 PlatformInterruptSourceFlags
;
383 UINT8 CpeiProcessorOverride
;
385 } EFI_ACPI_6_3_PLATFORM_INTERRUPT_APIC_STRUCTURE
;
389 // All other bits are reserved and must be set to 0.
391 #define EFI_ACPI_6_3_POLARITY (3 << 0)
392 #define EFI_ACPI_6_3_TRIGGER_MODE (3 << 2)
395 /// Non-Maskable Interrupt Source Structure
401 UINT32 GlobalSystemInterrupt
;
402 } EFI_ACPI_6_3_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
405 /// Local APIC NMI Structure
410 UINT8 AcpiProcessorUid
;
413 } EFI_ACPI_6_3_LOCAL_APIC_NMI_STRUCTURE
;
416 /// Local APIC Address Override Structure
422 UINT64 LocalApicAddress
;
423 } EFI_ACPI_6_3_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE
;
426 /// IO SAPIC Structure
433 UINT32 GlobalSystemInterruptBase
;
434 UINT64 IoSapicAddress
;
435 } EFI_ACPI_6_3_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_3_PROCESSOR_LOCAL_SAPIC_STRUCTURE
;
453 /// Platform Interrupt Sources Structure
463 UINT32 GlobalSystemInterrupt
;
464 UINT32 PlatformInterruptSourceFlags
;
465 } EFI_ACPI_6_3_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_3_CPEI_PROCESSOR_OVERRIDE BIT0
474 /// Processor Local x2APIC Structure Definition
482 UINT32 AcpiProcessorUid
;
483 } EFI_ACPI_6_3_PROCESSOR_LOCAL_X2APIC_STRUCTURE
;
486 /// Local x2APIC NMI Structure
492 UINT32 AcpiProcessorUid
;
493 UINT8 LocalX2ApicLint
;
495 } EFI_ACPI_6_3_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_3_GIC_STRUCTURE
;
522 /// GIC Flags. All other bits are reserved and must be 0.
524 #define EFI_ACPI_6_3_GIC_ENABLED BIT0
525 #define EFI_ACPI_6_3_PERFORMANCE_INTERRUPT_MODEL BIT1
526 #define EFI_ACPI_6_3_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
529 /// GIC Distributor Structure
536 UINT64 PhysicalBaseAddress
;
537 UINT32 SystemVectorBase
;
540 } EFI_ACPI_6_3_GIC_DISTRIBUTOR_STRUCTURE
;
545 #define EFI_ACPI_6_3_GIC_V1 0x01
546 #define EFI_ACPI_6_3_GIC_V2 0x02
547 #define EFI_ACPI_6_3_GIC_V3 0x03
548 #define EFI_ACPI_6_3_GIC_V4 0x04
551 /// GIC MSI Frame Structure
557 UINT32 GicMsiFrameId
;
558 UINT64 PhysicalBaseAddress
;
562 } EFI_ACPI_6_3_GIC_MSI_FRAME_STRUCTURE
;
565 /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
567 #define EFI_ACPI_6_3_SPI_COUNT_BASE_SELECT BIT0
576 UINT64 DiscoveryRangeBaseAddress
;
577 UINT32 DiscoveryRangeLength
;
578 } EFI_ACPI_6_3_GICR_STRUCTURE
;
581 /// GIC Interrupt Translation Service Structure
588 UINT64 PhysicalBaseAddress
;
590 } EFI_ACPI_6_3_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_3_SMART_BATTERY_DESCRIPTION_TABLE
;
603 /// SBST Version (as defined in ACPI 6.3 spec.)
605 #define EFI_ACPI_6_3_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_3_GENERIC_ADDRESS_STRUCTURE EcControl
;
615 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE EcData
;
618 } EFI_ACPI_6_3_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE
;
621 /// ECDT Version (as defined in ACPI 6.3 spec.)
623 #define EFI_ACPI_6_3_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_3_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER
;
636 /// SRAT Version (as defined in ACPI 6.3 spec.)
638 #define EFI_ACPI_6_3_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
641 // SRAT structure types.
642 // All other values between 0x05 an 0xFF are reserved and
643 // will be ignored by OSPM.
645 #define EFI_ACPI_6_3_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
646 #define EFI_ACPI_6_3_MEMORY_AFFINITY 0x01
647 #define EFI_ACPI_6_3_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
648 #define EFI_ACPI_6_3_GICC_AFFINITY 0x03
649 #define EFI_ACPI_6_3_GIC_ITS_AFFINITY 0x04
652 /// Processor Local APIC/SAPIC Affinity Structure Definition
657 UINT8 ProximityDomain7To0
;
661 UINT8 ProximityDomain31To8
[3];
663 } EFI_ACPI_6_3_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE
;
666 /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
668 #define EFI_ACPI_6_3_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
671 /// Memory Affinity Structure Definition
676 UINT32 ProximityDomain
;
678 UINT32 AddressBaseLow
;
679 UINT32 AddressBaseHigh
;
685 } EFI_ACPI_6_3_MEMORY_AFFINITY_STRUCTURE
;
688 // Memory Flags. All other bits are reserved and must be 0.
690 #define EFI_ACPI_6_3_MEMORY_ENABLED (1 << 0)
691 #define EFI_ACPI_6_3_MEMORY_HOT_PLUGGABLE (1 << 1)
692 #define EFI_ACPI_6_3_MEMORY_NONVOLATILE (1 << 2)
695 /// Processor Local x2APIC Affinity Structure Definition
701 UINT32 ProximityDomain
;
706 } EFI_ACPI_6_3_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE
;
709 /// GICC Affinity Structure Definition
714 UINT32 ProximityDomain
;
715 UINT32 AcpiProcessorUid
;
718 } EFI_ACPI_6_3_GICC_AFFINITY_STRUCTURE
;
721 /// GICC Flags. All other bits are reserved and must be 0.
723 #define EFI_ACPI_6_3_GICC_ENABLED (1 << 0)
726 /// GIC Interrupt Translation Service (ITS) Affinity Structure Definition
731 UINT32 ProximityDomain
;
734 } EFI_ACPI_6_3_GIC_ITS_AFFINITY_STRUCTURE
;
737 /// Device Handle - ACPI
743 } EFI_ACPI_6_3_DEVICE_HANDLE_ACPI
;
746 /// Device Handle - PCI
752 } EFI_ACPI_6_3_DEVICE_HANDLE_PCI
;
755 /// Generic Initiator Affinity Structure
761 UINT8 DeviceHandleType
;
762 UINT32 ProximityDomain
;
765 EFI_ACPI_6_3_DEVICE_HANDLE_ACPI Acpi
;
766 EFI_ACPI_6_3_DEVICE_HANDLE_PCI Pci
;
771 } EFI_ACPI_6_3_GENERIC_INITIATOR_AFFINITY_STRUCTURE
;
774 /// Generic Initiator Affinity Structure Flags. All other bits are reserved
777 #define EFI_ACPI_6_3_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ENABLED (1 << 0)
780 /// System Locality Distance Information Table (SLIT).
781 /// The rest of the table is a matrix.
784 EFI_ACPI_DESCRIPTION_HEADER Header
;
785 UINT64 NumberOfSystemLocalities
;
786 } EFI_ACPI_6_3_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER
;
789 /// SLIT Version (as defined in ACPI 6.3 spec.)
791 #define EFI_ACPI_6_3_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
794 /// Corrected Platform Error Polling Table (CPEP)
797 EFI_ACPI_DESCRIPTION_HEADER Header
;
799 } EFI_ACPI_6_3_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER
;
802 /// CPEP Version (as defined in ACPI 6.3 spec.)
804 #define EFI_ACPI_6_3_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
807 // CPEP processor structure types.
809 #define EFI_ACPI_6_3_CPEP_PROCESSOR_APIC_SAPIC 0x00
812 /// Corrected Platform Error Polling Processor Structure Definition
819 UINT32 PollingInterval
;
820 } EFI_ACPI_6_3_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE
;
823 /// Maximum System Characteristics Table (MSCT)
826 EFI_ACPI_DESCRIPTION_HEADER Header
;
827 UINT32 OffsetProxDomInfo
;
828 UINT32 MaximumNumberOfProximityDomains
;
829 UINT32 MaximumNumberOfClockDomains
;
830 UINT64 MaximumPhysicalAddress
;
831 } EFI_ACPI_6_3_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER
;
834 /// MSCT Version (as defined in ACPI 6.3 spec.)
836 #define EFI_ACPI_6_3_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
839 /// Maximum Proximity Domain Information Structure Definition
844 UINT32 ProximityDomainRangeLow
;
845 UINT32 ProximityDomainRangeHigh
;
846 UINT32 MaximumProcessorCapacity
;
847 UINT64 MaximumMemoryCapacity
;
848 } EFI_ACPI_6_3_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE
;
851 /// ACPI RAS Feature Table definition.
854 EFI_ACPI_DESCRIPTION_HEADER Header
;
855 UINT8 PlatformCommunicationChannelIdentifier
[12];
856 } EFI_ACPI_6_3_RAS_FEATURE_TABLE
;
859 /// RASF Version (as defined in ACPI 6.3 spec.)
861 #define EFI_ACPI_6_3_RAS_FEATURE_TABLE_REVISION 0x01
864 /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
871 UINT8 RASCapabilities
[16];
872 UINT8 SetRASCapabilities
[16];
873 UINT16 NumberOfRASFParameterBlocks
;
874 UINT32 SetRASCapabilitiesStatus
;
875 } EFI_ACPI_6_3_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
878 /// ACPI RASF PCC command code
880 #define EFI_ACPI_6_3_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
883 /// ACPI RASF Platform RAS Capabilities
885 #define EFI_ACPI_6_3_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED BIT0
886 #define EFI_ACPI_6_3_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED_AND_EXPOSED_TO_SOFTWARE BIT1
887 #define EFI_ACPI_6_3_RASF_PLATFORM_RAS_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT2
888 #define EFI_ACPI_6_3_RASF_PLATFORM_RAS_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT3
889 #define EFI_ACPI_6_3_RASF_PLATFORM_RAS_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT4
892 /// ACPI RASF Parameter Block structure for PATROL_SCRUB
898 UINT16 PatrolScrubCommand
;
899 UINT64 RequestedAddressRange
[2];
900 UINT64 ActualAddressRange
[2];
902 UINT8 RequestedSpeed
;
903 } EFI_ACPI_6_3_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE
;
906 /// ACPI RASF Patrol Scrub command
908 #define EFI_ACPI_6_3_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
909 #define EFI_ACPI_6_3_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
910 #define EFI_ACPI_6_3_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
913 /// Memory Power State Table definition.
916 EFI_ACPI_DESCRIPTION_HEADER Header
;
917 UINT8 PlatformCommunicationChannelIdentifier
;
919 // Memory Power Node Structure
920 // Memory Power State Characteristics
921 } EFI_ACPI_6_3_MEMORY_POWER_STATUS_TABLE
;
924 /// MPST Version (as defined in ACPI 6.3 spec.)
926 #define EFI_ACPI_6_3_MEMORY_POWER_STATE_TABLE_REVISION 0x01
929 /// MPST Platform Communication Channel Shared Memory Region definition.
935 UINT32 MemoryPowerCommandRegister
;
936 UINT32 MemoryPowerStatusRegister
;
938 UINT32 MemoryPowerNodeId
;
939 UINT64 MemoryEnergyConsumed
;
940 UINT64 ExpectedAveragePowerComsuned
;
941 } EFI_ACPI_6_3_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
944 /// ACPI MPST PCC command code
946 #define EFI_ACPI_6_3_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
949 /// ACPI MPST Memory Power command
951 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
952 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
953 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
954 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
957 /// MPST Memory Power Node Table
960 UINT8 PowerStateValue
;
961 UINT8 PowerStateInformationIndex
;
962 } EFI_ACPI_6_3_MPST_MEMORY_POWER_STATE
;
967 UINT16 MemoryPowerNodeId
;
970 UINT64 AddressLength
;
971 UINT32 NumberOfPowerStates
;
972 UINT32 NumberOfPhysicalComponents
;
973 //EFI_ACPI_6_3_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
974 //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
975 } EFI_ACPI_6_3_MPST_MEMORY_POWER_STRUCTURE
;
977 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
978 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
979 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
982 UINT16 MemoryPowerNodeCount
;
984 } EFI_ACPI_6_3_MPST_MEMORY_POWER_NODE_TABLE
;
987 /// MPST Memory Power State Characteristics Table
990 UINT8 PowerStateStructureID
;
993 UINT32 AveragePowerConsumedInMPS0
;
994 UINT32 RelativePowerSavingToMPS0
;
995 UINT64 ExitLatencyToMPS0
;
996 } EFI_ACPI_6_3_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE
;
998 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
999 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
1000 #define EFI_ACPI_6_3_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
1003 UINT16 MemoryPowerStateCharacteristicsCount
;
1005 } EFI_ACPI_6_3_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE
;
1008 /// Memory Topology Table definition.
1011 EFI_ACPI_DESCRIPTION_HEADER Header
;
1013 } EFI_ACPI_6_3_MEMORY_TOPOLOGY_TABLE
;
1016 /// PMTT Version (as defined in ACPI 6.3 spec.)
1018 #define EFI_ACPI_6_3_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
1021 /// Common Memory Aggregator Device Structure.
1029 } EFI_ACPI_6_3_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1032 /// Memory Aggregator Device Type
1034 #define EFI_ACPI_6_3_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x1
1035 #define EFI_ACPI_6_3_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
1036 #define EFI_ACPI_6_3_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x3
1039 /// Socket Memory Aggregator Device Structure.
1042 EFI_ACPI_6_3_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1043 UINT16 SocketIdentifier
;
1045 //EFI_ACPI_6_3_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
1046 } EFI_ACPI_6_3_PMMT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1049 /// MemoryController Memory Aggregator Device Structure.
1052 EFI_ACPI_6_3_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1054 UINT32 WriteLatency
;
1055 UINT32 ReadBandwidth
;
1056 UINT32 WriteBandwidth
;
1057 UINT16 OptimalAccessUnit
;
1058 UINT16 OptimalAccessAlignment
;
1060 UINT16 NumberOfProximityDomains
;
1061 //UINT32 ProximityDomain[NumberOfProximityDomains];
1062 //EFI_ACPI_6_3_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
1063 } EFI_ACPI_6_3_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1066 /// DIMM Memory Aggregator Device Structure.
1069 EFI_ACPI_6_3_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1070 UINT16 PhysicalComponentIdentifier
;
1073 UINT32 SmbiosHandle
;
1074 } EFI_ACPI_6_3_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1077 /// Boot Graphics Resource Table definition.
1080 EFI_ACPI_DESCRIPTION_HEADER Header
;
1082 /// 2-bytes (16 bit) version ID. This value must be 1.
1086 /// 1-byte status field indicating current status about the table.
1087 /// Bits[7:1] = Reserved (must be zero)
1088 /// Bit [0] = Valid. A one indicates the boot image graphic is valid.
1092 /// 1-byte enumerated type field indicating format of the image.
1094 /// 1 - 255 Reserved (for future use)
1098 /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
1099 /// of the image bitmap.
1101 UINT64 ImageAddress
;
1103 /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
1104 /// (X, Y) display offset of the top left corner of the boot image.
1105 /// The top left corner of the display is at offset (0, 0).
1107 UINT32 ImageOffsetX
;
1109 /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
1110 /// (X, Y) display offset of the top left corner of the boot image.
1111 /// The top left corner of the display is at offset (0, 0).
1113 UINT32 ImageOffsetY
;
1114 } EFI_ACPI_6_3_BOOT_GRAPHICS_RESOURCE_TABLE
;
1119 #define EFI_ACPI_6_3_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1124 #define EFI_ACPI_6_3_BGRT_VERSION 0x01
1129 #define EFI_ACPI_6_3_BGRT_STATUS_NOT_DISPLAYED 0x00
1130 #define EFI_ACPI_6_3_BGRT_STATUS_DISPLAYED 0x01
1135 #define EFI_ACPI_6_3_BGRT_IMAGE_TYPE_BMP 0x00
1138 /// FPDT Version (as defined in ACPI 6.3 spec.)
1140 #define EFI_ACPI_6_3_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1143 /// FPDT Performance Record Types
1145 #define EFI_ACPI_6_3_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1146 #define EFI_ACPI_6_3_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1149 /// FPDT Performance Record Revision
1151 #define EFI_ACPI_6_3_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1152 #define EFI_ACPI_6_3_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1155 /// FPDT Runtime Performance Record Types
1157 #define EFI_ACPI_6_3_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1158 #define EFI_ACPI_6_3_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1159 #define EFI_ACPI_6_3_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1162 /// FPDT Runtime Performance Record Revision
1164 #define EFI_ACPI_6_3_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1165 #define EFI_ACPI_6_3_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1166 #define EFI_ACPI_6_3_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1169 /// FPDT Performance Record header
1175 } EFI_ACPI_6_3_FPDT_PERFORMANCE_RECORD_HEADER
;
1178 /// FPDT Performance Table header
1183 } EFI_ACPI_6_3_FPDT_PERFORMANCE_TABLE_HEADER
;
1186 /// FPDT Firmware Basic Boot Performance Pointer Record Structure
1189 EFI_ACPI_6_3_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1192 /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
1194 UINT64 BootPerformanceTablePointer
;
1195 } EFI_ACPI_6_3_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD
;
1198 /// FPDT S3 Performance Table Pointer Record Structure
1201 EFI_ACPI_6_3_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1204 /// 64-bit processor-relative physical address of the S3 Performance Table.
1206 UINT64 S3PerformanceTablePointer
;
1207 } EFI_ACPI_6_3_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD
;
1210 /// FPDT Firmware Basic Boot Performance Record Structure
1213 EFI_ACPI_6_3_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1216 /// Timer value logged at the beginning of firmware image execution.
1217 /// This may not always be zero or near zero.
1221 /// Timer value logged just prior to loading the OS boot loader into memory.
1222 /// For non-UEFI compatible boots, this field must be zero.
1224 UINT64 OsLoaderLoadImageStart
;
1226 /// Timer value logged just prior to launching the previously loaded OS boot loader image.
1227 /// For non-UEFI compatible boots, the timer value logged will be just prior
1228 /// to the INT 19h handler invocation.
1230 UINT64 OsLoaderStartImageStart
;
1232 /// Timer value logged at the point when the OS loader calls the
1233 /// ExitBootServices function for UEFI compatible firmware.
1234 /// For non-UEFI compatible boots, this field must be zero.
1236 UINT64 ExitBootServicesEntry
;
1238 /// Timer value logged at the point just prior towhen the OS loader gaining
1239 /// control back from calls the ExitBootServices function for UEFI compatible firmware.
1240 /// For non-UEFI compatible boots, this field must be zero.
1242 UINT64 ExitBootServicesExit
;
1243 } EFI_ACPI_6_3_FPDT_FIRMWARE_BASIC_BOOT_RECORD
;
1246 /// FPDT Firmware Basic Boot Performance Table signature
1248 #define EFI_ACPI_6_3_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1251 // FPDT Firmware Basic Boot Performance Table
1254 EFI_ACPI_6_3_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1256 // one or more Performance Records.
1258 } EFI_ACPI_6_3_FPDT_FIRMWARE_BASIC_BOOT_TABLE
;
1261 /// FPDT "S3PT" S3 Performance Table
1263 #define EFI_ACPI_6_3_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1266 // FPDT Firmware S3 Boot Performance Table
1269 EFI_ACPI_6_3_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1271 // one or more Performance Records.
1273 } EFI_ACPI_6_3_FPDT_FIRMWARE_S3_BOOT_TABLE
;
1276 /// FPDT Basic S3 Resume Performance Record
1279 EFI_ACPI_6_3_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1281 /// A count of the number of S3 resume cycles since the last full boot sequence.
1285 /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
1286 /// OS waking vector. Only the most recent resume cycle's time is retained.
1290 /// Average timer value of all resume cycles logged since the last full boot
1291 /// sequence, including the most recent resume. Note that the entire log of
1292 /// timer values does not need to be retained in order to calculate this average.
1294 UINT64 AverageResume
;
1295 } EFI_ACPI_6_3_FPDT_S3_RESUME_RECORD
;
1298 /// FPDT Basic S3 Suspend Performance Record
1301 EFI_ACPI_6_3_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1303 /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
1304 /// Only the most recent suspend cycle's timer value is retained.
1306 UINT64 SuspendStart
;
1308 /// Timer value recorded at the final firmware write to SLP_TYP (or other
1309 /// mechanism) used to trigger hardware entry to S3.
1310 /// Only the most recent suspend cycle's timer value is retained.
1313 } EFI_ACPI_6_3_FPDT_S3_SUSPEND_RECORD
;
1316 /// Firmware Performance Record Table definition.
1319 EFI_ACPI_DESCRIPTION_HEADER Header
;
1320 } EFI_ACPI_6_3_FIRMWARE_PERFORMANCE_RECORD_TABLE
;
1323 /// Generic Timer Description Table definition.
1326 EFI_ACPI_DESCRIPTION_HEADER Header
;
1327 UINT64 CntControlBasePhysicalAddress
;
1329 UINT32 SecurePL1TimerGSIV
;
1330 UINT32 SecurePL1TimerFlags
;
1331 UINT32 NonSecurePL1TimerGSIV
;
1332 UINT32 NonSecurePL1TimerFlags
;
1333 UINT32 VirtualTimerGSIV
;
1334 UINT32 VirtualTimerFlags
;
1335 UINT32 NonSecurePL2TimerGSIV
;
1336 UINT32 NonSecurePL2TimerFlags
;
1337 UINT64 CntReadBasePhysicalAddress
;
1338 UINT32 PlatformTimerCount
;
1339 UINT32 PlatformTimerOffset
;
1340 UINT32 VirtualPL2TimerGSIV
;
1341 UINT32 VirtualPL2TimerFlags
;
1342 } EFI_ACPI_6_3_GENERIC_TIMER_DESCRIPTION_TABLE
;
1345 /// GTDT Version (as defined in ACPI 6.3 spec.)
1347 #define EFI_ACPI_6_3_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x03
1350 /// Timer Flags. All other bits are reserved and must be 0.
1352 #define EFI_ACPI_6_3_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1353 #define EFI_ACPI_6_3_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1354 #define EFI_ACPI_6_3_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
1357 /// Platform Timer Type
1359 #define EFI_ACPI_6_3_GTDT_GT_BLOCK 0
1360 #define EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG 1
1363 /// GT Block Structure
1370 UINT32 GTBlockTimerCount
;
1371 UINT32 GTBlockTimerOffset
;
1372 } EFI_ACPI_6_3_GTDT_GT_BLOCK_STRUCTURE
;
1375 /// GT Block Timer Structure
1378 UINT8 GTFrameNumber
;
1382 UINT32 GTxPhysicalTimerGSIV
;
1383 UINT32 GTxPhysicalTimerFlags
;
1384 UINT32 GTxVirtualTimerGSIV
;
1385 UINT32 GTxVirtualTimerFlags
;
1386 UINT32 GTxCommonFlags
;
1387 } EFI_ACPI_6_3_GTDT_GT_BLOCK_TIMER_STRUCTURE
;
1390 /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
1392 #define EFI_ACPI_6_3_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1393 #define EFI_ACPI_6_3_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1396 /// Common Flags Flags. All other bits are reserved and must be 0.
1398 #define EFI_ACPI_6_3_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
1399 #define EFI_ACPI_6_3_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
1402 /// SBSA Generic Watchdog Structure
1408 UINT64 RefreshFramePhysicalAddress
;
1409 UINT64 WatchdogControlFramePhysicalAddress
;
1410 UINT32 WatchdogTimerGSIV
;
1411 UINT32 WatchdogTimerFlags
;
1412 } EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE
;
1415 /// SBSA Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
1417 #define EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
1418 #define EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1419 #define EFI_ACPI_6_3_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
1422 // NVDIMM Firmware Interface Table definition.
1425 EFI_ACPI_DESCRIPTION_HEADER Header
;
1427 } EFI_ACPI_6_3_NVDIMM_FIRMWARE_INTERFACE_TABLE
;
1430 // NFIT Version (as defined in ACPI 6.3 spec.)
1432 #define EFI_ACPI_6_3_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1
1435 // Definition for NFIT Table Structure Types
1437 #define EFI_ACPI_6_3_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE 0
1438 #define EFI_ACPI_6_3_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE_TYPE 1
1439 #define EFI_ACPI_6_3_NFIT_INTERLEAVE_STRUCTURE_TYPE 2
1440 #define EFI_ACPI_6_3_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE 3
1441 #define EFI_ACPI_6_3_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE 4
1442 #define EFI_ACPI_6_3_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE 5
1443 #define EFI_ACPI_6_3_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE 6
1446 // Definition for NFIT Structure Header
1451 } EFI_ACPI_6_3_NFIT_STRUCTURE_HEADER
;
1454 // Definition for System Physical Address Range Structure
1456 #define EFI_ACPI_6_3_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGION_FOR_MANAGEMENT BIT0
1457 #define EFI_ACPI_6_3_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DOMAIN_VALID BIT1
1458 #define EFI_ACPI_6_3_NFIT_GUID_VOLATILE_MEMORY_REGION { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52, 0xE5, 0xD0 }}
1459 #define EFI_ACPI_6_3_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7, 0x8C, 0xDB }}
1460 #define EFI_ACPI_6_3_NFIT_GUID_NVDIMM_CONTROL_REGION { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8, 0x23, 0x4C }}
1461 #define EFI_ACPI_6_3_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION { 0x91AF0530, 0x5D86, 0x470E, { 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40, 0x82, 0x49 }}
1462 #define EFI_ACPI_6_3_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE { 0x77AB535A, 0x45FC, 0x624B, { 0x55, 0x60, 0xF7, 0xB2, 0x81, 0xD1, 0xF9, 0x6E }}
1463 #define EFI_ACPI_6_3_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE { 0x3D5ABD30, 0x4175, 0x87CE, { 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23, 0xC4, 0xBB }}
1464 #define EFI_ACPI_6_3_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, { 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0, 0x96, 0xF9 }}
1465 #define EFI_ACPI_6_3_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT { 0x08018188, 0x42CD, 0xBB48, { 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D, 0xED, 0x3D }}
1469 UINT16 SPARangeStructureIndex
;
1472 UINT32 ProximityDomain
;
1473 GUID AddressRangeTypeGUID
;
1474 UINT64 SystemPhysicalAddressRangeBase
;
1475 UINT64 SystemPhysicalAddressRangeLength
;
1476 UINT64 AddressRangeMemoryMappingAttribute
;
1477 } EFI_ACPI_6_3_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE
;
1480 // Definition for Memory Device to System Physical Address Range Mapping Structure
1483 UINT32 DIMMNumber
:4;
1484 UINT32 MemoryChannelNumber
:4;
1485 UINT32 MemoryControllerID
:4;
1487 UINT32 NodeControllerID
:12;
1488 UINT32 Reserved_28
:4;
1489 } EFI_ACPI_6_3_NFIT_DEVICE_HANDLE
;
1491 #define EFI_ACPI_6_3_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL BIT0
1492 #define EFI_ACPI_6_3_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL BIT1
1493 #define EFI_ACPI_6_3_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL BIT2
1494 #define EFI_ACPI_6_3_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSPM_HAND_OFF BIT3
1495 #define EFI_ACPI_6_3_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PRIOR_OSPM_HAND_OFF BIT4
1496 #define EFI_ACPI_6_3_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NOTIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5
1497 #define EFI_ACPI_6_3_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_NOT_MAP_NVDIMM_TO_SPA BIT6
1501 EFI_ACPI_6_3_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1502 UINT16 NVDIMMPhysicalID
;
1503 UINT16 NVDIMMRegionID
;
1504 UINT16 SPARangeStructureIndex
;
1505 UINT16 NVDIMMControlRegionStructureIndex
;
1506 UINT64 NVDIMMRegionSize
;
1507 UINT64 RegionOffset
;
1508 UINT64 NVDIMMPhysicalAddressRegionBase
;
1509 UINT16 InterleaveStructureIndex
;
1510 UINT16 InterleaveWays
;
1511 UINT16 NVDIMMStateFlags
;
1513 } EFI_ACPI_6_3_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE
;
1516 // Definition for Interleave Structure
1521 UINT16 InterleaveStructureIndex
;
1523 UINT32 NumberOfLines
;
1525 //UINT32 LineOffset[NumberOfLines];
1526 } EFI_ACPI_6_3_NFIT_INTERLEAVE_STRUCTURE
;
1529 // Definition for SMBIOS Management Information Structure
1536 } EFI_ACPI_6_3_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE
;
1539 // Definition for NVDIMM Control Region Structure
1541 #define EFI_ACPI_6_3_NFIT_NVDIMM_CONTROL_REGION_VALID_FIELDS_MANUFACTURING BIT0
1543 #define EFI_ACPI_6_3_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_BUFFERED BIT0
1547 UINT16 NVDIMMControlRegionStructureIndex
;
1551 UINT16 SubsystemVendorID
;
1552 UINT16 SubsystemDeviceID
;
1553 UINT16 SubsystemRevisionID
;
1555 UINT8 ManufacturingLocation
;
1556 UINT16 ManufacturingDate
;
1557 UINT8 Reserved_22
[2];
1558 UINT32 SerialNumber
;
1559 UINT16 RegionFormatInterfaceCode
;
1560 UINT16 NumberOfBlockControlWindows
;
1561 UINT64 SizeOfBlockControlWindow
;
1562 UINT64 CommandRegisterOffsetInBlockControlWindow
;
1563 UINT64 SizeOfCommandRegisterInBlockControlWindows
;
1564 UINT64 StatusRegisterOffsetInBlockControlWindow
;
1565 UINT64 SizeOfStatusRegisterInBlockControlWindows
;
1566 UINT16 NVDIMMControlRegionFlag
;
1567 UINT8 Reserved_74
[6];
1568 } EFI_ACPI_6_3_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE
;
1571 // Definition for NVDIMM Block Data Window Region Structure
1576 UINT16 NVDIMMControlRegionStructureIndex
;
1577 UINT16 NumberOfBlockDataWindows
;
1578 UINT64 BlockDataWindowStartOffset
;
1579 UINT64 SizeOfBlockDataWindow
;
1580 UINT64 BlockAccessibleMemoryCapacity
;
1581 UINT64 BeginningAddressOfFirstBlockInBlockAccessibleMemory
;
1582 } EFI_ACPI_6_3_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE
;
1585 // Definition for Flush Hint Address Structure
1590 EFI_ACPI_6_3_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1591 UINT16 NumberOfFlushHintAddresses
;
1592 UINT8 Reserved_10
[6];
1593 //UINT64 FlushHintAddress[NumberOfFlushHintAddresses];
1594 } EFI_ACPI_6_3_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE
;
1597 /// Secure DEVices Table (SDEV)
1600 EFI_ACPI_DESCRIPTION_HEADER Header
;
1601 } EFI_ACPI_6_3_SECURE_DEVICES_TABLE_HEADER
;
1604 /// SDEV Revision (as defined in ACPI 6.3 spec.)
1606 #define EFI_ACPI_6_3_SECURE_DEVICES_TABLE_REVISION 0x01
1609 /// Secure Devcice types
1611 #define EFI_ACPI_6_3_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01
1612 #define EFI_ACPI_6_3_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00
1615 /// Secure Devcice flags
1617 #define EFI_ACPI_6_3_SDEV_FLAG_ALLOW_HANDOFF BIT0
1620 /// SDEV Structure Header
1626 } EFI_ACPI_6_3_SDEV_STRUCTURE_HEADER
;
1629 /// PCIe Endpoint Device based Secure Device Structure
1635 UINT16 PciSegmentNumber
;
1636 UINT16 StartBusNumber
;
1637 UINT16 PciPathOffset
;
1638 UINT16 PciPathLength
;
1639 UINT16 VendorSpecificDataOffset
;
1640 UINT16 VendorSpecificDataLength
;
1641 } EFI_ACPI_6_3_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE
;
1644 /// ACPI_NAMESPACE_DEVICE based Secure Device Structure
1650 UINT16 DeviceIdentifierOffset
;
1651 UINT16 DeviceIdentifierLength
;
1652 UINT16 VendorSpecificDataOffset
;
1653 UINT16 VendorSpecificDataLength
;
1654 } EFI_ACPI_6_3_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE
;
1657 /// Boot Error Record Table (BERT)
1660 EFI_ACPI_DESCRIPTION_HEADER Header
;
1661 UINT32 BootErrorRegionLength
;
1662 UINT64 BootErrorRegion
;
1663 } EFI_ACPI_6_3_BOOT_ERROR_RECORD_TABLE_HEADER
;
1666 /// BERT Version (as defined in ACPI 6.3 spec.)
1668 #define EFI_ACPI_6_3_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1671 /// Boot Error Region Block Status Definition
1674 UINT32 UncorrectableErrorValid
:1;
1675 UINT32 CorrectableErrorValid
:1;
1676 UINT32 MultipleUncorrectableErrors
:1;
1677 UINT32 MultipleCorrectableErrors
:1;
1678 UINT32 ErrorDataEntryCount
:10;
1680 } EFI_ACPI_6_3_ERROR_BLOCK_STATUS
;
1683 /// Boot Error Region Definition
1686 EFI_ACPI_6_3_ERROR_BLOCK_STATUS BlockStatus
;
1687 UINT32 RawDataOffset
;
1688 UINT32 RawDataLength
;
1690 UINT32 ErrorSeverity
;
1691 } EFI_ACPI_6_3_BOOT_ERROR_REGION_STRUCTURE
;
1694 // Boot Error Severity types
1696 #define EFI_ACPI_6_3_ERROR_SEVERITY_CORRECTABLE 0x00
1697 #define EFI_ACPI_6_3_ERROR_SEVERITY_FATAL 0x01
1698 #define EFI_ACPI_6_3_ERROR_SEVERITY_CORRECTED 0x02
1699 #define EFI_ACPI_6_3_ERROR_SEVERITY_NONE 0x03
1702 /// Generic Error Data Entry Definition
1705 UINT8 SectionType
[16];
1706 UINT32 ErrorSeverity
;
1708 UINT8 ValidationBits
;
1710 UINT32 ErrorDataLength
;
1714 } EFI_ACPI_6_3_GENERIC_ERROR_DATA_ENTRY_STRUCTURE
;
1717 /// Generic Error Data Entry Version (as defined in ACPI 6.3 spec.)
1719 #define EFI_ACPI_6_3_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0300
1722 /// HEST - Hardware Error Source Table
1725 EFI_ACPI_DESCRIPTION_HEADER Header
;
1726 UINT32 ErrorSourceCount
;
1727 } EFI_ACPI_6_3_HARDWARE_ERROR_SOURCE_TABLE_HEADER
;
1730 /// HEST Version (as defined in ACPI 6.3 spec.)
1732 #define EFI_ACPI_6_3_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1735 // Error Source structure types.
1737 #define EFI_ACPI_6_3_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1738 #define EFI_ACPI_6_3_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1739 #define EFI_ACPI_6_3_IA32_ARCHITECTURE_NMI_ERROR 0x02
1740 #define EFI_ACPI_6_3_PCI_EXPRESS_ROOT_PORT_AER 0x06
1741 #define EFI_ACPI_6_3_PCI_EXPRESS_DEVICE_AER 0x07
1742 #define EFI_ACPI_6_3_PCI_EXPRESS_BRIDGE_AER 0x08
1743 #define EFI_ACPI_6_3_GENERIC_HARDWARE_ERROR 0x09
1744 #define EFI_ACPI_6_3_GENERIC_HARDWARE_ERROR_VERSION_2 0x0A
1745 #define EFI_ACPI_6_3_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK 0x0B
1748 // Error Source structure flags.
1750 #define EFI_ACPI_6_3_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1751 #define EFI_ACPI_6_3_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1752 #define EFI_ACPI_6_3_ERROR_SOURCE_FLAG_GHES_ASSIST (1 << 2)
1755 /// IA-32 Architecture Machine Check Exception Structure Definition
1763 UINT32 NumberOfRecordsToPreAllocate
;
1764 UINT32 MaxSectionsPerRecord
;
1765 UINT64 GlobalCapabilityInitData
;
1766 UINT64 GlobalControlInitData
;
1767 UINT8 NumberOfHardwareBanks
;
1769 } EFI_ACPI_6_3_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE
;
1772 /// IA-32 Architecture Machine Check Bank Structure Definition
1776 UINT8 ClearStatusOnInitialization
;
1777 UINT8 StatusDataFormat
;
1779 UINT32 ControlRegisterMsrAddress
;
1780 UINT64 ControlInitData
;
1781 UINT32 StatusRegisterMsrAddress
;
1782 UINT32 AddressRegisterMsrAddress
;
1783 UINT32 MiscRegisterMsrAddress
;
1784 } EFI_ACPI_6_3_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE
;
1787 /// IA-32 Architecture Machine Check Bank Structure MCA data format
1789 #define EFI_ACPI_6_3_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1790 #define EFI_ACPI_6_3_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1791 #define EFI_ACPI_6_3_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1794 // Hardware Error Notification types. All other values are reserved
1796 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1797 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1798 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1799 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1800 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1801 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_CMCI 0x05
1802 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_MCE 0x06
1803 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_GPIO_SIGNAL 0x07
1804 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEA 0x08
1805 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEI 0x09
1806 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_GSIV 0x0A
1807 #define EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_SOFTWARE_DELEGATED_EXCEPTION 0x0B
1810 /// Hardware Error Notification Configuration Write Enable Structure Definition
1814 UINT16 PollInterval
:1;
1815 UINT16 SwitchToPollingThresholdValue
:1;
1816 UINT16 SwitchToPollingThresholdWindow
:1;
1817 UINT16 ErrorThresholdValue
:1;
1818 UINT16 ErrorThresholdWindow
:1;
1820 } EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE
;
1823 /// Hardware Error Notification Structure Definition
1828 EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable
;
1829 UINT32 PollInterval
;
1831 UINT32 SwitchToPollingThresholdValue
;
1832 UINT32 SwitchToPollingThresholdWindow
;
1833 UINT32 ErrorThresholdValue
;
1834 UINT32 ErrorThresholdWindow
;
1835 } EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_STRUCTURE
;
1838 /// IA-32 Architecture Corrected Machine Check Structure Definition
1846 UINT32 NumberOfRecordsToPreAllocate
;
1847 UINT32 MaxSectionsPerRecord
;
1848 EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1849 UINT8 NumberOfHardwareBanks
;
1851 } EFI_ACPI_6_3_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE
;
1854 /// IA-32 Architecture NMI Error Structure Definition
1860 UINT32 NumberOfRecordsToPreAllocate
;
1861 UINT32 MaxSectionsPerRecord
;
1862 UINT32 MaxRawDataLength
;
1863 } EFI_ACPI_6_3_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE
;
1866 /// PCI Express Root Port AER Structure Definition
1874 UINT32 NumberOfRecordsToPreAllocate
;
1875 UINT32 MaxSectionsPerRecord
;
1879 UINT16 DeviceControl
;
1881 UINT32 UncorrectableErrorMask
;
1882 UINT32 UncorrectableErrorSeverity
;
1883 UINT32 CorrectableErrorMask
;
1884 UINT32 AdvancedErrorCapabilitiesAndControl
;
1885 UINT32 RootErrorCommand
;
1886 } EFI_ACPI_6_3_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE
;
1889 /// PCI Express Device AER Structure Definition
1897 UINT32 NumberOfRecordsToPreAllocate
;
1898 UINT32 MaxSectionsPerRecord
;
1902 UINT16 DeviceControl
;
1904 UINT32 UncorrectableErrorMask
;
1905 UINT32 UncorrectableErrorSeverity
;
1906 UINT32 CorrectableErrorMask
;
1907 UINT32 AdvancedErrorCapabilitiesAndControl
;
1908 } EFI_ACPI_6_3_PCI_EXPRESS_DEVICE_AER_STRUCTURE
;
1911 /// PCI Express Bridge AER Structure Definition
1919 UINT32 NumberOfRecordsToPreAllocate
;
1920 UINT32 MaxSectionsPerRecord
;
1924 UINT16 DeviceControl
;
1926 UINT32 UncorrectableErrorMask
;
1927 UINT32 UncorrectableErrorSeverity
;
1928 UINT32 CorrectableErrorMask
;
1929 UINT32 AdvancedErrorCapabilitiesAndControl
;
1930 UINT32 SecondaryUncorrectableErrorMask
;
1931 UINT32 SecondaryUncorrectableErrorSeverity
;
1932 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl
;
1933 } EFI_ACPI_6_3_PCI_EXPRESS_BRIDGE_AER_STRUCTURE
;
1936 /// Generic Hardware Error Source Structure Definition
1941 UINT16 RelatedSourceId
;
1944 UINT32 NumberOfRecordsToPreAllocate
;
1945 UINT32 MaxSectionsPerRecord
;
1946 UINT32 MaxRawDataLength
;
1947 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
1948 EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1949 UINT32 ErrorStatusBlockLength
;
1950 } EFI_ACPI_6_3_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE
;
1953 /// Generic Hardware Error Source Version 2 Structure Definition
1958 UINT16 RelatedSourceId
;
1961 UINT32 NumberOfRecordsToPreAllocate
;
1962 UINT32 MaxSectionsPerRecord
;
1963 UINT32 MaxRawDataLength
;
1964 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
1965 EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1966 UINT32 ErrorStatusBlockLength
;
1967 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE ReadAckRegister
;
1968 UINT64 ReadAckPreserve
;
1969 UINT64 ReadAckWrite
;
1970 } EFI_ACPI_6_3_GENERIC_HARDWARE_ERROR_SOURCE_VERSION_2_STRUCTURE
;
1973 /// Generic Error Status Definition
1976 EFI_ACPI_6_3_ERROR_BLOCK_STATUS BlockStatus
;
1977 UINT32 RawDataOffset
;
1978 UINT32 RawDataLength
;
1980 UINT32 ErrorSeverity
;
1981 } EFI_ACPI_6_3_GENERIC_ERROR_STATUS_STRUCTURE
;
1984 /// IA-32 Architecture Deferred Machine Check Structure Definition
1992 UINT32 NumberOfRecordsToPreAllocate
;
1993 UINT32 MaxSectionsPerRecord
;
1994 EFI_ACPI_6_3_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1995 UINT8 NumberOfHardwareBanks
;
1997 } EFI_ACPI_6_3_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK_STRUCTURE
;;
2000 /// HMAT - Heterogeneous Memory Attribute Table
2003 EFI_ACPI_DESCRIPTION_HEADER Header
;
2005 } EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_HEADER
;
2008 /// HMAT Revision (as defined in ACPI 6.3 spec.)
2010 #define EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION 0x02
2015 #define EFI_ACPI_6_3_HMAT_TYPE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES 0x00
2016 #define EFI_ACPI_6_3_HMAT_TYPE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO 0x01
2017 #define EFI_ACPI_6_3_HMAT_TYPE_MEMORY_SIDE_CACHE_INFO 0x02
2020 /// HMAT Structure Header
2026 } EFI_ACPI_6_3_HMAT_STRUCTURE_HEADER
;
2029 /// Memory Proximity Domain Attributes Structure flags
2032 UINT16 InitiatorProximityDomainValid
:1;
2034 } EFI_ACPI_6_3_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS
;
2037 /// Memory Proximity Domain Attributes Structure
2043 EFI_ACPI_6_3_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS Flags
;
2045 UINT32 InitiatorProximityDomain
;
2046 UINT32 MemoryProximityDomain
;
2047 UINT8 Reserved2
[20];
2048 } EFI_ACPI_6_3_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES
;
2051 /// System Locality Latency and Bandwidth Information Structure flags
2054 UINT8 MemoryHierarchy
:4;
2056 } EFI_ACPI_6_3_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS
;
2059 /// System Locality Latency and Bandwidth Information Structure
2065 EFI_ACPI_6_3_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS Flags
;
2068 UINT32 NumberOfInitiatorProximityDomains
;
2069 UINT32 NumberOfTargetProximityDomains
;
2071 UINT64 EntryBaseUnit
;
2072 } EFI_ACPI_6_3_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO
;
2075 /// Memory Side Cache Information Structure cache attributes
2078 UINT32 TotalCacheLevels
:4;
2079 UINT32 CacheLevel
:4;
2080 UINT32 CacheAssociativity
:4;
2081 UINT32 WritePolicy
:4;
2082 UINT32 CacheLineSize
:16;
2083 } EFI_ACPI_6_3_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES
;
2086 /// Memory Side Cache Information Structure
2092 UINT32 MemoryProximityDomain
;
2094 UINT64 MemorySideCacheSize
;
2095 EFI_ACPI_6_3_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES CacheAttributes
;
2097 UINT16 NumberOfSmbiosHandles
;
2098 } EFI_ACPI_6_3_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO
;
2101 /// ERST - Error Record Serialization Table
2104 EFI_ACPI_DESCRIPTION_HEADER Header
;
2105 UINT32 SerializationHeaderSize
;
2107 UINT32 InstructionEntryCount
;
2108 } EFI_ACPI_6_3_ERROR_RECORD_SERIALIZATION_TABLE_HEADER
;
2111 /// ERST Version (as defined in ACPI 6.3 spec.)
2113 #define EFI_ACPI_6_3_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
2116 /// ERST Serialization Actions
2118 #define EFI_ACPI_6_3_ERST_BEGIN_WRITE_OPERATION 0x00
2119 #define EFI_ACPI_6_3_ERST_BEGIN_READ_OPERATION 0x01
2120 #define EFI_ACPI_6_3_ERST_BEGIN_CLEAR_OPERATION 0x02
2121 #define EFI_ACPI_6_3_ERST_END_OPERATION 0x03
2122 #define EFI_ACPI_6_3_ERST_SET_RECORD_OFFSET 0x04
2123 #define EFI_ACPI_6_3_ERST_EXECUTE_OPERATION 0x05
2124 #define EFI_ACPI_6_3_ERST_CHECK_BUSY_STATUS 0x06
2125 #define EFI_ACPI_6_3_ERST_GET_COMMAND_STATUS 0x07
2126 #define EFI_ACPI_6_3_ERST_GET_RECORD_IDENTIFIER 0x08
2127 #define EFI_ACPI_6_3_ERST_SET_RECORD_IDENTIFIER 0x09
2128 #define EFI_ACPI_6_3_ERST_GET_RECORD_COUNT 0x0A
2129 #define EFI_ACPI_6_3_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
2130 #define EFI_ACPI_6_3_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
2131 #define EFI_ACPI_6_3_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
2132 #define EFI_ACPI_6_3_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
2133 #define EFI_ACPI_6_3_ERST_GET_EXECUTE_OPERATION_TIMINGS 0x10
2136 /// ERST Action Command Status
2138 #define EFI_ACPI_6_3_ERST_STATUS_SUCCESS 0x00
2139 #define EFI_ACPI_6_3_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
2140 #define EFI_ACPI_6_3_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
2141 #define EFI_ACPI_6_3_ERST_STATUS_FAILED 0x03
2142 #define EFI_ACPI_6_3_ERST_STATUS_RECORD_STORE_EMPTY 0x04
2143 #define EFI_ACPI_6_3_ERST_STATUS_RECORD_NOT_FOUND 0x05
2146 /// ERST Serialization Instructions
2148 #define EFI_ACPI_6_3_ERST_READ_REGISTER 0x00
2149 #define EFI_ACPI_6_3_ERST_READ_REGISTER_VALUE 0x01
2150 #define EFI_ACPI_6_3_ERST_WRITE_REGISTER 0x02
2151 #define EFI_ACPI_6_3_ERST_WRITE_REGISTER_VALUE 0x03
2152 #define EFI_ACPI_6_3_ERST_NOOP 0x04
2153 #define EFI_ACPI_6_3_ERST_LOAD_VAR1 0x05
2154 #define EFI_ACPI_6_3_ERST_LOAD_VAR2 0x06
2155 #define EFI_ACPI_6_3_ERST_STORE_VAR1 0x07
2156 #define EFI_ACPI_6_3_ERST_ADD 0x08
2157 #define EFI_ACPI_6_3_ERST_SUBTRACT 0x09
2158 #define EFI_ACPI_6_3_ERST_ADD_VALUE 0x0A
2159 #define EFI_ACPI_6_3_ERST_SUBTRACT_VALUE 0x0B
2160 #define EFI_ACPI_6_3_ERST_STALL 0x0C
2161 #define EFI_ACPI_6_3_ERST_STALL_WHILE_TRUE 0x0D
2162 #define EFI_ACPI_6_3_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
2163 #define EFI_ACPI_6_3_ERST_GOTO 0x0F
2164 #define EFI_ACPI_6_3_ERST_SET_SRC_ADDRESS_BASE 0x10
2165 #define EFI_ACPI_6_3_ERST_SET_DST_ADDRESS_BASE 0x11
2166 #define EFI_ACPI_6_3_ERST_MOVE_DATA 0x12
2169 /// ERST Instruction Flags
2171 #define EFI_ACPI_6_3_ERST_PRESERVE_REGISTER 0x01
2174 /// ERST Serialization Instruction Entry
2177 UINT8 SerializationAction
;
2181 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2184 } EFI_ACPI_6_3_ERST_SERIALIZATION_INSTRUCTION_ENTRY
;
2187 /// EINJ - Error Injection Table
2190 EFI_ACPI_DESCRIPTION_HEADER Header
;
2191 UINT32 InjectionHeaderSize
;
2192 UINT8 InjectionFlags
;
2194 UINT32 InjectionEntryCount
;
2195 } EFI_ACPI_6_3_ERROR_INJECTION_TABLE_HEADER
;
2198 /// EINJ Version (as defined in ACPI 6.3 spec.)
2200 #define EFI_ACPI_6_3_ERROR_INJECTION_TABLE_REVISION 0x01
2203 /// EINJ Error Injection Actions
2205 #define EFI_ACPI_6_3_EINJ_BEGIN_INJECTION_OPERATION 0x00
2206 #define EFI_ACPI_6_3_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
2207 #define EFI_ACPI_6_3_EINJ_SET_ERROR_TYPE 0x02
2208 #define EFI_ACPI_6_3_EINJ_GET_ERROR_TYPE 0x03
2209 #define EFI_ACPI_6_3_EINJ_END_OPERATION 0x04
2210 #define EFI_ACPI_6_3_EINJ_EXECUTE_OPERATION 0x05
2211 #define EFI_ACPI_6_3_EINJ_CHECK_BUSY_STATUS 0x06
2212 #define EFI_ACPI_6_3_EINJ_GET_COMMAND_STATUS 0x07
2213 #define EFI_ACPI_6_3_EINJ_TRIGGER_ERROR 0xFF
2216 /// EINJ Action Command Status
2218 #define EFI_ACPI_6_3_EINJ_STATUS_SUCCESS 0x00
2219 #define EFI_ACPI_6_3_EINJ_STATUS_UNKNOWN_FAILURE 0x01
2220 #define EFI_ACPI_6_3_EINJ_STATUS_INVALID_ACCESS 0x02
2223 /// EINJ Error Type Definition
2225 #define EFI_ACPI_6_3_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
2226 #define EFI_ACPI_6_3_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
2227 #define EFI_ACPI_6_3_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
2228 #define EFI_ACPI_6_3_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
2229 #define EFI_ACPI_6_3_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
2230 #define EFI_ACPI_6_3_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
2231 #define EFI_ACPI_6_3_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
2232 #define EFI_ACPI_6_3_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
2233 #define EFI_ACPI_6_3_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
2234 #define EFI_ACPI_6_3_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
2235 #define EFI_ACPI_6_3_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
2236 #define EFI_ACPI_6_3_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
2239 /// EINJ Injection Instructions
2241 #define EFI_ACPI_6_3_EINJ_READ_REGISTER 0x00
2242 #define EFI_ACPI_6_3_EINJ_READ_REGISTER_VALUE 0x01
2243 #define EFI_ACPI_6_3_EINJ_WRITE_REGISTER 0x02
2244 #define EFI_ACPI_6_3_EINJ_WRITE_REGISTER_VALUE 0x03
2245 #define EFI_ACPI_6_3_EINJ_NOOP 0x04
2248 /// EINJ Instruction Flags
2250 #define EFI_ACPI_6_3_EINJ_PRESERVE_REGISTER 0x01
2253 /// EINJ Injection Instruction Entry
2256 UINT8 InjectionAction
;
2260 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2263 } EFI_ACPI_6_3_EINJ_INJECTION_INSTRUCTION_ENTRY
;
2266 /// EINJ Trigger Action Table
2273 } EFI_ACPI_6_3_EINJ_TRIGGER_ACTION_TABLE
;
2276 /// Platform Communications Channel Table (PCCT)
2279 EFI_ACPI_DESCRIPTION_HEADER Header
;
2282 } EFI_ACPI_6_3_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER
;
2285 /// PCCT Version (as defined in ACPI 6.3 spec.)
2287 #define EFI_ACPI_6_3_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x02
2290 /// PCCT Global Flags
2292 #define EFI_ACPI_6_3_PCCT_FLAGS_PLATFORM_INTERRUPT BIT0
2295 // PCCT Subspace type
2297 #define EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_GENERIC 0x00
2298 #define EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS 0x01
2299 #define EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS 0x02
2300 #define EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC 0x03
2301 #define EFI_ACPI_6_3_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC 0x04
2304 /// PCC Subspace Structure Header
2309 } EFI_ACPI_6_3_PCCT_SUBSPACE_HEADER
;
2312 /// Generic Communications Subspace Structure
2319 UINT64 AddressLength
;
2320 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2321 UINT64 DoorbellPreserve
;
2322 UINT64 DoorbellWrite
;
2323 UINT32 NominalLatency
;
2324 UINT32 MaximumPeriodicAccessRate
;
2325 UINT16 MinimumRequestTurnaroundTime
;
2326 } EFI_ACPI_6_3_PCCT_SUBSPACE_GENERIC
;
2329 /// Generic Communications Channel Shared Memory Region
2335 UINT8 NotifyOnCompletion
:1;
2336 } EFI_ACPI_6_3_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND
;
2339 UINT8 CommandComplete
:1;
2340 UINT8 PlatformInterrupt
:1;
2342 UINT8 PlatformNotification
:1;
2345 } EFI_ACPI_6_3_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS
;
2349 EFI_ACPI_6_3_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command
;
2350 EFI_ACPI_6_3_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status
;
2351 } EFI_ACPI_6_3_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER
;
2353 #define EFI_ACPI_6_3_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_POLARITY BIT0
2354 #define EFI_ACPI_6_3_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE BIT1
2357 /// Type 1 HW-Reduced Communications Subspace Structure
2362 UINT32 PlatformInterrupt
;
2363 UINT8 PlatformInterruptFlags
;
2366 UINT64 AddressLength
;
2367 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2368 UINT64 DoorbellPreserve
;
2369 UINT64 DoorbellWrite
;
2370 UINT32 NominalLatency
;
2371 UINT32 MaximumPeriodicAccessRate
;
2372 UINT16 MinimumRequestTurnaroundTime
;
2373 } EFI_ACPI_6_3_PCCT_SUBSPACE_1_HW_REDUCED_COMMUNICATIONS
;
2376 /// Type 2 HW-Reduced Communications Subspace Structure
2381 UINT32 PlatformInterrupt
;
2382 UINT8 PlatformInterruptFlags
;
2385 UINT64 AddressLength
;
2386 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2387 UINT64 DoorbellPreserve
;
2388 UINT64 DoorbellWrite
;
2389 UINT32 NominalLatency
;
2390 UINT32 MaximumPeriodicAccessRate
;
2391 UINT16 MinimumRequestTurnaroundTime
;
2392 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2393 UINT64 PlatformInterruptAckPreserve
;
2394 UINT64 PlatformInterruptAckWrite
;
2395 } EFI_ACPI_6_3_PCCT_SUBSPACE_2_HW_REDUCED_COMMUNICATIONS
;
2398 /// Type 3 Extended PCC Subspace Structure
2403 UINT32 PlatformInterrupt
;
2404 UINT8 PlatformInterruptFlags
;
2407 UINT32 AddressLength
;
2408 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2409 UINT64 DoorbellPreserve
;
2410 UINT64 DoorbellWrite
;
2411 UINT32 NominalLatency
;
2412 UINT32 MaximumPeriodicAccessRate
;
2413 UINT32 MinimumRequestTurnaroundTime
;
2414 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2415 UINT64 PlatformInterruptAckPreserve
;
2416 UINT64 PlatformInterruptAckSet
;
2418 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister
;
2419 UINT64 CommandCompleteCheckMask
;
2420 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE CommandCompleteUpdateRegister
;
2421 UINT64 CommandCompleteUpdatePreserve
;
2422 UINT64 CommandCompleteUpdateSet
;
2423 EFI_ACPI_6_3_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister
;
2424 UINT64 ErrorStatusMask
;
2425 } EFI_ACPI_6_3_PCCT_SUBSPACE_3_EXTENDED_PCC
;
2428 /// Type 4 Extended PCC Subspace Structure
2430 typedef EFI_ACPI_6_3_PCCT_SUBSPACE_3_EXTENDED_PCC EFI_ACPI_6_3_PCCT_SUBSPACE_4_EXTENDED_PCC
;
2432 #define EFI_ACPI_6_3_PCCT_MASTER_SLAVE_COMMUNICATIONS_CHANNEL_FLAGS_NOTIFY_ON_COMPLETION BIT0
2439 } EFI_ACPI_6_3_PCCT_EXTENDED_PCC_SHARED_MEMORY_REGION_HEADER
;
2442 /// Platform Debug Trigger Table (PDTT)
2445 EFI_ACPI_DESCRIPTION_HEADER Header
;
2448 UINT32 TriggerIdentifierArrayOffset
;
2449 } EFI_ACPI_6_3_PLATFORM_DEBUG_TRIGGER_TABLE_HEADER
;
2452 /// PDTT Revision (as defined in ACPI 6.3 spec.)
2454 #define EFI_ACPI_6_3_PLATFORM_DEBUG_TRIGGER_TABLE_REVISION 0x00
2457 /// PDTT Platform Communication Channel Identifier Structure
2460 UINT16 SubChannelIdentifer
:8;
2462 UINT16 WaitForCompletion
:1;
2463 UINT16 TriggerOrder
:1;
2465 } EFI_ACPI_6_3_PDTT_PCC_IDENTIFIER
;
2468 /// PCC Commands Codes used by Platform Debug Trigger Table
2470 #define EFI_ACPI_6_3_PDTT_PCC_COMMAND_DOORBELL_ONLY 0x00
2471 #define EFI_ACPI_6_3_PDTT_PCC_COMMAND_VENDOR_SPECIFIC 0x01
2474 /// PPTT Platform Communication Channel
2476 typedef EFI_ACPI_6_3_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER EFI_ACPI_6_3_PDTT_PCC
;
2479 /// Processor Properties Topology Table (PPTT)
2482 EFI_ACPI_DESCRIPTION_HEADER Header
;
2483 } EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_HEADER
;
2486 /// PPTT Revision (as defined in ACPI 6.3 spec.)
2488 #define EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x02
2493 #define EFI_ACPI_6_3_PPTT_TYPE_PROCESSOR 0x00
2494 #define EFI_ACPI_6_3_PPTT_TYPE_CACHE 0x01
2495 #define EFI_ACPI_6_3_PPTT_TYPE_ID 0x02
2498 /// PPTT Structure Header
2504 } EFI_ACPI_6_3_PPTT_STRUCTURE_HEADER
;
2507 /// For PPTT struct processor flags
2509 #define EFI_ACPI_6_3_PPTT_PACKAGE_NOT_PHYSICAL 0x0
2510 #define EFI_ACPI_6_3_PPTT_PACKAGE_PHYSICAL 0x1
2511 #define EFI_ACPI_6_3_PPTT_PROCESSOR_ID_INVALID 0x0
2512 #define EFI_ACPI_6_3_PPTT_PROCESSOR_ID_VALID 0x1
2513 #define EFI_ACPI_6_3_PPTT_PROCESSOR_IS_NOT_THREAD 0x0
2514 #define EFI_ACPI_6_3_PPTT_PROCESSOR_IS_THREAD 0x1
2515 #define EFI_ACPI_6_3_PPTT_NODE_IS_NOT_LEAF 0x0
2516 #define EFI_ACPI_6_3_PPTT_NODE_IS_LEAF 0x1
2517 #define EFI_ACPI_6_3_PPTT_IMPLEMENTATION_NOT_IDENTICAL 0x0
2518 #define EFI_ACPI_6_3_PPTT_IMPLEMENTATION_IDENTICAL 0x1
2521 /// Processor hierarchy node structure flags
2524 UINT32 PhysicalPackage
:1;
2525 UINT32 AcpiProcessorIdValid
:1;
2526 UINT32 ProcessorIsAThread
:1;
2527 UINT32 NodeIsALeaf
:1;
2528 UINT32 IdenticalImplementation
:1;
2530 } EFI_ACPI_6_3_PPTT_STRUCTURE_PROCESSOR_FLAGS
;
2533 /// Processor hierarchy node structure
2539 EFI_ACPI_6_3_PPTT_STRUCTURE_PROCESSOR_FLAGS Flags
;
2541 UINT32 AcpiProcessorId
;
2542 UINT32 NumberOfPrivateResources
;
2543 } EFI_ACPI_6_3_PPTT_STRUCTURE_PROCESSOR
;
2546 /// For PPTT struct cache flags
2548 #define EFI_ACPI_6_3_PPTT_CACHE_SIZE_INVALID 0x0
2549 #define EFI_ACPI_6_3_PPTT_CACHE_SIZE_VALID 0x1
2550 #define EFI_ACPI_6_3_PPTT_NUMBER_OF_SETS_INVALID 0x0
2551 #define EFI_ACPI_6_3_PPTT_NUMBER_OF_SETS_VALID 0x1
2552 #define EFI_ACPI_6_3_PPTT_ASSOCIATIVITY_INVALID 0x0
2553 #define EFI_ACPI_6_3_PPTT_ASSOCIATIVITY_VALID 0x1
2554 #define EFI_ACPI_6_3_PPTT_ALLOCATION_TYPE_INVALID 0x0
2555 #define EFI_ACPI_6_3_PPTT_ALLOCATION_TYPE_VALID 0x1
2556 #define EFI_ACPI_6_3_PPTT_CACHE_TYPE_INVALID 0x0
2557 #define EFI_ACPI_6_3_PPTT_CACHE_TYPE_VALID 0x1
2558 #define EFI_ACPI_6_3_PPTT_WRITE_POLICY_INVALID 0x0
2559 #define EFI_ACPI_6_3_PPTT_WRITE_POLICY_VALID 0x1
2560 #define EFI_ACPI_6_3_PPTT_LINE_SIZE_INVALID 0x0
2561 #define EFI_ACPI_6_3_PPTT_LINE_SIZE_VALID 0x1
2564 /// Cache Type Structure flags
2567 UINT32 SizePropertyValid
:1;
2568 UINT32 NumberOfSetsValid
:1;
2569 UINT32 AssociativityValid
:1;
2570 UINT32 AllocationTypeValid
:1;
2571 UINT32 CacheTypeValid
:1;
2572 UINT32 WritePolicyValid
:1;
2573 UINT32 LineSizeValid
:1;
2575 } EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_FLAGS
;
2578 /// For cache attributes
2580 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0
2581 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1
2582 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2
2583 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0
2584 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1
2585 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2
2586 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0
2587 #define EFI_ACPI_6_3_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1
2590 /// Cache Type Structure cache attributes
2593 UINT8 AllocationType
:2;
2595 UINT8 WritePolicy
:1;
2597 } EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_ATTRIBUTES
;
2600 /// Cache Type Structure
2606 EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_FLAGS Flags
;
2607 UINT32 NextLevelOfCache
;
2609 UINT32 NumberOfSets
;
2610 UINT8 Associativity
;
2611 EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE_ATTRIBUTES Attributes
;
2613 } EFI_ACPI_6_3_PPTT_STRUCTURE_CACHE
;
2628 } EFI_ACPI_6_3_PPTT_STRUCTURE_ID
;
2631 // Known table signatures
2635 /// "RSD PTR " Root System Description Pointer
2637 #define EFI_ACPI_6_3_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
2640 /// "APIC" Multiple APIC Description Table
2642 #define EFI_ACPI_6_3_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
2645 /// "BERT" Boot Error Record Table
2647 #define EFI_ACPI_6_3_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
2650 /// "BGRT" Boot Graphics Resource Table
2652 #define EFI_ACPI_6_3_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
2655 /// "CDIT" Component Distance Information Table
2657 #define EFI_ACPI_6_3_COMPONENT_DISTANCE_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('C', 'D', 'I', 'T')
2660 /// "CPEP" Corrected Platform Error Polling Table
2662 #define EFI_ACPI_6_3_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
2665 /// "CRAT" Component Resource Attribute Table
2667 #define EFI_ACPI_6_3_COMPONENT_RESOURCE_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('C', 'R', 'A', 'T')
2670 /// "DSDT" Differentiated System Description Table
2672 #define EFI_ACPI_6_3_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
2675 /// "ECDT" Embedded Controller Boot Resources Table
2677 #define EFI_ACPI_6_3_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
2680 /// "EINJ" Error Injection Table
2682 #define EFI_ACPI_6_3_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
2685 /// "ERST" Error Record Serialization Table
2687 #define EFI_ACPI_6_3_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
2690 /// "FACP" Fixed ACPI Description Table
2692 #define EFI_ACPI_6_3_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
2695 /// "FACS" Firmware ACPI Control Structure
2697 #define EFI_ACPI_6_3_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
2700 /// "FPDT" Firmware Performance Data Table
2702 #define EFI_ACPI_6_3_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
2705 /// "GTDT" Generic Timer Description Table
2707 #define EFI_ACPI_6_3_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
2710 /// "HEST" Hardware Error Source Table
2712 #define EFI_ACPI_6_3_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
2715 /// "HMAT" Heterogeneous Memory Attribute Table
2717 #define EFI_ACPI_6_3_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('H', 'M', 'A', 'T')
2720 /// "MPST" Memory Power State Table
2722 #define EFI_ACPI_6_3_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
2725 /// "MSCT" Maximum System Characteristics Table
2727 #define EFI_ACPI_6_3_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
2730 /// "NFIT" NVDIMM Firmware Interface Table
2732 #define EFI_ACPI_6_3_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('N', 'F', 'I', 'T')
2735 /// "PDTT" Platform Debug Trigger Table
2737 #define EFI_ACPI_6_3_PLATFORM_DEBUG_TRIGGER_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'D', 'T', 'T')
2740 /// "PMTT" Platform Memory Topology Table
2742 #define EFI_ACPI_6_3_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
2745 /// "PPTT" Processor Properties Topology Table
2747 #define EFI_ACPI_6_3_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'P', 'T', 'T')
2750 /// "PSDT" Persistent System Description Table
2752 #define EFI_ACPI_6_3_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
2755 /// "RASF" ACPI RAS Feature Table
2757 #define EFI_ACPI_6_3_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
2760 /// "RSDT" Root System Description Table
2762 #define EFI_ACPI_6_3_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
2765 /// "SBST" Smart Battery Specification Table
2767 #define EFI_ACPI_6_3_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
2770 /// "SDEV" Secure DEVices Table
2772 #define EFI_ACPI_6_3_SECURE_DEVICES_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'V')
2775 /// "SLIT" System Locality Information Table
2777 #define EFI_ACPI_6_3_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
2780 /// "SRAT" System Resource Affinity Table
2782 #define EFI_ACPI_6_3_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2785 /// "SSDT" Secondary System Description Table
2787 #define EFI_ACPI_6_3_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2790 /// "XSDT" Extended System Description Table
2792 #define EFI_ACPI_6_3_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2795 /// "BOOT" MS Simple Boot Spec
2797 #define EFI_ACPI_6_3_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2800 /// "CSRT" MS Core System Resource Table
2802 #define EFI_ACPI_6_3_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2805 /// "DBG2" MS Debug Port 2 Spec
2807 #define EFI_ACPI_6_3_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2810 /// "DBGP" MS Debug Port Spec
2812 #define EFI_ACPI_6_3_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2815 /// "DMAR" DMA Remapping Table
2817 #define EFI_ACPI_6_3_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2820 /// "DPPT" DMA Protection Policy Table
2822 #define EFI_ACPI_6_3_DMA_PROTECTION_POLICY_TABLE_SIGNATURE SIGNATURE_32('D', 'P', 'P', 'T')
2825 /// "DRTM" Dynamic Root of Trust for Measurement Table
2827 #define EFI_ACPI_6_3_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2830 /// "ETDT" Event Timer Description Table
2832 #define EFI_ACPI_6_3_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2835 /// "HPET" IA-PC High Precision Event Timer Table
2837 #define EFI_ACPI_6_3_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2840 /// "iBFT" iSCSI Boot Firmware Table
2842 #define EFI_ACPI_6_3_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2845 /// "IORT" I/O Remapping Table
2847 #define EFI_ACPI_6_3_IO_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('I', 'O', 'R', 'T')
2850 /// "IVRS" I/O Virtualization Reporting Structure
2852 #define EFI_ACPI_6_3_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2855 /// "LPIT" Low Power Idle Table
2857 #define EFI_ACPI_6_3_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
2860 /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
2862 #define EFI_ACPI_6_3_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2865 /// "MCHI" Management Controller Host Interface Table
2867 #define EFI_ACPI_6_3_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2870 /// "MSDM" MS Data Management Table
2872 #define EFI_ACPI_6_3_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2875 /// "SDEI" Software Delegated Exceptions Interface Table
2877 #define EFI_ACPI_6_3_SOFTWARE_DELEGATED_EXCEPTIONS_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'I')
2880 /// "SLIC" MS Software Licensing Table Specification
2882 #define EFI_ACPI_6_3_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2885 /// "SPCR" Serial Port Concole Redirection Table
2887 #define EFI_ACPI_6_3_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2890 /// "SPMI" Server Platform Management Interface Table
2892 #define EFI_ACPI_6_3_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2895 /// "STAO" _STA Override Table
2897 #define EFI_ACPI_6_3_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', 'A', 'O')
2900 /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
2902 #define EFI_ACPI_6_3_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2905 /// "TPM2" Trusted Computing Platform 1 Table
2907 #define EFI_ACPI_6_3_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2910 /// "UEFI" UEFI ACPI Data Table
2912 #define EFI_ACPI_6_3_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2915 /// "WAET" Windows ACPI Emulated Devices Table
2917 #define EFI_ACPI_6_3_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
2920 /// "WDAT" Watchdog Action Table
2922 #define EFI_ACPI_6_3_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2925 /// "WDRT" Watchdog Resource Table
2927 #define EFI_ACPI_6_3_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2930 /// "WPBT" MS Platform Binary Table
2932 #define EFI_ACPI_6_3_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
2935 /// "WSMT" Windows SMM Security Mitigation Table
2937 #define EFI_ACPI_6_3_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE SIGNATURE_32('W', 'S', 'M', 'T')
2940 /// "XENV" Xen Project Table
2942 #define EFI_ACPI_6_3_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', 'N', 'V')