18#define ACPI_SMALL_FIXED_DMA_DESCRIPTOR_NAME 0x0A
19#define ACPI_LARGE_GPIO_CONNECTION_DESCRIPTOR_NAME 0x0C
20#define ACPI_LARGE_GENERIC_SERIAL_BUS_CONNECTION_DESCRIPTOR_NAME 0x0E
22#define ACPI_FIXED_DMA_DESCRIPTOR 0x55
23#define ACPI_GPIO_CONNECTION_DESCRIPTOR 0x8C
24#define ACPI_GENERIC_SERIAL_BUS_CONNECTION_DESCRIPTOR 0x8E
29#define EFI_ACPI_5_0_AML_PSD_REVISION 0
34#define EFI_ACPI_5_0_AML_CPC_REVISION 1
41typedef PACKED
struct {
42 ACPI_SMALL_RESOURCE_HEADER Header;
43 UINT16 DmaRequestLine;
45 UINT8 DmaTransferWidth;
51typedef PACKED
struct {
52 ACPI_LARGE_RESOURCE_HEADER Header;
56 UINT16 InterruptFlags;
57 UINT8 PinConfiguration;
58 UINT16 OutputDriveStrength;
59 UINT16 DebounceTimeout;
60 UINT16 PinTableOffset;
61 UINT8 ResourceSourceIndex;
62 UINT16 ResourceSourceNameOffset;
63 UINT16 VendorDataOffset;
64 UINT16 VendorDataLength;
67#define EFI_ACPI_GPIO_CONNECTION_TYPE_INTERRUPT 0x0
68#define EFI_ACPI_GPIO_CONNECTION_TYPE_IO 0x1
73typedef PACKED
struct {
74 ACPI_LARGE_RESOURCE_HEADER Header;
76 UINT8 ResourceSourceIndex;
79 UINT16 TypeSpecificFlags;
80 UINT8 TypeSpecificRevisionId;
81 UINT16 TypeDataLength;
85#define EFI_ACPI_SERIAL_BUS_RESOURCE_TYPE_I2C 0x1
86#define EFI_ACPI_SERIAL_BUS_RESOURCE_TYPE_SPI 0x2
87#define EFI_ACPI_SERIAL_BUS_RESOURCE_TYPE_UART 0x3
92typedef PACKED
struct {
93 ACPI_LARGE_RESOURCE_HEADER Header;
95 UINT8 ResourceSourceIndex;
98 UINT16 TypeSpecificFlags;
99 UINT8 TypeSpecificRevisionId;
100 UINT16 TypeDataLength;
101 UINT32 ConnectionSpeed;
108typedef PACKED
struct {
109 ACPI_LARGE_RESOURCE_HEADER Header;
111 UINT8 ResourceSourceIndex;
114 UINT16 TypeSpecificFlags;
115 UINT8 TypeSpecificRevisionId;
116 UINT16 TypeDataLength;
117 UINT32 ConnectionSpeed;
121 UINT16 DeviceSelection;
127typedef PACKED
struct {
128 ACPI_LARGE_RESOURCE_HEADER Header;
130 UINT8 ResourceSourceIndex;
133 UINT16 TypeSpecificFlags;
134 UINT8 TypeSpecificRevisionId;
135 UINT16 TypeDataLength;
136 UINT32 DefaultBaudRate;
140 UINT8 SerialLinesEnabled;
154 UINT8 AddressSpaceId;
155 UINT8 RegisterBitWidth;
156 UINT8 RegisterBitOffset;
164#define EFI_ACPI_5_0_SYSTEM_MEMORY 0
165#define EFI_ACPI_5_0_SYSTEM_IO 1
166#define EFI_ACPI_5_0_PCI_CONFIGURATION_SPACE 2
167#define EFI_ACPI_5_0_EMBEDDED_CONTROLLER 3
168#define EFI_ACPI_5_0_SMBUS 4
169#define EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL 0x0A
170#define EFI_ACPI_5_0_FUNCTIONAL_FIXED_HARDWARE 0x7F
175#define EFI_ACPI_5_0_UNDEFINED 0
176#define EFI_ACPI_5_0_BYTE 1
177#define EFI_ACPI_5_0_WORD 2
178#define EFI_ACPI_5_0_DWORD 3
179#define EFI_ACPI_5_0_QWORD 4
196 UINT8 ExtendedChecksum;
203#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02
223#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
234#define EFI_ACPI_5_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
244 UINT8 PreferredPmProfile;
282 UINT64 XFirmwareCtrl;
299#define EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x05
304#define EFI_ACPI_5_0_PM_PROFILE_UNSPECIFIED 0
305#define EFI_ACPI_5_0_PM_PROFILE_DESKTOP 1
306#define EFI_ACPI_5_0_PM_PROFILE_MOBILE 2
307#define EFI_ACPI_5_0_PM_PROFILE_WORKSTATION 3
308#define EFI_ACPI_5_0_PM_PROFILE_ENTERPRISE_SERVER 4
309#define EFI_ACPI_5_0_PM_PROFILE_SOHO_SERVER 5
310#define EFI_ACPI_5_0_PM_PROFILE_APPLIANCE_PC 6
311#define EFI_ACPI_5_0_PM_PROFILE_PERFORMANCE_SERVER 7
312#define EFI_ACPI_5_0_PM_PROFILE_TABLET 8
318#define EFI_ACPI_5_0_LEGACY_DEVICES BIT0
319#define EFI_ACPI_5_0_8042 BIT1
320#define EFI_ACPI_5_0_VGA_NOT_PRESENT BIT2
321#define EFI_ACPI_5_0_MSI_NOT_SUPPORTED BIT3
322#define EFI_ACPI_5_0_PCIE_ASPM_CONTROLS BIT4
323#define EFI_ACPI_5_0_CMOS_RTC_NOT_PRESENT BIT5
329#define EFI_ACPI_5_0_WBINVD BIT0
330#define EFI_ACPI_5_0_WBINVD_FLUSH BIT1
331#define EFI_ACPI_5_0_PROC_C1 BIT2
332#define EFI_ACPI_5_0_P_LVL2_UP BIT3
333#define EFI_ACPI_5_0_PWR_BUTTON BIT4
334#define EFI_ACPI_5_0_SLP_BUTTON BIT5
335#define EFI_ACPI_5_0_FIX_RTC BIT6
336#define EFI_ACPI_5_0_RTC_S4 BIT7
337#define EFI_ACPI_5_0_TMR_VAL_EXT BIT8
338#define EFI_ACPI_5_0_DCK_CAP BIT9
339#define EFI_ACPI_5_0_RESET_REG_SUP BIT10
340#define EFI_ACPI_5_0_SEALED_CASE BIT11
341#define EFI_ACPI_5_0_HEADLESS BIT12
342#define EFI_ACPI_5_0_CPU_SW_SLP BIT13
343#define EFI_ACPI_5_0_PCI_EXP_WAK BIT14
344#define EFI_ACPI_5_0_USE_PLATFORM_CLOCK BIT15
345#define EFI_ACPI_5_0_S4_RTC_STS_VALID BIT16
346#define EFI_ACPI_5_0_REMOTE_POWER_ON_CAPABLE BIT17
347#define EFI_ACPI_5_0_FORCE_APIC_CLUSTER_MODEL BIT18
348#define EFI_ACPI_5_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
349#define EFI_ACPI_5_0_HW_REDUCED_ACPI BIT20
350#define EFI_ACPI_5_0_LOW_POWER_S0_IDLE_CAPABLE BIT21
358 UINT32 HardwareSignature;
359 UINT32 FirmwareWakingVector;
362 UINT64 XFirmwareWakingVector;
372#define EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
378#define EFI_ACPI_5_0_S4BIOS_F BIT0
379#define EFI_ACPI_5_0_64BIT_WAKE_SUPPORTED_F BIT1
385#define EFI_ACPI_5_0_OSPM_64BIT_WAKE_F BIT0
394#define EFI_ACPI_5_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
395#define EFI_ACPI_5_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
403 UINT32 LocalApicAddress;
410#define EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
416#define EFI_ACPI_5_0_PCAT_COMPAT BIT0
423#define EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC 0x00
424#define EFI_ACPI_5_0_IO_APIC 0x01
425#define EFI_ACPI_5_0_INTERRUPT_SOURCE_OVERRIDE 0x02
426#define EFI_ACPI_5_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
427#define EFI_ACPI_5_0_LOCAL_APIC_NMI 0x04
428#define EFI_ACPI_5_0_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
429#define EFI_ACPI_5_0_IO_SAPIC 0x06
430#define EFI_ACPI_5_0_LOCAL_SAPIC 0x07
431#define EFI_ACPI_5_0_PLATFORM_INTERRUPT_SOURCES 0x08
432#define EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC 0x09
433#define EFI_ACPI_5_0_LOCAL_X2APIC_NMI 0x0A
434#define EFI_ACPI_5_0_GIC 0x0B
435#define EFI_ACPI_5_0_GICD 0x0C
447 UINT8 AcpiProcessorId;
455#define EFI_ACPI_5_0_LOCAL_APIC_ENABLED BIT0
465 UINT32 IoApicAddress;
466 UINT32 GlobalSystemInterruptBase;
477 UINT32 GlobalSystemInterrupt;
492 UINT32 GlobalSystemInterrupt;
493 UINT32 PlatformInterruptSourceFlags;
494 UINT8 CpeiProcessorOverride;
502#define EFI_ACPI_5_0_POLARITY (3 << 0)
503#define EFI_ACPI_5_0_TRIGGER_MODE (3 << 2)
512 UINT32 GlobalSystemInterrupt;
521 UINT8 AcpiProcessorId;
533 UINT64 LocalApicAddress;
544 UINT32 GlobalSystemInterruptBase;
545 UINT64 IoSapicAddress;
555 UINT8 AcpiProcessorId;
560 UINT32 ACPIProcessorUIDValue;
574 UINT32 GlobalSystemInterrupt;
575 UINT32 PlatformInterruptSourceFlags;
582#define EFI_ACPI_5_0_CPEI_PROCESSOR_OVERRIDE BIT0
593 UINT32 AcpiProcessorUid;
603 UINT32 AcpiProcessorUid;
604 UINT8 LocalX2ApicLint;
616 UINT32 AcpiProcessorUid;
618 UINT32 ParkingProtocolVersion;
619 UINT32 PerformanceInterruptGsiv;
620 UINT64 ParkedAddress;
621 UINT64 PhysicalBaseAddress;
627#define EFI_ACPI_5_0_GIC_ENABLED BIT0
628#define EFI_ACPI_5_0_PERFORMANCE_INTERRUPT_MODEL BIT1
638 UINT64 PhysicalBaseAddress;
639 UINT32 SystemVectorBase;
648 UINT32 WarningEnergyLevel;
649 UINT32 LowEnergyLevel;
650 UINT32 CriticalEnergyLevel;
656#define EFI_ACPI_5_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
674#define EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
689#define EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
696#define EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
697#define EFI_ACPI_5_0_MEMORY_AFFINITY 0x01
698#define EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
706 UINT8 ProximityDomain7To0;
710 UINT8 ProximityDomain31To8[3];
717#define EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
725 UINT32 ProximityDomain;
727 UINT32 AddressBaseLow;
728 UINT32 AddressBaseHigh;
739#define EFI_ACPI_5_0_MEMORY_ENABLED (1 << 0)
740#define EFI_ACPI_5_0_MEMORY_HOT_PLUGGABLE (1 << 1)
741#define EFI_ACPI_5_0_MEMORY_NONVOLATILE (1 << 2)
750 UINT32 ProximityDomain;
763 UINT64 NumberOfSystemLocalities;
769#define EFI_ACPI_5_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
782#define EFI_ACPI_5_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
787#define EFI_ACPI_5_0_CPEP_PROCESSOR_APIC_SAPIC 0x00
797 UINT32 PollingInterval;
805 UINT32 OffsetProxDomInfo;
806 UINT32 MaximumNumberOfProximityDomains;
807 UINT32 MaximumNumberOfClockDomains;
808 UINT64 MaximumPhysicalAddress;
814#define EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
822 UINT32 ProximityDomainRangeLow;
823 UINT32 ProximityDomainRangeHigh;
824 UINT32 MaximumProcessorCapacity;
825 UINT64 MaximumMemoryCapacity;
833 UINT8 PlatformCommunicationChannelIdentifier[12];
839#define EFI_ACPI_5_0_RAS_FEATURE_TABLE_REVISION 0x01
849 UINT8 RASCapabilities[16];
850 UINT8 SetRASCapabilities[16];
851 UINT16 NumberOfRASFParameterBlocks;
852 UINT32 SetRASCapabilitiesStatus;
858#define EFI_ACPI_5_0_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
863#define EFI_ACPI_5_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED 0x01
864#define EFI_ACPI_5_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED_AND_EXPOSED_TO_SOFTWARE 0x02
873 UINT16 PatrolScrubCommand;
874 UINT64 RequestedAddressRange[2];
875 UINT64 ActualAddressRange[2];
877 UINT8 RequestedSpeed;
883#define EFI_ACPI_5_0_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
884#define EFI_ACPI_5_0_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
885#define EFI_ACPI_5_0_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
892 UINT8 PlatformCommunicationChannelIdentifier;
901#define EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_REVISION 0x01
910 UINT32 MemoryPowerCommandRegister;
911 UINT32 MemoryPowerStatusRegister;
913 UINT32 MemoryPowerNodeId;
914 UINT64 MemoryEnergyConsumed;
915 UINT64 ExpectedAveragePowerComsuned;
921#define EFI_ACPI_5_0_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
926#define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
927#define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
928#define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
929#define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
935 UINT8 PowerStateValue;
936 UINT8 PowerStateInformationIndex;
942 UINT16 MemoryPowerNodeId;
945 UINT64 AddressLength;
946 UINT32 NumberOfPowerStates;
947 UINT32 NumberOfPhysicalComponents;
952#define EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
953#define EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
954#define EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
957 UINT16 MemoryPowerNodeCount;
965 UINT8 PowerStateStructureID;
968 UINT32 AveragePowerConsumedInMPS0;
969 UINT32 RelativePowerSavingToMPS0;
970 UINT64 ExitLatencyToMPS0;
973#define EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
974#define EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
975#define EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
978 UINT16 MemoryPowerStateCharacteristicsCount;
993#define EFI_ACPI_5_0_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
1009#define EFI_ACPI_5_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x0
1010#define EFI_ACPI_5_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x1
1011#define EFI_ACPI_5_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x2
1018 UINT16 SocketIdentifier;
1029 UINT32 WriteLatency;
1030 UINT32 ReadBandwidth;
1031 UINT32 WriteBandwidth;
1032 UINT16 OptimalAccessUnit;
1033 UINT16 OptimalAccessAlignment;
1035 UINT16 NumberOfProximityDomains;
1045 UINT16 PhysicalComponentIdentifier;
1048 UINT32 SmbiosHandle;
1094#define EFI_ACPI_5_0_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1099#define EFI_ACPI_5_0_BGRT_VERSION 0x01
1104#define EFI_ACPI_5_0_BGRT_STATUS_NOT_DISPLAYED 0x00
1105#define EFI_ACPI_5_0_BGRT_STATUS_DISPLAYED 0x01
1106#define EFI_ACPI_5_0_BGRT_STATUS_INVALID EFI_ACPI_5_0_BGRT_STATUS_NOT_DISPLAYED
1107#define EFI_ACPI_5_0_BGRT_STATUS_VALID EFI_ACPI_5_0_BGRT_STATUS_DISPLAYED
1112#define EFI_ACPI_5_0_BGRT_IMAGE_TYPE_BMP 0x00
1117#define EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1122#define EFI_ACPI_5_0_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1123#define EFI_ACPI_5_0_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1128#define EFI_ACPI_5_0_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1129#define EFI_ACPI_5_0_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1134#define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1135#define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1136#define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1141#define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1142#define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1143#define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1225#define EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1240#define EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1304 UINT64 PhysicalAddress;
1306 UINT32 SecurePL1TimerGSIV;
1307 UINT32 SecurePL1TimerFlags;
1308 UINT32 NonSecurePL1TimerGSIV;
1309 UINT32 NonSecurePL1TimerFlags;
1310 UINT32 VirtualTimerGSIV;
1311 UINT32 VirtualTimerFlags;
1312 UINT32 NonSecurePL2TimerGSIV;
1313 UINT32 NonSecurePL2TimerFlags;
1319#define EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x01
1324#define EFI_ACPI_5_0_GTDT_GLOBAL_FLAG_MEMORY_MAPPED_BLOCK_PRESENT BIT0
1325#define EFI_ACPI_5_0_GTDT_GLOBAL_FLAG_INTERRUPT_MODE BIT1
1330#define EFI_ACPI_5_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1331#define EFI_ACPI_5_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1338 UINT32 BootErrorRegionLength;
1339 UINT64 BootErrorRegion;
1345#define EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1351 UINT32 UncorrectableErrorValid : 1;
1352 UINT32 CorrectableErrorValid : 1;
1353 UINT32 MultipleUncorrectableErrors : 1;
1354 UINT32 MultipleCorrectableErrors : 1;
1355 UINT32 ErrorDataEntryCount : 10;
1356 UINT32 Reserved : 18;
1364 UINT32 RawDataOffset;
1365 UINT32 RawDataLength;
1367 UINT32 ErrorSeverity;
1373#define EFI_ACPI_5_0_ERROR_SEVERITY_CORRECTABLE 0x00
1374#define EFI_ACPI_5_0_ERROR_SEVERITY_RECOVERABLE 0x00
1375#define EFI_ACPI_5_0_ERROR_SEVERITY_FATAL 0x01
1376#define EFI_ACPI_5_0_ERROR_SEVERITY_CORRECTED 0x02
1377#define EFI_ACPI_5_0_ERROR_SEVERITY_NONE 0x03
1383 UINT8 SectionType[16];
1384 UINT32 ErrorSeverity;
1386 UINT8 ValidationBits;
1388 UINT32 ErrorDataLength;
1396#define EFI_ACPI_5_0_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
1403 UINT32 ErrorSourceCount;
1409#define EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1414#define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1415#define EFI_ACPI_5_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1416#define EFI_ACPI_5_0_IA32_ARCHITECTURE_NMI_ERROR 0x02
1417#define EFI_ACPI_5_0_PCI_EXPRESS_ROOT_PORT_AER 0x06
1418#define EFI_ACPI_5_0_PCI_EXPRESS_DEVICE_AER 0x07
1419#define EFI_ACPI_5_0_PCI_EXPRESS_BRIDGE_AER 0x08
1420#define EFI_ACPI_5_0_GENERIC_HARDWARE_ERROR 0x09
1425#define EFI_ACPI_5_0_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1426#define EFI_ACPI_5_0_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1437 UINT32 NumberOfRecordsToPreAllocate;
1438 UINT32 MaxSectionsPerRecord;
1439 UINT64 GlobalCapabilityInitData;
1440 UINT64 GlobalControlInitData;
1441 UINT8 NumberOfHardwareBanks;
1450 UINT8 ClearStatusOnInitialization;
1451 UINT8 StatusDataFormat;
1453 UINT32 ControlRegisterMsrAddress;
1454 UINT64 ControlInitData;
1455 UINT32 StatusRegisterMsrAddress;
1456 UINT32 AddressRegisterMsrAddress;
1457 UINT32 MiscRegisterMsrAddress;
1463#define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1464#define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1465#define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1470#define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1471#define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1472#define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1473#define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1474#define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1481 UINT16 PollInterval : 1;
1482 UINT16 SwitchToPollingThresholdValue : 1;
1483 UINT16 SwitchToPollingThresholdWindow : 1;
1484 UINT16 ErrorThresholdValue : 1;
1485 UINT16 ErrorThresholdWindow : 1;
1486 UINT16 Reserved : 10;
1496 UINT32 PollInterval;
1498 UINT32 SwitchToPollingThresholdValue;
1499 UINT32 SwitchToPollingThresholdWindow;
1500 UINT32 ErrorThresholdValue;
1501 UINT32 ErrorThresholdWindow;
1513 UINT32 NumberOfRecordsToPreAllocate;
1514 UINT32 MaxSectionsPerRecord;
1516 UINT8 NumberOfHardwareBanks;
1527 UINT32 NumberOfRecordsToPreAllocate;
1528 UINT32 MaxSectionsPerRecord;
1529 UINT32 MaxRawDataLength;
1541 UINT32 NumberOfRecordsToPreAllocate;
1542 UINT32 MaxSectionsPerRecord;
1546 UINT16 DeviceControl;
1548 UINT32 UncorrectableErrorMask;
1549 UINT32 UncorrectableErrorSeverity;
1550 UINT32 CorrectableErrorMask;
1551 UINT32 AdvancedErrorCapabilitiesAndControl;
1552 UINT32 RootErrorCommand;
1564 UINT32 NumberOfRecordsToPreAllocate;
1565 UINT32 MaxSectionsPerRecord;
1569 UINT16 DeviceControl;
1571 UINT32 UncorrectableErrorMask;
1572 UINT32 UncorrectableErrorSeverity;
1573 UINT32 CorrectableErrorMask;
1574 UINT32 AdvancedErrorCapabilitiesAndControl;
1586 UINT32 NumberOfRecordsToPreAllocate;
1587 UINT32 MaxSectionsPerRecord;
1591 UINT16 DeviceControl;
1593 UINT32 UncorrectableErrorMask;
1594 UINT32 UncorrectableErrorSeverity;
1595 UINT32 CorrectableErrorMask;
1596 UINT32 AdvancedErrorCapabilitiesAndControl;
1597 UINT32 SecondaryUncorrectableErrorMask;
1598 UINT32 SecondaryUncorrectableErrorSeverity;
1599 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
1608 UINT16 RelatedSourceId;
1611 UINT32 NumberOfRecordsToPreAllocate;
1612 UINT32 MaxSectionsPerRecord;
1613 UINT32 MaxRawDataLength;
1616 UINT32 ErrorStatusBlockLength;
1624 UINT32 RawDataOffset;
1625 UINT32 RawDataLength;
1627 UINT32 ErrorSeverity;
1635 UINT32 SerializationHeaderSize;
1637 UINT32 InstructionEntryCount;
1643#define EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
1648#define EFI_ACPI_5_0_ERST_BEGIN_WRITE_OPERATION 0x00
1649#define EFI_ACPI_5_0_ERST_BEGIN_READ_OPERATION 0x01
1650#define EFI_ACPI_5_0_ERST_BEGIN_CLEAR_OPERATION 0x02
1651#define EFI_ACPI_5_0_ERST_END_OPERATION 0x03
1652#define EFI_ACPI_5_0_ERST_SET_RECORD_OFFSET 0x04
1653#define EFI_ACPI_5_0_ERST_EXECUTE_OPERATION 0x05
1654#define EFI_ACPI_5_0_ERST_CHECK_BUSY_STATUS 0x06
1655#define EFI_ACPI_5_0_ERST_GET_COMMAND_STATUS 0x07
1656#define EFI_ACPI_5_0_ERST_GET_RECORD_IDENTIFIER 0x08
1657#define EFI_ACPI_5_0_ERST_SET_RECORD_IDENTIFIER 0x09
1658#define EFI_ACPI_5_0_ERST_GET_RECORD_COUNT 0x0A
1659#define EFI_ACPI_5_0_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
1660#define EFI_ACPI_5_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
1661#define EFI_ACPI_5_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
1662#define EFI_ACPI_5_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
1667#define EFI_ACPI_5_0_ERST_STATUS_SUCCESS 0x00
1668#define EFI_ACPI_5_0_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
1669#define EFI_ACPI_5_0_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
1670#define EFI_ACPI_5_0_ERST_STATUS_FAILED 0x03
1671#define EFI_ACPI_5_0_ERST_STATUS_RECORD_STORE_EMPTY 0x04
1672#define EFI_ACPI_5_0_ERST_STATUS_RECORD_NOT_FOUND 0x05
1677#define EFI_ACPI_5_0_ERST_READ_REGISTER 0x00
1678#define EFI_ACPI_5_0_ERST_READ_REGISTER_VALUE 0x01
1679#define EFI_ACPI_5_0_ERST_WRITE_REGISTER 0x02
1680#define EFI_ACPI_5_0_ERST_WRITE_REGISTER_VALUE 0x03
1681#define EFI_ACPI_5_0_ERST_NOOP 0x04
1682#define EFI_ACPI_5_0_ERST_LOAD_VAR1 0x05
1683#define EFI_ACPI_5_0_ERST_LOAD_VAR2 0x06
1684#define EFI_ACPI_5_0_ERST_STORE_VAR1 0x07
1685#define EFI_ACPI_5_0_ERST_ADD 0x08
1686#define EFI_ACPI_5_0_ERST_SUBTRACT 0x09
1687#define EFI_ACPI_5_0_ERST_ADD_VALUE 0x0A
1688#define EFI_ACPI_5_0_ERST_SUBTRACT_VALUE 0x0B
1689#define EFI_ACPI_5_0_ERST_STALL 0x0C
1690#define EFI_ACPI_5_0_ERST_STALL_WHILE_TRUE 0x0D
1691#define EFI_ACPI_5_0_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
1692#define EFI_ACPI_5_0_ERST_GOTO 0x0F
1693#define EFI_ACPI_5_0_ERST_SET_SRC_ADDRESS_BASE 0x10
1694#define EFI_ACPI_5_0_ERST_SET_DST_ADDRESS_BASE 0x11
1695#define EFI_ACPI_5_0_ERST_MOVE_DATA 0x12
1700#define EFI_ACPI_5_0_ERST_PRESERVE_REGISTER 0x01
1706 UINT8 SerializationAction;
1720 UINT32 InjectionHeaderSize;
1721 UINT8 InjectionFlags;
1723 UINT32 InjectionEntryCount;
1729#define EFI_ACPI_5_0_ERROR_INJECTION_TABLE_REVISION 0x01
1734#define EFI_ACPI_5_0_EINJ_BEGIN_INJECTION_OPERATION 0x00
1735#define EFI_ACPI_5_0_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
1736#define EFI_ACPI_5_0_EINJ_SET_ERROR_TYPE 0x02
1737#define EFI_ACPI_5_0_EINJ_GET_ERROR_TYPE 0x03
1738#define EFI_ACPI_5_0_EINJ_END_OPERATION 0x04
1739#define EFI_ACPI_5_0_EINJ_EXECUTE_OPERATION 0x05
1740#define EFI_ACPI_5_0_EINJ_CHECK_BUSY_STATUS 0x06
1741#define EFI_ACPI_5_0_EINJ_GET_COMMAND_STATUS 0x07
1742#define EFI_ACPI_5_0_EINJ_TRIGGER_ERROR 0xFF
1747#define EFI_ACPI_5_0_EINJ_STATUS_SUCCESS 0x00
1748#define EFI_ACPI_5_0_EINJ_STATUS_UNKNOWN_FAILURE 0x01
1749#define EFI_ACPI_5_0_EINJ_STATUS_INVALID_ACCESS 0x02
1754#define EFI_ACPI_5_0_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
1755#define EFI_ACPI_5_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
1756#define EFI_ACPI_5_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
1757#define EFI_ACPI_5_0_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
1758#define EFI_ACPI_5_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
1759#define EFI_ACPI_5_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
1760#define EFI_ACPI_5_0_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
1761#define EFI_ACPI_5_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
1762#define EFI_ACPI_5_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
1763#define EFI_ACPI_5_0_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
1764#define EFI_ACPI_5_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
1765#define EFI_ACPI_5_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
1770#define EFI_ACPI_5_0_EINJ_READ_REGISTER 0x00
1771#define EFI_ACPI_5_0_EINJ_READ_REGISTER_VALUE 0x01
1772#define EFI_ACPI_5_0_EINJ_WRITE_REGISTER 0x02
1773#define EFI_ACPI_5_0_EINJ_WRITE_REGISTER_VALUE 0x03
1774#define EFI_ACPI_5_0_EINJ_NOOP 0x04
1779#define EFI_ACPI_5_0_EINJ_PRESERVE_REGISTER 0x01
1785 UINT8 InjectionAction;
1816#define EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x01
1821#define EFI_ACPI_5_0_PCCT_FLAGS_SCI_DOORBELL BIT0
1826#define EFI_ACPI_5_0_PCCT_SUBSPACE_TYPE_GENERIC 0x00
1844 UINT64 AddressLength;
1846 UINT64 DoorbellPreserve;
1847 UINT64 DoorbellWrite;
1848 UINT32 NominalLatency;
1849 UINT32 MaximumPeriodicAccessRate;
1850 UINT16 MinimumRequestTurnaroundTime;
1860 UINT8 GenerateSci : 1;
1864 UINT8 CommandComplete : 1;
1865 UINT8 SciDoorbell : 1;
1867 UINT8 PlatformNotification : 1;
1885#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
1890#define EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
1895#define EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
1900#define EFI_ACPI_5_0_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
1905#define EFI_ACPI_5_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
1910#define EFI_ACPI_5_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
1915#define EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
1920#define EFI_ACPI_5_0_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
1925#define EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
1930#define EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
1935#define EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
1940#define EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
1945#define EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
1950#define EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
1955#define EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
1960#define EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
1965#define EFI_ACPI_5_0_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
1970#define EFI_ACPI_5_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
1975#define EFI_ACPI_5_0_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
1980#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
1985#define EFI_ACPI_5_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
1990#define EFI_ACPI_5_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
1995#define EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2000#define EFI_ACPI_5_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2005#define EFI_ACPI_5_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2010#define EFI_ACPI_5_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2015#define EFI_ACPI_5_0_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2020#define EFI_ACPI_5_0_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2025#define EFI_ACPI_5_0_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2030#define EFI_ACPI_5_0_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2035#define EFI_ACPI_5_0_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2040#define EFI_ACPI_5_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2045#define EFI_ACPI_5_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2050#define EFI_ACPI_5_0_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2055#define EFI_ACPI_5_0_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2060#define EFI_ACPI_5_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2065#define EFI_ACPI_5_0_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2070#define EFI_ACPI_5_0_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2075#define EFI_ACPI_5_0_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGNATURE_32('P', 'C', 'C', 'T')
2080#define EFI_ACPI_5_0_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2085#define EFI_ACPI_5_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2090#define EFI_ACPI_5_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2095#define EFI_ACPI_5_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2100#define EFI_ACPI_5_0_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2105#define EFI_ACPI_5_0_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2110#define EFI_ACPI_5_0_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
2111#define EFI_ACPI_5_0_WINDOWS_ACPI_ENLIGHTENMENT_TABLE_SIGNATURE EFI_ACPI_5_0_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE
2116#define EFI_ACPI_5_0_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2121#define EFI_ACPI_5_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2126#define EFI_ACPI_5_0_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
PACKED struct @113 EFI_ACPI_SERIAL_BUS_RESOURCE_SPI_DESCRIPTOR
PACKED struct @111 EFI_ACPI_SERIAL_BUS_RESOURCE_DESCRIPTOR
PACKED struct @109 EFI_ACPI_FIXED_DMA_DESCRIPTOR
PACKED struct @114 EFI_ACPI_SERIAL_BUS_RESOURCE_UART_DESCRIPTOR
PACKED struct @110 EFI_ACPI_GPIO_CONNECTION_DESCRIPTOR
PACKED struct @112 EFI_ACPI_SERIAL_BUS_RESOURCE_I2C_DESCRIPTOR
UINT64 BootPerformanceTablePointer
UINT64 ExitBootServicesExit
UINT64 ExitBootServicesEntry
UINT64 OsLoaderLoadImageStart
UINT64 OsLoaderStartImageStart
UINT64 S3PerformanceTablePointer
UINT32 Reserved1
Must be set to 1.