TianoCore EDK2 master
Loading...
Searching...
No Matches
Acpi51.h
Go to the documentation of this file.
1
12#ifndef _ACPI_5_1_H_
13#define _ACPI_5_1_H_
14
16
20#define EFI_ACPI_5_1_AML_CSD_REVISION 0
21
25#define EFI_ACPI_5_1_AML_CSD_NUM_ENTRIES 6
26
30#define EFI_ACPI_5_1_AML_PSD_REVISION 0
31
35#define EFI_ACPI_5_1_AML_CPC_REVISION 2
36
37//
38// Ensure proper structure formats
39//
40#pragma pack(1)
41
45typedef struct {
46 UINT8 AddressSpaceId;
47 UINT8 RegisterBitWidth;
48 UINT8 RegisterBitOffset;
49 UINT8 AccessSize;
50 UINT64 Address;
52
53//
54// Generic Address Space Address IDs
55//
56#define EFI_ACPI_5_1_SYSTEM_MEMORY 0
57#define EFI_ACPI_5_1_SYSTEM_IO 1
58#define EFI_ACPI_5_1_PCI_CONFIGURATION_SPACE 2
59#define EFI_ACPI_5_1_EMBEDDED_CONTROLLER 3
60#define EFI_ACPI_5_1_SMBUS 4
61#define EFI_ACPI_5_1_PLATFORM_COMMUNICATION_CHANNEL 0x0A
62#define EFI_ACPI_5_1_FUNCTIONAL_FIXED_HARDWARE 0x7F
63
64//
65// Generic Address Space Access Sizes
66//
67#define EFI_ACPI_5_1_UNDEFINED 0
68#define EFI_ACPI_5_1_BYTE 1
69#define EFI_ACPI_5_1_WORD 2
70#define EFI_ACPI_5_1_DWORD 3
71#define EFI_ACPI_5_1_QWORD 4
72
73//
74// ACPI 5.1 table structures
75//
76
80typedef struct {
81 UINT64 Signature;
82 UINT8 Checksum;
83 UINT8 OemId[6];
84 UINT8 Revision;
85 UINT32 RsdtAddress;
86 UINT32 Length;
87 UINT64 XsdtAddress;
88 UINT8 ExtendedChecksum;
89 UINT8 Reserved[3];
91
95#define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02
96
101typedef struct {
102 UINT32 Signature;
103 UINT32 Length;
105
106//
107// Root System Description Table
108// No definition needed as it is a common description table header, the same with
109// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
110//
111
115#define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
116
117//
118// Extended System Description Table
119// No definition needed as it is a common description table header, the same with
120// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
121//
122
126#define EFI_ACPI_5_1_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
127
131typedef struct {
133 UINT32 FirmwareCtrl;
134 UINT32 Dsdt;
135 UINT8 Reserved0;
136 UINT8 PreferredPmProfile;
137 UINT16 SciInt;
138 UINT32 SmiCmd;
139 UINT8 AcpiEnable;
140 UINT8 AcpiDisable;
141 UINT8 S4BiosReq;
142 UINT8 PstateCnt;
143 UINT32 Pm1aEvtBlk;
144 UINT32 Pm1bEvtBlk;
145 UINT32 Pm1aCntBlk;
146 UINT32 Pm1bCntBlk;
147 UINT32 Pm2CntBlk;
148 UINT32 PmTmrBlk;
149 UINT32 Gpe0Blk;
150 UINT32 Gpe1Blk;
151 UINT8 Pm1EvtLen;
152 UINT8 Pm1CntLen;
153 UINT8 Pm2CntLen;
154 UINT8 PmTmrLen;
155 UINT8 Gpe0BlkLen;
156 UINT8 Gpe1BlkLen;
157 UINT8 Gpe1Base;
158 UINT8 CstCnt;
159 UINT16 PLvl2Lat;
160 UINT16 PLvl3Lat;
161 UINT16 FlushSize;
162 UINT16 FlushStride;
163 UINT8 DutyOffset;
164 UINT8 DutyWidth;
165 UINT8 DayAlrm;
166 UINT8 MonAlrm;
167 UINT8 Century;
168 UINT16 IaPcBootArch;
169 UINT8 Reserved1;
170 UINT32 Flags;
172 UINT8 ResetValue;
173 UINT16 ArmBootArch;
174 UINT8 MinorVersion;
175 UINT64 XFirmwareCtrl;
176 UINT64 XDsdt;
188
192#define EFI_ACPI_5_1_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x05
193#define EFI_ACPI_5_1_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x01
194
195//
196// Fixed ACPI Description Table Preferred Power Management Profile
197//
198#define EFI_ACPI_5_1_PM_PROFILE_UNSPECIFIED 0
199#define EFI_ACPI_5_1_PM_PROFILE_DESKTOP 1
200#define EFI_ACPI_5_1_PM_PROFILE_MOBILE 2
201#define EFI_ACPI_5_1_PM_PROFILE_WORKSTATION 3
202#define EFI_ACPI_5_1_PM_PROFILE_ENTERPRISE_SERVER 4
203#define EFI_ACPI_5_1_PM_PROFILE_SOHO_SERVER 5
204#define EFI_ACPI_5_1_PM_PROFILE_APPLIANCE_PC 6
205#define EFI_ACPI_5_1_PM_PROFILE_PERFORMANCE_SERVER 7
206#define EFI_ACPI_5_1_PM_PROFILE_TABLET 8
207
208//
209// Fixed ACPI Description Table Boot Architecture Flags
210// All other bits are reserved and must be set to 0.
211//
212#define EFI_ACPI_5_1_LEGACY_DEVICES BIT0
213#define EFI_ACPI_5_1_8042 BIT1
214#define EFI_ACPI_5_1_VGA_NOT_PRESENT BIT2
215#define EFI_ACPI_5_1_MSI_NOT_SUPPORTED BIT3
216#define EFI_ACPI_5_1_PCIE_ASPM_CONTROLS BIT4
217#define EFI_ACPI_5_1_CMOS_RTC_NOT_PRESENT BIT5
218
219//
220// Fixed ACPI Description Table Arm Boot Architecture Flags
221// All other bits are reserved and must be set to 0.
222//
223#define EFI_ACPI_5_1_ARM_PSCI_COMPLIANT BIT0
224#define EFI_ACPI_5_1_ARM_PSCI_USE_HVC BIT1
225
226//
227// Fixed ACPI Description Table Fixed Feature Flags
228// All other bits are reserved and must be set to 0.
229//
230#define EFI_ACPI_5_1_WBINVD BIT0
231#define EFI_ACPI_5_1_WBINVD_FLUSH BIT1
232#define EFI_ACPI_5_1_PROC_C1 BIT2
233#define EFI_ACPI_5_1_P_LVL2_UP BIT3
234#define EFI_ACPI_5_1_PWR_BUTTON BIT4
235#define EFI_ACPI_5_1_SLP_BUTTON BIT5
236#define EFI_ACPI_5_1_FIX_RTC BIT6
237#define EFI_ACPI_5_1_RTC_S4 BIT7
238#define EFI_ACPI_5_1_TMR_VAL_EXT BIT8
239#define EFI_ACPI_5_1_DCK_CAP BIT9
240#define EFI_ACPI_5_1_RESET_REG_SUP BIT10
241#define EFI_ACPI_5_1_SEALED_CASE BIT11
242#define EFI_ACPI_5_1_HEADLESS BIT12
243#define EFI_ACPI_5_1_CPU_SW_SLP BIT13
244#define EFI_ACPI_5_1_PCI_EXP_WAK BIT14
245#define EFI_ACPI_5_1_USE_PLATFORM_CLOCK BIT15
246#define EFI_ACPI_5_1_S4_RTC_STS_VALID BIT16
247#define EFI_ACPI_5_1_REMOTE_POWER_ON_CAPABLE BIT17
248#define EFI_ACPI_5_1_FORCE_APIC_CLUSTER_MODEL BIT18
249#define EFI_ACPI_5_1_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
250#define EFI_ACPI_5_1_HW_REDUCED_ACPI BIT20
251#define EFI_ACPI_5_1_LOW_POWER_S0_IDLE_CAPABLE BIT21
252
256typedef struct {
257 UINT32 Signature;
258 UINT32 Length;
259 UINT32 HardwareSignature;
260 UINT32 FirmwareWakingVector;
261 UINT32 GlobalLock;
262 UINT32 Flags;
263 UINT64 XFirmwareWakingVector;
264 UINT8 Version;
265 UINT8 Reserved0[3];
266 UINT32 OspmFlags;
267 UINT8 Reserved1[24];
269
273#define EFI_ACPI_5_1_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
274
279#define EFI_ACPI_5_1_S4BIOS_F BIT0
280#define EFI_ACPI_5_1_64BIT_WAKE_SUPPORTED_F BIT1
281
286#define EFI_ACPI_5_1_OSPM_64BIT_WAKE_F BIT0
287
288//
289// Differentiated System Description Table,
290// Secondary System Description Table
291// and Persistent System Description Table,
292// no definition needed as they are common description table header, the same with
293// EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
294//
295#define EFI_ACPI_5_1_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
296#define EFI_ACPI_5_1_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
297
302typedef struct {
304 UINT32 LocalApicAddress;
305 UINT32 Flags;
307
311#define EFI_ACPI_5_1_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
312
317#define EFI_ACPI_5_1_PCAT_COMPAT BIT0
318
319//
320// Multiple APIC Description Table APIC structure types
321// All other values between 0x0D and 0x7F are reserved and
322// will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
323//
324#define EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC 0x00
325#define EFI_ACPI_5_1_IO_APIC 0x01
326#define EFI_ACPI_5_1_INTERRUPT_SOURCE_OVERRIDE 0x02
327#define EFI_ACPI_5_1_NON_MASKABLE_INTERRUPT_SOURCE 0x03
328#define EFI_ACPI_5_1_LOCAL_APIC_NMI 0x04
329#define EFI_ACPI_5_1_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
330#define EFI_ACPI_5_1_IO_SAPIC 0x06
331#define EFI_ACPI_5_1_LOCAL_SAPIC 0x07
332#define EFI_ACPI_5_1_PLATFORM_INTERRUPT_SOURCES 0x08
333#define EFI_ACPI_5_1_PROCESSOR_LOCAL_X2APIC 0x09
334#define EFI_ACPI_5_1_LOCAL_X2APIC_NMI 0x0A
335#define EFI_ACPI_5_1_GIC 0x0B
336#define EFI_ACPI_5_1_GICD 0x0C
337#define EFI_ACPI_5_1_GIC_MSI_FRAME 0x0D
338#define EFI_ACPI_5_1_GICR 0x0E
339
340//
341// APIC Structure Definitions
342//
343
347typedef struct {
348 UINT8 Type;
349 UINT8 Length;
350 UINT8 AcpiProcessorId;
351 UINT8 ApicId;
352 UINT32 Flags;
354
358#define EFI_ACPI_5_1_LOCAL_APIC_ENABLED BIT0
359
363typedef struct {
364 UINT8 Type;
365 UINT8 Length;
366 UINT8 IoApicId;
367 UINT8 Reserved;
368 UINT32 IoApicAddress;
369 UINT32 GlobalSystemInterruptBase;
371
375typedef struct {
376 UINT8 Type;
377 UINT8 Length;
378 UINT8 Bus;
379 UINT8 Source;
380 UINT32 GlobalSystemInterrupt;
381 UINT16 Flags;
383
387typedef struct {
388 UINT8 Type;
389 UINT8 Length;
390 UINT16 Flags;
391 UINT8 InterruptType;
392 UINT8 ProcessorId;
393 UINT8 ProcessorEid;
394 UINT8 IoSapicVector;
395 UINT32 GlobalSystemInterrupt;
396 UINT32 PlatformInterruptSourceFlags;
397 UINT8 CpeiProcessorOverride;
398 UINT8 Reserved[31];
400
401//
402// MPS INTI flags.
403// All other bits are reserved and must be set to 0.
404//
405#define EFI_ACPI_5_1_POLARITY (3 << 0)
406#define EFI_ACPI_5_1_TRIGGER_MODE (3 << 2)
407
411typedef struct {
412 UINT8 Type;
413 UINT8 Length;
414 UINT16 Flags;
415 UINT32 GlobalSystemInterrupt;
417
421typedef struct {
422 UINT8 Type;
423 UINT8 Length;
424 UINT8 AcpiProcessorId;
425 UINT16 Flags;
426 UINT8 LocalApicLint;
428
432typedef struct {
433 UINT8 Type;
434 UINT8 Length;
435 UINT16 Reserved;
436 UINT64 LocalApicAddress;
438
442typedef struct {
443 UINT8 Type;
444 UINT8 Length;
445 UINT8 IoApicId;
446 UINT8 Reserved;
447 UINT32 GlobalSystemInterruptBase;
448 UINT64 IoSapicAddress;
450
455typedef struct {
456 UINT8 Type;
457 UINT8 Length;
458 UINT8 AcpiProcessorId;
459 UINT8 LocalSapicId;
460 UINT8 LocalSapicEid;
461 UINT8 Reserved[3];
462 UINT32 Flags;
463 UINT32 ACPIProcessorUIDValue;
465
469typedef struct {
470 UINT8 Type;
471 UINT8 Length;
472 UINT16 Flags;
473 UINT8 InterruptType;
474 UINT8 ProcessorId;
475 UINT8 ProcessorEid;
476 UINT8 IoSapicVector;
477 UINT32 GlobalSystemInterrupt;
478 UINT32 PlatformInterruptSourceFlags;
480
485#define EFI_ACPI_5_1_CPEI_PROCESSOR_OVERRIDE BIT0
486
490typedef struct {
491 UINT8 Type;
492 UINT8 Length;
493 UINT8 Reserved[2];
494 UINT32 X2ApicId;
495 UINT32 Flags;
496 UINT32 AcpiProcessorUid;
498
502typedef struct {
503 UINT8 Type;
504 UINT8 Length;
505 UINT16 Flags;
506 UINT32 AcpiProcessorUid;
507 UINT8 LocalX2ApicLint;
508 UINT8 Reserved[3];
510
514typedef struct {
515 UINT8 Type;
516 UINT8 Length;
517 UINT16 Reserved;
518 UINT32 CPUInterfaceNumber;
519 UINT32 AcpiProcessorUid;
520 UINT32 Flags;
521 UINT32 ParkingProtocolVersion;
522 UINT32 PerformanceInterruptGsiv;
523 UINT64 ParkedAddress;
524 UINT64 PhysicalBaseAddress;
525 UINT64 GICV;
526 UINT64 GICH;
527 UINT32 VGICMaintenanceInterrupt;
528 UINT64 GICRBaseAddress;
529 UINT64 MPIDR;
531
535#define EFI_ACPI_5_1_GIC_ENABLED BIT0
536#define EFI_ACPI_5_1_PERFORMANCE_INTERRUPT_MODEL BIT1
537#define EFI_ACPI_5_1_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
538
542typedef struct {
543 UINT8 Type;
544 UINT8 Length;
545 UINT16 Reserved1;
546 UINT32 GicId;
547 UINT64 PhysicalBaseAddress;
548 UINT32 SystemVectorBase;
549 UINT8 GicVersion;
550 UINT8 Reserved2[3];
552
556#define EFI_ACPI_5_1_GIC_V1 0x01
557#define EFI_ACPI_5_1_GIC_V2 0x02
558#define EFI_ACPI_5_1_GIC_V3 0x03
559#define EFI_ACPI_5_1_GIC_V4 0x04
560
564typedef struct {
565 UINT8 Type;
566 UINT8 Length;
567 UINT16 Reserved1;
568 UINT32 GicMsiFrameId;
569 UINT64 PhysicalBaseAddress;
570 UINT32 Flags;
571 UINT16 SPICount;
572 UINT16 SPIBase;
574
578#define EFI_ACPI_5_1_SPI_COUNT_BASE_SELECT BIT0
579
583typedef struct {
584 UINT8 Type;
585 UINT8 Length;
586 UINT16 Reserved;
587 UINT64 DiscoveryRangeBaseAddress;
588 UINT32 DiscoveryRangeLength;
590
594typedef struct {
596 UINT32 WarningEnergyLevel;
597 UINT32 LowEnergyLevel;
598 UINT32 CriticalEnergyLevel;
600
604#define EFI_ACPI_5_1_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
605
611typedef struct {
615 UINT32 Uid;
616 UINT8 GpeBit;
618
622#define EFI_ACPI_5_1_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
623
628typedef struct {
630 UINT32 Reserved1;
631 UINT64 Reserved2;
633
637#define EFI_ACPI_5_1_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
638
639//
640// SRAT structure types.
641// All other values between 0x04 an 0xFF are reserved and
642// will be ignored by OSPM.
643//
644#define EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
645#define EFI_ACPI_5_1_MEMORY_AFFINITY 0x01
646#define EFI_ACPI_5_1_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
647#define EFI_ACPI_5_1_GICC_AFFINITY 0x03
648
652typedef struct {
653 UINT8 Type;
654 UINT8 Length;
655 UINT8 ProximityDomain7To0;
656 UINT8 ApicId;
657 UINT32 Flags;
658 UINT8 LocalSapicEid;
659 UINT8 ProximityDomain31To8[3];
660 UINT32 ClockDomain;
662
666#define EFI_ACPI_5_1_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
667
671typedef struct {
672 UINT8 Type;
673 UINT8 Length;
674 UINT32 ProximityDomain;
675 UINT16 Reserved1;
676 UINT32 AddressBaseLow;
677 UINT32 AddressBaseHigh;
678 UINT32 LengthLow;
679 UINT32 LengthHigh;
680 UINT32 Reserved2;
681 UINT32 Flags;
682 UINT64 Reserved3;
684
685//
686// Memory Flags. All other bits are reserved and must be 0.
687//
688#define EFI_ACPI_5_1_MEMORY_ENABLED (1 << 0)
689#define EFI_ACPI_5_1_MEMORY_HOT_PLUGGABLE (1 << 1)
690#define EFI_ACPI_5_1_MEMORY_NONVOLATILE (1 << 2)
691
695typedef struct {
696 UINT8 Type;
697 UINT8 Length;
698 UINT8 Reserved1[2];
699 UINT32 ProximityDomain;
700 UINT32 X2ApicId;
701 UINT32 Flags;
702 UINT32 ClockDomain;
703 UINT8 Reserved2[4];
705
709typedef struct {
710 UINT8 Type;
711 UINT8 Length;
712 UINT32 ProximityDomain;
713 UINT32 AcpiProcessorUid;
714 UINT32 Flags;
715 UINT32 ClockDomain;
717
721#define EFI_ACPI_5_1_GICC_ENABLED (1 << 0)
722
727typedef struct {
729 UINT64 NumberOfSystemLocalities;
731
735#define EFI_ACPI_5_1_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
736
740typedef struct {
742 UINT8 Reserved[8];
744
748#define EFI_ACPI_5_1_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
749
750//
751// CPEP processor structure types.
752//
753#define EFI_ACPI_5_1_CPEP_PROCESSOR_APIC_SAPIC 0x00
754
758typedef struct {
759 UINT8 Type;
760 UINT8 Length;
761 UINT8 ProcessorId;
762 UINT8 ProcessorEid;
763 UINT32 PollingInterval;
765
769typedef struct {
771 UINT32 OffsetProxDomInfo;
772 UINT32 MaximumNumberOfProximityDomains;
773 UINT32 MaximumNumberOfClockDomains;
774 UINT64 MaximumPhysicalAddress;
776
780#define EFI_ACPI_5_1_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
781
785typedef struct {
786 UINT8 Revision;
787 UINT8 Length;
788 UINT32 ProximityDomainRangeLow;
789 UINT32 ProximityDomainRangeHigh;
790 UINT32 MaximumProcessorCapacity;
791 UINT64 MaximumMemoryCapacity;
793
797typedef struct {
799 UINT8 PlatformCommunicationChannelIdentifier[12];
801
805#define EFI_ACPI_5_1_RAS_FEATURE_TABLE_REVISION 0x01
806
810typedef struct {
811 UINT32 Signature;
812 UINT16 Command;
813 UINT16 Status;
814 UINT16 Version;
815 UINT8 RASCapabilities[16];
816 UINT8 SetRASCapabilities[16];
817 UINT16 NumberOfRASFParameterBlocks;
818 UINT32 SetRASCapabilitiesStatus;
820
824#define EFI_ACPI_5_1_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
825
829#define EFI_ACPI_5_1_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED 0x01
830#define EFI_ACPI_5_1_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED_AND_EXPOSED_TO_SOFTWARE 0x02
831
835typedef struct {
836 UINT16 Type;
837 UINT16 Version;
838 UINT16 Length;
839 UINT16 PatrolScrubCommand;
840 UINT64 RequestedAddressRange[2];
841 UINT64 ActualAddressRange[2];
842 UINT16 Flags;
843 UINT8 RequestedSpeed;
845
849#define EFI_ACPI_5_1_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
850#define EFI_ACPI_5_1_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
851#define EFI_ACPI_5_1_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
852
856typedef struct {
858 UINT8 PlatformCommunicationChannelIdentifier;
859 UINT8 Reserved[3];
860 // Memory Power Node Structure
861 // Memory Power State Characteristics
863
867#define EFI_ACPI_5_1_MEMORY_POWER_STATE_TABLE_REVISION 0x01
868
872typedef struct {
873 UINT32 Signature;
874 UINT16 Command;
875 UINT16 Status;
876 UINT32 MemoryPowerCommandRegister;
877 UINT32 MemoryPowerStatusRegister;
878 UINT32 PowerStateId;
879 UINT32 MemoryPowerNodeId;
880 UINT64 MemoryEnergyConsumed;
881 UINT64 ExpectedAveragePowerComsuned;
883
887#define EFI_ACPI_5_1_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
888
892#define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
893#define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
894#define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
895#define EFI_ACPI_5_1_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
896
900typedef struct {
901 UINT8 PowerStateValue;
902 UINT8 PowerStateInformationIndex;
904
905typedef struct {
906 UINT8 Flag;
907 UINT8 Reserved;
908 UINT16 MemoryPowerNodeId;
909 UINT32 Length;
910 UINT64 AddressBase;
911 UINT64 AddressLength;
912 UINT32 NumberOfPowerStates;
913 UINT32 NumberOfPhysicalComponents;
914 // EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
915 // UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
917
918#define EFI_ACPI_5_1_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
919#define EFI_ACPI_5_1_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
920#define EFI_ACPI_5_1_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
921
922typedef struct {
923 UINT16 MemoryPowerNodeCount;
924 UINT8 Reserved[2];
926
930typedef struct {
931 UINT8 PowerStateStructureID;
932 UINT8 Flag;
933 UINT16 Reserved;
934 UINT32 AveragePowerConsumedInMPS0;
935 UINT32 RelativePowerSavingToMPS0;
936 UINT64 ExitLatencyToMPS0;
938
939#define EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
940#define EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
941#define EFI_ACPI_5_1_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
942
943typedef struct {
944 UINT16 MemoryPowerStateCharacteristicsCount;
945 UINT8 Reserved[2];
947
951typedef struct {
953 UINT32 Reserved;
955
959#define EFI_ACPI_5_1_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
960
964typedef struct {
965 UINT8 Type;
966 UINT8 Reserved;
967 UINT16 Length;
968 UINT16 Flags;
969 UINT16 Reserved1;
971
975#define EFI_ACPI_5_1_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET 0x0
976#define EFI_ACPI_5_1_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x1
977#define EFI_ACPI_5_1_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM 0x2
978
982typedef struct {
984 UINT16 SocketIdentifier;
985 UINT16 Reserved;
986 // EFI_ACPI_5_1_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE MemoryController[];
988
992typedef struct {
994 UINT32 ReadLatency;
995 UINT32 WriteLatency;
996 UINT32 ReadBandwidth;
997 UINT32 WriteBandwidth;
998 UINT16 OptimalAccessUnit;
999 UINT16 OptimalAccessAlignment;
1000 UINT16 Reserved;
1001 UINT16 NumberOfProximityDomains;
1002 // UINT32 ProximityDomain[NumberOfProximityDomains];
1003 // EFI_ACPI_5_1_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE PhysicalComponent[];
1005
1009typedef struct {
1011 UINT16 PhysicalComponentIdentifier;
1012 UINT16 Reserved;
1013 UINT32 SizeOfDimm;
1014 UINT32 SmbiosHandle;
1016
1020typedef struct {
1025 UINT16 Version;
1031 UINT8 Status;
1056
1060#define EFI_ACPI_5_1_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1061
1065#define EFI_ACPI_5_1_BGRT_VERSION 0x01
1066
1070#define EFI_ACPI_5_1_BGRT_STATUS_NOT_DISPLAYED 0x00
1071#define EFI_ACPI_5_1_BGRT_STATUS_DISPLAYED 0x01
1072
1076#define EFI_ACPI_5_1_BGRT_IMAGE_TYPE_BMP 0x00
1077
1081#define EFI_ACPI_5_1_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1082
1086#define EFI_ACPI_5_1_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1087#define EFI_ACPI_5_1_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1088
1092#define EFI_ACPI_5_1_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1093#define EFI_ACPI_5_1_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1094
1098#define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1099#define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1100#define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1101
1105#define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1106#define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1107#define EFI_ACPI_5_1_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1108
1112typedef struct {
1113 UINT16 Type;
1114 UINT8 Length;
1115 UINT8 Revision;
1117
1121typedef struct {
1122 UINT32 Signature;
1123 UINT32 Length;
1125
1129typedef struct {
1131 UINT32 Reserved;
1137
1141typedef struct {
1143 UINT32 Reserved;
1149
1153typedef struct {
1155 UINT32 Reserved;
1160 UINT64 ResetEnd;
1185
1189#define EFI_ACPI_5_1_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1190
1191//
1192// FPDT Firmware Basic Boot Performance Table
1193//
1194typedef struct {
1196 //
1197 // one or more Performance Records.
1198 //
1200
1204#define EFI_ACPI_5_1_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1205
1206//
1207// FPDT Firmware S3 Boot Performance Table
1208//
1209typedef struct {
1211 //
1212 // one or more Performance Records.
1213 //
1215
1219typedef struct {
1237
1241typedef struct {
1255
1259typedef struct {
1262
1266typedef struct {
1268 UINT64 CntControlBasePhysicalAddress;
1269 UINT32 Reserved;
1270 UINT32 SecurePL1TimerGSIV;
1271 UINT32 SecurePL1TimerFlags;
1272 UINT32 NonSecurePL1TimerGSIV;
1273 UINT32 NonSecurePL1TimerFlags;
1274 UINT32 VirtualTimerGSIV;
1275 UINT32 VirtualTimerFlags;
1276 UINT32 NonSecurePL2TimerGSIV;
1277 UINT32 NonSecurePL2TimerFlags;
1278 UINT64 CntReadBasePhysicalAddress;
1279 UINT32 PlatformTimerCount;
1280 UINT32 PlatformTimerOffset;
1282
1286#define EFI_ACPI_5_1_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x02
1287
1291#define EFI_ACPI_5_1_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1292#define EFI_ACPI_5_1_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1293#define EFI_ACPI_5_1_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
1294
1298#define EFI_ACPI_5_1_GTDT_GT_BLOCK 0
1299#define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG 1
1300
1304typedef struct {
1305 UINT8 Type;
1306 UINT16 Length;
1307 UINT8 Reserved;
1308 UINT64 CntCtlBase;
1309 UINT32 GTBlockTimerCount;
1310 UINT32 GTBlockTimerOffset;
1312
1316typedef struct {
1317 UINT8 GTFrameNumber;
1318 UINT8 Reserved[3];
1319 UINT64 CntBaseX;
1320 UINT64 CntEL0BaseX;
1321 UINT32 GTxPhysicalTimerGSIV;
1322 UINT32 GTxPhysicalTimerFlags;
1323 UINT32 GTxVirtualTimerGSIV;
1324 UINT32 GTxVirtualTimerFlags;
1325 UINT32 GTxCommonFlags;
1327
1331#define EFI_ACPI_5_1_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1332#define EFI_ACPI_5_1_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1333
1337#define EFI_ACPI_5_1_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
1338#define EFI_ACPI_5_1_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
1339
1343typedef struct {
1344 UINT8 Type;
1345 UINT16 Length;
1346 UINT8 Reserved;
1347 UINT64 RefreshFramePhysicalAddress;
1348 UINT64 WatchdogControlFramePhysicalAddress;
1349 UINT32 WatchdogTimerGSIV;
1350 UINT32 WatchdogTimerFlags;
1352
1356#define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
1357#define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1358#define EFI_ACPI_5_1_GTDT_SBSA_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
1359
1363typedef struct {
1365 UINT32 BootErrorRegionLength;
1366 UINT64 BootErrorRegion;
1368
1372#define EFI_ACPI_5_1_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1373
1377typedef struct {
1378 UINT32 UncorrectableErrorValid : 1;
1379 UINT32 CorrectableErrorValid : 1;
1380 UINT32 MultipleUncorrectableErrors : 1;
1381 UINT32 MultipleCorrectableErrors : 1;
1382 UINT32 ErrorDataEntryCount : 10;
1383 UINT32 Reserved : 18;
1385
1389typedef struct {
1391 UINT32 RawDataOffset;
1392 UINT32 RawDataLength;
1393 UINT32 DataLength;
1394 UINT32 ErrorSeverity;
1396
1397//
1398// Boot Error Severity types
1399//
1400#define EFI_ACPI_5_1_ERROR_SEVERITY_RECOVERABLE 0x00
1401#define EFI_ACPI_5_1_ERROR_SEVERITY_FATAL 0x01
1402#define EFI_ACPI_5_1_ERROR_SEVERITY_CORRECTED 0x02
1403#define EFI_ACPI_5_1_ERROR_SEVERITY_NONE 0x03
1404//
1405// The term 'Correctable' is no longer being used as an error severity of the
1406// reported error since ACPI Specification Version 5.1 Errata B.
1407// The below macro is considered as deprecated and should no longer be used.
1408//
1409#define EFI_ACPI_5_1_ERROR_SEVERITY_CORRECTABLE 0x00
1410
1414typedef struct {
1415 UINT8 SectionType[16];
1416 UINT32 ErrorSeverity;
1417 UINT16 Revision;
1418 UINT8 ValidationBits;
1419 UINT8 Flags;
1420 UINT32 ErrorDataLength;
1421 UINT8 FruId[16];
1422 UINT8 FruText[20];
1424
1428#define EFI_ACPI_5_1_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
1429
1433typedef struct {
1435 UINT32 ErrorSourceCount;
1437
1441#define EFI_ACPI_5_1_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1442
1443//
1444// Error Source structure types.
1445//
1446#define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1447#define EFI_ACPI_5_1_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1448#define EFI_ACPI_5_1_IA32_ARCHITECTURE_NMI_ERROR 0x02
1449#define EFI_ACPI_5_1_PCI_EXPRESS_ROOT_PORT_AER 0x06
1450#define EFI_ACPI_5_1_PCI_EXPRESS_DEVICE_AER 0x07
1451#define EFI_ACPI_5_1_PCI_EXPRESS_BRIDGE_AER 0x08
1452#define EFI_ACPI_5_1_GENERIC_HARDWARE_ERROR 0x09
1453
1454//
1455// Error Source structure flags.
1456//
1457#define EFI_ACPI_5_1_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1458#define EFI_ACPI_5_1_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1459
1463typedef struct {
1464 UINT16 Type;
1465 UINT16 SourceId;
1466 UINT8 Reserved0[2];
1467 UINT8 Flags;
1468 UINT8 Enabled;
1469 UINT32 NumberOfRecordsToPreAllocate;
1470 UINT32 MaxSectionsPerRecord;
1471 UINT64 GlobalCapabilityInitData;
1472 UINT64 GlobalControlInitData;
1473 UINT8 NumberOfHardwareBanks;
1474 UINT8 Reserved1[7];
1476
1480typedef struct {
1481 UINT8 BankNumber;
1482 UINT8 ClearStatusOnInitialization;
1483 UINT8 StatusDataFormat;
1484 UINT8 Reserved0;
1485 UINT32 ControlRegisterMsrAddress;
1486 UINT64 ControlInitData;
1487 UINT32 StatusRegisterMsrAddress;
1488 UINT32 AddressRegisterMsrAddress;
1489 UINT32 MiscRegisterMsrAddress;
1491
1495#define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1496#define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1497#define EFI_ACPI_5_1_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1498
1499//
1500// Hardware Error Notification types. All other values are reserved
1501//
1502#define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1503#define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1504#define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1505#define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1506#define EFI_ACPI_5_1_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1507
1511typedef struct {
1512 UINT16 Type : 1;
1513 UINT16 PollInterval : 1;
1514 UINT16 SwitchToPollingThresholdValue : 1;
1515 UINT16 SwitchToPollingThresholdWindow : 1;
1516 UINT16 ErrorThresholdValue : 1;
1517 UINT16 ErrorThresholdWindow : 1;
1518 UINT16 Reserved : 10;
1520
1524typedef struct {
1525 UINT8 Type;
1526 UINT8 Length;
1528 UINT32 PollInterval;
1529 UINT32 Vector;
1530 UINT32 SwitchToPollingThresholdValue;
1531 UINT32 SwitchToPollingThresholdWindow;
1532 UINT32 ErrorThresholdValue;
1533 UINT32 ErrorThresholdWindow;
1535
1539typedef struct {
1540 UINT16 Type;
1541 UINT16 SourceId;
1542 UINT8 Reserved0[2];
1543 UINT8 Flags;
1544 UINT8 Enabled;
1545 UINT32 NumberOfRecordsToPreAllocate;
1546 UINT32 MaxSectionsPerRecord;
1548 UINT8 NumberOfHardwareBanks;
1549 UINT8 Reserved1[3];
1551
1555typedef struct {
1556 UINT16 Type;
1557 UINT16 SourceId;
1558 UINT8 Reserved0[2];
1559 UINT32 NumberOfRecordsToPreAllocate;
1560 UINT32 MaxSectionsPerRecord;
1561 UINT32 MaxRawDataLength;
1563
1567typedef struct {
1568 UINT16 Type;
1569 UINT16 SourceId;
1570 UINT8 Reserved0[2];
1571 UINT8 Flags;
1572 UINT8 Enabled;
1573 UINT32 NumberOfRecordsToPreAllocate;
1574 UINT32 MaxSectionsPerRecord;
1575 UINT32 Bus;
1576 UINT16 Device;
1577 UINT16 Function;
1578 UINT16 DeviceControl;
1579 UINT8 Reserved1[2];
1580 UINT32 UncorrectableErrorMask;
1581 UINT32 UncorrectableErrorSeverity;
1582 UINT32 CorrectableErrorMask;
1583 UINT32 AdvancedErrorCapabilitiesAndControl;
1584 UINT32 RootErrorCommand;
1586
1590typedef struct {
1591 UINT16 Type;
1592 UINT16 SourceId;
1593 UINT8 Reserved0[2];
1594 UINT8 Flags;
1595 UINT8 Enabled;
1596 UINT32 NumberOfRecordsToPreAllocate;
1597 UINT32 MaxSectionsPerRecord;
1598 UINT32 Bus;
1599 UINT16 Device;
1600 UINT16 Function;
1601 UINT16 DeviceControl;
1602 UINT8 Reserved1[2];
1603 UINT32 UncorrectableErrorMask;
1604 UINT32 UncorrectableErrorSeverity;
1605 UINT32 CorrectableErrorMask;
1606 UINT32 AdvancedErrorCapabilitiesAndControl;
1608
1612typedef struct {
1613 UINT16 Type;
1614 UINT16 SourceId;
1615 UINT8 Reserved0[2];
1616 UINT8 Flags;
1617 UINT8 Enabled;
1618 UINT32 NumberOfRecordsToPreAllocate;
1619 UINT32 MaxSectionsPerRecord;
1620 UINT32 Bus;
1621 UINT16 Device;
1622 UINT16 Function;
1623 UINT16 DeviceControl;
1624 UINT8 Reserved1[2];
1625 UINT32 UncorrectableErrorMask;
1626 UINT32 UncorrectableErrorSeverity;
1627 UINT32 CorrectableErrorMask;
1628 UINT32 AdvancedErrorCapabilitiesAndControl;
1629 UINT32 SecondaryUncorrectableErrorMask;
1630 UINT32 SecondaryUncorrectableErrorSeverity;
1631 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
1633
1637typedef struct {
1638 UINT16 Type;
1639 UINT16 SourceId;
1640 UINT16 RelatedSourceId;
1641 UINT8 Flags;
1642 UINT8 Enabled;
1643 UINT32 NumberOfRecordsToPreAllocate;
1644 UINT32 MaxSectionsPerRecord;
1645 UINT32 MaxRawDataLength;
1646 EFI_ACPI_5_1_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress;
1648 UINT32 ErrorStatusBlockLength;
1650
1654typedef struct {
1656 UINT32 RawDataOffset;
1657 UINT32 RawDataLength;
1658 UINT32 DataLength;
1659 UINT32 ErrorSeverity;
1661
1665typedef struct {
1667 UINT32 SerializationHeaderSize;
1668 UINT8 Reserved0[4];
1669 UINT32 InstructionEntryCount;
1671
1675#define EFI_ACPI_5_1_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
1676
1680#define EFI_ACPI_5_1_ERST_BEGIN_WRITE_OPERATION 0x00
1681#define EFI_ACPI_5_1_ERST_BEGIN_READ_OPERATION 0x01
1682#define EFI_ACPI_5_1_ERST_BEGIN_CLEAR_OPERATION 0x02
1683#define EFI_ACPI_5_1_ERST_END_OPERATION 0x03
1684#define EFI_ACPI_5_1_ERST_SET_RECORD_OFFSET 0x04
1685#define EFI_ACPI_5_1_ERST_EXECUTE_OPERATION 0x05
1686#define EFI_ACPI_5_1_ERST_CHECK_BUSY_STATUS 0x06
1687#define EFI_ACPI_5_1_ERST_GET_COMMAND_STATUS 0x07
1688#define EFI_ACPI_5_1_ERST_GET_RECORD_IDENTIFIER 0x08
1689#define EFI_ACPI_5_1_ERST_SET_RECORD_IDENTIFIER 0x09
1690#define EFI_ACPI_5_1_ERST_GET_RECORD_COUNT 0x0A
1691#define EFI_ACPI_5_1_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
1692#define EFI_ACPI_5_1_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
1693#define EFI_ACPI_5_1_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
1694#define EFI_ACPI_5_1_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
1695
1699#define EFI_ACPI_5_1_ERST_STATUS_SUCCESS 0x00
1700#define EFI_ACPI_5_1_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
1701#define EFI_ACPI_5_1_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
1702#define EFI_ACPI_5_1_ERST_STATUS_FAILED 0x03
1703#define EFI_ACPI_5_1_ERST_STATUS_RECORD_STORE_EMPTY 0x04
1704#define EFI_ACPI_5_1_ERST_STATUS_RECORD_NOT_FOUND 0x05
1705
1709#define EFI_ACPI_5_1_ERST_READ_REGISTER 0x00
1710#define EFI_ACPI_5_1_ERST_READ_REGISTER_VALUE 0x01
1711#define EFI_ACPI_5_1_ERST_WRITE_REGISTER 0x02
1712#define EFI_ACPI_5_1_ERST_WRITE_REGISTER_VALUE 0x03
1713#define EFI_ACPI_5_1_ERST_NOOP 0x04
1714#define EFI_ACPI_5_1_ERST_LOAD_VAR1 0x05
1715#define EFI_ACPI_5_1_ERST_LOAD_VAR2 0x06
1716#define EFI_ACPI_5_1_ERST_STORE_VAR1 0x07
1717#define EFI_ACPI_5_1_ERST_ADD 0x08
1718#define EFI_ACPI_5_1_ERST_SUBTRACT 0x09
1719#define EFI_ACPI_5_1_ERST_ADD_VALUE 0x0A
1720#define EFI_ACPI_5_1_ERST_SUBTRACT_VALUE 0x0B
1721#define EFI_ACPI_5_1_ERST_STALL 0x0C
1722#define EFI_ACPI_5_1_ERST_STALL_WHILE_TRUE 0x0D
1723#define EFI_ACPI_5_1_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
1724#define EFI_ACPI_5_1_ERST_GOTO 0x0F
1725#define EFI_ACPI_5_1_ERST_SET_SRC_ADDRESS_BASE 0x10
1726#define EFI_ACPI_5_1_ERST_SET_DST_ADDRESS_BASE 0x11
1727#define EFI_ACPI_5_1_ERST_MOVE_DATA 0x12
1728
1732#define EFI_ACPI_5_1_ERST_PRESERVE_REGISTER 0x01
1733
1737typedef struct {
1738 UINT8 SerializationAction;
1739 UINT8 Instruction;
1740 UINT8 Flags;
1741 UINT8 Reserved0;
1743 UINT64 Value;
1744 UINT64 Mask;
1746
1750typedef struct {
1752 UINT32 InjectionHeaderSize;
1753 UINT8 InjectionFlags;
1754 UINT8 Reserved0[3];
1755 UINT32 InjectionEntryCount;
1757
1761#define EFI_ACPI_5_1_ERROR_INJECTION_TABLE_REVISION 0x01
1762
1766#define EFI_ACPI_5_1_EINJ_BEGIN_INJECTION_OPERATION 0x00
1767#define EFI_ACPI_5_1_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
1768#define EFI_ACPI_5_1_EINJ_SET_ERROR_TYPE 0x02
1769#define EFI_ACPI_5_1_EINJ_GET_ERROR_TYPE 0x03
1770#define EFI_ACPI_5_1_EINJ_END_OPERATION 0x04
1771#define EFI_ACPI_5_1_EINJ_EXECUTE_OPERATION 0x05
1772#define EFI_ACPI_5_1_EINJ_CHECK_BUSY_STATUS 0x06
1773#define EFI_ACPI_5_1_EINJ_GET_COMMAND_STATUS 0x07
1774#define EFI_ACPI_5_1_EINJ_SET_ERROR_TYPE_WITH_ADDRESS 0x08
1775#define EFI_ACPI_5_1_EINJ_TRIGGER_ERROR 0xFF
1776
1780#define EFI_ACPI_5_1_EINJ_STATUS_SUCCESS 0x00
1781#define EFI_ACPI_5_1_EINJ_STATUS_UNKNOWN_FAILURE 0x01
1782#define EFI_ACPI_5_1_EINJ_STATUS_INVALID_ACCESS 0x02
1783
1787#define EFI_ACPI_5_1_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
1788#define EFI_ACPI_5_1_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
1789#define EFI_ACPI_5_1_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
1790#define EFI_ACPI_5_1_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
1791#define EFI_ACPI_5_1_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
1792#define EFI_ACPI_5_1_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
1793#define EFI_ACPI_5_1_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
1794#define EFI_ACPI_5_1_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
1795#define EFI_ACPI_5_1_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
1796#define EFI_ACPI_5_1_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
1797#define EFI_ACPI_5_1_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
1798#define EFI_ACPI_5_1_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
1799
1803#define EFI_ACPI_5_1_EINJ_READ_REGISTER 0x00
1804#define EFI_ACPI_5_1_EINJ_READ_REGISTER_VALUE 0x01
1805#define EFI_ACPI_5_1_EINJ_WRITE_REGISTER 0x02
1806#define EFI_ACPI_5_1_EINJ_WRITE_REGISTER_VALUE 0x03
1807#define EFI_ACPI_5_1_EINJ_NOOP 0x04
1808
1812#define EFI_ACPI_5_1_EINJ_PRESERVE_REGISTER 0x01
1813
1817typedef struct {
1818 UINT8 InjectionAction;
1819 UINT8 Instruction;
1820 UINT8 Flags;
1821 UINT8 Reserved0;
1823 UINT64 Value;
1824 UINT64 Mask;
1826
1830typedef struct {
1831 UINT32 HeaderSize;
1832 UINT32 Revision;
1833 UINT32 TableSize;
1834 UINT32 EntryCount;
1836
1840typedef struct {
1849
1853#define EFI_ACPI_5_1_WAET_FLAGS_RTC_GOOD BIT0
1854#define EFI_ACPI_5_1_WAET_FLAGS_ACPI_PM_TIMER_GOOD BIT1
1855
1859typedef struct {
1861 UINT32 Flags;
1862 UINT64 Reserved;
1864
1868#define EFI_ACPI_5_1_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x01
1869
1873#define EFI_ACPI_5_1_PCCT_FLAGS_SCI_DOORBELL BIT0
1874
1875//
1876// PCCT Subspace type
1877//
1878#define EFI_ACPI_5_1_PCCT_SUBSPACE_TYPE_GENERIC 0x00
1879
1883typedef struct {
1884 UINT8 Type;
1885 UINT8 Length;
1887
1891typedef struct {
1892 UINT8 Type;
1893 UINT8 Length;
1894 UINT8 Reserved[6];
1895 UINT64 BaseAddress;
1896 UINT64 AddressLength;
1898 UINT64 DoorbellPreserve;
1899 UINT64 DoorbellWrite;
1900 UINT32 NominalLatency;
1901 UINT32 MaximumPeriodicAccessRate;
1902 UINT16 MinimumRequestTurnaroundTime;
1904
1908
1909typedef struct {
1910 UINT8 Command;
1911 UINT8 Reserved : 7;
1912 UINT8 GenerateSci : 1;
1914
1915typedef struct {
1916 UINT8 CommandComplete : 1;
1917 UINT8 SciDoorbell : 1;
1918 UINT8 Error : 1;
1919 UINT8 PlatformNotification : 1;
1920 UINT8 Reserved : 4;
1921 UINT8 Reserved1;
1923
1924typedef struct {
1925 UINT32 Signature;
1929
1930//
1931// Known table signatures
1932//
1933
1937#define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
1938
1942#define EFI_ACPI_5_1_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
1943
1947#define EFI_ACPI_5_1_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
1948
1952#define EFI_ACPI_5_1_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
1953
1957#define EFI_ACPI_5_1_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
1958
1962#define EFI_ACPI_5_1_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
1963
1967#define EFI_ACPI_5_1_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
1968
1972#define EFI_ACPI_5_1_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
1973
1977#define EFI_ACPI_5_1_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
1978
1982#define EFI_ACPI_5_1_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
1983
1987#define EFI_ACPI_5_1_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
1988
1992#define EFI_ACPI_5_1_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
1993
1997#define EFI_ACPI_5_1_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
1998
2002#define EFI_ACPI_5_1_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
2003
2007#define EFI_ACPI_5_1_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
2008
2012#define EFI_ACPI_5_1_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
2013
2017#define EFI_ACPI_5_1_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
2018
2022#define EFI_ACPI_5_1_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
2023
2027#define EFI_ACPI_5_1_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
2028
2032#define EFI_ACPI_5_1_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
2033
2037#define EFI_ACPI_5_1_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
2038
2042#define EFI_ACPI_5_1_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
2043
2047#define EFI_ACPI_5_1_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2048
2052#define EFI_ACPI_5_1_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2053
2057#define EFI_ACPI_5_1_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2058
2062#define EFI_ACPI_5_1_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2063
2067#define EFI_ACPI_5_1_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2068
2072#define EFI_ACPI_5_1_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
2073
2077#define EFI_ACPI_5_1_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
2078
2082#define EFI_ACPI_5_1_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
2083
2087#define EFI_ACPI_5_1_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
2088
2092#define EFI_ACPI_5_1_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
2093
2097#define EFI_ACPI_5_1_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
2098
2102#define EFI_ACPI_5_1_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
2103
2107#define EFI_ACPI_5_1_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
2108
2112#define EFI_ACPI_5_1_IO_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
2113
2117#define EFI_ACPI_5_1_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
2118
2122#define EFI_ACPI_5_1_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
2123
2127#define EFI_ACPI_5_1_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
2128
2132#define EFI_ACPI_5_1_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGNATURE_32('P', 'C', 'C', 'T')
2133
2137#define EFI_ACPI_5_1_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
2138
2142#define EFI_ACPI_5_1_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
2143
2147#define EFI_ACPI_5_1_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
2148
2152#define EFI_ACPI_5_1_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
2153
2157#define EFI_ACPI_5_1_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
2158
2162#define EFI_ACPI_5_1_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
2163
2167#define EFI_ACPI_5_1_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
2168
2172#define EFI_ACPI_5_1_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
2173
2177#define EFI_ACPI_5_1_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
2178
2182#define EFI_ACPI_5_1_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
2183
2184#pragma pack()
2185
2186#endif
UINT32 EmulatedDeviceFlags
Definition: Acpi51.h:1847