2 ACPI 6.2 definitions from the ACPI Specification Revision 6.2 May, 2017.
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <IndustryStandard/Acpi61.h>
14 // Large Item Descriptor Name
16 #define ACPI_LARGE_PIN_FUNCTION_DESCRIPTOR_NAME 0x0D
17 #define ACPI_LARGE_PIN_CONFIGURATION_DESCRIPTOR_NAME 0x0F
18 #define ACPI_LARGE_PIN_GROUP_DESCRIPTOR_NAME 0x10
19 #define ACPI_LARGE_PIN_GROUP_FUNCTION_DESCRIPTOR_NAME 0x11
20 #define ACPI_LARGE_PIN_GROUP_CONFIGURATION_DESCRIPTOR_NAME 0x12
23 // Large Item Descriptor Value
25 #define ACPI_PIN_FUNCTION_DESCRIPTOR 0x8D
26 #define ACPI_PIN_CONFIGURATION_DESCRIPTOR 0x8F
27 #define ACPI_PIN_GROUP_DESCRIPTOR 0x90
28 #define ACPI_PIN_GROUP_FUNCTION_DESCRIPTOR 0x91
29 #define ACPI_PIN_GROUP_CONFIGURATION_DESCRIPTOR 0x92
34 /// Pin Function Descriptor
36 typedef PACKED
struct {
37 ACPI_LARGE_RESOURCE_HEADER Header
;
40 UINT8 PinPullConfiguration
;
41 UINT16 FunctionNumber
;
42 UINT16 PinTableOffset
;
43 UINT8 ResourceSourceIndex
;
44 UINT16 ResourceSourceNameOffset
;
45 UINT16 VendorDataOffset
;
46 UINT16 VendorDataLength
;
47 } EFI_ACPI_PIN_FUNCTION_DESCRIPTOR
;
50 /// Pin Configuration Descriptor
52 typedef PACKED
struct {
53 ACPI_LARGE_RESOURCE_HEADER Header
;
56 UINT8 PinConfigurationType
;
57 UINT32 PinConfigurationValue
;
58 UINT16 PinTableOffset
;
59 UINT8 ResourceSourceIndex
;
60 UINT16 ResourceSourceNameOffset
;
61 UINT16 VendorDataOffset
;
62 UINT16 VendorDataLength
;
63 } EFI_ACPI_PIN_CONFIGURATION_DESCRIPTOR
;
66 /// Pin Group Descriptor
68 typedef PACKED
struct {
69 ACPI_LARGE_RESOURCE_HEADER Header
;
72 UINT16 PinTableOffset
;
73 UINT16 ResourceLabelOffset
;
74 UINT16 VendorDataOffset
;
75 UINT16 VendorDataLength
;
76 } EFI_ACPI_PIN_GROUP_DESCRIPTOR
;
79 /// Pin Group Function Descriptor
81 typedef PACKED
struct {
82 ACPI_LARGE_RESOURCE_HEADER Header
;
85 UINT16 FunctionNumber
;
86 UINT8 ResourceSourceIndex
;
87 UINT16 ResourceSourceNameOffset
;
88 UINT16 ResourceSourceLabelOffset
;
89 UINT16 VendorDataOffset
;
90 UINT16 VendorDataLength
;
91 } EFI_ACPI_PIN_GROUP_FUNCTION_DESCRIPTOR
;
94 /// Pin Group Configuration Descriptor
96 typedef PACKED
struct {
97 ACPI_LARGE_RESOURCE_HEADER Header
;
100 UINT8 PinConfigurationType
;
101 UINT32 PinConfigurationValue
;
102 UINT8 ResourceSourceIndex
;
103 UINT16 ResourceSourceNameOffset
;
104 UINT16 ResourceSourceLabelOffset
;
105 UINT16 VendorDataOffset
;
106 UINT16 VendorDataLength
;
107 } EFI_ACPI_PIN_GROUP_CONFIGURATION_DESCRIPTOR
;
112 // Ensure proper structure formats
117 /// ACPI 6.2 Generic Address Space definition
120 UINT8 AddressSpaceId
;
121 UINT8 RegisterBitWidth
;
122 UINT8 RegisterBitOffset
;
125 } EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE
;
128 // Generic Address Space Address IDs
130 #define EFI_ACPI_6_2_SYSTEM_MEMORY 0
131 #define EFI_ACPI_6_2_SYSTEM_IO 1
132 #define EFI_ACPI_6_2_PCI_CONFIGURATION_SPACE 2
133 #define EFI_ACPI_6_2_EMBEDDED_CONTROLLER 3
134 #define EFI_ACPI_6_2_SMBUS 4
135 #define EFI_ACPI_6_2_PLATFORM_COMMUNICATION_CHANNEL 0x0A
136 #define EFI_ACPI_6_2_FUNCTIONAL_FIXED_HARDWARE 0x7F
139 // Generic Address Space Access Sizes
141 #define EFI_ACPI_6_2_UNDEFINED 0
142 #define EFI_ACPI_6_2_BYTE 1
143 #define EFI_ACPI_6_2_WORD 2
144 #define EFI_ACPI_6_2_DWORD 3
145 #define EFI_ACPI_6_2_QWORD 4
148 // ACPI 6.2 table structures
152 /// Root System Description Pointer Structure
162 UINT8 ExtendedChecksum
;
164 } EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_POINTER
;
167 /// RSD_PTR Revision (as defined in ACPI 6.2 spec.)
169 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 6.2) says current value is 2
172 /// Common table header, this prefaces all ACPI tables, including FACS, but
173 /// excluding the RSD PTR structure
178 } EFI_ACPI_6_2_COMMON_HEADER
;
181 // Root System Description Table
182 // No definition needed as it is a common description table header, the same with
183 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
187 /// RSDT Revision (as defined in ACPI 6.2 spec.)
189 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
192 // Extended System Description Table
193 // No definition needed as it is a common description table header, the same with
194 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
198 /// XSDT Revision (as defined in ACPI 6.2 spec.)
200 #define EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
203 /// Fixed ACPI Description Table Structure (FADT)
206 EFI_ACPI_DESCRIPTION_HEADER Header
;
210 UINT8 PreferredPmProfile
;
245 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ResetReg
;
249 UINT64 XFirmwareCtrl
;
251 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk
;
252 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk
;
253 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk
;
254 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk
;
255 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk
;
256 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk
;
257 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XGpe0Blk
;
258 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XGpe1Blk
;
259 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE SleepControlReg
;
260 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE SleepStatusReg
;
261 UINT64 HypervisorVendorIdentity
;
262 } EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE
;
265 /// FADT Version (as defined in ACPI 6.2 spec.)
267 #define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06
268 #define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x02
271 // Fixed ACPI Description Table Preferred Power Management Profile
273 #define EFI_ACPI_6_2_PM_PROFILE_UNSPECIFIED 0
274 #define EFI_ACPI_6_2_PM_PROFILE_DESKTOP 1
275 #define EFI_ACPI_6_2_PM_PROFILE_MOBILE 2
276 #define EFI_ACPI_6_2_PM_PROFILE_WORKSTATION 3
277 #define EFI_ACPI_6_2_PM_PROFILE_ENTERPRISE_SERVER 4
278 #define EFI_ACPI_6_2_PM_PROFILE_SOHO_SERVER 5
279 #define EFI_ACPI_6_2_PM_PROFILE_APPLIANCE_PC 6
280 #define EFI_ACPI_6_2_PM_PROFILE_PERFORMANCE_SERVER 7
281 #define EFI_ACPI_6_2_PM_PROFILE_TABLET 8
284 // Fixed ACPI Description Table Boot Architecture Flags
285 // All other bits are reserved and must be set to 0.
287 #define EFI_ACPI_6_2_LEGACY_DEVICES BIT0
288 #define EFI_ACPI_6_2_8042 BIT1
289 #define EFI_ACPI_6_2_VGA_NOT_PRESENT BIT2
290 #define EFI_ACPI_6_2_MSI_NOT_SUPPORTED BIT3
291 #define EFI_ACPI_6_2_PCIE_ASPM_CONTROLS BIT4
292 #define EFI_ACPI_6_2_CMOS_RTC_NOT_PRESENT BIT5
295 // Fixed ACPI Description Table Arm Boot Architecture Flags
296 // All other bits are reserved and must be set to 0.
298 #define EFI_ACPI_6_2_ARM_PSCI_COMPLIANT BIT0
299 #define EFI_ACPI_6_2_ARM_PSCI_USE_HVC BIT1
302 // Fixed ACPI Description Table Fixed Feature Flags
303 // All other bits are reserved and must be set to 0.
305 #define EFI_ACPI_6_2_WBINVD BIT0
306 #define EFI_ACPI_6_2_WBINVD_FLUSH BIT1
307 #define EFI_ACPI_6_2_PROC_C1 BIT2
308 #define EFI_ACPI_6_2_P_LVL2_UP BIT3
309 #define EFI_ACPI_6_2_PWR_BUTTON BIT4
310 #define EFI_ACPI_6_2_SLP_BUTTON BIT5
311 #define EFI_ACPI_6_2_FIX_RTC BIT6
312 #define EFI_ACPI_6_2_RTC_S4 BIT7
313 #define EFI_ACPI_6_2_TMR_VAL_EXT BIT8
314 #define EFI_ACPI_6_2_DCK_CAP BIT9
315 #define EFI_ACPI_6_2_RESET_REG_SUP BIT10
316 #define EFI_ACPI_6_2_SEALED_CASE BIT11
317 #define EFI_ACPI_6_2_HEADLESS BIT12
318 #define EFI_ACPI_6_2_CPU_SW_SLP BIT13
319 #define EFI_ACPI_6_2_PCI_EXP_WAK BIT14
320 #define EFI_ACPI_6_2_USE_PLATFORM_CLOCK BIT15
321 #define EFI_ACPI_6_2_S4_RTC_STS_VALID BIT16
322 #define EFI_ACPI_6_2_REMOTE_POWER_ON_CAPABLE BIT17
323 #define EFI_ACPI_6_2_FORCE_APIC_CLUSTER_MODEL BIT18
324 #define EFI_ACPI_6_2_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
325 #define EFI_ACPI_6_2_HW_REDUCED_ACPI BIT20
326 #define EFI_ACPI_6_2_LOW_POWER_S0_IDLE_CAPABLE BIT21
329 /// Firmware ACPI Control Structure
334 UINT32 HardwareSignature
;
335 UINT32 FirmwareWakingVector
;
338 UINT64 XFirmwareWakingVector
;
343 } EFI_ACPI_6_2_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
346 /// FACS Version (as defined in ACPI 6.2 spec.)
348 #define EFI_ACPI_6_2_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
351 /// Firmware Control Structure Feature Flags
352 /// All other bits are reserved and must be set to 0.
354 #define EFI_ACPI_6_2_S4BIOS_F BIT0
355 #define EFI_ACPI_6_2_64BIT_WAKE_SUPPORTED_F BIT1
358 /// OSPM Enabled Firmware Control Structure Flags
359 /// All other bits are reserved and must be set to 0.
361 #define EFI_ACPI_6_2_OSPM_64BIT_WAKE_F BIT0
364 // Differentiated System Description Table,
365 // Secondary System Description Table
366 // and Persistent System Description Table,
367 // no definition needed as they are common description table header, the same with
368 // EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
370 #define EFI_ACPI_6_2_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
371 #define EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
374 /// Multiple APIC Description Table header definition. The rest of the table
375 /// must be defined in a platform specific manner.
378 EFI_ACPI_DESCRIPTION_HEADER Header
;
379 UINT32 LocalApicAddress
;
381 } EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
384 /// MADT Revision (as defined in ACPI 6.2 spec.)
386 #define EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x04
389 /// Multiple APIC Flags
390 /// All other bits are reserved and must be set to 0.
392 #define EFI_ACPI_6_2_PCAT_COMPAT BIT0
395 // Multiple APIC Description Table APIC structure types
396 // All other values between 0x0D and 0x7F are reserved and
397 // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
399 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC 0x00
400 #define EFI_ACPI_6_2_IO_APIC 0x01
401 #define EFI_ACPI_6_2_INTERRUPT_SOURCE_OVERRIDE 0x02
402 #define EFI_ACPI_6_2_NON_MASKABLE_INTERRUPT_SOURCE 0x03
403 #define EFI_ACPI_6_2_LOCAL_APIC_NMI 0x04
404 #define EFI_ACPI_6_2_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
405 #define EFI_ACPI_6_2_IO_SAPIC 0x06
406 #define EFI_ACPI_6_2_LOCAL_SAPIC 0x07
407 #define EFI_ACPI_6_2_PLATFORM_INTERRUPT_SOURCES 0x08
408 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC 0x09
409 #define EFI_ACPI_6_2_LOCAL_X2APIC_NMI 0x0A
410 #define EFI_ACPI_6_2_GIC 0x0B
411 #define EFI_ACPI_6_2_GICD 0x0C
412 #define EFI_ACPI_6_2_GIC_MSI_FRAME 0x0D
413 #define EFI_ACPI_6_2_GICR 0x0E
414 #define EFI_ACPI_6_2_GIC_ITS 0x0F
417 // APIC Structure Definitions
421 /// Processor Local APIC Structure Definition
426 UINT8 AcpiProcessorUid
;
429 } EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_STRUCTURE
;
432 /// Local APIC Flags. All other bits are reserved and must be 0.
434 #define EFI_ACPI_6_2_LOCAL_APIC_ENABLED BIT0
437 /// IO APIC Structure
444 UINT32 IoApicAddress
;
445 UINT32 GlobalSystemInterruptBase
;
446 } EFI_ACPI_6_2_IO_APIC_STRUCTURE
;
449 /// Interrupt Source Override Structure
456 UINT32 GlobalSystemInterrupt
;
458 } EFI_ACPI_6_2_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
461 /// Platform Interrupt Sources Structure Definition
471 UINT32 GlobalSystemInterrupt
;
472 UINT32 PlatformInterruptSourceFlags
;
473 UINT8 CpeiProcessorOverride
;
475 } EFI_ACPI_6_2_PLATFORM_INTERRUPT_APIC_STRUCTURE
;
479 // All other bits are reserved and must be set to 0.
481 #define EFI_ACPI_6_2_POLARITY (3 << 0)
482 #define EFI_ACPI_6_2_TRIGGER_MODE (3 << 2)
485 /// Non-Maskable Interrupt Source Structure
491 UINT32 GlobalSystemInterrupt
;
492 } EFI_ACPI_6_2_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
495 /// Local APIC NMI Structure
500 UINT8 AcpiProcessorUid
;
503 } EFI_ACPI_6_2_LOCAL_APIC_NMI_STRUCTURE
;
506 /// Local APIC Address Override Structure
512 UINT64 LocalApicAddress
;
513 } EFI_ACPI_6_2_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE
;
516 /// IO SAPIC Structure
523 UINT32 GlobalSystemInterruptBase
;
524 UINT64 IoSapicAddress
;
525 } EFI_ACPI_6_2_IO_SAPIC_STRUCTURE
;
528 /// Local SAPIC Structure
529 /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
534 UINT8 AcpiProcessorId
;
539 UINT32 ACPIProcessorUIDValue
;
540 } EFI_ACPI_6_2_PROCESSOR_LOCAL_SAPIC_STRUCTURE
;
543 /// Platform Interrupt Sources Structure
553 UINT32 GlobalSystemInterrupt
;
554 UINT32 PlatformInterruptSourceFlags
;
555 } EFI_ACPI_6_2_PLATFORM_INTERRUPT_SOURCES_STRUCTURE
;
558 /// Platform Interrupt Source Flags.
559 /// All other bits are reserved and must be set to 0.
561 #define EFI_ACPI_6_2_CPEI_PROCESSOR_OVERRIDE BIT0
564 /// Processor Local x2APIC Structure Definition
572 UINT32 AcpiProcessorUid
;
573 } EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC_STRUCTURE
;
576 /// Local x2APIC NMI Structure
582 UINT32 AcpiProcessorUid
;
583 UINT8 LocalX2ApicLint
;
585 } EFI_ACPI_6_2_LOCAL_X2APIC_NMI_STRUCTURE
;
594 UINT32 CPUInterfaceNumber
;
595 UINT32 AcpiProcessorUid
;
597 UINT32 ParkingProtocolVersion
;
598 UINT32 PerformanceInterruptGsiv
;
599 UINT64 ParkedAddress
;
600 UINT64 PhysicalBaseAddress
;
603 UINT32 VGICMaintenanceInterrupt
;
604 UINT64 GICRBaseAddress
;
606 UINT8 ProcessorPowerEfficiencyClass
;
608 } EFI_ACPI_6_2_GIC_STRUCTURE
;
611 /// GIC Flags. All other bits are reserved and must be 0.
613 #define EFI_ACPI_6_2_GIC_ENABLED BIT0
614 #define EFI_ACPI_6_2_PERFORMANCE_INTERRUPT_MODEL BIT1
615 #define EFI_ACPI_6_2_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
618 /// GIC Distributor Structure
625 UINT64 PhysicalBaseAddress
;
626 UINT32 SystemVectorBase
;
629 } EFI_ACPI_6_2_GIC_DISTRIBUTOR_STRUCTURE
;
634 #define EFI_ACPI_6_2_GIC_V1 0x01
635 #define EFI_ACPI_6_2_GIC_V2 0x02
636 #define EFI_ACPI_6_2_GIC_V3 0x03
637 #define EFI_ACPI_6_2_GIC_V4 0x04
640 /// GIC MSI Frame Structure
646 UINT32 GicMsiFrameId
;
647 UINT64 PhysicalBaseAddress
;
651 } EFI_ACPI_6_2_GIC_MSI_FRAME_STRUCTURE
;
654 /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
656 #define EFI_ACPI_6_2_SPI_COUNT_BASE_SELECT BIT0
665 UINT64 DiscoveryRangeBaseAddress
;
666 UINT32 DiscoveryRangeLength
;
667 } EFI_ACPI_6_2_GICR_STRUCTURE
;
670 /// GIC Interrupt Translation Service Structure
677 UINT64 PhysicalBaseAddress
;
679 } EFI_ACPI_6_2_GIC_ITS_STRUCTURE
;
682 /// Smart Battery Description Table (SBST)
685 EFI_ACPI_DESCRIPTION_HEADER Header
;
686 UINT32 WarningEnergyLevel
;
687 UINT32 LowEnergyLevel
;
688 UINT32 CriticalEnergyLevel
;
689 } EFI_ACPI_6_2_SMART_BATTERY_DESCRIPTION_TABLE
;
692 /// SBST Version (as defined in ACPI 6.2 spec.)
694 #define EFI_ACPI_6_2_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
697 /// Embedded Controller Boot Resources Table (ECDT)
698 /// The table is followed by a null terminated ASCII string that contains
699 /// a fully qualified reference to the name space object.
702 EFI_ACPI_DESCRIPTION_HEADER Header
;
703 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE EcControl
;
704 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE EcData
;
707 } EFI_ACPI_6_2_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE
;
710 /// ECDT Version (as defined in ACPI 6.2 spec.)
712 #define EFI_ACPI_6_2_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
715 /// System Resource Affinity Table (SRAT). The rest of the table
716 /// must be defined in a platform specific manner.
719 EFI_ACPI_DESCRIPTION_HEADER Header
;
720 UINT32 Reserved1
; ///< Must be set to 1
722 } EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER
;
725 /// SRAT Version (as defined in ACPI 6.2 spec.)
727 #define EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
730 // SRAT structure types.
731 // All other values between 0x05 an 0xFF are reserved and
732 // will be ignored by OSPM.
734 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
735 #define EFI_ACPI_6_2_MEMORY_AFFINITY 0x01
736 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
737 #define EFI_ACPI_6_2_GICC_AFFINITY 0x03
738 #define EFI_ACPI_6_2_GIC_ITS_AFFINITY 0x04
741 /// Processor Local APIC/SAPIC Affinity Structure Definition
746 UINT8 ProximityDomain7To0
;
750 UINT8 ProximityDomain31To8
[3];
752 } EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE
;
755 /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
757 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
760 /// Memory Affinity Structure Definition
765 UINT32 ProximityDomain
;
767 UINT32 AddressBaseLow
;
768 UINT32 AddressBaseHigh
;
774 } EFI_ACPI_6_2_MEMORY_AFFINITY_STRUCTURE
;
777 // Memory Flags. All other bits are reserved and must be 0.
779 #define EFI_ACPI_6_2_MEMORY_ENABLED (1 << 0)
780 #define EFI_ACPI_6_2_MEMORY_HOT_PLUGGABLE (1 << 1)
781 #define EFI_ACPI_6_2_MEMORY_NONVOLATILE (1 << 2)
784 /// Processor Local x2APIC Affinity Structure Definition
790 UINT32 ProximityDomain
;
795 } EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE
;
798 /// GICC Affinity Structure Definition
803 UINT32 ProximityDomain
;
804 UINT32 AcpiProcessorUid
;
807 } EFI_ACPI_6_2_GICC_AFFINITY_STRUCTURE
;
810 /// GICC Flags. All other bits are reserved and must be 0.
812 #define EFI_ACPI_6_2_GICC_ENABLED (1 << 0)
815 /// GIC Interrupt Translation Service (ITS) Affinity Structure Definition
820 UINT32 ProximityDomain
;
823 } EFI_ACPI_6_2_GIC_ITS_AFFINITY_STRUCTURE
;
826 /// System Locality Distance Information Table (SLIT).
827 /// The rest of the table is a matrix.
830 EFI_ACPI_DESCRIPTION_HEADER Header
;
831 UINT64 NumberOfSystemLocalities
;
832 } EFI_ACPI_6_2_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER
;
835 /// SLIT Version (as defined in ACPI 6.2 spec.)
837 #define EFI_ACPI_6_2_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
840 /// Corrected Platform Error Polling Table (CPEP)
843 EFI_ACPI_DESCRIPTION_HEADER Header
;
845 } EFI_ACPI_6_2_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER
;
848 /// CPEP Version (as defined in ACPI 6.2 spec.)
850 #define EFI_ACPI_6_2_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
853 // CPEP processor structure types.
855 #define EFI_ACPI_6_2_CPEP_PROCESSOR_APIC_SAPIC 0x00
858 /// Corrected Platform Error Polling Processor Structure Definition
865 UINT32 PollingInterval
;
866 } EFI_ACPI_6_2_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE
;
869 /// Maximum System Characteristics Table (MSCT)
872 EFI_ACPI_DESCRIPTION_HEADER Header
;
873 UINT32 OffsetProxDomInfo
;
874 UINT32 MaximumNumberOfProximityDomains
;
875 UINT32 MaximumNumberOfClockDomains
;
876 UINT64 MaximumPhysicalAddress
;
877 } EFI_ACPI_6_2_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER
;
880 /// MSCT Version (as defined in ACPI 6.2 spec.)
882 #define EFI_ACPI_6_2_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
885 /// Maximum Proximity Domain Information Structure Definition
890 UINT32 ProximityDomainRangeLow
;
891 UINT32 ProximityDomainRangeHigh
;
892 UINT32 MaximumProcessorCapacity
;
893 UINT64 MaximumMemoryCapacity
;
894 } EFI_ACPI_6_2_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE
;
897 /// ACPI RAS Feature Table definition.
900 EFI_ACPI_DESCRIPTION_HEADER Header
;
901 UINT8 PlatformCommunicationChannelIdentifier
[12];
902 } EFI_ACPI_6_2_RAS_FEATURE_TABLE
;
905 /// RASF Version (as defined in ACPI 6.2 spec.)
907 #define EFI_ACPI_6_2_RAS_FEATURE_TABLE_REVISION 0x01
910 /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
917 UINT8 RASCapabilities
[16];
918 UINT8 SetRASCapabilities
[16];
919 UINT16 NumberOfRASFParameterBlocks
;
920 UINT32 SetRASCapabilitiesStatus
;
921 } EFI_ACPI_6_2_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
924 /// ACPI RASF PCC command code
926 #define EFI_ACPI_6_2_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
929 /// ACPI RASF Platform RAS Capabilities
931 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED BIT0
932 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED_AND_EXPOSED_TO_SOFTWARE BIT1
933 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT2
934 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT3
935 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT4
938 /// ACPI RASF Parameter Block structure for PATROL_SCRUB
944 UINT16 PatrolScrubCommand
;
945 UINT64 RequestedAddressRange
[2];
946 UINT64 ActualAddressRange
[2];
948 UINT8 RequestedSpeed
;
949 } EFI_ACPI_6_2_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE
;
952 /// ACPI RASF Patrol Scrub command
954 #define EFI_ACPI_6_2_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
955 #define EFI_ACPI_6_2_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
956 #define EFI_ACPI_6_2_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
959 /// Memory Power State Table definition.
962 EFI_ACPI_DESCRIPTION_HEADER Header
;
963 UINT8 PlatformCommunicationChannelIdentifier
;
965 // Memory Power Node Structure
966 // Memory Power State Characteristics
967 } EFI_ACPI_6_2_MEMORY_POWER_STATUS_TABLE
;
970 /// MPST Version (as defined in ACPI 6.2 spec.)
972 #define EFI_ACPI_6_2_MEMORY_POWER_STATE_TABLE_REVISION 0x01
975 /// MPST Platform Communication Channel Shared Memory Region definition.
981 UINT32 MemoryPowerCommandRegister
;
982 UINT32 MemoryPowerStatusRegister
;
984 UINT32 MemoryPowerNodeId
;
985 UINT64 MemoryEnergyConsumed
;
986 UINT64 ExpectedAveragePowerComsuned
;
987 } EFI_ACPI_6_2_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
990 /// ACPI MPST PCC command code
992 #define EFI_ACPI_6_2_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
995 /// ACPI MPST Memory Power command
997 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
998 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
999 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
1000 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
1003 /// MPST Memory Power Node Table
1006 UINT8 PowerStateValue
;
1007 UINT8 PowerStateInformationIndex
;
1008 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE
;
1013 UINT16 MemoryPowerNodeId
;
1016 UINT64 AddressLength
;
1017 UINT32 NumberOfPowerStates
;
1018 UINT32 NumberOfPhysicalComponents
;
1019 //EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
1020 //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
1021 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE
;
1023 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
1024 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
1025 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
1028 UINT16 MemoryPowerNodeCount
;
1030 } EFI_ACPI_6_2_MPST_MEMORY_POWER_NODE_TABLE
;
1033 /// MPST Memory Power State Characteristics Table
1036 UINT8 PowerStateStructureID
;
1039 UINT32 AveragePowerConsumedInMPS0
;
1040 UINT32 RelativePowerSavingToMPS0
;
1041 UINT64 ExitLatencyToMPS0
;
1042 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE
;
1044 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
1045 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
1046 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
1049 UINT16 MemoryPowerStateCharacteristicsCount
;
1051 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE
;
1054 /// Memory Topology Table definition.
1057 EFI_ACPI_DESCRIPTION_HEADER Header
;
1059 } EFI_ACPI_6_2_MEMORY_TOPOLOGY_TABLE
;
1062 /// PMTT Version (as defined in ACPI 6.2 spec.)
1064 #define EFI_ACPI_6_2_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
1067 /// Common Memory Aggregator Device Structure.
1075 } EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1078 /// Memory Aggregator Device Type
1080 #define EFI_ACPI_6_2_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x1
1081 #define EFI_ACPI_6_2_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
1082 #define EFI_ACPI_6_2_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x3
1085 /// Socket Memory Aggregator Device Structure.
1088 EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1089 UINT16 SocketIdentifier
;
1091 //EFI_ACPI_6_2_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
1092 } EFI_ACPI_6_2_PMMT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1095 /// MemoryController Memory Aggregator Device Structure.
1098 EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1100 UINT32 WriteLatency
;
1101 UINT32 ReadBandwidth
;
1102 UINT32 WriteBandwidth
;
1103 UINT16 OptimalAccessUnit
;
1104 UINT16 OptimalAccessAlignment
;
1106 UINT16 NumberOfProximityDomains
;
1107 //UINT32 ProximityDomain[NumberOfProximityDomains];
1108 //EFI_ACPI_6_2_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
1109 } EFI_ACPI_6_2_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1112 /// DIMM Memory Aggregator Device Structure.
1115 EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1116 UINT16 PhysicalComponentIdentifier
;
1119 UINT32 SmbiosHandle
;
1120 } EFI_ACPI_6_2_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1123 /// Boot Graphics Resource Table definition.
1126 EFI_ACPI_DESCRIPTION_HEADER Header
;
1128 /// 2-bytes (16 bit) version ID. This value must be 1.
1132 /// 1-byte status field indicating current status about the table.
1133 /// Bits[7:1] = Reserved (must be zero)
1134 /// Bit [0] = Valid. A one indicates the boot image graphic is valid.
1138 /// 1-byte enumerated type field indicating format of the image.
1140 /// 1 - 255 Reserved (for future use)
1144 /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
1145 /// of the image bitmap.
1147 UINT64 ImageAddress
;
1149 /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
1150 /// (X, Y) display offset of the top left corner of the boot image.
1151 /// The top left corner of the display is at offset (0, 0).
1153 UINT32 ImageOffsetX
;
1155 /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
1156 /// (X, Y) display offset of the top left corner of the boot image.
1157 /// The top left corner of the display is at offset (0, 0).
1159 UINT32 ImageOffsetY
;
1160 } EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE
;
1165 #define EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1170 #define EFI_ACPI_6_2_BGRT_VERSION 0x01
1175 #define EFI_ACPI_6_2_BGRT_STATUS_NOT_DISPLAYED 0x00
1176 #define EFI_ACPI_6_2_BGRT_STATUS_DISPLAYED 0x01
1181 #define EFI_ACPI_6_2_BGRT_IMAGE_TYPE_BMP 0x00
1184 /// FPDT Version (as defined in ACPI 6.2 spec.)
1186 #define EFI_ACPI_6_2_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1189 /// FPDT Performance Record Types
1191 #define EFI_ACPI_6_2_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1192 #define EFI_ACPI_6_2_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1195 /// FPDT Performance Record Revision
1197 #define EFI_ACPI_6_2_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1198 #define EFI_ACPI_6_2_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1201 /// FPDT Runtime Performance Record Types
1203 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1204 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1205 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1208 /// FPDT Runtime Performance Record Revision
1210 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1211 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1212 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1215 /// FPDT Performance Record header
1221 } EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER
;
1224 /// FPDT Performance Table header
1229 } EFI_ACPI_6_2_FPDT_PERFORMANCE_TABLE_HEADER
;
1232 /// FPDT Firmware Basic Boot Performance Pointer Record Structure
1235 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1238 /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
1240 UINT64 BootPerformanceTablePointer
;
1241 } EFI_ACPI_6_2_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD
;
1244 /// FPDT S3 Performance Table Pointer Record Structure
1247 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1250 /// 64-bit processor-relative physical address of the S3 Performance Table.
1252 UINT64 S3PerformanceTablePointer
;
1253 } EFI_ACPI_6_2_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD
;
1256 /// FPDT Firmware Basic Boot Performance Record Structure
1259 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1262 /// Timer value logged at the beginning of firmware image execution.
1263 /// This may not always be zero or near zero.
1267 /// Timer value logged just prior to loading the OS boot loader into memory.
1268 /// For non-UEFI compatible boots, this field must be zero.
1270 UINT64 OsLoaderLoadImageStart
;
1272 /// Timer value logged just prior to launching the previously loaded OS boot loader image.
1273 /// For non-UEFI compatible boots, the timer value logged will be just prior
1274 /// to the INT 19h handler invocation.
1276 UINT64 OsLoaderStartImageStart
;
1278 /// Timer value logged at the point when the OS loader calls the
1279 /// ExitBootServices function for UEFI compatible firmware.
1280 /// For non-UEFI compatible boots, this field must be zero.
1282 UINT64 ExitBootServicesEntry
;
1284 /// Timer value logged at the point just prior towhen the OS loader gaining
1285 /// control back from calls the ExitBootServices function for UEFI compatible firmware.
1286 /// For non-UEFI compatible boots, this field must be zero.
1288 UINT64 ExitBootServicesExit
;
1289 } EFI_ACPI_6_2_FPDT_FIRMWARE_BASIC_BOOT_RECORD
;
1292 /// FPDT Firmware Basic Boot Performance Table signature
1294 #define EFI_ACPI_6_2_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1297 // FPDT Firmware Basic Boot Performance Table
1300 EFI_ACPI_6_2_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1302 // one or more Performance Records.
1304 } EFI_ACPI_6_2_FPDT_FIRMWARE_BASIC_BOOT_TABLE
;
1307 /// FPDT "S3PT" S3 Performance Table
1309 #define EFI_ACPI_6_2_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1312 // FPDT Firmware S3 Boot Performance Table
1315 EFI_ACPI_6_2_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1317 // one or more Performance Records.
1319 } EFI_ACPI_6_2_FPDT_FIRMWARE_S3_BOOT_TABLE
;
1322 /// FPDT Basic S3 Resume Performance Record
1325 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1327 /// A count of the number of S3 resume cycles since the last full boot sequence.
1331 /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
1332 /// OS waking vector. Only the most recent resume cycle's time is retained.
1336 /// Average timer value of all resume cycles logged since the last full boot
1337 /// sequence, including the most recent resume. Note that the entire log of
1338 /// timer values does not need to be retained in order to calculate this average.
1340 UINT64 AverageResume
;
1341 } EFI_ACPI_6_2_FPDT_S3_RESUME_RECORD
;
1344 /// FPDT Basic S3 Suspend Performance Record
1347 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1349 /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
1350 /// Only the most recent suspend cycle's timer value is retained.
1352 UINT64 SuspendStart
;
1354 /// Timer value recorded at the final firmware write to SLP_TYP (or other
1355 /// mechanism) used to trigger hardware entry to S3.
1356 /// Only the most recent suspend cycle's timer value is retained.
1359 } EFI_ACPI_6_2_FPDT_S3_SUSPEND_RECORD
;
1362 /// Firmware Performance Record Table definition.
1365 EFI_ACPI_DESCRIPTION_HEADER Header
;
1366 } EFI_ACPI_6_2_FIRMWARE_PERFORMANCE_RECORD_TABLE
;
1369 /// Generic Timer Description Table definition.
1372 EFI_ACPI_DESCRIPTION_HEADER Header
;
1373 UINT64 CntControlBasePhysicalAddress
;
1375 UINT32 SecurePL1TimerGSIV
;
1376 UINT32 SecurePL1TimerFlags
;
1377 UINT32 NonSecurePL1TimerGSIV
;
1378 UINT32 NonSecurePL1TimerFlags
;
1379 UINT32 VirtualTimerGSIV
;
1380 UINT32 VirtualTimerFlags
;
1381 UINT32 NonSecurePL2TimerGSIV
;
1382 UINT32 NonSecurePL2TimerFlags
;
1383 UINT64 CntReadBasePhysicalAddress
;
1384 UINT32 PlatformTimerCount
;
1385 UINT32 PlatformTimerOffset
;
1386 } EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE
;
1389 /// GTDT Version (as defined in ACPI 6.2 spec.)
1391 #define EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x02
1394 /// Timer Flags. All other bits are reserved and must be 0.
1396 #define EFI_ACPI_6_2_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1397 #define EFI_ACPI_6_2_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1398 #define EFI_ACPI_6_2_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
1401 /// Platform Timer Type
1403 #define EFI_ACPI_6_2_GTDT_GT_BLOCK 0
1404 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG 1
1407 /// GT Block Structure
1414 UINT32 GTBlockTimerCount
;
1415 UINT32 GTBlockTimerOffset
;
1416 } EFI_ACPI_6_2_GTDT_GT_BLOCK_STRUCTURE
;
1419 /// GT Block Timer Structure
1422 UINT8 GTFrameNumber
;
1426 UINT32 GTxPhysicalTimerGSIV
;
1427 UINT32 GTxPhysicalTimerFlags
;
1428 UINT32 GTxVirtualTimerGSIV
;
1429 UINT32 GTxVirtualTimerFlags
;
1430 UINT32 GTxCommonFlags
;
1431 } EFI_ACPI_6_2_GTDT_GT_BLOCK_TIMER_STRUCTURE
;
1434 /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
1436 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1437 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1440 /// Common Flags Flags. All other bits are reserved and must be 0.
1442 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
1443 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
1446 /// SBSA Generic Watchdog Structure
1452 UINT64 RefreshFramePhysicalAddress
;
1453 UINT64 WatchdogControlFramePhysicalAddress
;
1454 UINT32 WatchdogTimerGSIV
;
1455 UINT32 WatchdogTimerFlags
;
1456 } EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE
;
1459 /// SBSA Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
1461 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
1462 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1463 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
1466 // NVDIMM Firmware Interface Table definition.
1469 EFI_ACPI_DESCRIPTION_HEADER Header
;
1471 } EFI_ACPI_6_2_NVDIMM_FIRMWARE_INTERFACE_TABLE
;
1474 // NFIT Version (as defined in ACPI 6.2 spec.)
1476 #define EFI_ACPI_6_2_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1
1479 // Definition for NFIT Table Structure Types
1481 #define EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE 0
1482 #define EFI_ACPI_6_2_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE_TYPE 1
1483 #define EFI_ACPI_6_2_NFIT_INTERLEAVE_STRUCTURE_TYPE 2
1484 #define EFI_ACPI_6_2_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE 3
1485 #define EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE 4
1486 #define EFI_ACPI_6_2_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE 5
1487 #define EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE 6
1490 // Definition for NFIT Structure Header
1495 } EFI_ACPI_6_2_NFIT_STRUCTURE_HEADER
;
1498 // Definition for System Physical Address Range Structure
1500 #define EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGION_FOR_MANAGEMENT BIT0
1501 #define EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DOMAIN_VALID BIT1
1502 #define EFI_ACPI_6_2_NFIT_GUID_VOLATILE_MEMORY_REGION { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52, 0xE5, 0xD0 }}
1503 #define EFI_ACPI_6_2_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7, 0x8C, 0xDB }}
1504 #define EFI_ACPI_6_2_NFIT_GUID_NVDIMM_CONTROL_REGION { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8, 0x23, 0x4C }}
1505 #define EFI_ACPI_6_2_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION { 0x91AF0530, 0x5D86, 0x470E, { 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40, 0x82, 0x49 }}
1506 #define EFI_ACPI_6_2_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE { 0x77AB535A, 0x45FC, 0x624B, { 0x55, 0x60, 0xF7, 0xB2, 0x81, 0xD1, 0xF9, 0x6E }}
1507 #define EFI_ACPI_6_2_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE { 0x3D5ABD30, 0x4175, 0x87CE, { 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23, 0xC4, 0xBB }}
1508 #define EFI_ACPI_6_2_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, { 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0, 0x96, 0xF9 }}
1509 #define EFI_ACPI_6_2_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT { 0x08018188, 0x42CD, 0xBB48, { 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D, 0xED, 0x3D }}
1513 UINT16 SPARangeStructureIndex
;
1516 UINT32 ProximityDomain
;
1517 GUID AddressRangeTypeGUID
;
1518 UINT64 SystemPhysicalAddressRangeBase
;
1519 UINT64 SystemPhysicalAddressRangeLength
;
1520 UINT64 AddressRangeMemoryMappingAttribute
;
1521 } EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE
;
1524 // Definition for Memory Device to System Physical Address Range Mapping Structure
1527 UINT32 DIMMNumber
:4;
1528 UINT32 MemoryChannelNumber
:4;
1529 UINT32 MemoryControllerID
:4;
1531 UINT32 NodeControllerID
:12;
1532 UINT32 Reserved_28
:4;
1533 } EFI_ACPI_6_2_NFIT_DEVICE_HANDLE
;
1535 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL BIT0
1536 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL BIT1
1537 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL BIT2
1538 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSPM_HAND_OFF BIT3
1539 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PRIOR_OSPM_HAND_OFF BIT4
1540 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NOTIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5
1541 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_NOT_MAP_NVDIMM_TO_SPA BIT6
1545 EFI_ACPI_6_2_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1546 UINT16 NVDIMMPhysicalID
;
1547 UINT16 NVDIMMRegionID
;
1548 UINT16 SPARangeStructureIndex
;
1549 UINT16 NVDIMMControlRegionStructureIndex
;
1550 UINT64 NVDIMMRegionSize
;
1551 UINT64 RegionOffset
;
1552 UINT64 NVDIMMPhysicalAddressRegionBase
;
1553 UINT16 InterleaveStructureIndex
;
1554 UINT16 InterleaveWays
;
1555 UINT16 NVDIMMStateFlags
;
1557 } EFI_ACPI_6_2_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE
;
1560 // Definition for Interleave Structure
1565 UINT16 InterleaveStructureIndex
;
1567 UINT32 NumberOfLines
;
1569 //UINT32 LineOffset[NumberOfLines];
1570 } EFI_ACPI_6_2_NFIT_INTERLEAVE_STRUCTURE
;
1573 // Definition for SMBIOS Management Information Structure
1580 } EFI_ACPI_6_2_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE
;
1583 // Definition for NVDIMM Control Region Structure
1585 #define EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_VALID_FIELDS_MANUFACTURING BIT0
1587 #define EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_BUFFERED BIT0
1591 UINT16 NVDIMMControlRegionStructureIndex
;
1595 UINT16 SubsystemVendorID
;
1596 UINT16 SubsystemDeviceID
;
1597 UINT16 SubsystemRevisionID
;
1599 UINT8 ManufacturingLocation
;
1600 UINT16 ManufacturingDate
;
1601 UINT8 Reserved_22
[2];
1602 UINT32 SerialNumber
;
1603 UINT16 RegionFormatInterfaceCode
;
1604 UINT16 NumberOfBlockControlWindows
;
1605 UINT64 SizeOfBlockControlWindow
;
1606 UINT64 CommandRegisterOffsetInBlockControlWindow
;
1607 UINT64 SizeOfCommandRegisterInBlockControlWindows
;
1608 UINT64 StatusRegisterOffsetInBlockControlWindow
;
1609 UINT64 SizeOfStatusRegisterInBlockControlWindows
;
1610 UINT16 NVDIMMControlRegionFlag
;
1611 UINT8 Reserved_74
[6];
1612 } EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE
;
1615 // Definition for NVDIMM Block Data Window Region Structure
1620 UINT16 NVDIMMControlRegionStructureIndex
;
1621 UINT16 NumberOfBlockDataWindows
;
1622 UINT64 BlockDataWindowStartOffset
;
1623 UINT64 SizeOfBlockDataWindow
;
1624 UINT64 BlockAccessibleMemoryCapacity
;
1625 UINT64 BeginningAddressOfFirstBlockInBlockAccessibleMemory
;
1626 } EFI_ACPI_6_2_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE
;
1629 // Definition for Flush Hint Address Structure
1634 EFI_ACPI_6_2_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1635 UINT16 NumberOfFlushHintAddresses
;
1636 UINT8 Reserved_10
[6];
1637 //UINT64 FlushHintAddress[NumberOfFlushHintAddresses];
1638 } EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE
;
1641 /// Secure DEVices Table (SDEV)
1644 EFI_ACPI_DESCRIPTION_HEADER Header
;
1645 } EFI_ACPI_6_2_SECURE_DEVICES_TABLE_HEADER
;
1648 /// SDEV Revision (as defined in ACPI 6.2 spec.)
1650 #define EFI_ACPI_6_2_SECURE_DEVICES_TABLE_REVISION 0x01
1653 /// Secure Devcice types
1655 #define EFI_ACPI_6_2_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01
1656 #define EFI_ACPI_6_2_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00
1659 /// Secure Devcice flags
1661 #define EFI_ACPI_6_2_SDEV_FLAG_ALLOW_HANDOFF BIT0
1664 /// SDEV Structure Header
1670 } EFI_ACPI_6_2_SDEV_STRUCTURE_HEADER
;
1673 /// PCIe Endpoint Device based Secure Device Structure
1679 UINT16 PciSegmentNumber
;
1680 UINT16 StartBusNumber
;
1681 UINT16 PciPathOffset
;
1682 UINT16 PciPathLength
;
1683 UINT16 VendorSpecificDataOffset
;
1684 UINT16 VendorSpecificDataLength
;
1685 } EFI_ACPI_6_2_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE
;
1688 /// ACPI_NAMESPACE_DEVICE based Secure Device Structure
1694 UINT16 DeviceIdentifierOffset
;
1695 UINT16 DeviceIdentifierLength
;
1696 UINT16 VendorSpecificDataOffset
;
1697 UINT16 VendorSpecificDataLength
;
1698 } EFI_ACPI_6_2_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE
;
1701 /// Boot Error Record Table (BERT)
1704 EFI_ACPI_DESCRIPTION_HEADER Header
;
1705 UINT32 BootErrorRegionLength
;
1706 UINT64 BootErrorRegion
;
1707 } EFI_ACPI_6_2_BOOT_ERROR_RECORD_TABLE_HEADER
;
1710 /// BERT Version (as defined in ACPI 6.2 spec.)
1712 #define EFI_ACPI_6_2_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1715 /// Boot Error Region Block Status Definition
1718 UINT32 UncorrectableErrorValid
:1;
1719 UINT32 CorrectableErrorValid
:1;
1720 UINT32 MultipleUncorrectableErrors
:1;
1721 UINT32 MultipleCorrectableErrors
:1;
1722 UINT32 ErrorDataEntryCount
:10;
1724 } EFI_ACPI_6_2_ERROR_BLOCK_STATUS
;
1727 /// Boot Error Region Definition
1730 EFI_ACPI_6_2_ERROR_BLOCK_STATUS BlockStatus
;
1731 UINT32 RawDataOffset
;
1732 UINT32 RawDataLength
;
1734 UINT32 ErrorSeverity
;
1735 } EFI_ACPI_6_2_BOOT_ERROR_REGION_STRUCTURE
;
1738 // Boot Error Severity types
1740 #define EFI_ACPI_6_2_ERROR_SEVERITY_CORRECTABLE 0x00
1741 #define EFI_ACPI_6_2_ERROR_SEVERITY_FATAL 0x01
1742 #define EFI_ACPI_6_2_ERROR_SEVERITY_CORRECTED 0x02
1743 #define EFI_ACPI_6_2_ERROR_SEVERITY_NONE 0x03
1746 /// Generic Error Data Entry Definition
1749 UINT8 SectionType
[16];
1750 UINT32 ErrorSeverity
;
1752 UINT8 ValidationBits
;
1754 UINT32 ErrorDataLength
;
1758 } EFI_ACPI_6_2_GENERIC_ERROR_DATA_ENTRY_STRUCTURE
;
1761 /// Generic Error Data Entry Version (as defined in ACPI 6.2 spec.)
1763 #define EFI_ACPI_6_2_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0300
1766 /// HEST - Hardware Error Source Table
1769 EFI_ACPI_DESCRIPTION_HEADER Header
;
1770 UINT32 ErrorSourceCount
;
1771 } EFI_ACPI_6_2_HARDWARE_ERROR_SOURCE_TABLE_HEADER
;
1774 /// HEST Version (as defined in ACPI 6.2 spec.)
1776 #define EFI_ACPI_6_2_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1779 // Error Source structure types.
1781 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1782 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1783 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_NMI_ERROR 0x02
1784 #define EFI_ACPI_6_2_PCI_EXPRESS_ROOT_PORT_AER 0x06
1785 #define EFI_ACPI_6_2_PCI_EXPRESS_DEVICE_AER 0x07
1786 #define EFI_ACPI_6_2_PCI_EXPRESS_BRIDGE_AER 0x08
1787 #define EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR 0x09
1788 #define EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR_VERSION_2 0x0A
1789 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK 0x0B
1792 // Error Source structure flags.
1794 #define EFI_ACPI_6_2_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1795 #define EFI_ACPI_6_2_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1796 #define EFI_ACPI_6_2_ERROR_SOURCE_FLAG_GHES_ASSIST (1 << 2)
1799 /// IA-32 Architecture Machine Check Exception Structure Definition
1807 UINT32 NumberOfRecordsToPreAllocate
;
1808 UINT32 MaxSectionsPerRecord
;
1809 UINT64 GlobalCapabilityInitData
;
1810 UINT64 GlobalControlInitData
;
1811 UINT8 NumberOfHardwareBanks
;
1813 } EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE
;
1816 /// IA-32 Architecture Machine Check Bank Structure Definition
1820 UINT8 ClearStatusOnInitialization
;
1821 UINT8 StatusDataFormat
;
1823 UINT32 ControlRegisterMsrAddress
;
1824 UINT64 ControlInitData
;
1825 UINT32 StatusRegisterMsrAddress
;
1826 UINT32 AddressRegisterMsrAddress
;
1827 UINT32 MiscRegisterMsrAddress
;
1828 } EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE
;
1831 /// IA-32 Architecture Machine Check Bank Structure MCA data format
1833 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1834 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1835 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1838 // Hardware Error Notification types. All other values are reserved
1840 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1841 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1842 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1843 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1844 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1845 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_CMCI 0x05
1846 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_MCE 0x06
1847 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_GPIO_SIGNAL 0x07
1848 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEA 0x08
1849 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEI 0x09
1850 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_GSIV 0x0A
1851 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_SOFTWARE_DELEGATED_EXCEPTION 0x0B
1854 /// Hardware Error Notification Configuration Write Enable Structure Definition
1858 UINT16 PollInterval
:1;
1859 UINT16 SwitchToPollingThresholdValue
:1;
1860 UINT16 SwitchToPollingThresholdWindow
:1;
1861 UINT16 ErrorThresholdValue
:1;
1862 UINT16 ErrorThresholdWindow
:1;
1864 } EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE
;
1867 /// Hardware Error Notification Structure Definition
1872 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable
;
1873 UINT32 PollInterval
;
1875 UINT32 SwitchToPollingThresholdValue
;
1876 UINT32 SwitchToPollingThresholdWindow
;
1877 UINT32 ErrorThresholdValue
;
1878 UINT32 ErrorThresholdWindow
;
1879 } EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE
;
1882 /// IA-32 Architecture Corrected Machine Check Structure Definition
1890 UINT32 NumberOfRecordsToPreAllocate
;
1891 UINT32 MaxSectionsPerRecord
;
1892 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1893 UINT8 NumberOfHardwareBanks
;
1895 } EFI_ACPI_6_2_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE
;
1898 /// IA-32 Architecture NMI Error Structure Definition
1904 UINT32 NumberOfRecordsToPreAllocate
;
1905 UINT32 MaxSectionsPerRecord
;
1906 UINT32 MaxRawDataLength
;
1907 } EFI_ACPI_6_2_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE
;
1910 /// PCI Express Root Port AER Structure Definition
1918 UINT32 NumberOfRecordsToPreAllocate
;
1919 UINT32 MaxSectionsPerRecord
;
1923 UINT16 DeviceControl
;
1925 UINT32 UncorrectableErrorMask
;
1926 UINT32 UncorrectableErrorSeverity
;
1927 UINT32 CorrectableErrorMask
;
1928 UINT32 AdvancedErrorCapabilitiesAndControl
;
1929 UINT32 RootErrorCommand
;
1930 } EFI_ACPI_6_2_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE
;
1933 /// PCI Express Device AER Structure Definition
1941 UINT32 NumberOfRecordsToPreAllocate
;
1942 UINT32 MaxSectionsPerRecord
;
1946 UINT16 DeviceControl
;
1948 UINT32 UncorrectableErrorMask
;
1949 UINT32 UncorrectableErrorSeverity
;
1950 UINT32 CorrectableErrorMask
;
1951 UINT32 AdvancedErrorCapabilitiesAndControl
;
1952 } EFI_ACPI_6_2_PCI_EXPRESS_DEVICE_AER_STRUCTURE
;
1955 /// PCI Express Bridge AER Structure Definition
1963 UINT32 NumberOfRecordsToPreAllocate
;
1964 UINT32 MaxSectionsPerRecord
;
1968 UINT16 DeviceControl
;
1970 UINT32 UncorrectableErrorMask
;
1971 UINT32 UncorrectableErrorSeverity
;
1972 UINT32 CorrectableErrorMask
;
1973 UINT32 AdvancedErrorCapabilitiesAndControl
;
1974 UINT32 SecondaryUncorrectableErrorMask
;
1975 UINT32 SecondaryUncorrectableErrorSeverity
;
1976 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl
;
1977 } EFI_ACPI_6_2_PCI_EXPRESS_BRIDGE_AER_STRUCTURE
;
1980 /// Generic Hardware Error Source Structure Definition
1985 UINT16 RelatedSourceId
;
1988 UINT32 NumberOfRecordsToPreAllocate
;
1989 UINT32 MaxSectionsPerRecord
;
1990 UINT32 MaxRawDataLength
;
1991 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
1992 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1993 UINT32 ErrorStatusBlockLength
;
1994 } EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE
;
1997 /// Generic Hardware Error Source Version 2 Structure Definition
2002 UINT16 RelatedSourceId
;
2005 UINT32 NumberOfRecordsToPreAllocate
;
2006 UINT32 MaxSectionsPerRecord
;
2007 UINT32 MaxRawDataLength
;
2008 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
2009 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
2010 UINT32 ErrorStatusBlockLength
;
2011 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ReadAckRegister
;
2012 UINT64 ReadAckPreserve
;
2013 UINT64 ReadAckWrite
;
2014 } EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR_SOURCE_VERSION_2_STRUCTURE
;
2017 /// Generic Error Status Definition
2020 EFI_ACPI_6_2_ERROR_BLOCK_STATUS BlockStatus
;
2021 UINT32 RawDataOffset
;
2022 UINT32 RawDataLength
;
2024 UINT32 ErrorSeverity
;
2025 } EFI_ACPI_6_2_GENERIC_ERROR_STATUS_STRUCTURE
;
2028 /// IA-32 Architecture Deferred Machine Check Structure Definition
2036 UINT32 NumberOfRecordsToPreAllocate
;
2037 UINT32 MaxSectionsPerRecord
;
2038 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
2039 UINT8 NumberOfHardwareBanks
;
2041 } EFI_ACPI_6_2_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK_STRUCTURE
;;
2044 /// HMAT - Heterogeneous Memory Attribute Table
2047 EFI_ACPI_DESCRIPTION_HEADER Header
;
2049 } EFI_ACPI_6_2_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_HEADER
;
2052 /// HMAT Revision (as defined in ACPI 6.2 spec.)
2054 #define EFI_ACPI_6_2_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION 0x01
2059 #define EFI_ACPI_6_2_HMAT_TYPE_MEMORY_SUBSYSTEM_ADDRESS_RANGE 0x00
2060 #define EFI_ACPI_6_2_HMAT_TYPE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO 0x01
2061 #define EFI_ACPI_6_2_HMAT_TYPE_MEMORY_SIDE_CACHE_INFO 0x02
2064 /// HMAT Structure Header
2070 } EFI_ACPI_6_2_HMAT_STRUCTURE_HEADER
;
2073 /// Memory Subsystem Address Range Structure flags
2076 UINT16 ProcessorProximityDomainValid
:1;
2077 UINT16 MemoryProximityDomainValid
:1;
2078 UINT16 ReservationHint
:1;
2080 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SUBSYSTEM_ADDRESS_RANGE_FLAGS
;
2083 /// Memory Subsystem Address Range Structure
2089 EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SUBSYSTEM_ADDRESS_RANGE_FLAGS Flags
;
2091 UINT32 ProcessorProximityDomain
;
2092 UINT32 MemoryProximityDomain
;
2094 UINT64 SystemPhysicalAddressRangeBase
;
2095 UINT64 SystemPhysicalAddressRangeLength
;
2096 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SUBSYSTEM_ADDRESS_RANGE
;
2099 /// System Locality Latency and Bandwidth Information Structure flags
2102 UINT8 MemoryHierarchy
:5;
2104 } EFI_ACPI_6_2_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS
;
2107 /// System Locality Latency and Bandwidth Information Structure
2113 EFI_ACPI_6_2_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS Flags
;
2116 UINT32 NumberOfInitiatorProximityDomains
;
2117 UINT32 NumberOfTargetProximityDomains
;
2119 UINT64 EntryBaseUnit
;
2120 } EFI_ACPI_6_2_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO
;
2123 /// Memory Side Cache Information Structure cache attributes
2126 UINT32 TotalCacheLevels
:4;
2127 UINT32 CacheLevel
:4;
2128 UINT32 CacheAssociativity
:4;
2129 UINT32 WritePolicy
:4;
2130 UINT32 CacheLineSize
:16;
2131 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES
;
2134 /// Memory Side Cache Information Structure
2140 UINT32 MemoryProximityDomain
;
2142 UINT64 MemorySideCacheSize
;
2143 EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES CacheAttributes
;
2145 UINT16 NumberOfSmbiosHandles
;
2146 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO
;
2149 /// ERST - Error Record Serialization Table
2152 EFI_ACPI_DESCRIPTION_HEADER Header
;
2153 UINT32 SerializationHeaderSize
;
2155 UINT32 InstructionEntryCount
;
2156 } EFI_ACPI_6_2_ERROR_RECORD_SERIALIZATION_TABLE_HEADER
;
2159 /// ERST Version (as defined in ACPI 6.2 spec.)
2161 #define EFI_ACPI_6_2_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
2164 /// ERST Serialization Actions
2166 #define EFI_ACPI_6_2_ERST_BEGIN_WRITE_OPERATION 0x00
2167 #define EFI_ACPI_6_2_ERST_BEGIN_READ_OPERATION 0x01
2168 #define EFI_ACPI_6_2_ERST_BEGIN_CLEAR_OPERATION 0x02
2169 #define EFI_ACPI_6_2_ERST_END_OPERATION 0x03
2170 #define EFI_ACPI_6_2_ERST_SET_RECORD_OFFSET 0x04
2171 #define EFI_ACPI_6_2_ERST_EXECUTE_OPERATION 0x05
2172 #define EFI_ACPI_6_2_ERST_CHECK_BUSY_STATUS 0x06
2173 #define EFI_ACPI_6_2_ERST_GET_COMMAND_STATUS 0x07
2174 #define EFI_ACPI_6_2_ERST_GET_RECORD_IDENTIFIER 0x08
2175 #define EFI_ACPI_6_2_ERST_SET_RECORD_IDENTIFIER 0x09
2176 #define EFI_ACPI_6_2_ERST_GET_RECORD_COUNT 0x0A
2177 #define EFI_ACPI_6_2_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
2178 #define EFI_ACPI_6_2_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
2179 #define EFI_ACPI_6_2_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
2180 #define EFI_ACPI_6_2_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
2181 #define EFI_ACPI_6_2_ERST_GET_EXECUTE_OPERATION_TIMINGS 0x10
2184 /// ERST Action Command Status
2186 #define EFI_ACPI_6_2_ERST_STATUS_SUCCESS 0x00
2187 #define EFI_ACPI_6_2_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
2188 #define EFI_ACPI_6_2_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
2189 #define EFI_ACPI_6_2_ERST_STATUS_FAILED 0x03
2190 #define EFI_ACPI_6_2_ERST_STATUS_RECORD_STORE_EMPTY 0x04
2191 #define EFI_ACPI_6_2_ERST_STATUS_RECORD_NOT_FOUND 0x05
2194 /// ERST Serialization Instructions
2196 #define EFI_ACPI_6_2_ERST_READ_REGISTER 0x00
2197 #define EFI_ACPI_6_2_ERST_READ_REGISTER_VALUE 0x01
2198 #define EFI_ACPI_6_2_ERST_WRITE_REGISTER 0x02
2199 #define EFI_ACPI_6_2_ERST_WRITE_REGISTER_VALUE 0x03
2200 #define EFI_ACPI_6_2_ERST_NOOP 0x04
2201 #define EFI_ACPI_6_2_ERST_LOAD_VAR1 0x05
2202 #define EFI_ACPI_6_2_ERST_LOAD_VAR2 0x06
2203 #define EFI_ACPI_6_2_ERST_STORE_VAR1 0x07
2204 #define EFI_ACPI_6_2_ERST_ADD 0x08
2205 #define EFI_ACPI_6_2_ERST_SUBTRACT 0x09
2206 #define EFI_ACPI_6_2_ERST_ADD_VALUE 0x0A
2207 #define EFI_ACPI_6_2_ERST_SUBTRACT_VALUE 0x0B
2208 #define EFI_ACPI_6_2_ERST_STALL 0x0C
2209 #define EFI_ACPI_6_2_ERST_STALL_WHILE_TRUE 0x0D
2210 #define EFI_ACPI_6_2_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
2211 #define EFI_ACPI_6_2_ERST_GOTO 0x0F
2212 #define EFI_ACPI_6_2_ERST_SET_SRC_ADDRESS_BASE 0x10
2213 #define EFI_ACPI_6_2_ERST_SET_DST_ADDRESS_BASE 0x11
2214 #define EFI_ACPI_6_2_ERST_MOVE_DATA 0x12
2217 /// ERST Instruction Flags
2219 #define EFI_ACPI_6_2_ERST_PRESERVE_REGISTER 0x01
2222 /// ERST Serialization Instruction Entry
2225 UINT8 SerializationAction
;
2229 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2232 } EFI_ACPI_6_2_ERST_SERIALIZATION_INSTRUCTION_ENTRY
;
2235 /// EINJ - Error Injection Table
2238 EFI_ACPI_DESCRIPTION_HEADER Header
;
2239 UINT32 InjectionHeaderSize
;
2240 UINT8 InjectionFlags
;
2242 UINT32 InjectionEntryCount
;
2243 } EFI_ACPI_6_2_ERROR_INJECTION_TABLE_HEADER
;
2246 /// EINJ Version (as defined in ACPI 6.2 spec.)
2248 #define EFI_ACPI_6_2_ERROR_INJECTION_TABLE_REVISION 0x01
2251 /// EINJ Error Injection Actions
2253 #define EFI_ACPI_6_2_EINJ_BEGIN_INJECTION_OPERATION 0x00
2254 #define EFI_ACPI_6_2_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
2255 #define EFI_ACPI_6_2_EINJ_SET_ERROR_TYPE 0x02
2256 #define EFI_ACPI_6_2_EINJ_GET_ERROR_TYPE 0x03
2257 #define EFI_ACPI_6_2_EINJ_END_OPERATION 0x04
2258 #define EFI_ACPI_6_2_EINJ_EXECUTE_OPERATION 0x05
2259 #define EFI_ACPI_6_2_EINJ_CHECK_BUSY_STATUS 0x06
2260 #define EFI_ACPI_6_2_EINJ_GET_COMMAND_STATUS 0x07
2261 #define EFI_ACPI_6_2_EINJ_TRIGGER_ERROR 0xFF
2264 /// EINJ Action Command Status
2266 #define EFI_ACPI_6_2_EINJ_STATUS_SUCCESS 0x00
2267 #define EFI_ACPI_6_2_EINJ_STATUS_UNKNOWN_FAILURE 0x01
2268 #define EFI_ACPI_6_2_EINJ_STATUS_INVALID_ACCESS 0x02
2271 /// EINJ Error Type Definition
2273 #define EFI_ACPI_6_2_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
2274 #define EFI_ACPI_6_2_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
2275 #define EFI_ACPI_6_2_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
2276 #define EFI_ACPI_6_2_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
2277 #define EFI_ACPI_6_2_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
2278 #define EFI_ACPI_6_2_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
2279 #define EFI_ACPI_6_2_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
2280 #define EFI_ACPI_6_2_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
2281 #define EFI_ACPI_6_2_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
2282 #define EFI_ACPI_6_2_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
2283 #define EFI_ACPI_6_2_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
2284 #define EFI_ACPI_6_2_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
2287 /// EINJ Injection Instructions
2289 #define EFI_ACPI_6_2_EINJ_READ_REGISTER 0x00
2290 #define EFI_ACPI_6_2_EINJ_READ_REGISTER_VALUE 0x01
2291 #define EFI_ACPI_6_2_EINJ_WRITE_REGISTER 0x02
2292 #define EFI_ACPI_6_2_EINJ_WRITE_REGISTER_VALUE 0x03
2293 #define EFI_ACPI_6_2_EINJ_NOOP 0x04
2296 /// EINJ Instruction Flags
2298 #define EFI_ACPI_6_2_EINJ_PRESERVE_REGISTER 0x01
2301 /// EINJ Injection Instruction Entry
2304 UINT8 InjectionAction
;
2308 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2311 } EFI_ACPI_6_2_EINJ_INJECTION_INSTRUCTION_ENTRY
;
2314 /// EINJ Trigger Action Table
2321 } EFI_ACPI_6_2_EINJ_TRIGGER_ACTION_TABLE
;
2324 /// Platform Communications Channel Table (PCCT)
2327 EFI_ACPI_DESCRIPTION_HEADER Header
;
2330 } EFI_ACPI_6_2_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER
;
2333 /// PCCT Version (as defined in ACPI 6.2 spec.)
2335 #define EFI_ACPI_6_2_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x02
2338 /// PCCT Global Flags
2340 #define EFI_ACPI_6_2_PCCT_FLAGS_PLATFORM_INTERRUPT BIT0
2343 // PCCT Subspace type
2345 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_GENERIC 0x00
2346 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS 0x01
2347 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS 0x02
2348 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC 0x03
2349 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC 0x04
2352 /// PCC Subspace Structure Header
2357 } EFI_ACPI_6_2_PCCT_SUBSPACE_HEADER
;
2360 /// Generic Communications Subspace Structure
2367 UINT64 AddressLength
;
2368 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2369 UINT64 DoorbellPreserve
;
2370 UINT64 DoorbellWrite
;
2371 UINT32 NominalLatency
;
2372 UINT32 MaximumPeriodicAccessRate
;
2373 UINT16 MinimumRequestTurnaroundTime
;
2374 } EFI_ACPI_6_2_PCCT_SUBSPACE_GENERIC
;
2377 /// Generic Communications Channel Shared Memory Region
2383 UINT8 NotifyOnCompletion
:1;
2384 } EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND
;
2387 UINT8 CommandComplete
:1;
2388 UINT8 PlatformInterrupt
:1;
2390 UINT8 PlatformNotification
:1;
2393 } EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS
;
2397 EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command
;
2398 EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status
;
2399 } EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER
;
2401 #define EFI_ACPI_6_2_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_POLARITY BIT0
2402 #define EFI_ACPI_6_2_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE BIT1
2405 /// Type 1 HW-Reduced Communications Subspace Structure
2410 UINT32 PlatformInterrupt
;
2411 UINT8 PlatformInterruptFlags
;
2414 UINT64 AddressLength
;
2415 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2416 UINT64 DoorbellPreserve
;
2417 UINT64 DoorbellWrite
;
2418 UINT32 NominalLatency
;
2419 UINT32 MaximumPeriodicAccessRate
;
2420 UINT16 MinimumRequestTurnaroundTime
;
2421 } EFI_ACPI_6_2_PCCT_SUBSPACE_1_HW_REDUCED_COMMUNICATIONS
;
2424 /// Type 2 HW-Reduced Communications Subspace Structure
2429 UINT32 PlatformInterrupt
;
2430 UINT8 PlatformInterruptFlags
;
2433 UINT64 AddressLength
;
2434 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2435 UINT64 DoorbellPreserve
;
2436 UINT64 DoorbellWrite
;
2437 UINT32 NominalLatency
;
2438 UINT32 MaximumPeriodicAccessRate
;
2439 UINT16 MinimumRequestTurnaroundTime
;
2440 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2441 UINT64 PlatformInterruptAckPreserve
;
2442 UINT64 PlatformInterruptAckWrite
;
2443 } EFI_ACPI_6_2_PCCT_SUBSPACE_2_HW_REDUCED_COMMUNICATIONS
;
2446 /// Type 3 Extended PCC Subspace Structure
2451 UINT32 PlatformInterrupt
;
2452 UINT8 PlatformInterruptFlags
;
2455 UINT32 AddressLength
;
2456 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2457 UINT64 DoorbellPreserve
;
2458 UINT64 DoorbellWrite
;
2459 UINT32 NominalLatency
;
2460 UINT32 MaximumPeriodicAccessRate
;
2461 UINT32 MinimumRequestTurnaroundTime
;
2462 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2463 UINT64 PlatformInterruptAckPreserve
;
2464 UINT64 PlatformInterruptAckSet
;
2466 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister
;
2467 UINT64 CommandCompleteCheckMask
;
2468 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE CommandCompleteUpdateRegister
;
2469 UINT64 CommandCompleteUpdatePreserve
;
2470 UINT64 CommandCompleteUpdateSet
;
2471 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister
;
2472 UINT64 ErrorStatusMask
;
2473 } EFI_ACPI_6_2_PCCT_SUBSPACE_3_EXTENDED_PCC
;
2476 /// Type 4 Extended PCC Subspace Structure
2478 typedef EFI_ACPI_6_2_PCCT_SUBSPACE_3_EXTENDED_PCC EFI_ACPI_6_2_PCCT_SUBSPACE_4_EXTENDED_PCC
;
2480 #define EFI_ACPI_6_2_PCCT_MASTER_SLAVE_COMMUNICATIONS_CHANNEL_FLAGS_NOTIFY_ON_COMPLETION BIT0
2487 } EFI_ACPI_6_2_PCCT_EXTENDED_PCC_SHARED_MEMORY_REGION_HEADER
;
2490 /// Platform Debug Trigger Table (PDTT)
2493 EFI_ACPI_DESCRIPTION_HEADER Header
;
2496 UINT32 TriggerIdentifierArrayOffset
;
2497 } EFI_ACPI_6_2_PLATFORM_DEBUG_TRIGGER_TABLE_HEADER
;
2500 /// PDTT Revision (as defined in ACPI 6.2 spec.)
2502 #define EFI_ACPI_6_2_PLATFORM_DEBUG_TRIGGER_TABLE_REVISION 0x00
2505 /// PDTT Platform Communication Channel Identifier Structure
2508 UINT16 SubChannelIdentifer
:8;
2510 UINT16 WaitForCompletion
:1;
2512 } EFI_ACPI_6_2_PDTT_PCC_IDENTIFIER
;
2515 /// PCC Commands Codes used by Platform Debug Trigger Table
2517 #define EFI_ACPI_6_2_PDTT_PCC_COMMAND_DOORBELL_ONLY 0x00
2518 #define EFI_ACPI_6_2_PDTT_PCC_COMMAND_VENDOR_SPECIFIC 0x01
2521 /// PPTT Platform Communication Channel
2523 typedef EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER EFI_ACPI_6_2_PDTT_PCC
;
2526 /// Processor Properties Topology Table (PPTT)
2529 EFI_ACPI_DESCRIPTION_HEADER Header
;
2530 } EFI_ACPI_6_2_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_HEADER
;
2533 /// PPTT Revision (as defined in ACPI 6.2 spec.)
2535 #define EFI_ACPI_6_2_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x01
2540 #define EFI_ACPI_6_2_PPTT_TYPE_PROCESSOR 0x00
2541 #define EFI_ACPI_6_2_PPTT_TYPE_CACHE 0x01
2542 #define EFI_ACPI_6_2_PPTT_TYPE_ID 0x02
2545 /// PPTT Structure Header
2551 } EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER
;
2554 /// For PPTT struct processor flags
2556 #define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0
2557 #define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID 0x1
2560 /// Processor hierarchy node structure flags
2563 UINT32 PhysicalPackage
:1;
2564 UINT32 AcpiProcessorIdValid
:1;
2566 } EFI_ACPI_6_2_PPTT_STRUCTURE_PROCESSOR_FLAGS
;
2569 /// Processor hierarchy node structure
2575 EFI_ACPI_6_2_PPTT_STRUCTURE_PROCESSOR_FLAGS Flags
;
2577 UINT32 AcpiProcessorId
;
2578 UINT32 NumberOfPrivateResources
;
2579 } EFI_ACPI_6_2_PPTT_STRUCTURE_PROCESSOR
;
2582 /// Cache Type Structure flags
2585 UINT32 SizePropertyValid
:1;
2586 UINT32 NumberOfSetsValid
:1;
2587 UINT32 AssociativityValid
:1;
2588 UINT32 AllocationTypeValid
:1;
2589 UINT32 CacheTypeValid
:1;
2590 UINT32 WritePolicyValid
:1;
2591 UINT32 LineSizeValid
:1;
2593 } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS
;
2596 /// For cache attributes
2598 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0
2599 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1
2600 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2
2601 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0
2602 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1
2603 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2
2604 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0
2605 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1
2608 /// Cache Type Structure cache attributes
2611 UINT8 AllocationType
:2;
2613 UINT8 WritePolicy
:1;
2615 } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_ATTRIBUTES
;
2618 /// Cache Type Structure
2624 EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS Flags
;
2625 UINT32 NextLevelOfCache
;
2627 UINT32 NumberOfSets
;
2628 UINT8 Associativity
;
2629 EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_ATTRIBUTES Attributes
;
2631 } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE
;
2646 } EFI_ACPI_6_2_PPTT_STRUCTURE_ID
;
2649 // Known table signatures
2653 /// "RSD PTR " Root System Description Pointer
2655 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
2658 /// "APIC" Multiple APIC Description Table
2660 #define EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
2663 /// "BERT" Boot Error Record Table
2665 #define EFI_ACPI_6_2_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
2668 /// "BGRT" Boot Graphics Resource Table
2670 #define EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
2673 /// "CPEP" Corrected Platform Error Polling Table
2675 #define EFI_ACPI_6_2_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
2678 /// "DSDT" Differentiated System Description Table
2680 #define EFI_ACPI_6_2_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
2683 /// "ECDT" Embedded Controller Boot Resources Table
2685 #define EFI_ACPI_6_2_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
2688 /// "EINJ" Error Injection Table
2690 #define EFI_ACPI_6_2_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
2693 /// "ERST" Error Record Serialization Table
2695 #define EFI_ACPI_6_2_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
2698 /// "FACP" Fixed ACPI Description Table
2700 #define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
2703 /// "FACS" Firmware ACPI Control Structure
2705 #define EFI_ACPI_6_2_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
2708 /// "FPDT" Firmware Performance Data Table
2710 #define EFI_ACPI_6_2_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
2713 /// "GTDT" Generic Timer Description Table
2715 #define EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
2718 /// "HEST" Hardware Error Source Table
2720 #define EFI_ACPI_6_2_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
2723 /// "HMAT" Heterogeneous Memory Attribute Table
2725 #define EFI_ACPI_6_2_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('H', 'M', 'A', 'T')
2728 /// "MPST" Memory Power State Table
2730 #define EFI_ACPI_6_2_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
2733 /// "MSCT" Maximum System Characteristics Table
2735 #define EFI_ACPI_6_2_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
2738 /// "NFIT" NVDIMM Firmware Interface Table
2740 #define EFI_ACPI_6_2_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('N', 'F', 'I', 'T')
2743 /// "PDTT" Platform Debug Trigger Table
2745 #define EFI_ACPI_6_2_PLATFORM_DEBUG_TRIGGER_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'D', 'T', 'T')
2748 /// "PMTT" Platform Memory Topology Table
2750 #define EFI_ACPI_6_2_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
2753 /// "PPTT" Processor Properties Topology Table
2755 #define EFI_ACPI_6_2_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'P', 'T', 'T')
2758 /// "PSDT" Persistent System Description Table
2760 #define EFI_ACPI_6_2_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
2763 /// "RASF" ACPI RAS Feature Table
2765 #define EFI_ACPI_6_2_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
2768 /// "RSDT" Root System Description Table
2770 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
2773 /// "SBST" Smart Battery Specification Table
2775 #define EFI_ACPI_6_2_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
2778 /// "SDEV" Secure DEVices Table
2780 #define EFI_ACPI_6_2_SECURE_DEVICES_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'V')
2783 /// "SLIT" System Locality Information Table
2785 #define EFI_ACPI_6_2_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
2788 /// "SRAT" System Resource Affinity Table
2790 #define EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2793 /// "SSDT" Secondary System Description Table
2795 #define EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2798 /// "XSDT" Extended System Description Table
2800 #define EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2803 /// "BOOT" MS Simple Boot Spec
2805 #define EFI_ACPI_6_2_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2808 /// "CSRT" MS Core System Resource Table
2810 #define EFI_ACPI_6_2_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2813 /// "DBG2" MS Debug Port 2 Spec
2815 #define EFI_ACPI_6_2_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2818 /// "DBGP" MS Debug Port Spec
2820 #define EFI_ACPI_6_2_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2823 /// "DMAR" DMA Remapping Table
2825 #define EFI_ACPI_6_2_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2828 /// "DPPT" DMA Protection Policy Table
2830 #define EFI_ACPI_6_2_DMA_PROTECTION_POLICY_TABLE_SIGNATURE SIGNATURE_32('D', 'P', 'P', 'T')
2833 /// "DRTM" Dynamic Root of Trust for Measurement Table
2835 #define EFI_ACPI_6_2_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2838 /// "ETDT" Event Timer Description Table
2840 #define EFI_ACPI_6_2_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2843 /// "HPET" IA-PC High Precision Event Timer Table
2845 #define EFI_ACPI_6_2_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2848 /// "iBFT" iSCSI Boot Firmware Table
2850 #define EFI_ACPI_6_2_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2853 /// "IORT" I/O Remapping Table
2855 #define EFI_ACPI_6_2_IO_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('I', 'O', 'R', 'T')
2858 /// "IVRS" I/O Virtualization Reporting Structure
2860 #define EFI_ACPI_6_2_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2863 /// "LPIT" Low Power Idle Table
2865 #define EFI_ACPI_6_2_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
2868 /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
2870 #define EFI_ACPI_6_2_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2873 /// "MCHI" Management Controller Host Interface Table
2875 #define EFI_ACPI_6_2_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2878 /// "MSDM" MS Data Management Table
2880 #define EFI_ACPI_6_2_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2883 /// "SDEI" Software Delegated Exceptions Interface Table
2885 #define EFI_ACPI_6_2_SOFTWARE_DELEGATED_EXCEPTIONS_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'I')
2888 /// "SLIC" MS Software Licensing Table Specification
2890 #define EFI_ACPI_6_2_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2893 /// "SPCR" Serial Port Concole Redirection Table
2895 #define EFI_ACPI_6_2_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2898 /// "SPMI" Server Platform Management Interface Table
2900 #define EFI_ACPI_6_2_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2903 /// "STAO" _STA Override Table
2905 #define EFI_ACPI_6_2_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', 'A', 'O')
2908 /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
2910 #define EFI_ACPI_6_2_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2913 /// "TPM2" Trusted Computing Platform 1 Table
2915 #define EFI_ACPI_6_2_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2918 /// "UEFI" UEFI ACPI Data Table
2920 #define EFI_ACPI_6_2_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2923 /// "WAET" Windows ACPI Emulated Devices Table
2925 #define EFI_ACPI_6_2_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
2928 /// "WDAT" Watchdog Action Table
2930 #define EFI_ACPI_6_2_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2933 /// "WDRT" Watchdog Resource Table
2935 #define EFI_ACPI_6_2_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2938 /// "WPBT" MS Platform Binary Table
2940 #define EFI_ACPI_6_2_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
2943 /// "WSMT" Windows SMM Security Mitigation Table
2945 #define EFI_ACPI_6_2_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE SIGNATURE_32('W', 'S', 'M', 'T')
2948 /// "XENV" Xen Project Table
2950 #define EFI_ACPI_6_2_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', 'N', 'V')