TianoCore EDK2 master
Loading...
Searching...
No Matches
Acpi40.h
Go to the documentation of this file.
1
8#ifndef _ACPI_4_0_H_
9#define _ACPI_4_0_H_
10
12
16#define EFI_ACPI_4_0_AML_PSD_REVISION 0
17
18//
19// Ensure proper structure formats
20//
21#pragma pack(1)
22
26typedef struct {
27 UINT8 AddressSpaceId;
28 UINT8 RegisterBitWidth;
29 UINT8 RegisterBitOffset;
30 UINT8 AccessSize;
31 UINT64 Address;
33
34//
35// Generic Address Space Address IDs
36//
37#define EFI_ACPI_4_0_SYSTEM_MEMORY 0
38#define EFI_ACPI_4_0_SYSTEM_IO 1
39#define EFI_ACPI_4_0_PCI_CONFIGURATION_SPACE 2
40#define EFI_ACPI_4_0_EMBEDDED_CONTROLLER 3
41#define EFI_ACPI_4_0_SMBUS 4
42#define EFI_ACPI_4_0_FUNCTIONAL_FIXED_HARDWARE 0x7F
43
44//
45// Generic Address Space Access Sizes
46//
47#define EFI_ACPI_4_0_UNDEFINED 0
48#define EFI_ACPI_4_0_BYTE 1
49#define EFI_ACPI_4_0_WORD 2
50#define EFI_ACPI_4_0_DWORD 3
51#define EFI_ACPI_4_0_QWORD 4
52
53//
54// ACPI 4.0 table structures
55//
56
60typedef struct {
61 UINT64 Signature;
62 UINT8 Checksum;
63 UINT8 OemId[6];
64 UINT8 Revision;
65 UINT32 RsdtAddress;
66 UINT32 Length;
67 UINT64 XsdtAddress;
68 UINT8 ExtendedChecksum;
69 UINT8 Reserved[3];
71
75#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02
76
81typedef struct {
82 UINT32 Signature;
83 UINT32 Length;
85
86//
87// Root System Description Table
88// No definition needed as it is a common description table header, the same with
89// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
90//
91
95#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
96
97//
98// Extended System Description Table
99// No definition needed as it is a common description table header, the same with
100// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
101//
102
106#define EFI_ACPI_4_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
107
111typedef struct {
113 UINT32 FirmwareCtrl;
114 UINT32 Dsdt;
115 UINT8 Reserved0;
116 UINT8 PreferredPmProfile;
117 UINT16 SciInt;
118 UINT32 SmiCmd;
119 UINT8 AcpiEnable;
120 UINT8 AcpiDisable;
121 UINT8 S4BiosReq;
122 UINT8 PstateCnt;
123 UINT32 Pm1aEvtBlk;
124 UINT32 Pm1bEvtBlk;
125 UINT32 Pm1aCntBlk;
126 UINT32 Pm1bCntBlk;
127 UINT32 Pm2CntBlk;
128 UINT32 PmTmrBlk;
129 UINT32 Gpe0Blk;
130 UINT32 Gpe1Blk;
131 UINT8 Pm1EvtLen;
132 UINT8 Pm1CntLen;
133 UINT8 Pm2CntLen;
134 UINT8 PmTmrLen;
135 UINT8 Gpe0BlkLen;
136 UINT8 Gpe1BlkLen;
137 UINT8 Gpe1Base;
138 UINT8 CstCnt;
139 UINT16 PLvl2Lat;
140 UINT16 PLvl3Lat;
141 UINT16 FlushSize;
142 UINT16 FlushStride;
143 UINT8 DutyOffset;
144 UINT8 DutyWidth;
145 UINT8 DayAlrm;
146 UINT8 MonAlrm;
147 UINT8 Century;
148 UINT16 IaPcBootArch;
149 UINT8 Reserved1;
150 UINT32 Flags;
152 UINT8 ResetValue;
153 UINT8 Reserved2[3];
154 UINT64 XFirmwareCtrl;
155 UINT64 XDsdt;
165
169#define EFI_ACPI_4_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x04
170
171//
172// Fixed ACPI Description Table Preferred Power Management Profile
173//
174#define EFI_ACPI_4_0_PM_PROFILE_UNSPECIFIED 0
175#define EFI_ACPI_4_0_PM_PROFILE_DESKTOP 1
176#define EFI_ACPI_4_0_PM_PROFILE_MOBILE 2
177#define EFI_ACPI_4_0_PM_PROFILE_WORKSTATION 3
178#define EFI_ACPI_4_0_PM_PROFILE_ENTERPRISE_SERVER 4
179#define EFI_ACPI_4_0_PM_PROFILE_SOHO_SERVER 5
180#define EFI_ACPI_4_0_PM_PROFILE_APPLIANCE_PC 6
181#define EFI_ACPI_4_0_PM_PROFILE_PERFORMANCE_SERVER 7
182
183//
184// Fixed ACPI Description Table Boot Architecture Flags
185// All other bits are reserved and must be set to 0.
186//
187#define EFI_ACPI_4_0_LEGACY_DEVICES BIT0
188#define EFI_ACPI_4_0_8042 BIT1
189#define EFI_ACPI_4_0_VGA_NOT_PRESENT BIT2
190#define EFI_ACPI_4_0_MSI_NOT_SUPPORTED BIT3
191#define EFI_ACPI_4_0_PCIE_ASPM_CONTROLS BIT4
192
193//
194// Fixed ACPI Description Table Fixed Feature Flags
195// All other bits are reserved and must be set to 0.
196//
197#define EFI_ACPI_4_0_WBINVD BIT0
198#define EFI_ACPI_4_0_WBINVD_FLUSH BIT1
199#define EFI_ACPI_4_0_PROC_C1 BIT2
200#define EFI_ACPI_4_0_P_LVL2_UP BIT3
201#define EFI_ACPI_4_0_PWR_BUTTON BIT4
202#define EFI_ACPI_4_0_SLP_BUTTON BIT5
203#define EFI_ACPI_4_0_FIX_RTC BIT6
204#define EFI_ACPI_4_0_RTC_S4 BIT7
205#define EFI_ACPI_4_0_TMR_VAL_EXT BIT8
206#define EFI_ACPI_4_0_DCK_CAP BIT9
207#define EFI_ACPI_4_0_RESET_REG_SUP BIT10
208#define EFI_ACPI_4_0_SEALED_CASE BIT11
209#define EFI_ACPI_4_0_HEADLESS BIT12
210#define EFI_ACPI_4_0_CPU_SW_SLP BIT13
211#define EFI_ACPI_4_0_PCI_EXP_WAK BIT14
212#define EFI_ACPI_4_0_USE_PLATFORM_CLOCK BIT15
213#define EFI_ACPI_4_0_S4_RTC_STS_VALID BIT16
214#define EFI_ACPI_4_0_REMOTE_POWER_ON_CAPABLE BIT17
215#define EFI_ACPI_4_0_FORCE_APIC_CLUSTER_MODEL BIT18
216#define EFI_ACPI_4_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
217
221typedef struct {
222 UINT32 Signature;
223 UINT32 Length;
224 UINT32 HardwareSignature;
225 UINT32 FirmwareWakingVector;
226 UINT32 GlobalLock;
227 UINT32 Flags;
228 UINT64 XFirmwareWakingVector;
229 UINT8 Version;
230 UINT8 Reserved0[3];
231 UINT32 OspmFlags;
232 UINT8 Reserved1[24];
234
238#define EFI_ACPI_4_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
239
244#define EFI_ACPI_4_0_S4BIOS_F BIT0
245#define EFI_ACPI_4_0_64BIT_WAKE_SUPPORTED_F BIT1
246
251#define EFI_ACPI_4_0_OSPM_64BIT_WAKE__F BIT0
252
253//
254// Differentiated System Description Table,
255// Secondary System Description Table
256// and Persistent System Description Table,
257// no definition needed as they are common description table header, the same with
258// EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
259//
260#define EFI_ACPI_4_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
261#define EFI_ACPI_4_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
262
267typedef struct {
269 UINT32 LocalApicAddress;
270 UINT32 Flags;
272
276#define EFI_ACPI_4_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
277
282#define EFI_ACPI_4_0_PCAT_COMPAT BIT0
283
284//
285// Multiple APIC Description Table APIC structure types
286// All other values between 0x0B an 0xFF are reserved and
287// will be ignored by OSPM.
288//
289#define EFI_ACPI_4_0_PROCESSOR_LOCAL_APIC 0x00
290#define EFI_ACPI_4_0_IO_APIC 0x01
291#define EFI_ACPI_4_0_INTERRUPT_SOURCE_OVERRIDE 0x02
292#define EFI_ACPI_4_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
293#define EFI_ACPI_4_0_LOCAL_APIC_NMI 0x04
294#define EFI_ACPI_4_0_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
295#define EFI_ACPI_4_0_IO_SAPIC 0x06
296#define EFI_ACPI_4_0_LOCAL_SAPIC 0x07
297#define EFI_ACPI_4_0_PLATFORM_INTERRUPT_SOURCES 0x08
298#define EFI_ACPI_4_0_PROCESSOR_LOCAL_X2APIC 0x09
299#define EFI_ACPI_4_0_LOCAL_X2APIC_NMI 0x0A
300
301//
302// APIC Structure Definitions
303//
304
308typedef struct {
309 UINT8 Type;
310 UINT8 Length;
311 UINT8 AcpiProcessorId;
312 UINT8 ApicId;
313 UINT32 Flags;
315
319#define EFI_ACPI_4_0_LOCAL_APIC_ENABLED BIT0
320
324typedef struct {
325 UINT8 Type;
326 UINT8 Length;
327 UINT8 IoApicId;
328 UINT8 Reserved;
329 UINT32 IoApicAddress;
330 UINT32 GlobalSystemInterruptBase;
332
336typedef struct {
337 UINT8 Type;
338 UINT8 Length;
339 UINT8 Bus;
340 UINT8 Source;
341 UINT32 GlobalSystemInterrupt;
342 UINT16 Flags;
344
348typedef struct {
349 UINT8 Type;
350 UINT8 Length;
351 UINT16 Flags;
352 UINT8 InterruptType;
353 UINT8 ProcessorId;
354 UINT8 ProcessorEid;
355 UINT8 IoSapicVector;
356 UINT32 GlobalSystemInterrupt;
357 UINT32 PlatformInterruptSourceFlags;
358 UINT8 CpeiProcessorOverride;
359 UINT8 Reserved[31];
361
362//
363// MPS INTI flags.
364// All other bits are reserved and must be set to 0.
365//
366#define EFI_ACPI_4_0_POLARITY (3 << 0)
367#define EFI_ACPI_4_0_TRIGGER_MODE (3 << 2)
368
372typedef struct {
373 UINT8 Type;
374 UINT8 Length;
375 UINT16 Flags;
376 UINT32 GlobalSystemInterrupt;
378
382typedef struct {
383 UINT8 Type;
384 UINT8 Length;
385 UINT8 AcpiProcessorId;
386 UINT16 Flags;
387 UINT8 LocalApicLint;
389
393typedef struct {
394 UINT8 Type;
395 UINT8 Length;
396 UINT16 Reserved;
397 UINT64 LocalApicAddress;
399
403typedef struct {
404 UINT8 Type;
405 UINT8 Length;
406 UINT8 IoApicId;
407 UINT8 Reserved;
408 UINT32 GlobalSystemInterruptBase;
409 UINT64 IoSapicAddress;
411
416typedef struct {
417 UINT8 Type;
418 UINT8 Length;
419 UINT8 AcpiProcessorId;
420 UINT8 LocalSapicId;
421 UINT8 LocalSapicEid;
422 UINT8 Reserved[3];
423 UINT32 Flags;
424 UINT32 ACPIProcessorUIDValue;
426
430typedef struct {
431 UINT8 Type;
432 UINT8 Length;
433 UINT16 Flags;
434 UINT8 InterruptType;
435 UINT8 ProcessorId;
436 UINT8 ProcessorEid;
437 UINT8 IoSapicVector;
438 UINT32 GlobalSystemInterrupt;
439 UINT32 PlatformInterruptSourceFlags;
441
446#define EFI_ACPI_4_0_CPEI_PROCESSOR_OVERRIDE BIT0
447
451typedef struct {
452 UINT8 Type;
453 UINT8 Length;
454 UINT8 Reserved[2];
455 UINT32 X2ApicId;
456 UINT32 Flags;
457 UINT32 AcpiProcessorUid;
459
463typedef struct {
464 UINT8 Type;
465 UINT8 Length;
466 UINT16 Flags;
467 UINT32 AcpiProcessorUid;
468 UINT8 LocalX2ApicLint;
469 UINT8 Reserved[3];
471
475typedef struct {
477 UINT32 WarningEnergyLevel;
478 UINT32 LowEnergyLevel;
479 UINT32 CriticalEnergyLevel;
481
485#define EFI_ACPI_4_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
486
492typedef struct {
496 UINT32 Uid;
497 UINT8 GpeBit;
499
503#define EFI_ACPI_4_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
504
509typedef struct {
511 UINT32 Reserved1;
512 UINT64 Reserved2;
514
518#define EFI_ACPI_4_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
519
520//
521// SRAT structure types.
522// All other values between 0x03 an 0xFF are reserved and
523// will be ignored by OSPM.
524//
525#define EFI_ACPI_4_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
526#define EFI_ACPI_4_0_MEMORY_AFFINITY 0x01
527#define EFI_ACPI_4_0_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
528
532typedef struct {
533 UINT8 Type;
534 UINT8 Length;
535 UINT8 ProximityDomain7To0;
536 UINT8 ApicId;
537 UINT32 Flags;
538 UINT8 LocalSapicEid;
539 UINT8 ProximityDomain31To8[3];
540 UINT32 ClockDomain;
542
546#define EFI_ACPI_4_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
547
551typedef struct {
552 UINT8 Type;
553 UINT8 Length;
554 UINT32 ProximityDomain;
555 UINT16 Reserved1;
556 UINT32 AddressBaseLow;
557 UINT32 AddressBaseHigh;
558 UINT32 LengthLow;
559 UINT32 LengthHigh;
560 UINT32 Reserved2;
561 UINT32 Flags;
562 UINT64 Reserved3;
564
565//
566// Memory Flags. All other bits are reserved and must be 0.
567//
568#define EFI_ACPI_4_0_MEMORY_ENABLED (1 << 0)
569#define EFI_ACPI_4_0_MEMORY_HOT_PLUGGABLE (1 << 1)
570#define EFI_ACPI_4_0_MEMORY_NONVOLATILE (1 << 2)
571
575typedef struct {
576 UINT8 Type;
577 UINT8 Length;
578 UINT8 Reserved1[2];
579 UINT32 ProximityDomain;
580 UINT32 X2ApicId;
581 UINT32 Flags;
582 UINT32 ClockDomain;
583 UINT8 Reserved2[4];
585
590typedef struct {
592 UINT64 NumberOfSystemLocalities;
594
598#define EFI_ACPI_4_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
599
603typedef struct {
605 UINT8 Reserved[8];
607
611#define EFI_ACPI_4_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
612
613//
614// CPEP processor structure types.
615//
616#define EFI_ACPI_4_0_CPEP_PROCESSOR_APIC_SAPIC 0x00
617
621typedef struct {
622 UINT8 Type;
623 UINT8 Length;
624 UINT8 ProcessorId;
625 UINT8 ProcessorEid;
626 UINT32 PollingInterval;
628
632typedef struct {
634 UINT32 OffsetProxDomInfo;
635 UINT32 MaximumNumberOfProximityDomains;
636 UINT32 MaximumNumberOfClockDomains;
637 UINT64 MaximumPhysicalAddress;
639
643#define EFI_ACPI_4_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
644
648typedef struct {
649 UINT8 Revision;
650 UINT8 Length;
651 UINT32 ProximityDomainRangeLow;
652 UINT32 ProximityDomainRangeHigh;
653 UINT32 MaximumProcessorCapacity;
654 UINT64 MaximumMemoryCapacity;
656
660typedef struct {
662 UINT32 BootErrorRegionLength;
663 UINT64 BootErrorRegion;
665
669#define EFI_ACPI_4_0_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
670
674typedef struct {
675 UINT32 UncorrectableErrorValid : 1;
676 UINT32 CorrectableErrorValid : 1;
677 UINT32 MultipleUncorrectableErrors : 1;
678 UINT32 MultipleCorrectableErrors : 1;
679 UINT32 ErrorDataEntryCount : 10;
680 UINT32 Reserved : 18;
682
686typedef struct {
688 UINT32 RawDataOffset;
689 UINT32 RawDataLength;
690 UINT32 DataLength;
691 UINT32 ErrorSeverity;
693
694//
695// Boot Error Severity types
696//
697#define EFI_ACPI_4_0_ERROR_SEVERITY_CORRECTABLE 0x00
698#define EFI_ACPI_4_0_ERROR_SEVERITY_RECOVERABLE 0x00
699#define EFI_ACPI_4_0_ERROR_SEVERITY_FATAL 0x01
700#define EFI_ACPI_4_0_ERROR_SEVERITY_CORRECTED 0x02
701#define EFI_ACPI_4_0_ERROR_SEVERITY_NONE 0x03
702
706typedef struct {
707 UINT8 SectionType[16];
708 UINT32 ErrorSeverity;
709 UINT16 Revision;
710 UINT8 ValidationBits;
711 UINT8 Flags;
712 UINT32 ErrorDataLength;
713 UINT8 FruId[16];
714 UINT8 FruText[20];
716
720#define EFI_ACPI_4_0_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
721
725typedef struct {
727 UINT32 ErrorSourceCount;
729
733#define EFI_ACPI_4_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
734
735//
736// Error Source structure types.
737//
738#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
739#define EFI_ACPI_4_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
740#define EFI_ACPI_4_0_IA32_ARCHITECTURE_NMI_ERROR 0x02
741#define EFI_ACPI_4_0_PCI_EXPRESS_ROOT_PORT_AER 0x06
742#define EFI_ACPI_4_0_PCI_EXPRESS_DEVICE_AER 0x07
743#define EFI_ACPI_4_0_PCI_EXPRESS_BRIDGE_AER 0x08
744#define EFI_ACPI_4_0_GENERIC_HARDWARE_ERROR 0x09
745
746//
747// Error Source structure flags.
748//
749#define EFI_ACPI_4_0_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
750#define EFI_ACPI_4_0_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
751
755typedef struct {
756 UINT16 Type;
757 UINT16 SourceId;
758 UINT8 Reserved0[2];
759 UINT8 Flags;
760 UINT8 Enabled;
761 UINT32 NumberOfRecordsToPreAllocate;
762 UINT32 MaxSectionsPerRecord;
763 UINT64 GlobalCapabilityInitData;
764 UINT64 GlobalControlInitData;
765 UINT8 NumberOfHardwareBanks;
766 UINT8 Reserved1[7];
768
772typedef struct {
773 UINT8 BankNumber;
774 UINT8 ClearStatusOnInitialization;
775 UINT8 StatusDataFormat;
776 UINT8 Reserved0;
777 UINT32 ControlRegisterMsrAddress;
778 UINT64 ControlInitData;
779 UINT32 StatusRegisterMsrAddress;
780 UINT32 AddressRegisterMsrAddress;
781 UINT32 MiscRegisterMsrAddress;
783
787#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
788#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
789#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
790
791//
792// Hardware Error Notification types. All other values are reserved
793//
794#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
795#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
796#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
797#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
798#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
799
803typedef struct {
804 UINT16 Type : 1;
805 UINT16 PollInterval : 1;
806 UINT16 SwitchToPollingThresholdValue : 1;
807 UINT16 SwitchToPollingThresholdWindow : 1;
808 UINT16 ErrorThresholdValue : 1;
809 UINT16 ErrorThresholdWindow : 1;
810 UINT16 Reserved : 10;
812
816typedef struct {
817 UINT8 Type;
818 UINT8 Length;
820 UINT32 PollInterval;
821 UINT32 Vector;
822 UINT32 SwitchToPollingThresholdValue;
823 UINT32 SwitchToPollingThresholdWindow;
824 UINT32 ErrorThresholdValue;
825 UINT32 ErrorThresholdWindow;
827
831typedef struct {
832 UINT16 Type;
833 UINT16 SourceId;
834 UINT8 Reserved0[2];
835 UINT8 Flags;
836 UINT8 Enabled;
837 UINT32 NumberOfRecordsToPreAllocate;
838 UINT32 MaxSectionsPerRecord;
840 UINT8 NumberOfHardwareBanks;
841 UINT8 Reserved1[3];
843
847typedef struct {
848 UINT16 Type;
849 UINT16 SourceId;
850 UINT8 Reserved0[2];
851 UINT32 NumberOfRecordsToPreAllocate;
852 UINT32 MaxSectionsPerRecord;
853 UINT32 MaxRawDataLength;
855
859typedef struct {
860 UINT16 Type;
861 UINT16 SourceId;
862 UINT8 Reserved0[2];
863 UINT8 Flags;
864 UINT8 Enabled;
865 UINT32 NumberOfRecordsToPreAllocate;
866 UINT32 MaxSectionsPerRecord;
867 UINT32 Bus;
868 UINT16 Device;
869 UINT16 Function;
870 UINT16 DeviceControl;
871 UINT8 Reserved1[2];
872 UINT32 UncorrectableErrorMask;
873 UINT32 UncorrectableErrorSeverity;
874 UINT32 CorrectableErrorMask;
875 UINT32 AdvancedErrorCapabilitiesAndControl;
876 UINT32 RootErrorCommand;
878
882typedef struct {
883 UINT16 Type;
884 UINT16 SourceId;
885 UINT8 Reserved0[2];
886 UINT8 Flags;
887 UINT8 Enabled;
888 UINT32 NumberOfRecordsToPreAllocate;
889 UINT32 MaxSectionsPerRecord;
890 UINT32 Bus;
891 UINT16 Device;
892 UINT16 Function;
893 UINT16 DeviceControl;
894 UINT8 Reserved1[2];
895 UINT32 UncorrectableErrorMask;
896 UINT32 UncorrectableErrorSeverity;
897 UINT32 CorrectableErrorMask;
898 UINT32 AdvancedErrorCapabilitiesAndControl;
900
904typedef struct {
905 UINT16 Type;
906 UINT16 SourceId;
907 UINT8 Reserved0[2];
908 UINT8 Flags;
909 UINT8 Enabled;
910 UINT32 NumberOfRecordsToPreAllocate;
911 UINT32 MaxSectionsPerRecord;
912 UINT32 Bus;
913 UINT16 Device;
914 UINT16 Function;
915 UINT16 DeviceControl;
916 UINT8 Reserved1[2];
917 UINT32 UncorrectableErrorMask;
918 UINT32 UncorrectableErrorSeverity;
919 UINT32 CorrectableErrorMask;
920 UINT32 AdvancedErrorCapabilitiesAndControl;
921 UINT32 SecondaryUncorrectableErrorMask;
922 UINT32 SecondaryUncorrectableErrorSeverity;
923 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
925
929typedef struct {
930 UINT16 Type;
931 UINT16 SourceId;
932 UINT16 RelatedSourceId;
933 UINT8 Flags;
934 UINT8 Enabled;
935 UINT32 NumberOfRecordsToPreAllocate;
936 UINT32 MaxSectionsPerRecord;
937 UINT32 MaxRawDataLength;
940 UINT32 ErrorStatusBlockLength;
942
946typedef struct {
948 UINT32 RawDataOffset;
949 UINT32 RawDataLength;
950 UINT32 DataLength;
951 UINT32 ErrorSeverity;
953
957typedef struct {
959 UINT32 SerializationHeaderSize;
960 UINT8 Reserved0[4];
961 UINT32 InstructionEntryCount;
963
967#define EFI_ACPI_4_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
968
972#define EFI_ACPI_4_0_ERST_BEGIN_WRITE_OPERATION 0x00
973#define EFI_ACPI_4_0_ERST_BEGIN_READ_OPERATION 0x01
974#define EFI_ACPI_4_0_ERST_BEGIN_CLEAR_OPERATION 0x02
975#define EFI_ACPI_4_0_ERST_END_OPERATION 0x03
976#define EFI_ACPI_4_0_ERST_SET_RECORD_OFFSET 0x04
977#define EFI_ACPI_4_0_ERST_EXECUTE_OPERATION 0x05
978#define EFI_ACPI_4_0_ERST_CHECK_BUSY_STATUS 0x06
979#define EFI_ACPI_4_0_ERST_GET_COMMAND_STATUS 0x07
980#define EFI_ACPI_4_0_ERST_GET_RECORD_IDENTIFIER 0x08
981#define EFI_ACPI_4_0_ERST_SET_RECORD_IDENTIFIER 0x09
982#define EFI_ACPI_4_0_ERST_GET_RECORD_COUNT 0x0A
983#define EFI_ACPI_4_0_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
984#define EFI_ACPI_4_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
985#define EFI_ACPI_4_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
986#define EFI_ACPI_4_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
987
991#define EFI_ACPI_4_0_EINJ_STATUS_SUCCESS 0x00
992#define EFI_ACPI_4_0_EINJ_STATUS_NOT_ENOUGH_SPACE 0x01
993#define EFI_ACPI_4_0_EINJ_STATUS_HARDWARE_NOT_AVAILABLE 0x02
994#define EFI_ACPI_4_0_EINJ_STATUS_FAILED 0x03
995#define EFI_ACPI_4_0_EINJ_STATUS_RECORD_STORE_EMPTY 0x04
996#define EFI_ACPI_4_0_EINJ_STATUS_RECORD_NOT_FOUND 0x05
997
1001#define EFI_ACPI_4_0_ERST_READ_REGISTER 0x00
1002#define EFI_ACPI_4_0_ERST_READ_REGISTER_VALUE 0x01
1003#define EFI_ACPI_4_0_ERST_WRITE_REGISTER 0x02
1004#define EFI_ACPI_4_0_ERST_WRITE_REGISTER_VALUE 0x03
1005#define EFI_ACPI_4_0_ERST_NOOP 0x04
1006#define EFI_ACPI_4_0_ERST_LOAD_VAR1 0x05
1007#define EFI_ACPI_4_0_ERST_LOAD_VAR2 0x06
1008#define EFI_ACPI_4_0_ERST_STORE_VAR1 0x07
1009#define EFI_ACPI_4_0_ERST_ADD 0x08
1010#define EFI_ACPI_4_0_ERST_SUBTRACT 0x09
1011#define EFI_ACPI_4_0_ERST_ADD_VALUE 0x0A
1012#define EFI_ACPI_4_0_ERST_SUBTRACT_VALUE 0x0B
1013#define EFI_ACPI_4_0_ERST_STALL 0x0C
1014#define EFI_ACPI_4_0_ERST_STALL_WHILE_TRUE 0x0D
1015#define EFI_ACPI_4_0_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
1016#define EFI_ACPI_4_0_ERST_GOTO 0x0F
1017#define EFI_ACPI_4_0_ERST_SET_SRC_ADDRESS_BASE 0x10
1018#define EFI_ACPI_4_0_ERST_SET_DST_ADDRESS_BASE 0x11
1019#define EFI_ACPI_4_0_ERST_MOVE_DATA 0x12
1020
1024#define EFI_ACPI_4_0_ERST_PRESERVE_REGISTER 0x01
1025
1029typedef struct {
1030 UINT8 SerializationAction;
1031 UINT8 Instruction;
1032 UINT8 Flags;
1033 UINT8 Reserved0;
1035 UINT64 Value;
1036 UINT64 Mask;
1038
1042typedef struct {
1044 UINT32 InjectionHeaderSize;
1045 UINT8 InjectionFlags;
1046 UINT8 Reserved0[3];
1047 UINT32 InjectionEntryCount;
1049
1053#define EFI_ACPI_4_0_ERROR_INJECTION_TABLE_REVISION 0x01
1054
1058#define EFI_ACPI_4_0_EINJ_BEGIN_INJECTION_OPERATION 0x00
1059#define EFI_ACPI_4_0_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
1060#define EFI_ACPI_4_0_EINJ_SET_ERROR_TYPE 0x02
1061#define EFI_ACPI_4_0_EINJ_GET_ERROR_TYPE 0x03
1062#define EFI_ACPI_4_0_EINJ_END_OPERATION 0x04
1063#define EFI_ACPI_4_0_EINJ_EXECUTE_OPERATION 0x05
1064#define EFI_ACPI_4_0_EINJ_CHECK_BUSY_STATUS 0x06
1065#define EFI_ACPI_4_0_EINJ_GET_COMMAND_STATUS 0x07
1066#define EFI_ACPI_4_0_EINJ_TRIGGER_ERROR 0xFF
1067
1071#define EFI_ACPI_4_0_EINJ_STATUS_SUCCESS 0x00
1072#define EFI_ACPI_4_0_EINJ_STATUS_UNKNOWN_FAILURE 0x01
1073#define EFI_ACPI_4_0_EINJ_STATUS_INVALID_ACCESS 0x02
1074
1078#define EFI_ACPI_4_0_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
1079#define EFI_ACPI_4_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
1080#define EFI_ACPI_4_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
1081#define EFI_ACPI_4_0_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
1082#define EFI_ACPI_4_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
1083#define EFI_ACPI_4_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
1084#define EFI_ACPI_4_0_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
1085#define EFI_ACPI_4_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
1086#define EFI_ACPI_4_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
1087#define EFI_ACPI_4_0_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
1088#define EFI_ACPI_4_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
1089#define EFI_ACPI_4_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
1090
1094#define EFI_ACPI_4_0_EINJ_READ_REGISTER 0x00
1095#define EFI_ACPI_4_0_EINJ_READ_REGISTER_VALUE 0x01
1096#define EFI_ACPI_4_0_EINJ_WRITE_REGISTER 0x02
1097#define EFI_ACPI_4_0_EINJ_WRITE_REGISTER_VALUE 0x03
1098#define EFI_ACPI_4_0_EINJ_NOOP 0x04
1099
1103#define EFI_ACPI_4_0_EINJ_PRESERVE_REGISTER 0x01
1104
1108typedef struct {
1109 UINT8 InjectionAction;
1110 UINT8 Instruction;
1111 UINT8 Flags;
1112 UINT8 Reserved0;
1114 UINT64 Value;
1115 UINT64 Mask;
1117
1121typedef struct {
1122 UINT32 HeaderSize;
1123 UINT32 Revision;
1124 UINT32 TableSize;
1125 UINT32 EntryCount;
1127
1128//
1129// Known table signatures
1130//
1131
1135#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
1136
1140#define EFI_ACPI_4_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
1141
1145#define EFI_ACPI_4_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
1146
1150#define EFI_ACPI_4_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
1151
1155#define EFI_ACPI_4_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
1156
1160#define EFI_ACPI_4_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
1161
1165#define EFI_ACPI_4_0_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
1166
1170#define EFI_ACPI_4_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
1171
1175#define EFI_ACPI_4_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
1176
1180#define EFI_ACPI_4_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
1181
1185#define EFI_ACPI_4_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
1186
1190#define EFI_ACPI_4_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
1191
1195#define EFI_ACPI_4_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
1196
1200#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
1201
1205#define EFI_ACPI_4_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
1206
1210#define EFI_ACPI_4_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
1211
1215#define EFI_ACPI_4_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
1216
1220#define EFI_ACPI_4_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
1221
1225#define EFI_ACPI_4_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
1226
1230#define EFI_ACPI_4_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
1231
1235#define EFI_ACPI_4_0_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
1236
1240#define EFI_ACPI_4_0_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
1241
1245#define EFI_ACPI_4_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
1246
1250#define EFI_ACPI_4_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
1251
1255#define EFI_ACPI_4_0_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
1256
1260#define EFI_ACPI_4_0_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
1261
1265#define EFI_ACPI_4_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
1266
1270#define EFI_ACPI_4_0_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
1271
1275#define EFI_ACPI_4_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
1276
1280#define EFI_ACPI_4_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
1281
1285#define EFI_ACPI_4_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
1286
1290#define EFI_ACPI_4_0_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
1291
1295#define EFI_ACPI_4_0_WINDOWS_ACPI_ENLIGHTENMENT_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
1296
1300#define EFI_ACPI_4_0_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
1301
1305#define EFI_ACPI_4_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
1306
1307#pragma pack()
1308
1309#endif