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 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #include <IndustryStandard/Acpi61.h>
20 // Large Item Descriptor Name
22 #define ACPI_LARGE_PIN_FUNCTION_DESCRIPTOR_NAME 0x0D
23 #define ACPI_LARGE_PIN_CONFIGURATION_DESCRIPTOR_NAME 0x0F
24 #define ACPI_LARGE_PIN_GROUP_DESCRIPTOR_NAME 0x10
25 #define ACPI_LARGE_PIN_GROUP_FUNCTION_DESCRIPTOR_NAME 0x11
26 #define ACPI_LARGE_PIN_GROUP_CONFIGURATION_DESCRIPTOR_NAME 0x12
29 // Large Item Descriptor Value
31 #define ACPI_PIN_FUNCTION_DESCRIPTOR 0x8D
32 #define ACPI_PIN_CONFIGURATION_DESCRIPTOR 0x8F
33 #define ACPI_PIN_GROUP_DESCRIPTOR 0x90
34 #define ACPI_PIN_GROUP_FUNCTION_DESCRIPTOR 0x91
35 #define ACPI_PIN_GROUP_CONFIGURATION_DESCRIPTOR 0x92
40 /// Pin Function Descriptor
42 typedef PACKED
struct {
43 ACPI_LARGE_RESOURCE_HEADER Header
;
46 UINT8 PinPullConfiguration
;
47 UINT16 FunctionNumber
;
48 UINT16 PinTableOffset
;
49 UINT8 ResourceSourceIndex
;
50 UINT16 ResourceSourceNameOffset
;
51 UINT16 VendorDataOffset
;
52 UINT16 VendorDataLength
;
53 } EFI_ACPI_PIN_FUNCTION_DESCRIPTOR
;
56 /// Pin Configuration Descriptor
58 typedef PACKED
struct {
59 ACPI_LARGE_RESOURCE_HEADER Header
;
62 UINT8 PinConfigurationType
;
63 UINT32 PinConfigurationValue
;
64 UINT16 PinTableOffset
;
65 UINT8 ResourceSourceIndex
;
66 UINT16 ResourceSourceNameOffset
;
67 UINT16 VendorDataOffset
;
68 UINT16 VendorDataLength
;
69 } EFI_ACPI_PIN_CONFIGURATION_DESCRIPTOR
;
72 /// Pin Group Descriptor
74 typedef PACKED
struct {
75 ACPI_LARGE_RESOURCE_HEADER Header
;
78 UINT16 PinTableOffset
;
79 UINT16 ResourceLabelOffset
;
80 UINT16 VendorDataOffset
;
81 UINT16 VendorDataLength
;
82 } EFI_ACPI_PIN_GROUP_DESCRIPTOR
;
85 /// Pin Group Function Descriptor
87 typedef PACKED
struct {
88 ACPI_LARGE_RESOURCE_HEADER Header
;
91 UINT16 FunctionNumber
;
92 UINT8 ResourceSourceIndex
;
93 UINT16 ResourceSourceNameOffset
;
94 UINT16 ResourceSourceLabelOffset
;
95 UINT16 VendorDataOffset
;
96 UINT16 VendorDataLength
;
97 } EFI_ACPI_PIN_GROUP_FUNCTION_DESCRIPTOR
;
100 /// Pin Group Configuration Descriptor
102 typedef PACKED
struct {
103 ACPI_LARGE_RESOURCE_HEADER Header
;
106 UINT8 PinConfigurationType
;
107 UINT32 PinConfigurationValue
;
108 UINT8 ResourceSourceIndex
;
109 UINT16 ResourceSourceNameOffset
;
110 UINT16 ResourceSourceLabelOffset
;
111 UINT16 VendorDataOffset
;
112 UINT16 VendorDataLength
;
113 } EFI_ACPI_PIN_GROUP_CONFIGURATION_DESCRIPTOR
;
118 // Ensure proper structure formats
123 /// ACPI 6.2 Generic Address Space definition
126 UINT8 AddressSpaceId
;
127 UINT8 RegisterBitWidth
;
128 UINT8 RegisterBitOffset
;
131 } EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE
;
134 // Generic Address Space Address IDs
136 #define EFI_ACPI_6_2_SYSTEM_MEMORY 0
137 #define EFI_ACPI_6_2_SYSTEM_IO 1
138 #define EFI_ACPI_6_2_PCI_CONFIGURATION_SPACE 2
139 #define EFI_ACPI_6_2_EMBEDDED_CONTROLLER 3
140 #define EFI_ACPI_6_2_SMBUS 4
141 #define EFI_ACPI_6_2_PLATFORM_COMMUNICATION_CHANNEL 0x0A
142 #define EFI_ACPI_6_2_FUNCTIONAL_FIXED_HARDWARE 0x7F
145 // Generic Address Space Access Sizes
147 #define EFI_ACPI_6_2_UNDEFINED 0
148 #define EFI_ACPI_6_2_BYTE 1
149 #define EFI_ACPI_6_2_WORD 2
150 #define EFI_ACPI_6_2_DWORD 3
151 #define EFI_ACPI_6_2_QWORD 4
154 // ACPI 6.2 table structures
158 /// Root System Description Pointer Structure
168 UINT8 ExtendedChecksum
;
170 } EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_POINTER
;
173 /// RSD_PTR Revision (as defined in ACPI 6.2 spec.)
175 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 6.2) says current value is 2
178 /// Common table header, this prefaces all ACPI tables, including FACS, but
179 /// excluding the RSD PTR structure
184 } EFI_ACPI_6_2_COMMON_HEADER
;
187 // Root System Description Table
188 // No definition needed as it is a common description table header, the same with
189 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
193 /// RSDT Revision (as defined in ACPI 6.2 spec.)
195 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
198 // Extended System Description Table
199 // No definition needed as it is a common description table header, the same with
200 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
204 /// XSDT Revision (as defined in ACPI 6.2 spec.)
206 #define EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
209 /// Fixed ACPI Description Table Structure (FADT)
212 EFI_ACPI_DESCRIPTION_HEADER Header
;
216 UINT8 PreferredPmProfile
;
251 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ResetReg
;
255 UINT64 XFirmwareCtrl
;
257 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk
;
258 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk
;
259 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk
;
260 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk
;
261 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk
;
262 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk
;
263 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XGpe0Blk
;
264 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE XGpe1Blk
;
265 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE SleepControlReg
;
266 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE SleepStatusReg
;
267 UINT64 HypervisorVendorIdentity
;
268 } EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE
;
271 /// FADT Version (as defined in ACPI 6.2 spec.)
273 #define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06
274 #define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x02
277 // Fixed ACPI Description Table Preferred Power Management Profile
279 #define EFI_ACPI_6_2_PM_PROFILE_UNSPECIFIED 0
280 #define EFI_ACPI_6_2_PM_PROFILE_DESKTOP 1
281 #define EFI_ACPI_6_2_PM_PROFILE_MOBILE 2
282 #define EFI_ACPI_6_2_PM_PROFILE_WORKSTATION 3
283 #define EFI_ACPI_6_2_PM_PROFILE_ENTERPRISE_SERVER 4
284 #define EFI_ACPI_6_2_PM_PROFILE_SOHO_SERVER 5
285 #define EFI_ACPI_6_2_PM_PROFILE_APPLIANCE_PC 6
286 #define EFI_ACPI_6_2_PM_PROFILE_PERFORMANCE_SERVER 7
287 #define EFI_ACPI_6_2_PM_PROFILE_TABLET 8
290 // Fixed ACPI Description Table Boot Architecture Flags
291 // All other bits are reserved and must be set to 0.
293 #define EFI_ACPI_6_2_LEGACY_DEVICES BIT0
294 #define EFI_ACPI_6_2_8042 BIT1
295 #define EFI_ACPI_6_2_VGA_NOT_PRESENT BIT2
296 #define EFI_ACPI_6_2_MSI_NOT_SUPPORTED BIT3
297 #define EFI_ACPI_6_2_PCIE_ASPM_CONTROLS BIT4
298 #define EFI_ACPI_6_2_CMOS_RTC_NOT_PRESENT BIT5
301 // Fixed ACPI Description Table Arm Boot Architecture Flags
302 // All other bits are reserved and must be set to 0.
304 #define EFI_ACPI_6_2_ARM_PSCI_COMPLIANT BIT0
305 #define EFI_ACPI_6_2_ARM_PSCI_USE_HVC BIT1
308 // Fixed ACPI Description Table Fixed Feature Flags
309 // All other bits are reserved and must be set to 0.
311 #define EFI_ACPI_6_2_WBINVD BIT0
312 #define EFI_ACPI_6_2_WBINVD_FLUSH BIT1
313 #define EFI_ACPI_6_2_PROC_C1 BIT2
314 #define EFI_ACPI_6_2_P_LVL2_UP BIT3
315 #define EFI_ACPI_6_2_PWR_BUTTON BIT4
316 #define EFI_ACPI_6_2_SLP_BUTTON BIT5
317 #define EFI_ACPI_6_2_FIX_RTC BIT6
318 #define EFI_ACPI_6_2_RTC_S4 BIT7
319 #define EFI_ACPI_6_2_TMR_VAL_EXT BIT8
320 #define EFI_ACPI_6_2_DCK_CAP BIT9
321 #define EFI_ACPI_6_2_RESET_REG_SUP BIT10
322 #define EFI_ACPI_6_2_SEALED_CASE BIT11
323 #define EFI_ACPI_6_2_HEADLESS BIT12
324 #define EFI_ACPI_6_2_CPU_SW_SLP BIT13
325 #define EFI_ACPI_6_2_PCI_EXP_WAK BIT14
326 #define EFI_ACPI_6_2_USE_PLATFORM_CLOCK BIT15
327 #define EFI_ACPI_6_2_S4_RTC_STS_VALID BIT16
328 #define EFI_ACPI_6_2_REMOTE_POWER_ON_CAPABLE BIT17
329 #define EFI_ACPI_6_2_FORCE_APIC_CLUSTER_MODEL BIT18
330 #define EFI_ACPI_6_2_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
331 #define EFI_ACPI_6_2_HW_REDUCED_ACPI BIT20
332 #define EFI_ACPI_6_2_LOW_POWER_S0_IDLE_CAPABLE BIT21
335 /// Firmware ACPI Control Structure
340 UINT32 HardwareSignature
;
341 UINT32 FirmwareWakingVector
;
344 UINT64 XFirmwareWakingVector
;
349 } EFI_ACPI_6_2_FIRMWARE_ACPI_CONTROL_STRUCTURE
;
352 /// FACS Version (as defined in ACPI 6.2 spec.)
354 #define EFI_ACPI_6_2_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
357 /// Firmware Control Structure Feature Flags
358 /// All other bits are reserved and must be set to 0.
360 #define EFI_ACPI_6_2_S4BIOS_F BIT0
361 #define EFI_ACPI_6_2_64BIT_WAKE_SUPPORTED_F BIT1
364 /// OSPM Enabled Firmware Control Structure Flags
365 /// All other bits are reserved and must be set to 0.
367 #define EFI_ACPI_6_2_OSPM_64BIT_WAKE_F BIT0
370 // Differentiated System Description Table,
371 // Secondary System Description Table
372 // and Persistent System Description Table,
373 // no definition needed as they are common description table header, the same with
374 // EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
376 #define EFI_ACPI_6_2_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
377 #define EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
380 /// Multiple APIC Description Table header definition. The rest of the table
381 /// must be defined in a platform specific manner.
384 EFI_ACPI_DESCRIPTION_HEADER Header
;
385 UINT32 LocalApicAddress
;
387 } EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER
;
390 /// MADT Revision (as defined in ACPI 6.2 spec.)
392 #define EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x04
395 /// Multiple APIC Flags
396 /// All other bits are reserved and must be set to 0.
398 #define EFI_ACPI_6_2_PCAT_COMPAT BIT0
401 // Multiple APIC Description Table APIC structure types
402 // All other values between 0x0D and 0x7F are reserved and
403 // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
405 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC 0x00
406 #define EFI_ACPI_6_2_IO_APIC 0x01
407 #define EFI_ACPI_6_2_INTERRUPT_SOURCE_OVERRIDE 0x02
408 #define EFI_ACPI_6_2_NON_MASKABLE_INTERRUPT_SOURCE 0x03
409 #define EFI_ACPI_6_2_LOCAL_APIC_NMI 0x04
410 #define EFI_ACPI_6_2_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
411 #define EFI_ACPI_6_2_IO_SAPIC 0x06
412 #define EFI_ACPI_6_2_LOCAL_SAPIC 0x07
413 #define EFI_ACPI_6_2_PLATFORM_INTERRUPT_SOURCES 0x08
414 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC 0x09
415 #define EFI_ACPI_6_2_LOCAL_X2APIC_NMI 0x0A
416 #define EFI_ACPI_6_2_GIC 0x0B
417 #define EFI_ACPI_6_2_GICD 0x0C
418 #define EFI_ACPI_6_2_GIC_MSI_FRAME 0x0D
419 #define EFI_ACPI_6_2_GICR 0x0E
420 #define EFI_ACPI_6_2_GIC_ITS 0x0F
423 // APIC Structure Definitions
427 /// Processor Local APIC Structure Definition
432 UINT8 AcpiProcessorUid
;
435 } EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_STRUCTURE
;
438 /// Local APIC Flags. All other bits are reserved and must be 0.
440 #define EFI_ACPI_6_2_LOCAL_APIC_ENABLED BIT0
443 /// IO APIC Structure
450 UINT32 IoApicAddress
;
451 UINT32 GlobalSystemInterruptBase
;
452 } EFI_ACPI_6_2_IO_APIC_STRUCTURE
;
455 /// Interrupt Source Override Structure
462 UINT32 GlobalSystemInterrupt
;
464 } EFI_ACPI_6_2_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE
;
467 /// Platform Interrupt Sources Structure Definition
477 UINT32 GlobalSystemInterrupt
;
478 UINT32 PlatformInterruptSourceFlags
;
479 UINT8 CpeiProcessorOverride
;
481 } EFI_ACPI_6_2_PLATFORM_INTERRUPT_APIC_STRUCTURE
;
485 // All other bits are reserved and must be set to 0.
487 #define EFI_ACPI_6_2_POLARITY (3 << 0)
488 #define EFI_ACPI_6_2_TRIGGER_MODE (3 << 2)
491 /// Non-Maskable Interrupt Source Structure
497 UINT32 GlobalSystemInterrupt
;
498 } EFI_ACPI_6_2_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE
;
501 /// Local APIC NMI Structure
506 UINT8 AcpiProcessorUid
;
509 } EFI_ACPI_6_2_LOCAL_APIC_NMI_STRUCTURE
;
512 /// Local APIC Address Override Structure
518 UINT64 LocalApicAddress
;
519 } EFI_ACPI_6_2_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE
;
522 /// IO SAPIC Structure
529 UINT32 GlobalSystemInterruptBase
;
530 UINT64 IoSapicAddress
;
531 } EFI_ACPI_6_2_IO_SAPIC_STRUCTURE
;
534 /// Local SAPIC Structure
535 /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
540 UINT8 AcpiProcessorId
;
545 UINT32 ACPIProcessorUIDValue
;
546 } EFI_ACPI_6_2_PROCESSOR_LOCAL_SAPIC_STRUCTURE
;
549 /// Platform Interrupt Sources Structure
559 UINT32 GlobalSystemInterrupt
;
560 UINT32 PlatformInterruptSourceFlags
;
561 } EFI_ACPI_6_2_PLATFORM_INTERRUPT_SOURCES_STRUCTURE
;
564 /// Platform Interrupt Source Flags.
565 /// All other bits are reserved and must be set to 0.
567 #define EFI_ACPI_6_2_CPEI_PROCESSOR_OVERRIDE BIT0
570 /// Processor Local x2APIC Structure Definition
578 UINT32 AcpiProcessorUid
;
579 } EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC_STRUCTURE
;
582 /// Local x2APIC NMI Structure
588 UINT32 AcpiProcessorUid
;
589 UINT8 LocalX2ApicLint
;
591 } EFI_ACPI_6_2_LOCAL_X2APIC_NMI_STRUCTURE
;
600 UINT32 CPUInterfaceNumber
;
601 UINT32 AcpiProcessorUid
;
603 UINT32 ParkingProtocolVersion
;
604 UINT32 PerformanceInterruptGsiv
;
605 UINT64 ParkedAddress
;
606 UINT64 PhysicalBaseAddress
;
609 UINT32 VGICMaintenanceInterrupt
;
610 UINT64 GICRBaseAddress
;
612 UINT8 ProcessorPowerEfficiencyClass
;
614 } EFI_ACPI_6_2_GIC_STRUCTURE
;
617 /// GIC Flags. All other bits are reserved and must be 0.
619 #define EFI_ACPI_6_2_GIC_ENABLED BIT0
620 #define EFI_ACPI_6_2_PERFORMANCE_INTERRUPT_MODEL BIT1
621 #define EFI_ACPI_6_2_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
624 /// GIC Distributor Structure
631 UINT64 PhysicalBaseAddress
;
632 UINT32 SystemVectorBase
;
635 } EFI_ACPI_6_2_GIC_DISTRIBUTOR_STRUCTURE
;
640 #define EFI_ACPI_6_2_GIC_V1 0x01
641 #define EFI_ACPI_6_2_GIC_V2 0x02
642 #define EFI_ACPI_6_2_GIC_V3 0x03
643 #define EFI_ACPI_6_2_GIC_V4 0x04
646 /// GIC MSI Frame Structure
652 UINT32 GicMsiFrameId
;
653 UINT64 PhysicalBaseAddress
;
657 } EFI_ACPI_6_2_GIC_MSI_FRAME_STRUCTURE
;
660 /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
662 #define EFI_ACPI_6_2_SPI_COUNT_BASE_SELECT BIT0
671 UINT64 DiscoveryRangeBaseAddress
;
672 UINT32 DiscoveryRangeLength
;
673 } EFI_ACPI_6_2_GICR_STRUCTURE
;
676 /// GIC Interrupt Translation Service Structure
683 UINT64 PhysicalBaseAddress
;
685 } EFI_ACPI_6_2_GIC_ITS_STRUCTURE
;
688 /// Smart Battery Description Table (SBST)
691 EFI_ACPI_DESCRIPTION_HEADER Header
;
692 UINT32 WarningEnergyLevel
;
693 UINT32 LowEnergyLevel
;
694 UINT32 CriticalEnergyLevel
;
695 } EFI_ACPI_6_2_SMART_BATTERY_DESCRIPTION_TABLE
;
698 /// SBST Version (as defined in ACPI 6.2 spec.)
700 #define EFI_ACPI_6_2_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
703 /// Embedded Controller Boot Resources Table (ECDT)
704 /// The table is followed by a null terminated ASCII string that contains
705 /// a fully qualified reference to the name space object.
708 EFI_ACPI_DESCRIPTION_HEADER Header
;
709 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE EcControl
;
710 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE EcData
;
713 } EFI_ACPI_6_2_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE
;
716 /// ECDT Version (as defined in ACPI 6.2 spec.)
718 #define EFI_ACPI_6_2_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
721 /// System Resource Affinity Table (SRAT). The rest of the table
722 /// must be defined in a platform specific manner.
725 EFI_ACPI_DESCRIPTION_HEADER Header
;
726 UINT32 Reserved1
; ///< Must be set to 1
728 } EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER
;
731 /// SRAT Version (as defined in ACPI 6.2 spec.)
733 #define EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
736 // SRAT structure types.
737 // All other values between 0x05 an 0xFF are reserved and
738 // will be ignored by OSPM.
740 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
741 #define EFI_ACPI_6_2_MEMORY_AFFINITY 0x01
742 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
743 #define EFI_ACPI_6_2_GICC_AFFINITY 0x03
744 #define EFI_ACPI_6_2_GIC_ITS_AFFINITY 0x04
747 /// Processor Local APIC/SAPIC Affinity Structure Definition
752 UINT8 ProximityDomain7To0
;
756 UINT8 ProximityDomain31To8
[3];
758 } EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE
;
761 /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
763 #define EFI_ACPI_6_2_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
766 /// Memory Affinity Structure Definition
771 UINT32 ProximityDomain
;
773 UINT32 AddressBaseLow
;
774 UINT32 AddressBaseHigh
;
780 } EFI_ACPI_6_2_MEMORY_AFFINITY_STRUCTURE
;
783 // Memory Flags. All other bits are reserved and must be 0.
785 #define EFI_ACPI_6_2_MEMORY_ENABLED (1 << 0)
786 #define EFI_ACPI_6_2_MEMORY_HOT_PLUGGABLE (1 << 1)
787 #define EFI_ACPI_6_2_MEMORY_NONVOLATILE (1 << 2)
790 /// Processor Local x2APIC Affinity Structure Definition
796 UINT32 ProximityDomain
;
801 } EFI_ACPI_6_2_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE
;
804 /// GICC Affinity Structure Definition
809 UINT32 ProximityDomain
;
810 UINT32 AcpiProcessorUid
;
813 } EFI_ACPI_6_2_GICC_AFFINITY_STRUCTURE
;
816 /// GICC Flags. All other bits are reserved and must be 0.
818 #define EFI_ACPI_6_2_GICC_ENABLED (1 << 0)
821 /// GIC Interrupt Translation Service (ITS) Affinity Structure Definition
826 UINT32 ProximityDomain
;
829 } EFI_ACPI_6_2_GIC_ITS_AFFINITY_STRUCTURE
;
832 /// System Locality Distance Information Table (SLIT).
833 /// The rest of the table is a matrix.
836 EFI_ACPI_DESCRIPTION_HEADER Header
;
837 UINT64 NumberOfSystemLocalities
;
838 } EFI_ACPI_6_2_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER
;
841 /// SLIT Version (as defined in ACPI 6.2 spec.)
843 #define EFI_ACPI_6_2_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
846 /// Corrected Platform Error Polling Table (CPEP)
849 EFI_ACPI_DESCRIPTION_HEADER Header
;
851 } EFI_ACPI_6_2_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER
;
854 /// CPEP Version (as defined in ACPI 6.2 spec.)
856 #define EFI_ACPI_6_2_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
859 // CPEP processor structure types.
861 #define EFI_ACPI_6_2_CPEP_PROCESSOR_APIC_SAPIC 0x00
864 /// Corrected Platform Error Polling Processor Structure Definition
871 UINT32 PollingInterval
;
872 } EFI_ACPI_6_2_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE
;
875 /// Maximum System Characteristics Table (MSCT)
878 EFI_ACPI_DESCRIPTION_HEADER Header
;
879 UINT32 OffsetProxDomInfo
;
880 UINT32 MaximumNumberOfProximityDomains
;
881 UINT32 MaximumNumberOfClockDomains
;
882 UINT64 MaximumPhysicalAddress
;
883 } EFI_ACPI_6_2_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER
;
886 /// MSCT Version (as defined in ACPI 6.2 spec.)
888 #define EFI_ACPI_6_2_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
891 /// Maximum Proximity Domain Information Structure Definition
896 UINT32 ProximityDomainRangeLow
;
897 UINT32 ProximityDomainRangeHigh
;
898 UINT32 MaximumProcessorCapacity
;
899 UINT64 MaximumMemoryCapacity
;
900 } EFI_ACPI_6_2_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE
;
903 /// ACPI RAS Feature Table definition.
906 EFI_ACPI_DESCRIPTION_HEADER Header
;
907 UINT8 PlatformCommunicationChannelIdentifier
[12];
908 } EFI_ACPI_6_2_RAS_FEATURE_TABLE
;
911 /// RASF Version (as defined in ACPI 6.2 spec.)
913 #define EFI_ACPI_6_2_RAS_FEATURE_TABLE_REVISION 0x01
916 /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
923 UINT8 RASCapabilities
[16];
924 UINT8 SetRASCapabilities
[16];
925 UINT16 NumberOfRASFParameterBlocks
;
926 UINT32 SetRASCapabilitiesStatus
;
927 } EFI_ACPI_6_2_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
930 /// ACPI RASF PCC command code
932 #define EFI_ACPI_6_2_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
935 /// ACPI RASF Platform RAS Capabilities
937 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED BIT0
938 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED_AND_EXPOSED_TO_SOFTWARE BIT1
939 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT2
940 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT3
941 #define EFI_ACPI_6_2_RASF_PLATFORM_RAS_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT4
944 /// ACPI RASF Parameter Block structure for PATROL_SCRUB
950 UINT16 PatrolScrubCommand
;
951 UINT64 RequestedAddressRange
[2];
952 UINT64 ActualAddressRange
[2];
954 UINT8 RequestedSpeed
;
955 } EFI_ACPI_6_2_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE
;
958 /// ACPI RASF Patrol Scrub command
960 #define EFI_ACPI_6_2_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
961 #define EFI_ACPI_6_2_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
962 #define EFI_ACPI_6_2_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
965 /// Memory Power State Table definition.
968 EFI_ACPI_DESCRIPTION_HEADER Header
;
969 UINT8 PlatformCommunicationChannelIdentifier
;
971 // Memory Power Node Structure
972 // Memory Power State Characteristics
973 } EFI_ACPI_6_2_MEMORY_POWER_STATUS_TABLE
;
976 /// MPST Version (as defined in ACPI 6.2 spec.)
978 #define EFI_ACPI_6_2_MEMORY_POWER_STATE_TABLE_REVISION 0x01
981 /// MPST Platform Communication Channel Shared Memory Region definition.
987 UINT32 MemoryPowerCommandRegister
;
988 UINT32 MemoryPowerStatusRegister
;
990 UINT32 MemoryPowerNodeId
;
991 UINT64 MemoryEnergyConsumed
;
992 UINT64 ExpectedAveragePowerComsuned
;
993 } EFI_ACPI_6_2_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION
;
996 /// ACPI MPST PCC command code
998 #define EFI_ACPI_6_2_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
1001 /// ACPI MPST Memory Power command
1003 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
1004 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
1005 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
1006 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
1009 /// MPST Memory Power Node Table
1012 UINT8 PowerStateValue
;
1013 UINT8 PowerStateInformationIndex
;
1014 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE
;
1019 UINT16 MemoryPowerNodeId
;
1022 UINT64 AddressLength
;
1023 UINT32 NumberOfPowerStates
;
1024 UINT32 NumberOfPhysicalComponents
;
1025 //EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
1026 //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
1027 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE
;
1029 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
1030 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
1031 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
1034 UINT16 MemoryPowerNodeCount
;
1036 } EFI_ACPI_6_2_MPST_MEMORY_POWER_NODE_TABLE
;
1039 /// MPST Memory Power State Characteristics Table
1042 UINT8 PowerStateStructureID
;
1045 UINT32 AveragePowerConsumedInMPS0
;
1046 UINT32 RelativePowerSavingToMPS0
;
1047 UINT64 ExitLatencyToMPS0
;
1048 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE
;
1050 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
1051 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
1052 #define EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
1055 UINT16 MemoryPowerStateCharacteristicsCount
;
1057 } EFI_ACPI_6_2_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE
;
1060 /// Memory Topology Table definition.
1063 EFI_ACPI_DESCRIPTION_HEADER Header
;
1065 } EFI_ACPI_6_2_MEMORY_TOPOLOGY_TABLE
;
1068 /// PMTT Version (as defined in ACPI 6.2 spec.)
1070 #define EFI_ACPI_6_2_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
1073 /// Common Memory Aggregator Device Structure.
1081 } EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1084 /// Memory Aggregator Device Type
1086 #define EFI_ACPI_6_2_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x1
1087 #define EFI_ACPI_6_2_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
1088 #define EFI_ACPI_6_2_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x3
1091 /// Socket Memory Aggregator Device Structure.
1094 EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1095 UINT16 SocketIdentifier
;
1097 //EFI_ACPI_6_2_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
1098 } EFI_ACPI_6_2_PMMT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1101 /// MemoryController Memory Aggregator Device Structure.
1104 EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1106 UINT32 WriteLatency
;
1107 UINT32 ReadBandwidth
;
1108 UINT32 WriteBandwidth
;
1109 UINT16 OptimalAccessUnit
;
1110 UINT16 OptimalAccessAlignment
;
1112 UINT16 NumberOfProximityDomains
;
1113 //UINT32 ProximityDomain[NumberOfProximityDomains];
1114 //EFI_ACPI_6_2_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
1115 } EFI_ACPI_6_2_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1118 /// DIMM Memory Aggregator Device Structure.
1121 EFI_ACPI_6_2_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE Header
;
1122 UINT16 PhysicalComponentIdentifier
;
1125 UINT32 SmbiosHandle
;
1126 } EFI_ACPI_6_2_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE
;
1129 /// Boot Graphics Resource Table definition.
1132 EFI_ACPI_DESCRIPTION_HEADER Header
;
1134 /// 2-bytes (16 bit) version ID. This value must be 1.
1138 /// 1-byte status field indicating current status about the table.
1139 /// Bits[7:1] = Reserved (must be zero)
1140 /// Bit [0] = Valid. A one indicates the boot image graphic is valid.
1144 /// 1-byte enumerated type field indicating format of the image.
1146 /// 1 - 255 Reserved (for future use)
1150 /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
1151 /// of the image bitmap.
1153 UINT64 ImageAddress
;
1155 /// A 4-byte (32-bit) unsigned long describing the display X-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 ImageOffsetX
;
1161 /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
1162 /// (X, Y) display offset of the top left corner of the boot image.
1163 /// The top left corner of the display is at offset (0, 0).
1165 UINT32 ImageOffsetY
;
1166 } EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE
;
1171 #define EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1176 #define EFI_ACPI_6_2_BGRT_VERSION 0x01
1181 #define EFI_ACPI_6_2_BGRT_STATUS_NOT_DISPLAYED 0x00
1182 #define EFI_ACPI_6_2_BGRT_STATUS_DISPLAYED 0x01
1187 #define EFI_ACPI_6_2_BGRT_IMAGE_TYPE_BMP 0x00
1190 /// FPDT Version (as defined in ACPI 6.2 spec.)
1192 #define EFI_ACPI_6_2_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1195 /// FPDT Performance Record Types
1197 #define EFI_ACPI_6_2_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1198 #define EFI_ACPI_6_2_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1201 /// FPDT Performance Record Revision
1203 #define EFI_ACPI_6_2_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1204 #define EFI_ACPI_6_2_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1207 /// FPDT Runtime Performance Record Types
1209 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1210 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1211 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1214 /// FPDT Runtime Performance Record Revision
1216 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1217 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1218 #define EFI_ACPI_6_2_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1221 /// FPDT Performance Record header
1227 } EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER
;
1230 /// FPDT Performance Table header
1235 } EFI_ACPI_6_2_FPDT_PERFORMANCE_TABLE_HEADER
;
1238 /// FPDT Firmware Basic Boot Performance Pointer Record Structure
1241 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1244 /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
1246 UINT64 BootPerformanceTablePointer
;
1247 } EFI_ACPI_6_2_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD
;
1250 /// FPDT S3 Performance Table Pointer Record Structure
1253 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1256 /// 64-bit processor-relative physical address of the S3 Performance Table.
1258 UINT64 S3PerformanceTablePointer
;
1259 } EFI_ACPI_6_2_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD
;
1262 /// FPDT Firmware Basic Boot Performance Record Structure
1265 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1268 /// Timer value logged at the beginning of firmware image execution.
1269 /// This may not always be zero or near zero.
1273 /// Timer value logged just prior to loading the OS boot loader into memory.
1274 /// For non-UEFI compatible boots, this field must be zero.
1276 UINT64 OsLoaderLoadImageStart
;
1278 /// Timer value logged just prior to launching the previously loaded OS boot loader image.
1279 /// For non-UEFI compatible boots, the timer value logged will be just prior
1280 /// to the INT 19h handler invocation.
1282 UINT64 OsLoaderStartImageStart
;
1284 /// Timer value logged at the point when the OS loader calls the
1285 /// ExitBootServices function for UEFI compatible firmware.
1286 /// For non-UEFI compatible boots, this field must be zero.
1288 UINT64 ExitBootServicesEntry
;
1290 /// Timer value logged at the point just prior towhen the OS loader gaining
1291 /// control back from calls the ExitBootServices function for UEFI compatible firmware.
1292 /// For non-UEFI compatible boots, this field must be zero.
1294 UINT64 ExitBootServicesExit
;
1295 } EFI_ACPI_6_2_FPDT_FIRMWARE_BASIC_BOOT_RECORD
;
1298 /// FPDT Firmware Basic Boot Performance Table signature
1300 #define EFI_ACPI_6_2_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1303 // FPDT Firmware Basic Boot Performance Table
1306 EFI_ACPI_6_2_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1308 // one or more Performance Records.
1310 } EFI_ACPI_6_2_FPDT_FIRMWARE_BASIC_BOOT_TABLE
;
1313 /// FPDT "S3PT" S3 Performance Table
1315 #define EFI_ACPI_6_2_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1318 // FPDT Firmware S3 Boot Performance Table
1321 EFI_ACPI_6_2_FPDT_PERFORMANCE_TABLE_HEADER Header
;
1323 // one or more Performance Records.
1325 } EFI_ACPI_6_2_FPDT_FIRMWARE_S3_BOOT_TABLE
;
1328 /// FPDT Basic S3 Resume Performance Record
1331 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1333 /// A count of the number of S3 resume cycles since the last full boot sequence.
1337 /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
1338 /// OS waking vector. Only the most recent resume cycle's time is retained.
1342 /// Average timer value of all resume cycles logged since the last full boot
1343 /// sequence, including the most recent resume. Note that the entire log of
1344 /// timer values does not need to be retained in order to calculate this average.
1346 UINT64 AverageResume
;
1347 } EFI_ACPI_6_2_FPDT_S3_RESUME_RECORD
;
1350 /// FPDT Basic S3 Suspend Performance Record
1353 EFI_ACPI_6_2_FPDT_PERFORMANCE_RECORD_HEADER Header
;
1355 /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
1356 /// Only the most recent suspend cycle's timer value is retained.
1358 UINT64 SuspendStart
;
1360 /// Timer value recorded at the final firmware write to SLP_TYP (or other
1361 /// mechanism) used to trigger hardware entry to S3.
1362 /// Only the most recent suspend cycle's timer value is retained.
1365 } EFI_ACPI_6_2_FPDT_S3_SUSPEND_RECORD
;
1368 /// Firmware Performance Record Table definition.
1371 EFI_ACPI_DESCRIPTION_HEADER Header
;
1372 } EFI_ACPI_6_2_FIRMWARE_PERFORMANCE_RECORD_TABLE
;
1375 /// Generic Timer Description Table definition.
1378 EFI_ACPI_DESCRIPTION_HEADER Header
;
1379 UINT64 CntControlBasePhysicalAddress
;
1381 UINT32 SecurePL1TimerGSIV
;
1382 UINT32 SecurePL1TimerFlags
;
1383 UINT32 NonSecurePL1TimerGSIV
;
1384 UINT32 NonSecurePL1TimerFlags
;
1385 UINT32 VirtualTimerGSIV
;
1386 UINT32 VirtualTimerFlags
;
1387 UINT32 NonSecurePL2TimerGSIV
;
1388 UINT32 NonSecurePL2TimerFlags
;
1389 UINT64 CntReadBasePhysicalAddress
;
1390 UINT32 PlatformTimerCount
;
1391 UINT32 PlatformTimerOffset
;
1392 } EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE
;
1395 /// GTDT Version (as defined in ACPI 6.2 spec.)
1397 #define EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x02
1400 /// Timer Flags. All other bits are reserved and must be 0.
1402 #define EFI_ACPI_6_2_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1403 #define EFI_ACPI_6_2_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1404 #define EFI_ACPI_6_2_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
1407 /// Platform Timer Type
1409 #define EFI_ACPI_6_2_GTDT_GT_BLOCK 0
1410 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG 1
1413 /// GT Block Structure
1420 UINT32 GTBlockTimerCount
;
1421 UINT32 GTBlockTimerOffset
;
1422 } EFI_ACPI_6_2_GTDT_GT_BLOCK_STRUCTURE
;
1425 /// GT Block Timer Structure
1428 UINT8 GTFrameNumber
;
1432 UINT32 GTxPhysicalTimerGSIV
;
1433 UINT32 GTxPhysicalTimerFlags
;
1434 UINT32 GTxVirtualTimerGSIV
;
1435 UINT32 GTxVirtualTimerFlags
;
1436 UINT32 GTxCommonFlags
;
1437 } EFI_ACPI_6_2_GTDT_GT_BLOCK_TIMER_STRUCTURE
;
1440 /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
1442 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1443 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1446 /// Common Flags Flags. All other bits are reserved and must be 0.
1448 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
1449 #define EFI_ACPI_6_2_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
1452 /// SBSA Generic Watchdog Structure
1458 UINT64 RefreshFramePhysicalAddress
;
1459 UINT64 WatchdogControlFramePhysicalAddress
;
1460 UINT32 WatchdogTimerGSIV
;
1461 UINT32 WatchdogTimerFlags
;
1462 } EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_STRUCTURE
;
1465 /// SBSA Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
1467 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
1468 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1469 #define EFI_ACPI_6_2_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
1472 // NVDIMM Firmware Interface Table definition.
1475 EFI_ACPI_DESCRIPTION_HEADER Header
;
1477 } EFI_ACPI_6_2_NVDIMM_FIRMWARE_INTERFACE_TABLE
;
1480 // NFIT Version (as defined in ACPI 6.2 spec.)
1482 #define EFI_ACPI_6_2_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1
1485 // Definition for NFIT Table Structure Types
1487 #define EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE 0
1488 #define EFI_ACPI_6_2_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE_TYPE 1
1489 #define EFI_ACPI_6_2_NFIT_INTERLEAVE_STRUCTURE_TYPE 2
1490 #define EFI_ACPI_6_2_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE 3
1491 #define EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE 4
1492 #define EFI_ACPI_6_2_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE 5
1493 #define EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE 6
1496 // Definition for NFIT Structure Header
1501 } EFI_ACPI_6_2_NFIT_STRUCTURE_HEADER
;
1504 // Definition for System Physical Address Range Structure
1506 #define EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGION_FOR_MANAGEMENT BIT0
1507 #define EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DOMAIN_VALID BIT1
1508 #define EFI_ACPI_6_2_NFIT_GUID_VOLATILE_MEMORY_REGION { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52, 0xE5, 0xD0 }}
1509 #define EFI_ACPI_6_2_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7, 0x8C, 0xDB }}
1510 #define EFI_ACPI_6_2_NFIT_GUID_NVDIMM_CONTROL_REGION { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8, 0x23, 0x4C }}
1511 #define EFI_ACPI_6_2_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION { 0x91AF0530, 0x5D86, 0x470E, { 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40, 0x82, 0x49 }}
1512 #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 }}
1513 #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 }}
1514 #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 }}
1515 #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 ]}
1519 UINT16 SPARangeStructureIndex
;
1522 UINT32 ProximityDomain
;
1523 GUID AddressRangeTypeGUID
;
1524 UINT64 SystemPhysicalAddressRangeBase
;
1525 UINT64 SystemPhysicalAddressRangeLength
;
1526 UINT64 AddressRangeMemoryMappingAttribute
;
1527 } EFI_ACPI_6_2_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE
;
1530 // Definition for Memory Device to System Physical Address Range Mapping Structure
1533 UINT32 DIMMNumber
:4;
1534 UINT32 MemoryChannelNumber
:4;
1535 UINT32 MemoryControllerID
:4;
1537 UINT32 NodeControllerID
:12;
1538 UINT32 Reserved_28
:4;
1539 } EFI_ACPI_6_2_NFIT_DEVICE_HANDLE
;
1541 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL BIT0
1542 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL BIT1
1543 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL BIT2
1544 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSPM_HAND_OFF BIT3
1545 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PRIOR_OSPM_HAND_OFF BIT4
1546 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NOTIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5
1547 #define EFI_ACPI_6_2_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_NOT_MAP_NVDIMM_TO_SPA BIT6
1551 EFI_ACPI_6_2_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1552 UINT16 NVDIMMPhysicalID
;
1553 UINT16 NVDIMMRegionID
;
1554 UINT16 SPARangeStructureIndex
;
1555 UINT16 NVDIMMControlRegionStructureIndex
;
1556 UINT64 NVDIMMRegionSize
;
1557 UINT64 RegionOffset
;
1558 UINT64 NVDIMMPhysicalAddressRegionBase
;
1559 UINT16 InterleaveStructureIndex
;
1560 UINT16 InterleaveWays
;
1561 UINT16 NVDIMMStateFlags
;
1563 } EFI_ACPI_6_2_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE
;
1566 // Definition for Interleave Structure
1571 UINT16 InterleaveStructureIndex
;
1573 UINT32 NumberOfLines
;
1575 //UINT32 LineOffset[NumberOfLines];
1576 } EFI_ACPI_6_2_NFIT_INTERLEAVE_STRUCTURE
;
1579 // Definition for SMBIOS Management Information Structure
1586 } EFI_ACPI_6_2_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE
;
1589 // Definition for NVDIMM Control Region Structure
1591 #define EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_VALID_FIELDS_MANUFACTURING BIT0
1593 #define EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_BUFFERED BIT0
1597 UINT16 NVDIMMControlRegionStructureIndex
;
1601 UINT16 SubsystemVendorID
;
1602 UINT16 SubsystemDeviceID
;
1603 UINT16 SubsystemRevisionID
;
1605 UINT8 ManufacturingLocation
;
1606 UINT16 ManufacturingDate
;
1607 UINT8 Reserved_22
[2];
1608 UINT32 SerialNumber
;
1609 UINT16 RegionFormatInterfaceCode
;
1610 UINT16 NumberOfBlockControlWindows
;
1611 UINT64 SizeOfBlockControlWindow
;
1612 UINT64 CommandRegisterOffsetInBlockControlWindow
;
1613 UINT64 SizeOfCommandRegisterInBlockControlWindows
;
1614 UINT64 StatusRegisterOffsetInBlockControlWindow
;
1615 UINT64 SizeOfStatusRegisterInBlockControlWindows
;
1616 UINT16 NVDIMMControlRegionFlag
;
1617 UINT8 Reserved_74
[6];
1618 } EFI_ACPI_6_2_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE
;
1621 // Definition for NVDIMM Block Data Window Region Structure
1626 UINT16 NVDIMMControlRegionStructureIndex
;
1627 UINT16 NumberOfBlockDataWindows
;
1628 UINT64 BlockDataWindowStartOffset
;
1629 UINT64 SizeOfBlockDataWindow
;
1630 UINT64 BlockAccessibleMemoryCapacity
;
1631 UINT64 BeginningAddressOfFirstBlockInBlockAccessibleMemory
;
1632 } EFI_ACPI_6_2_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE
;
1635 // Definition for Flush Hint Address Structure
1640 EFI_ACPI_6_2_NFIT_DEVICE_HANDLE NFITDeviceHandle
;
1641 UINT16 NumberOfFlushHintAddresses
;
1642 UINT8 Reserved_10
[6];
1643 //UINT64 FlushHintAddress[NumberOfFlushHintAddresses];
1644 } EFI_ACPI_6_2_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE
;
1647 /// Secure DEVices Table (SDEV)
1650 EFI_ACPI_DESCRIPTION_HEADER Header
;
1651 } EFI_ACPI_6_2_SECURE_DEVICES_TABLE_HEADER
;
1654 /// SDEV Revision (as defined in ACPI 6.2 spec.)
1656 #define EFI_ACPI_6_2_SECURE_DEVICES_TABLE_REVISION 0x01
1659 /// Secure Devcice types
1661 #define EFI_ACPI_6_2_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01
1662 #define EFI_ACPI_6_2_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00
1665 /// Secure Devcice flags
1667 #define EFI_ACPI_6_2_SDEV_FLAG_ALLOW_HANDOFF BIT0
1670 /// SDEV Structure Header
1676 } EFI_ACPI_6_2_SDEV_STRUCTURE_HEADER
;
1679 /// PCIe Endpoint Device based Secure Device Structure
1685 UINT16 PciSegmentNumber
;
1686 UINT16 StartBusNumber
;
1687 UINT16 PciPathOffset
;
1688 UINT16 PciPathLength
;
1689 UINT16 VendorSpecificDataOffset
;
1690 UINT16 VendorSpecificDataLength
;
1691 } EFI_ACPI_6_2_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE
;
1694 /// ACPI_NAMESPACE_DEVICE based Secure Device Structure
1700 UINT16 DeviceIdentifierOffset
;
1701 UINT16 DeviceIdentifierLength
;
1702 UINT16 VendorSpecificDataOffset
;
1703 UINT16 VendorSpecificDataLength
;
1704 } EFI_ACPI_6_2_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE
;
1707 /// Boot Error Record Table (BERT)
1710 EFI_ACPI_DESCRIPTION_HEADER Header
;
1711 UINT32 BootErrorRegionLength
;
1712 UINT64 BootErrorRegion
;
1713 } EFI_ACPI_6_2_BOOT_ERROR_RECORD_TABLE_HEADER
;
1716 /// BERT Version (as defined in ACPI 6.2 spec.)
1718 #define EFI_ACPI_6_2_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1721 /// Boot Error Region Block Status Definition
1724 UINT32 UncorrectableErrorValid
:1;
1725 UINT32 CorrectableErrorValid
:1;
1726 UINT32 MultipleUncorrectableErrors
:1;
1727 UINT32 MultipleCorrectableErrors
:1;
1728 UINT32 ErrorDataEntryCount
:10;
1730 } EFI_ACPI_6_2_ERROR_BLOCK_STATUS
;
1733 /// Boot Error Region Definition
1736 EFI_ACPI_6_2_ERROR_BLOCK_STATUS BlockStatus
;
1737 UINT32 RawDataOffset
;
1738 UINT32 RawDataLength
;
1740 UINT32 ErrorSeverity
;
1741 } EFI_ACPI_6_2_BOOT_ERROR_REGION_STRUCTURE
;
1744 // Boot Error Severity types
1746 #define EFI_ACPI_6_2_ERROR_SEVERITY_CORRECTABLE 0x00
1747 #define EFI_ACPI_6_2_ERROR_SEVERITY_FATAL 0x01
1748 #define EFI_ACPI_6_2_ERROR_SEVERITY_CORRECTED 0x02
1749 #define EFI_ACPI_6_2_ERROR_SEVERITY_NONE 0x03
1752 /// Generic Error Data Entry Definition
1755 UINT8 SectionType
[16];
1756 UINT32 ErrorSeverity
;
1758 UINT8 ValidationBits
;
1760 UINT32 ErrorDataLength
;
1764 } EFI_ACPI_6_2_GENERIC_ERROR_DATA_ENTRY_STRUCTURE
;
1767 /// Generic Error Data Entry Version (as defined in ACPI 6.2 spec.)
1769 #define EFI_ACPI_6_2_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0300
1772 /// HEST - Hardware Error Source Table
1775 EFI_ACPI_DESCRIPTION_HEADER Header
;
1776 UINT32 ErrorSourceCount
;
1777 } EFI_ACPI_6_2_HARDWARE_ERROR_SOURCE_TABLE_HEADER
;
1780 /// HEST Version (as defined in ACPI 6.2 spec.)
1782 #define EFI_ACPI_6_2_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1785 // Error Source structure types.
1787 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1788 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1789 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_NMI_ERROR 0x02
1790 #define EFI_ACPI_6_2_PCI_EXPRESS_ROOT_PORT_AER 0x06
1791 #define EFI_ACPI_6_2_PCI_EXPRESS_DEVICE_AER 0x07
1792 #define EFI_ACPI_6_2_PCI_EXPRESS_BRIDGE_AER 0x08
1793 #define EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR 0x09
1794 #define EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR_VERSION_2 0x0A
1795 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK 0x0B
1798 // Error Source structure flags.
1800 #define EFI_ACPI_6_2_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1801 #define EFI_ACPI_6_2_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1802 #define EFI_ACPI_6_2_ERROR_SOURCE_FLAG_GHES_ASSIST (1 << 2)
1805 /// IA-32 Architecture Machine Check Exception Structure Definition
1813 UINT32 NumberOfRecordsToPreAllocate
;
1814 UINT32 MaxSectionsPerRecord
;
1815 UINT64 GlobalCapabilityInitData
;
1816 UINT64 GlobalControlInitData
;
1817 UINT8 NumberOfHardwareBanks
;
1819 } EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE
;
1822 /// IA-32 Architecture Machine Check Bank Structure Definition
1826 UINT8 ClearStatusOnInitialization
;
1827 UINT8 StatusDataFormat
;
1829 UINT32 ControlRegisterMsrAddress
;
1830 UINT64 ControlInitData
;
1831 UINT32 StatusRegisterMsrAddress
;
1832 UINT32 AddressRegisterMsrAddress
;
1833 UINT32 MiscRegisterMsrAddress
;
1834 } EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE
;
1837 /// IA-32 Architecture Machine Check Bank Structure MCA data format
1839 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1840 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1841 #define EFI_ACPI_6_2_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1844 // Hardware Error Notification types. All other values are reserved
1846 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1847 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1848 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1849 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1850 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1851 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_CMCI 0x05
1852 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_MCE 0x06
1853 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_GPIO_SIGNAL 0x07
1854 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEA 0x08
1855 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEI 0x09
1856 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_GSIV 0x0A
1857 #define EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_SOFTWARE_DELEGATED_EXCEPTION 0x0B
1860 /// Hardware Error Notification Configuration Write Enable Structure Definition
1864 UINT16 PollInterval
:1;
1865 UINT16 SwitchToPollingThresholdValue
:1;
1866 UINT16 SwitchToPollingThresholdWindow
:1;
1867 UINT16 ErrorThresholdValue
:1;
1868 UINT16 ErrorThresholdWindow
:1;
1870 } EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE
;
1873 /// Hardware Error Notification Structure Definition
1878 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable
;
1879 UINT32 PollInterval
;
1881 UINT32 SwitchToPollingThresholdValue
;
1882 UINT32 SwitchToPollingThresholdWindow
;
1883 UINT32 ErrorThresholdValue
;
1884 UINT32 ErrorThresholdWindow
;
1885 } EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE
;
1888 /// IA-32 Architecture Corrected Machine Check Structure Definition
1896 UINT32 NumberOfRecordsToPreAllocate
;
1897 UINT32 MaxSectionsPerRecord
;
1898 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1899 UINT8 NumberOfHardwareBanks
;
1901 } EFI_ACPI_6_2_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE
;
1904 /// IA-32 Architecture NMI Error Structure Definition
1910 UINT32 NumberOfRecordsToPreAllocate
;
1911 UINT32 MaxSectionsPerRecord
;
1912 UINT32 MaxRawDataLength
;
1913 } EFI_ACPI_6_2_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE
;
1916 /// PCI Express Root Port AER Structure Definition
1924 UINT32 NumberOfRecordsToPreAllocate
;
1925 UINT32 MaxSectionsPerRecord
;
1929 UINT16 DeviceControl
;
1931 UINT32 UncorrectableErrorMask
;
1932 UINT32 UncorrectableErrorSeverity
;
1933 UINT32 CorrectableErrorMask
;
1934 UINT32 AdvancedErrorCapabilitiesAndControl
;
1935 UINT32 RootErrorCommand
;
1936 } EFI_ACPI_6_2_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE
;
1939 /// PCI Express Device AER Structure Definition
1947 UINT32 NumberOfRecordsToPreAllocate
;
1948 UINT32 MaxSectionsPerRecord
;
1952 UINT16 DeviceControl
;
1954 UINT32 UncorrectableErrorMask
;
1955 UINT32 UncorrectableErrorSeverity
;
1956 UINT32 CorrectableErrorMask
;
1957 UINT32 AdvancedErrorCapabilitiesAndControl
;
1958 } EFI_ACPI_6_2_PCI_EXPRESS_DEVICE_AER_STRUCTURE
;
1961 /// PCI Express Bridge AER Structure Definition
1969 UINT32 NumberOfRecordsToPreAllocate
;
1970 UINT32 MaxSectionsPerRecord
;
1974 UINT16 DeviceControl
;
1976 UINT32 UncorrectableErrorMask
;
1977 UINT32 UncorrectableErrorSeverity
;
1978 UINT32 CorrectableErrorMask
;
1979 UINT32 AdvancedErrorCapabilitiesAndControl
;
1980 UINT32 SecondaryUncorrectableErrorMask
;
1981 UINT32 SecondaryUncorrectableErrorSeverity
;
1982 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl
;
1983 } EFI_ACPI_6_2_PCI_EXPRESS_BRIDGE_AER_STRUCTURE
;
1986 /// Generic Hardware Error Source Structure Definition
1991 UINT16 RelatedSourceId
;
1994 UINT32 NumberOfRecordsToPreAllocate
;
1995 UINT32 MaxSectionsPerRecord
;
1996 UINT32 MaxRawDataLength
;
1997 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
1998 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
1999 UINT32 ErrorStatusBlockLength
;
2000 } EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE
;
2003 /// Generic Hardware Error Source Version 2 Structure Definition
2008 UINT16 RelatedSourceId
;
2011 UINT32 NumberOfRecordsToPreAllocate
;
2012 UINT32 MaxSectionsPerRecord
;
2013 UINT32 MaxRawDataLength
;
2014 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress
;
2015 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
2016 UINT32 ErrorStatusBlockLength
;
2017 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ReadAckRegister
;
2018 UINT64 ReadAckPreserve
;
2019 UINT64 ReadAckWrite
;
2020 } EFI_ACPI_6_2_GENERIC_HARDWARE_ERROR_SOURCE_VERSION_2_STRUCTURE
;
2023 /// Generic Error Status Definition
2026 EFI_ACPI_6_2_ERROR_BLOCK_STATUS BlockStatus
;
2027 UINT32 RawDataOffset
;
2028 UINT32 RawDataLength
;
2030 UINT32 ErrorSeverity
;
2031 } EFI_ACPI_6_2_GENERIC_ERROR_STATUS_STRUCTURE
;
2034 /// IA-32 Architecture Deferred Machine Check Structure Definition
2042 UINT32 NumberOfRecordsToPreAllocate
;
2043 UINT32 MaxSectionsPerRecord
;
2044 EFI_ACPI_6_2_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure
;
2045 UINT8 NumberOfHardwareBanks
;
2047 } EFI_ACPI_6_2_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK_STRUCTURE
;;
2050 /// HMAT - Heterogeneous Memory Attribute Table
2053 EFI_ACPI_DESCRIPTION_HEADER Header
;
2055 } EFI_ACPI_6_2_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_HEADER
;
2058 /// HMAT Revision (as defined in ACPI 6.2 spec.)
2060 #define EFI_ACPI_6_2_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION 0x01
2065 #define EFI_ACPI_6_2_HMAT_TYPE_MEMORY_SUBSYSTEM_ADDRESS_RANGE 0x00
2066 #define EFI_ACPI_6_2_HMAT_TYPE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO 0x01
2067 #define EFI_ACPI_6_2_HMAT_TYPE_MEMORY_SIDE_CACHE_INFO 0x02
2070 /// HMAT Structure Header
2076 } EFI_ACPI_6_2_HMAT_STRUCTURE_HEADER
;
2079 /// Memory Subsystem Address Range Structure flags
2082 UINT16 ProcessorProximityDomainValid
:1;
2083 UINT16 MemoryProximityDomainValid
:1;
2084 UINT16 ReservationHint
:1;
2086 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SUBSYSTEM_ADDRESS_RANGE_FLAGS
;
2089 /// Memory Subsystem Address Range Structure
2095 EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SUBSYSTEM_ADDRESS_RANGE_FLAGS Flags
;
2097 UINT32 ProcessorProximityDomain
;
2098 UINT32 MemoryProximityDomain
;
2100 UINT64 SystemPhysicalAddressRangeBase
;
2101 UINT64 SystemPhysicalAddressRangeLength
;
2102 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SUBSYSTEM_ADDRESS_RANGE
;
2105 /// System Locality Latency and Bandwidth Information Structure flags
2108 UINT8 MemoryHierarchy
:5;
2110 } EFI_ACPI_6_2_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS
;
2113 /// System Locality Latency and Bandwidth Information Structure
2119 EFI_ACPI_6_2_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS Flags
;
2122 UINT32 NumberOfInitiatorProximityDomains
;
2123 UINT32 NumberOfTargetProximityDomains
;
2125 UINT64 EntryBaseUnit
;
2126 } EFI_ACPI_6_2_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO
;
2129 /// Memory Side Cache Information Structure cache attributes
2132 UINT32 TotalCacheLevels
:4;
2133 UINT32 CacheLevel
:4;
2134 UINT32 CacheAssociativity
:4;
2135 UINT32 WritePolicy
:4;
2136 UINT32 CacheLineSize
:16;
2137 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES
;
2140 /// Memory Side Cache Information Structure
2146 UINT32 MemoryProximityDomain
;
2148 UINT64 MemorySideCacheSize
;
2149 EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES CacheAttributes
;
2151 UINT16 NumberOfSmbiosHandles
;
2152 } EFI_ACPI_6_2_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO
;
2155 /// ERST - Error Record Serialization Table
2158 EFI_ACPI_DESCRIPTION_HEADER Header
;
2159 UINT32 SerializationHeaderSize
;
2161 UINT32 InstructionEntryCount
;
2162 } EFI_ACPI_6_2_ERROR_RECORD_SERIALIZATION_TABLE_HEADER
;
2165 /// ERST Version (as defined in ACPI 6.2 spec.)
2167 #define EFI_ACPI_6_2_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
2170 /// ERST Serialization Actions
2172 #define EFI_ACPI_6_2_ERST_BEGIN_WRITE_OPERATION 0x00
2173 #define EFI_ACPI_6_2_ERST_BEGIN_READ_OPERATION 0x01
2174 #define EFI_ACPI_6_2_ERST_BEGIN_CLEAR_OPERATION 0x02
2175 #define EFI_ACPI_6_2_ERST_END_OPERATION 0x03
2176 #define EFI_ACPI_6_2_ERST_SET_RECORD_OFFSET 0x04
2177 #define EFI_ACPI_6_2_ERST_EXECUTE_OPERATION 0x05
2178 #define EFI_ACPI_6_2_ERST_CHECK_BUSY_STATUS 0x06
2179 #define EFI_ACPI_6_2_ERST_GET_COMMAND_STATUS 0x07
2180 #define EFI_ACPI_6_2_ERST_GET_RECORD_IDENTIFIER 0x08
2181 #define EFI_ACPI_6_2_ERST_SET_RECORD_IDENTIFIER 0x09
2182 #define EFI_ACPI_6_2_ERST_GET_RECORD_COUNT 0x0A
2183 #define EFI_ACPI_6_2_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
2184 #define EFI_ACPI_6_2_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
2185 #define EFI_ACPI_6_2_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
2186 #define EFI_ACPI_6_2_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
2187 #define EFI_ACPI_6_2_ERST_GET_EXECUTE_OPERATION_TIMINGS 0x10
2190 /// ERST Action Command Status
2192 #define EFI_ACPI_6_2_ERST_STATUS_SUCCESS 0x00
2193 #define EFI_ACPI_6_2_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
2194 #define EFI_ACPI_6_2_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
2195 #define EFI_ACPI_6_2_ERST_STATUS_FAILED 0x03
2196 #define EFI_ACPI_6_2_ERST_STATUS_RECORD_STORE_EMPTY 0x04
2197 #define EFI_ACPI_6_2_ERST_STATUS_RECORD_NOT_FOUND 0x05
2200 /// ERST Serialization Instructions
2202 #define EFI_ACPI_6_2_ERST_READ_REGISTER 0x00
2203 #define EFI_ACPI_6_2_ERST_READ_REGISTER_VALUE 0x01
2204 #define EFI_ACPI_6_2_ERST_WRITE_REGISTER 0x02
2205 #define EFI_ACPI_6_2_ERST_WRITE_REGISTER_VALUE 0x03
2206 #define EFI_ACPI_6_2_ERST_NOOP 0x04
2207 #define EFI_ACPI_6_2_ERST_LOAD_VAR1 0x05
2208 #define EFI_ACPI_6_2_ERST_LOAD_VAR2 0x06
2209 #define EFI_ACPI_6_2_ERST_STORE_VAR1 0x07
2210 #define EFI_ACPI_6_2_ERST_ADD 0x08
2211 #define EFI_ACPI_6_2_ERST_SUBTRACT 0x09
2212 #define EFI_ACPI_6_2_ERST_ADD_VALUE 0x0A
2213 #define EFI_ACPI_6_2_ERST_SUBTRACT_VALUE 0x0B
2214 #define EFI_ACPI_6_2_ERST_STALL 0x0C
2215 #define EFI_ACPI_6_2_ERST_STALL_WHILE_TRUE 0x0D
2216 #define EFI_ACPI_6_2_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
2217 #define EFI_ACPI_6_2_ERST_GOTO 0x0F
2218 #define EFI_ACPI_6_2_ERST_SET_SRC_ADDRESS_BASE 0x10
2219 #define EFI_ACPI_6_2_ERST_SET_DST_ADDRESS_BASE 0x11
2220 #define EFI_ACPI_6_2_ERST_MOVE_DATA 0x12
2223 /// ERST Instruction Flags
2225 #define EFI_ACPI_6_2_ERST_PRESERVE_REGISTER 0x01
2228 /// ERST Serialization Instruction Entry
2231 UINT8 SerializationAction
;
2235 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2238 } EFI_ACPI_6_2_ERST_SERIALIZATION_INSTRUCTION_ENTRY
;
2241 /// EINJ - Error Injection Table
2244 EFI_ACPI_DESCRIPTION_HEADER Header
;
2245 UINT32 InjectionHeaderSize
;
2246 UINT8 InjectionFlags
;
2248 UINT32 InjectionEntryCount
;
2249 } EFI_ACPI_6_2_ERROR_INJECTION_TABLE_HEADER
;
2252 /// EINJ Version (as defined in ACPI 6.2 spec.)
2254 #define EFI_ACPI_6_2_ERROR_INJECTION_TABLE_REVISION 0x01
2257 /// EINJ Error Injection Actions
2259 #define EFI_ACPI_6_2_EINJ_BEGIN_INJECTION_OPERATION 0x00
2260 #define EFI_ACPI_6_2_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
2261 #define EFI_ACPI_6_2_EINJ_SET_ERROR_TYPE 0x02
2262 #define EFI_ACPI_6_2_EINJ_GET_ERROR_TYPE 0x03
2263 #define EFI_ACPI_6_2_EINJ_END_OPERATION 0x04
2264 #define EFI_ACPI_6_2_EINJ_EXECUTE_OPERATION 0x05
2265 #define EFI_ACPI_6_2_EINJ_CHECK_BUSY_STATUS 0x06
2266 #define EFI_ACPI_6_2_EINJ_GET_COMMAND_STATUS 0x07
2267 #define EFI_ACPI_6_2_EINJ_TRIGGER_ERROR 0xFF
2270 /// EINJ Action Command Status
2272 #define EFI_ACPI_6_2_EINJ_STATUS_SUCCESS 0x00
2273 #define EFI_ACPI_6_2_EINJ_STATUS_UNKNOWN_FAILURE 0x01
2274 #define EFI_ACPI_6_2_EINJ_STATUS_INVALID_ACCESS 0x02
2277 /// EINJ Error Type Definition
2279 #define EFI_ACPI_6_2_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
2280 #define EFI_ACPI_6_2_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
2281 #define EFI_ACPI_6_2_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
2282 #define EFI_ACPI_6_2_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
2283 #define EFI_ACPI_6_2_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
2284 #define EFI_ACPI_6_2_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
2285 #define EFI_ACPI_6_2_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
2286 #define EFI_ACPI_6_2_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
2287 #define EFI_ACPI_6_2_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
2288 #define EFI_ACPI_6_2_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
2289 #define EFI_ACPI_6_2_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
2290 #define EFI_ACPI_6_2_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
2293 /// EINJ Injection Instructions
2295 #define EFI_ACPI_6_2_EINJ_READ_REGISTER 0x00
2296 #define EFI_ACPI_6_2_EINJ_READ_REGISTER_VALUE 0x01
2297 #define EFI_ACPI_6_2_EINJ_WRITE_REGISTER 0x02
2298 #define EFI_ACPI_6_2_EINJ_WRITE_REGISTER_VALUE 0x03
2299 #define EFI_ACPI_6_2_EINJ_NOOP 0x04
2302 /// EINJ Instruction Flags
2304 #define EFI_ACPI_6_2_EINJ_PRESERVE_REGISTER 0x01
2307 /// EINJ Injection Instruction Entry
2310 UINT8 InjectionAction
;
2314 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE RegisterRegion
;
2317 } EFI_ACPI_6_2_EINJ_INJECTION_INSTRUCTION_ENTRY
;
2320 /// EINJ Trigger Action Table
2327 } EFI_ACPI_6_2_EINJ_TRIGGER_ACTION_TABLE
;
2330 /// Platform Communications Channel Table (PCCT)
2333 EFI_ACPI_DESCRIPTION_HEADER Header
;
2336 } EFI_ACPI_6_2_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER
;
2339 /// PCCT Version (as defined in ACPI 6.2 spec.)
2341 #define EFI_ACPI_6_2_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x02
2344 /// PCCT Global Flags
2346 #define EFI_ACPI_6_2_PCCT_FLAGS_PLATFORM_INTERRUPT BIT0
2349 // PCCT Subspace type
2351 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_GENERIC 0x00
2352 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS 0x01
2353 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS 0x02
2354 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC 0x03
2355 #define EFI_ACPI_6_2_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC 0x04
2358 /// PCC Subspace Structure Header
2363 } EFI_ACPI_6_2_PCCT_SUBSPACE_HEADER
;
2366 /// Generic Communications Subspace Structure
2373 UINT64 AddressLength
;
2374 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2375 UINT64 DoorbellPreserve
;
2376 UINT64 DoorbellWrite
;
2377 UINT32 NominalLatency
;
2378 UINT32 MaximumPeriodicAccessRate
;
2379 UINT16 MinimumRequestTurnaroundTime
;
2380 } EFI_ACPI_6_2_PCCT_SUBSPACE_GENERIC
;
2383 /// Generic Communications Channel Shared Memory Region
2389 UINT8 NotifyOnCompletion
:1;
2390 } EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND
;
2393 UINT8 CommandComplete
:1;
2394 UINT8 PlatformInterrupt
:1;
2396 UINT8 PlatformNotification
:1;
2399 } EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS
;
2403 EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command
;
2404 EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status
;
2405 } EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER
;
2407 #define EFI_ACPI_6_2_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_POLARITY BIT0
2408 #define EFI_ACPI_6_2_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE BIT1
2411 /// Type 1 HW-Reduced Communications Subspace Structure
2416 UINT32 PlatformInterrupt
;
2417 UINT8 PlatformInterruptFlags
;
2420 UINT64 AddressLength
;
2421 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2422 UINT64 DoorbellPreserve
;
2423 UINT64 DoorbellWrite
;
2424 UINT32 NominalLatency
;
2425 UINT32 MaximumPeriodicAccessRate
;
2426 UINT16 MinimumRequestTurnaroundTime
;
2427 } EFI_ACPI_6_2_PCCT_SUBSPACE_1_HW_REDUCED_COMMUNICATIONS
;
2430 /// Type 2 HW-Reduced Communications Subspace Structure
2435 UINT32 PlatformInterrupt
;
2436 UINT8 PlatformInterruptFlags
;
2439 UINT64 AddressLength
;
2440 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2441 UINT64 DoorbellPreserve
;
2442 UINT64 DoorbellWrite
;
2443 UINT32 NominalLatency
;
2444 UINT32 MaximumPeriodicAccessRate
;
2445 UINT16 MinimumRequestTurnaroundTime
;
2446 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2447 UINT64 PlatformInterruptAckPreserve
;
2448 UINT64 PlatformInterruptAckWrite
;
2449 } EFI_ACPI_6_2_PCCT_SUBSPACE_2_HW_REDUCED_COMMUNICATIONS
;
2452 /// Type 3 Extended PCC Subspace Structure
2457 UINT32 PlatformInterrupt
;
2458 UINT8 PlatformInterruptFlags
;
2461 UINT32 AddressLength
;
2462 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE DoorbellRegister
;
2463 UINT64 DoorbellPreserve
;
2464 UINT64 DoorbellWrite
;
2465 UINT32 NominalLatency
;
2466 UINT32 MaximumPeriodicAccessRate
;
2467 UINT32 MinimumRequestTurnaroundTime
;
2468 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister
;
2469 UINT64 PlatformInterruptAckPreserve
;
2470 UINT64 PlatformInterruptAckSet
;
2472 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister
;
2473 UINT64 CommandCompleteCheckMask
;
2474 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE CommandCompleteUpdateRegister
;
2475 UINT64 CommandCompleteUpdatePreserve
;
2476 UINT64 CommandCompleteUpdateSet
;
2477 EFI_ACPI_6_2_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister
;
2478 UINT64 ErrorStatusMask
;
2479 } EFI_ACPI_6_2_PCCT_SUBSPACE_3_EXTENDED_PCC
;
2482 /// Type 4 Extended PCC Subspace Structure
2484 typedef EFI_ACPI_6_2_PCCT_SUBSPACE_3_EXTENDED_PCC EFI_ACPI_6_2_PCCT_SUBSPACE_4_EXTENDED_PCC
;
2486 #define EFI_ACPI_6_2_PCCT_MASTER_SLAVE_COMMUNICATIONS_CHANNEL_FLAGS_NOTIFY_ON_COMPLETION BIT0
2493 } EFI_ACPI_6_2_PCCT_EXTENDED_PCC_SHARED_MEMORY_REGION_HEADER
;
2496 /// Platform Debug Trigger Table (PDTT)
2499 EFI_ACPI_DESCRIPTION_HEADER Header
;
2502 UINT32 TriggerIdentifierArrayOffset
;
2503 } EFI_ACPI_6_2_PLATFORM_DEBUG_TRIGGER_TABLE_HEADER
;
2506 /// PDTT Revision (as defined in ACPI 6.2 spec.)
2508 #define EFI_ACPI_6_2_PLATFORM_DEBUG_TRIGGER_TABLE_REVISION 0x00
2511 /// PDTT Platform Communication Channel Identifier Structure
2514 UINT16 SubChannelIdentifer
:8;
2516 UINT16 WaitForCompletion
:1;
2518 } EFI_ACPI_6_2_PDTT_PCC_IDENTIFIER
;
2521 /// PCC Commands Codes used by Platform Debug Trigger Table
2523 #define EFI_ACPI_6_2_PDTT_PCC_COMMAND_DOORBELL_ONLY 0x00
2524 #define EFI_ACPI_6_2_PDTT_PCC_COMMAND_VENDOR_SPECIFIC 0x01
2527 /// PPTT Platform Communication Channel
2529 typedef EFI_ACPI_6_2_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER EFI_ACPI_6_2_PDTT_PCC
;
2532 /// Processor Properties Topology Table (PPTT)
2535 EFI_ACPI_DESCRIPTION_HEADER Header
;
2536 } EFI_ACPI_6_2_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_HEADER
;
2539 /// PPTT Revision (as defined in ACPI 6.2 spec.)
2541 #define EFI_ACPI_6_2_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x01
2546 #define EFI_ACPI_6_2_PPTT_TYPE_PROCESSOR 0x00
2547 #define EFI_ACPI_6_2_PPTT_TYPE_CACHE 0x01
2548 #define EFI_ACPI_6_2_PPTT_TYPE_ID 0x02
2551 /// PPTT Structure Header
2557 } EFI_ACPI_6_2_PPTT_STRUCTURE_HEADER
;
2560 /// For PPTT struct processor flags
2562 #define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_INVALID 0x0
2563 #define EFI_ACPI_6_2_PPTT_PROCESSOR_ID_VALID 0x1
2566 /// Processor hierarchy node structure flags
2569 UINT32 PhysicalPackage
:1;
2570 UINT32 AcpiProcessorIdValid
:1;
2572 } EFI_ACPI_6_2_PPTT_STRUCTURE_PROCESSOR_FLAGS
;
2575 /// Processor hierarchy node structure
2581 EFI_ACPI_6_2_PPTT_STRUCTURE_PROCESSOR_FLAGS Flags
;
2583 UINT32 AcpiProcessorId
;
2584 UINT32 NumberOfPrivateResources
;
2585 } EFI_ACPI_6_2_PPTT_STRUCTURE_PROCESSOR
;
2588 /// Cache Type Structure flags
2591 UINT32 SizePropertyValid
:1;
2592 UINT32 NumberOfSetsValid
:1;
2593 UINT32 AssociativityValid
:1;
2594 UINT32 AllocationTypeValid
:1;
2595 UINT32 CacheTypeValid
:1;
2596 UINT32 WritePolicyValid
:1;
2597 UINT32 LineSizeValid
:1;
2599 } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS
;
2602 /// For cache attributes
2604 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0
2605 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1
2606 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2
2607 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0
2608 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1
2609 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2
2610 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0
2611 #define EFI_ACPI_6_2_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1
2614 /// Cache Type Structure cache attributes
2617 UINT8 AllocationType
:2;
2619 UINT8 WritePolicy
:1;
2621 } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_ATTRIBUTES
;
2624 /// Cache Type Structure
2630 EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_FLAGS Flags
;
2631 UINT32 NextLevelOfCache
;
2633 UINT32 NumberOfSets
;
2634 UINT8 Associativity
;
2635 EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE_ATTRIBUTES Attributes
;
2637 } EFI_ACPI_6_2_PPTT_STRUCTURE_CACHE
;
2652 } EFI_ACPI_6_2_PPTT_STRUCTURE_ID
;
2655 // Known table signatures
2659 /// "RSD PTR " Root System Description Pointer
2661 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
2664 /// "APIC" Multiple APIC Description Table
2666 #define EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
2669 /// "BERT" Boot Error Record Table
2671 #define EFI_ACPI_6_2_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
2674 /// "BGRT" Boot Graphics Resource Table
2676 #define EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
2679 /// "CPEP" Corrected Platform Error Polling Table
2681 #define EFI_ACPI_6_2_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
2684 /// "DSDT" Differentiated System Description Table
2686 #define EFI_ACPI_6_2_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
2689 /// "ECDT" Embedded Controller Boot Resources Table
2691 #define EFI_ACPI_6_2_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
2694 /// "EINJ" Error Injection Table
2696 #define EFI_ACPI_6_2_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
2699 /// "ERST" Error Record Serialization Table
2701 #define EFI_ACPI_6_2_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
2704 /// "FACP" Fixed ACPI Description Table
2706 #define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
2709 /// "FACS" Firmware ACPI Control Structure
2711 #define EFI_ACPI_6_2_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
2714 /// "FPDT" Firmware Performance Data Table
2716 #define EFI_ACPI_6_2_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
2719 /// "GTDT" Generic Timer Description Table
2721 #define EFI_ACPI_6_2_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
2724 /// "HEST" Hardware Error Source Table
2726 #define EFI_ACPI_6_2_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
2729 /// "HMAT" Heterogeneous Memory Attribute Table
2731 #define EFI_ACPI_6_2_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('H', 'M', 'A', 'T')
2734 /// "MPST" Memory Power State Table
2736 #define EFI_ACPI_6_2_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
2739 /// "MSCT" Maximum System Characteristics Table
2741 #define EFI_ACPI_6_2_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
2744 /// "NFIT" NVDIMM Firmware Interface Table
2746 #define EFI_ACPI_6_2_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('N', 'F', 'I', 'T')
2749 /// "PDTT" Platform Debug Trigger Table
2751 #define EFI_ACPI_6_2_PLATFORM_DEBUG_TRIGGER_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'D', 'T', 'T')
2754 /// "PMTT" Platform Memory Topology Table
2756 #define EFI_ACPI_6_2_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
2759 /// "PPTT" Processor Properties Topology Table
2761 #define EFI_ACPI_6_2_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'P', 'T', 'T')
2764 /// "PSDT" Persistent System Description Table
2766 #define EFI_ACPI_6_2_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
2769 /// "RASF" ACPI RAS Feature Table
2771 #define EFI_ACPI_6_2_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
2774 /// "RSDT" Root System Description Table
2776 #define EFI_ACPI_6_2_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
2779 /// "SBST" Smart Battery Specification Table
2781 #define EFI_ACPI_6_2_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
2784 /// "SDEV" Secure DEVices Table
2786 #define EFI_ACPI_6_2_SECURE_DEVICES_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'V')
2789 /// "SLIT" System Locality Information Table
2791 #define EFI_ACPI_6_2_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
2794 /// "SRAT" System Resource Affinity Table
2796 #define EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2799 /// "SSDT" Secondary System Description Table
2801 #define EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2804 /// "XSDT" Extended System Description Table
2806 #define EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2809 /// "BOOT" MS Simple Boot Spec
2811 #define EFI_ACPI_6_2_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2814 /// "CSRT" MS Core System Resource Table
2816 #define EFI_ACPI_6_2_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2819 /// "DBG2" MS Debug Port 2 Spec
2821 #define EFI_ACPI_6_2_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2824 /// "DBGP" MS Debug Port Spec
2826 #define EFI_ACPI_6_2_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2829 /// "DMAR" DMA Remapping Table
2831 #define EFI_ACPI_6_2_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2834 /// "DPPT" DMA Protection Policy Table
2836 #define EFI_ACPI_6_2_DMA_PROTECTION_POLICY_TABLE_SIGNATURE SIGNATURE_32('D', 'P', 'P', 'T')
2839 /// "DRTM" Dynamic Root of Trust for Measurement Table
2841 #define EFI_ACPI_6_2_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2844 /// "ETDT" Event Timer Description Table
2846 #define EFI_ACPI_6_2_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2849 /// "HPET" IA-PC High Precision Event Timer Table
2851 #define EFI_ACPI_6_2_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2854 /// "iBFT" iSCSI Boot Firmware Table
2856 #define EFI_ACPI_6_2_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2859 /// "IORT" I/O Remapping Table
2861 #define EFI_ACPI_6_2_IO_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('I', 'O', 'R', 'T')
2864 /// "IVRS" I/O Virtualization Reporting Structure
2866 #define EFI_ACPI_6_2_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2869 /// "LPIT" Low Power Idle Table
2871 #define EFI_ACPI_6_2_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
2874 /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
2876 #define EFI_ACPI_6_2_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2879 /// "MCHI" Management Controller Host Interface Table
2881 #define EFI_ACPI_6_2_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2884 /// "MSDM" MS Data Management Table
2886 #define EFI_ACPI_6_2_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2889 /// "SDEI" Software Delegated Exceptions Interface Table
2891 #define EFI_ACPI_6_2_SOFTWARE_DELEGATED_EXCEPTIONS_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'I')
2894 /// "SLIC" MS Software Licensing Table Specification
2896 #define EFI_ACPI_6_2_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2899 /// "SPCR" Serial Port Concole Redirection Table
2901 #define EFI_ACPI_6_2_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2904 /// "SPMI" Server Platform Management Interface Table
2906 #define EFI_ACPI_6_2_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2909 /// "STAO" _STA Override Table
2911 #define EFI_ACPI_6_2_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', 'A', 'O')
2914 /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
2916 #define EFI_ACPI_6_2_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2919 /// "TPM2" Trusted Computing Platform 1 Table
2921 #define EFI_ACPI_6_2_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2924 /// "UEFI" UEFI ACPI Data Table
2926 #define EFI_ACPI_6_2_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2929 /// "WAET" Windows ACPI Emulated Devices Table
2931 #define EFI_ACPI_6_2_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
2934 /// "WDAT" Watchdog Action Table
2936 #define EFI_ACPI_6_2_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2939 /// "WDRT" Watchdog Resource Table
2941 #define EFI_ACPI_6_2_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2944 /// "WPBT" MS Platform Binary Table
2946 #define EFI_ACPI_6_2_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
2949 /// "WSMT" Windows SMM Security Mitigation Table
2951 #define EFI_ACPI_6_2_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE SIGNATURE_32('W', 'S', 'M', 'T')
2954 /// "XENV" Xen Project Table
2956 #define EFI_ACPI_6_2_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', 'N', 'V')