TianoCore EDK2 master
Loading...
Searching...
No Matches
Acpi50.h
Go to the documentation of this file.
1
10#ifndef _ACPI_5_0_H_
11#define _ACPI_5_0_H_
12
14
15//
16// Define for Descriptor
17//
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
21
22#define ACPI_FIXED_DMA_DESCRIPTOR 0x55
23#define ACPI_GPIO_CONNECTION_DESCRIPTOR 0x8C
24#define ACPI_GENERIC_SERIAL_BUS_CONNECTION_DESCRIPTOR 0x8E
25
29#define EFI_ACPI_5_0_AML_PSD_REVISION 0
30
34#define EFI_ACPI_5_0_AML_CPC_REVISION 1
35
36#pragma pack(1)
37
41typedef PACKED struct {
42 ACPI_SMALL_RESOURCE_HEADER Header;
43 UINT16 DmaRequestLine;
44 UINT16 DmaChannel;
45 UINT8 DmaTransferWidth;
47
51typedef PACKED struct {
52 ACPI_LARGE_RESOURCE_HEADER Header;
53 UINT8 RevisionId;
54 UINT8 ConnectionType;
55 UINT16 GeneralFlags;
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;
66
67#define EFI_ACPI_GPIO_CONNECTION_TYPE_INTERRUPT 0x0
68#define EFI_ACPI_GPIO_CONNECTION_TYPE_IO 0x1
69
73typedef PACKED struct {
74 ACPI_LARGE_RESOURCE_HEADER Header;
75 UINT8 RevisionId;
76 UINT8 ResourceSourceIndex;
77 UINT8 SerialBusType;
78 UINT8 GeneralFlags;
79 UINT16 TypeSpecificFlags;
80 UINT8 TypeSpecificRevisionId;
81 UINT16 TypeDataLength;
82 // Type specific data
84
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
88
92typedef PACKED struct {
93 ACPI_LARGE_RESOURCE_HEADER Header;
94 UINT8 RevisionId;
95 UINT8 ResourceSourceIndex;
96 UINT8 SerialBusType;
97 UINT8 GeneralFlags;
98 UINT16 TypeSpecificFlags;
99 UINT8 TypeSpecificRevisionId;
100 UINT16 TypeDataLength;
101 UINT32 ConnectionSpeed;
102 UINT16 SlaveAddress;
104
108typedef PACKED struct {
109 ACPI_LARGE_RESOURCE_HEADER Header;
110 UINT8 RevisionId;
111 UINT8 ResourceSourceIndex;
112 UINT8 SerialBusType;
113 UINT8 GeneralFlags;
114 UINT16 TypeSpecificFlags;
115 UINT8 TypeSpecificRevisionId;
116 UINT16 TypeDataLength;
117 UINT32 ConnectionSpeed;
118 UINT8 DataBitLength;
119 UINT8 Phase;
120 UINT8 Polarity;
121 UINT16 DeviceSelection;
123
127typedef PACKED struct {
128 ACPI_LARGE_RESOURCE_HEADER Header;
129 UINT8 RevisionId;
130 UINT8 ResourceSourceIndex;
131 UINT8 SerialBusType;
132 UINT8 GeneralFlags;
133 UINT16 TypeSpecificFlags;
134 UINT8 TypeSpecificRevisionId;
135 UINT16 TypeDataLength;
136 UINT32 DefaultBaudRate;
137 UINT16 RxFIFO;
138 UINT16 TxFIFO;
139 UINT8 Parity;
140 UINT8 SerialLinesEnabled;
142
143#pragma pack()
144
145//
146// Ensure proper structure formats
147//
148#pragma pack(1)
149
153typedef struct {
154 UINT8 AddressSpaceId;
155 UINT8 RegisterBitWidth;
156 UINT8 RegisterBitOffset;
157 UINT8 AccessSize;
158 UINT64 Address;
160
161//
162// Generic Address Space Address IDs
163//
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
171
172//
173// Generic Address Space Access Sizes
174//
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
180
181//
182// ACPI 5.0 table structures
183//
184
188typedef struct {
189 UINT64 Signature;
190 UINT8 Checksum;
191 UINT8 OemId[6];
192 UINT8 Revision;
193 UINT32 RsdtAddress;
194 UINT32 Length;
195 UINT64 XsdtAddress;
196 UINT8 ExtendedChecksum;
197 UINT8 Reserved[3];
199
203#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02
204
209typedef struct {
210 UINT32 Signature;
211 UINT32 Length;
213
214//
215// Root System Description Table
216// No definition needed as it is a common description table header, the same with
217// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
218//
219
223#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
224
225//
226// Extended System Description Table
227// No definition needed as it is a common description table header, the same with
228// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
229//
230
234#define EFI_ACPI_5_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
235
239typedef struct {
241 UINT32 FirmwareCtrl;
242 UINT32 Dsdt;
243 UINT8 Reserved0;
244 UINT8 PreferredPmProfile;
245 UINT16 SciInt;
246 UINT32 SmiCmd;
247 UINT8 AcpiEnable;
248 UINT8 AcpiDisable;
249 UINT8 S4BiosReq;
250 UINT8 PstateCnt;
251 UINT32 Pm1aEvtBlk;
252 UINT32 Pm1bEvtBlk;
253 UINT32 Pm1aCntBlk;
254 UINT32 Pm1bCntBlk;
255 UINT32 Pm2CntBlk;
256 UINT32 PmTmrBlk;
257 UINT32 Gpe0Blk;
258 UINT32 Gpe1Blk;
259 UINT8 Pm1EvtLen;
260 UINT8 Pm1CntLen;
261 UINT8 Pm2CntLen;
262 UINT8 PmTmrLen;
263 UINT8 Gpe0BlkLen;
264 UINT8 Gpe1BlkLen;
265 UINT8 Gpe1Base;
266 UINT8 CstCnt;
267 UINT16 PLvl2Lat;
268 UINT16 PLvl3Lat;
269 UINT16 FlushSize;
270 UINT16 FlushStride;
271 UINT8 DutyOffset;
272 UINT8 DutyWidth;
273 UINT8 DayAlrm;
274 UINT8 MonAlrm;
275 UINT8 Century;
276 UINT16 IaPcBootArch;
277 UINT8 Reserved1;
278 UINT32 Flags;
280 UINT8 ResetValue;
281 UINT8 Reserved2[3];
282 UINT64 XFirmwareCtrl;
283 UINT64 XDsdt;
295
299#define EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x05
300
301//
302// Fixed ACPI Description Table Preferred Power Management Profile
303//
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
313
314//
315// Fixed ACPI Description Table Boot Architecture Flags
316// All other bits are reserved and must be set to 0.
317//
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
324
325//
326// Fixed ACPI Description Table Fixed Feature Flags
327// All other bits are reserved and must be set to 0.
328//
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
351
355typedef struct {
356 UINT32 Signature;
357 UINT32 Length;
358 UINT32 HardwareSignature;
359 UINT32 FirmwareWakingVector;
360 UINT32 GlobalLock;
361 UINT32 Flags;
362 UINT64 XFirmwareWakingVector;
363 UINT8 Version;
364 UINT8 Reserved0[3];
365 UINT32 OspmFlags;
366 UINT8 Reserved1[24];
368
372#define EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
373
378#define EFI_ACPI_5_0_S4BIOS_F BIT0
379#define EFI_ACPI_5_0_64BIT_WAKE_SUPPORTED_F BIT1
380
385#define EFI_ACPI_5_0_OSPM_64BIT_WAKE_F BIT0
386
387//
388// Differentiated System Description Table,
389// Secondary System Description Table
390// and Persistent System Description Table,
391// no definition needed as they are common description table header, the same with
392// EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
393//
394#define EFI_ACPI_5_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
395#define EFI_ACPI_5_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
396
401typedef struct {
403 UINT32 LocalApicAddress;
404 UINT32 Flags;
406
410#define EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
411
416#define EFI_ACPI_5_0_PCAT_COMPAT BIT0
417
418//
419// Multiple APIC Description Table APIC structure types
420// All other values between 0x0D and 0x7F are reserved and
421// will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
422//
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
436
437//
438// APIC Structure Definitions
439//
440
444typedef struct {
445 UINT8 Type;
446 UINT8 Length;
447 UINT8 AcpiProcessorId;
448 UINT8 ApicId;
449 UINT32 Flags;
451
455#define EFI_ACPI_5_0_LOCAL_APIC_ENABLED BIT0
456
460typedef struct {
461 UINT8 Type;
462 UINT8 Length;
463 UINT8 IoApicId;
464 UINT8 Reserved;
465 UINT32 IoApicAddress;
466 UINT32 GlobalSystemInterruptBase;
468
472typedef struct {
473 UINT8 Type;
474 UINT8 Length;
475 UINT8 Bus;
476 UINT8 Source;
477 UINT32 GlobalSystemInterrupt;
478 UINT16 Flags;
480
484typedef struct {
485 UINT8 Type;
486 UINT8 Length;
487 UINT16 Flags;
488 UINT8 InterruptType;
489 UINT8 ProcessorId;
490 UINT8 ProcessorEid;
491 UINT8 IoSapicVector;
492 UINT32 GlobalSystemInterrupt;
493 UINT32 PlatformInterruptSourceFlags;
494 UINT8 CpeiProcessorOverride;
495 UINT8 Reserved[31];
497
498//
499// MPS INTI flags.
500// All other bits are reserved and must be set to 0.
501//
502#define EFI_ACPI_5_0_POLARITY (3 << 0)
503#define EFI_ACPI_5_0_TRIGGER_MODE (3 << 2)
504
508typedef struct {
509 UINT8 Type;
510 UINT8 Length;
511 UINT16 Flags;
512 UINT32 GlobalSystemInterrupt;
514
518typedef struct {
519 UINT8 Type;
520 UINT8 Length;
521 UINT8 AcpiProcessorId;
522 UINT16 Flags;
523 UINT8 LocalApicLint;
525
529typedef struct {
530 UINT8 Type;
531 UINT8 Length;
532 UINT16 Reserved;
533 UINT64 LocalApicAddress;
535
539typedef struct {
540 UINT8 Type;
541 UINT8 Length;
542 UINT8 IoApicId;
543 UINT8 Reserved;
544 UINT32 GlobalSystemInterruptBase;
545 UINT64 IoSapicAddress;
547
552typedef struct {
553 UINT8 Type;
554 UINT8 Length;
555 UINT8 AcpiProcessorId;
556 UINT8 LocalSapicId;
557 UINT8 LocalSapicEid;
558 UINT8 Reserved[3];
559 UINT32 Flags;
560 UINT32 ACPIProcessorUIDValue;
562
566typedef struct {
567 UINT8 Type;
568 UINT8 Length;
569 UINT16 Flags;
570 UINT8 InterruptType;
571 UINT8 ProcessorId;
572 UINT8 ProcessorEid;
573 UINT8 IoSapicVector;
574 UINT32 GlobalSystemInterrupt;
575 UINT32 PlatformInterruptSourceFlags;
577
582#define EFI_ACPI_5_0_CPEI_PROCESSOR_OVERRIDE BIT0
583
587typedef struct {
588 UINT8 Type;
589 UINT8 Length;
590 UINT8 Reserved[2];
591 UINT32 X2ApicId;
592 UINT32 Flags;
593 UINT32 AcpiProcessorUid;
595
599typedef struct {
600 UINT8 Type;
601 UINT8 Length;
602 UINT16 Flags;
603 UINT32 AcpiProcessorUid;
604 UINT8 LocalX2ApicLint;
605 UINT8 Reserved[3];
607
611typedef struct {
612 UINT8 Type;
613 UINT8 Length;
614 UINT16 Reserved;
615 UINT32 GicId;
616 UINT32 AcpiProcessorUid;
617 UINT32 Flags;
618 UINT32 ParkingProtocolVersion;
619 UINT32 PerformanceInterruptGsiv;
620 UINT64 ParkedAddress;
621 UINT64 PhysicalBaseAddress;
623
627#define EFI_ACPI_5_0_GIC_ENABLED BIT0
628#define EFI_ACPI_5_0_PERFORMANCE_INTERRUPT_MODEL BIT1
629
633typedef struct {
634 UINT8 Type;
635 UINT8 Length;
636 UINT16 Reserved1;
637 UINT32 GicId;
638 UINT64 PhysicalBaseAddress;
639 UINT32 SystemVectorBase;
640 UINT32 Reserved2;
642
646typedef struct {
648 UINT32 WarningEnergyLevel;
649 UINT32 LowEnergyLevel;
650 UINT32 CriticalEnergyLevel;
652
656#define EFI_ACPI_5_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
657
663typedef struct {
667 UINT32 Uid;
668 UINT8 GpeBit;
670
674#define EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
675
680typedef struct {
682 UINT32 Reserved1;
683 UINT64 Reserved2;
685
689#define EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
690
691//
692// SRAT structure types.
693// All other values between 0x03 an 0xFF are reserved and
694// will be ignored by OSPM.
695//
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
699
703typedef struct {
704 UINT8 Type;
705 UINT8 Length;
706 UINT8 ProximityDomain7To0;
707 UINT8 ApicId;
708 UINT32 Flags;
709 UINT8 LocalSapicEid;
710 UINT8 ProximityDomain31To8[3];
711 UINT32 ClockDomain;
713
717#define EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
718
722typedef struct {
723 UINT8 Type;
724 UINT8 Length;
725 UINT32 ProximityDomain;
726 UINT16 Reserved1;
727 UINT32 AddressBaseLow;
728 UINT32 AddressBaseHigh;
729 UINT32 LengthLow;
730 UINT32 LengthHigh;
731 UINT32 Reserved2;
732 UINT32 Flags;
733 UINT64 Reserved3;
735
736//
737// Memory Flags. All other bits are reserved and must be 0.
738//
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)
742
746typedef struct {
747 UINT8 Type;
748 UINT8 Length;
749 UINT8 Reserved1[2];
750 UINT32 ProximityDomain;
751 UINT32 X2ApicId;
752 UINT32 Flags;
753 UINT32 ClockDomain;
754 UINT8 Reserved2[4];
756
761typedef struct {
763 UINT64 NumberOfSystemLocalities;
765
769#define EFI_ACPI_5_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
770
774typedef struct {
776 UINT8 Reserved[8];
778
782#define EFI_ACPI_5_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
783
784//
785// CPEP processor structure types.
786//
787#define EFI_ACPI_5_0_CPEP_PROCESSOR_APIC_SAPIC 0x00
788
792typedef struct {
793 UINT8 Type;
794 UINT8 Length;
795 UINT8 ProcessorId;
796 UINT8 ProcessorEid;
797 UINT32 PollingInterval;
799
803typedef struct {
805 UINT32 OffsetProxDomInfo;
806 UINT32 MaximumNumberOfProximityDomains;
807 UINT32 MaximumNumberOfClockDomains;
808 UINT64 MaximumPhysicalAddress;
810
814#define EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
815
819typedef struct {
820 UINT8 Revision;
821 UINT8 Length;
822 UINT32 ProximityDomainRangeLow;
823 UINT32 ProximityDomainRangeHigh;
824 UINT32 MaximumProcessorCapacity;
825 UINT64 MaximumMemoryCapacity;
827
831typedef struct {
833 UINT8 PlatformCommunicationChannelIdentifier[12];
835
839#define EFI_ACPI_5_0_RAS_FEATURE_TABLE_REVISION 0x01
840
844typedef struct {
845 UINT32 Signature;
846 UINT16 Command;
847 UINT16 Status;
848 UINT16 Version;
849 UINT8 RASCapabilities[16];
850 UINT8 SetRASCapabilities[16];
851 UINT16 NumberOfRASFParameterBlocks;
852 UINT32 SetRASCapabilitiesStatus;
854
858#define EFI_ACPI_5_0_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
859
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
865
869typedef struct {
870 UINT16 Type;
871 UINT16 Version;
872 UINT16 Length;
873 UINT16 PatrolScrubCommand;
874 UINT64 RequestedAddressRange[2];
875 UINT64 ActualAddressRange[2];
876 UINT16 Flags;
877 UINT8 RequestedSpeed;
879
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
886
890typedef struct {
892 UINT8 PlatformCommunicationChannelIdentifier;
893 UINT8 Reserved[3];
894 // Memory Power Node Structure
895 // Memory Power State Characteristics
897
901#define EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_REVISION 0x01
902
906typedef struct {
907 UINT32 Signature;
908 UINT16 Command;
909 UINT16 Status;
910 UINT32 MemoryPowerCommandRegister;
911 UINT32 MemoryPowerStatusRegister;
912 UINT32 PowerStateId;
913 UINT32 MemoryPowerNodeId;
914 UINT64 MemoryEnergyConsumed;
915 UINT64 ExpectedAveragePowerComsuned;
917
921#define EFI_ACPI_5_0_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
922
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
930
934typedef struct {
935 UINT8 PowerStateValue;
936 UINT8 PowerStateInformationIndex;
938
939typedef struct {
940 UINT8 Flag;
941 UINT8 Reserved;
942 UINT16 MemoryPowerNodeId;
943 UINT32 Length;
944 UINT64 AddressBase;
945 UINT64 AddressLength;
946 UINT32 NumberOfPowerStates;
947 UINT32 NumberOfPhysicalComponents;
948 // EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
949 // UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
951
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
955
956typedef struct {
957 UINT16 MemoryPowerNodeCount;
958 UINT8 Reserved[2];
960
964typedef struct {
965 UINT8 PowerStateStructureID;
966 UINT8 Flag;
967 UINT16 Reserved;
968 UINT32 AveragePowerConsumedInMPS0;
969 UINT32 RelativePowerSavingToMPS0;
970 UINT64 ExitLatencyToMPS0;
972
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
976
977typedef struct {
978 UINT16 MemoryPowerStateCharacteristicsCount;
979 UINT8 Reserved[2];
981
985typedef struct {
987 UINT32 Reserved;
989
993#define EFI_ACPI_5_0_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
994
998typedef struct {
999 UINT8 Type;
1000 UINT8 Reserved;
1001 UINT16 Length;
1002 UINT16 Flags;
1003 UINT16 Reserved1;
1005
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
1012
1016typedef struct {
1018 UINT16 SocketIdentifier;
1019 UINT16 Reserved;
1020 // EFI_ACPI_5_0_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
1022
1026typedef struct {
1028 UINT32 ReadLatency;
1029 UINT32 WriteLatency;
1030 UINT32 ReadBandwidth;
1031 UINT32 WriteBandwidth;
1032 UINT16 OptimalAccessUnit;
1033 UINT16 OptimalAccessAlignment;
1034 UINT16 Reserved;
1035 UINT16 NumberOfProximityDomains;
1036 // UINT32 ProximityDomain[NumberOfProximityDomains];
1037 // EFI_ACPI_5_0_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
1039
1043typedef struct {
1045 UINT16 PhysicalComponentIdentifier;
1046 UINT16 Reserved;
1047 UINT32 SizeOfDimm;
1048 UINT32 SmbiosHandle;
1050
1054typedef struct {
1059 UINT16 Version;
1065 UINT8 Status;
1090
1094#define EFI_ACPI_5_0_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1095
1099#define EFI_ACPI_5_0_BGRT_VERSION 0x01
1100
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
1108
1112#define EFI_ACPI_5_0_BGRT_IMAGE_TYPE_BMP 0x00
1113
1117#define EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1118
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
1124
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
1130
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
1137
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
1144
1148typedef struct {
1149 UINT16 Type;
1150 UINT8 Length;
1151 UINT8 Revision;
1153
1157typedef struct {
1158 UINT32 Signature;
1159 UINT32 Length;
1161
1165typedef struct {
1167 UINT32 Reserved;
1173
1177typedef struct {
1179 UINT32 Reserved;
1185
1189typedef struct {
1191 UINT32 Reserved;
1196 UINT64 ResetEnd;
1221
1225#define EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1226
1227//
1228// FPDT Firmware Basic Boot Performance Table
1229//
1230typedef struct {
1232 //
1233 // one or more Performance Records.
1234 //
1236
1240#define EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1241
1242//
1243// FPDT Firmware S3 Boot Performance Table
1244//
1245typedef struct {
1247 //
1248 // one or more Performance Records.
1249 //
1251
1255typedef struct {
1273
1277typedef struct {
1291
1295typedef struct {
1298
1302typedef struct {
1304 UINT64 PhysicalAddress;
1305 UINT32 GlobalFlags;
1306 UINT32 SecurePL1TimerGSIV;
1307 UINT32 SecurePL1TimerFlags;
1308 UINT32 NonSecurePL1TimerGSIV;
1309 UINT32 NonSecurePL1TimerFlags;
1310 UINT32 VirtualTimerGSIV;
1311 UINT32 VirtualTimerFlags;
1312 UINT32 NonSecurePL2TimerGSIV;
1313 UINT32 NonSecurePL2TimerFlags;
1315
1319#define EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x01
1320
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
1326
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
1332
1336typedef struct {
1338 UINT32 BootErrorRegionLength;
1339 UINT64 BootErrorRegion;
1341
1345#define EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1346
1350typedef struct {
1351 UINT32 UncorrectableErrorValid : 1;
1352 UINT32 CorrectableErrorValid : 1;
1353 UINT32 MultipleUncorrectableErrors : 1;
1354 UINT32 MultipleCorrectableErrors : 1;
1355 UINT32 ErrorDataEntryCount : 10;
1356 UINT32 Reserved : 18;
1358
1362typedef struct {
1364 UINT32 RawDataOffset;
1365 UINT32 RawDataLength;
1366 UINT32 DataLength;
1367 UINT32 ErrorSeverity;
1369
1370//
1371// Boot Error Severity types
1372//
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
1378
1382typedef struct {
1383 UINT8 SectionType[16];
1384 UINT32 ErrorSeverity;
1385 UINT16 Revision;
1386 UINT8 ValidationBits;
1387 UINT8 Flags;
1388 UINT32 ErrorDataLength;
1389 UINT8 FruId[16];
1390 UINT8 FruText[20];
1392
1396#define EFI_ACPI_5_0_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
1397
1401typedef struct {
1403 UINT32 ErrorSourceCount;
1405
1409#define EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1410
1411//
1412// Error Source structure types.
1413//
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
1421
1422//
1423// Error Source structure flags.
1424//
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)
1427
1431typedef struct {
1432 UINT16 Type;
1433 UINT16 SourceId;
1434 UINT8 Reserved0[2];
1435 UINT8 Flags;
1436 UINT8 Enabled;
1437 UINT32 NumberOfRecordsToPreAllocate;
1438 UINT32 MaxSectionsPerRecord;
1439 UINT64 GlobalCapabilityInitData;
1440 UINT64 GlobalControlInitData;
1441 UINT8 NumberOfHardwareBanks;
1442 UINT8 Reserved1[7];
1444
1448typedef struct {
1449 UINT8 BankNumber;
1450 UINT8 ClearStatusOnInitialization;
1451 UINT8 StatusDataFormat;
1452 UINT8 Reserved0;
1453 UINT32 ControlRegisterMsrAddress;
1454 UINT64 ControlInitData;
1455 UINT32 StatusRegisterMsrAddress;
1456 UINT32 AddressRegisterMsrAddress;
1457 UINT32 MiscRegisterMsrAddress;
1459
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
1466
1467//
1468// Hardware Error Notification types. All other values are reserved
1469//
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
1475
1479typedef struct {
1480 UINT16 Type : 1;
1481 UINT16 PollInterval : 1;
1482 UINT16 SwitchToPollingThresholdValue : 1;
1483 UINT16 SwitchToPollingThresholdWindow : 1;
1484 UINT16 ErrorThresholdValue : 1;
1485 UINT16 ErrorThresholdWindow : 1;
1486 UINT16 Reserved : 10;
1488
1492typedef struct {
1493 UINT8 Type;
1494 UINT8 Length;
1496 UINT32 PollInterval;
1497 UINT32 Vector;
1498 UINT32 SwitchToPollingThresholdValue;
1499 UINT32 SwitchToPollingThresholdWindow;
1500 UINT32 ErrorThresholdValue;
1501 UINT32 ErrorThresholdWindow;
1503
1507typedef struct {
1508 UINT16 Type;
1509 UINT16 SourceId;
1510 UINT8 Reserved0[2];
1511 UINT8 Flags;
1512 UINT8 Enabled;
1513 UINT32 NumberOfRecordsToPreAllocate;
1514 UINT32 MaxSectionsPerRecord;
1516 UINT8 NumberOfHardwareBanks;
1517 UINT8 Reserved1[3];
1519
1523typedef struct {
1524 UINT16 Type;
1525 UINT16 SourceId;
1526 UINT8 Reserved0[2];
1527 UINT32 NumberOfRecordsToPreAllocate;
1528 UINT32 MaxSectionsPerRecord;
1529 UINT32 MaxRawDataLength;
1531
1535typedef struct {
1536 UINT16 Type;
1537 UINT16 SourceId;
1538 UINT8 Reserved0[2];
1539 UINT8 Flags;
1540 UINT8 Enabled;
1541 UINT32 NumberOfRecordsToPreAllocate;
1542 UINT32 MaxSectionsPerRecord;
1543 UINT32 Bus;
1544 UINT16 Device;
1545 UINT16 Function;
1546 UINT16 DeviceControl;
1547 UINT8 Reserved1[2];
1548 UINT32 UncorrectableErrorMask;
1549 UINT32 UncorrectableErrorSeverity;
1550 UINT32 CorrectableErrorMask;
1551 UINT32 AdvancedErrorCapabilitiesAndControl;
1552 UINT32 RootErrorCommand;
1554
1558typedef struct {
1559 UINT16 Type;
1560 UINT16 SourceId;
1561 UINT8 Reserved0[2];
1562 UINT8 Flags;
1563 UINT8 Enabled;
1564 UINT32 NumberOfRecordsToPreAllocate;
1565 UINT32 MaxSectionsPerRecord;
1566 UINT32 Bus;
1567 UINT16 Device;
1568 UINT16 Function;
1569 UINT16 DeviceControl;
1570 UINT8 Reserved1[2];
1571 UINT32 UncorrectableErrorMask;
1572 UINT32 UncorrectableErrorSeverity;
1573 UINT32 CorrectableErrorMask;
1574 UINT32 AdvancedErrorCapabilitiesAndControl;
1576
1580typedef struct {
1581 UINT16 Type;
1582 UINT16 SourceId;
1583 UINT8 Reserved0[2];
1584 UINT8 Flags;
1585 UINT8 Enabled;
1586 UINT32 NumberOfRecordsToPreAllocate;
1587 UINT32 MaxSectionsPerRecord;
1588 UINT32 Bus;
1589 UINT16 Device;
1590 UINT16 Function;
1591 UINT16 DeviceControl;
1592 UINT8 Reserved1[2];
1593 UINT32 UncorrectableErrorMask;
1594 UINT32 UncorrectableErrorSeverity;
1595 UINT32 CorrectableErrorMask;
1596 UINT32 AdvancedErrorCapabilitiesAndControl;
1597 UINT32 SecondaryUncorrectableErrorMask;
1598 UINT32 SecondaryUncorrectableErrorSeverity;
1599 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
1601
1605typedef struct {
1606 UINT16 Type;
1607 UINT16 SourceId;
1608 UINT16 RelatedSourceId;
1609 UINT8 Flags;
1610 UINT8 Enabled;
1611 UINT32 NumberOfRecordsToPreAllocate;
1612 UINT32 MaxSectionsPerRecord;
1613 UINT32 MaxRawDataLength;
1614 EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress;
1616 UINT32 ErrorStatusBlockLength;
1618
1622typedef struct {
1624 UINT32 RawDataOffset;
1625 UINT32 RawDataLength;
1626 UINT32 DataLength;
1627 UINT32 ErrorSeverity;
1629
1633typedef struct {
1635 UINT32 SerializationHeaderSize;
1636 UINT8 Reserved0[4];
1637 UINT32 InstructionEntryCount;
1639
1643#define EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
1644
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
1663
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
1673
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
1696
1700#define EFI_ACPI_5_0_ERST_PRESERVE_REGISTER 0x01
1701
1705typedef struct {
1706 UINT8 SerializationAction;
1707 UINT8 Instruction;
1708 UINT8 Flags;
1709 UINT8 Reserved0;
1711 UINT64 Value;
1712 UINT64 Mask;
1714
1718typedef struct {
1720 UINT32 InjectionHeaderSize;
1721 UINT8 InjectionFlags;
1722 UINT8 Reserved0[3];
1723 UINT32 InjectionEntryCount;
1725
1729#define EFI_ACPI_5_0_ERROR_INJECTION_TABLE_REVISION 0x01
1730
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
1743
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
1750
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)
1766
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
1775
1779#define EFI_ACPI_5_0_EINJ_PRESERVE_REGISTER 0x01
1780
1784typedef struct {
1785 UINT8 InjectionAction;
1786 UINT8 Instruction;
1787 UINT8 Flags;
1788 UINT8 Reserved0;
1790 UINT64 Value;
1791 UINT64 Mask;
1793
1797typedef struct {
1798 UINT32 HeaderSize;
1799 UINT32 Revision;
1800 UINT32 TableSize;
1801 UINT32 EntryCount;
1803
1807typedef struct {
1809 UINT32 Flags;
1810 UINT64 Reserved;
1812
1816#define EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x01
1817
1821#define EFI_ACPI_5_0_PCCT_FLAGS_SCI_DOORBELL BIT0
1822
1823//
1824// PCCT Subspace type
1825//
1826#define EFI_ACPI_5_0_PCCT_SUBSPACE_TYPE_GENERIC 0x00
1827
1831typedef struct {
1832 UINT8 Type;
1833 UINT8 Length;
1835
1839typedef struct {
1840 UINT8 Type;
1841 UINT8 Length;
1842 UINT8 Reserved[6];
1843 UINT64 BaseAddress;
1844 UINT64 AddressLength;
1846 UINT64 DoorbellPreserve;
1847 UINT64 DoorbellWrite;
1848 UINT32 NominalLatency;
1849 UINT32 MaximumPeriodicAccessRate;
1850 UINT16 MinimumRequestTurnaroundTime;
1852
1856
1857typedef struct {
1858 UINT8 Command;
1859 UINT8 Reserved : 7;
1860 UINT8 GenerateSci : 1;
1862
1863typedef struct {
1864 UINT8 CommandComplete : 1;
1865 UINT8 SciDoorbell : 1;
1866 UINT8 Error : 1;
1867 UINT8 PlatformNotification : 1;
1868 UINT8 Reserved : 4;
1869 UINT8 Reserved1;
1871
1872typedef struct {
1873 UINT32 Signature;
1877
1878//
1879// Known table signatures
1880//
1881
1885#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
1886
1890#define EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
1891
1895#define EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
1896
1900#define EFI_ACPI_5_0_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
1901
1905#define EFI_ACPI_5_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
1906
1910#define EFI_ACPI_5_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
1911
1915#define EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
1916
1920#define EFI_ACPI_5_0_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
1921
1925#define EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
1926
1930#define EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
1931
1935#define EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
1936
1940#define EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
1941
1945#define EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
1946
1950#define EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
1951
1955#define EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
1956
1960#define EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
1961
1965#define EFI_ACPI_5_0_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
1966
1970#define EFI_ACPI_5_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
1971
1975#define EFI_ACPI_5_0_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
1976
1980#define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
1981
1985#define EFI_ACPI_5_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
1986
1990#define EFI_ACPI_5_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
1991
1995#define EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
1996
2000#define EFI_ACPI_5_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2001
2005#define EFI_ACPI_5_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2006
2010#define EFI_ACPI_5_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2011
2015#define EFI_ACPI_5_0_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2016
2020#define EFI_ACPI_5_0_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2021
2025#define EFI_ACPI_5_0_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2026
2030#define EFI_ACPI_5_0_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2031
2035#define EFI_ACPI_5_0_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2036
2040#define EFI_ACPI_5_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2041
2045#define EFI_ACPI_5_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2046
2050#define EFI_ACPI_5_0_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2051
2055#define EFI_ACPI_5_0_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2056
2060#define EFI_ACPI_5_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2061
2065#define EFI_ACPI_5_0_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2066
2070#define EFI_ACPI_5_0_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2071
2075#define EFI_ACPI_5_0_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGNATURE_32('P', 'C', 'C', 'T')
2076
2080#define EFI_ACPI_5_0_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2081
2085#define EFI_ACPI_5_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2086
2090#define EFI_ACPI_5_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2091
2095#define EFI_ACPI_5_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2096
2100#define EFI_ACPI_5_0_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2101
2105#define EFI_ACPI_5_0_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2106
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
2112
2116#define EFI_ACPI_5_0_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2117
2121#define EFI_ACPI_5_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2122
2126#define EFI_ACPI_5_0_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
2127
2128#pragma pack()
2129
2130#endif
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