TianoCore EDK2 master
Loading...
Searching...
No Matches
Acpi40.h
Go to the documentation of this file.
1
9#ifndef _ACPI_4_0_H_
10#define _ACPI_4_0_H_
11
13
17#define EFI_ACPI_4_0_AML_CSD_REVISION 0
18
22#define EFI_ACPI_4_0_AML_CSD_NUM_ENTRIES 6
23
27#define EFI_ACPI_4_0_AML_PSD_REVISION 0
28
29//
30// Ensure proper structure formats
31//
32#pragma pack(1)
33
37typedef struct {
38 UINT8 AddressSpaceId;
39 UINT8 RegisterBitWidth;
40 UINT8 RegisterBitOffset;
41 UINT8 AccessSize;
42 UINT64 Address;
44
45//
46// Generic Address Space Address IDs
47//
48#define EFI_ACPI_4_0_SYSTEM_MEMORY 0
49#define EFI_ACPI_4_0_SYSTEM_IO 1
50#define EFI_ACPI_4_0_PCI_CONFIGURATION_SPACE 2
51#define EFI_ACPI_4_0_EMBEDDED_CONTROLLER 3
52#define EFI_ACPI_4_0_SMBUS 4
53#define EFI_ACPI_4_0_FUNCTIONAL_FIXED_HARDWARE 0x7F
54
55//
56// Generic Address Space Access Sizes
57//
58#define EFI_ACPI_4_0_UNDEFINED 0
59#define EFI_ACPI_4_0_BYTE 1
60#define EFI_ACPI_4_0_WORD 2
61#define EFI_ACPI_4_0_DWORD 3
62#define EFI_ACPI_4_0_QWORD 4
63
64//
65// ACPI 4.0 table structures
66//
67
71typedef struct {
72 UINT64 Signature;
73 UINT8 Checksum;
74 UINT8 OemId[6];
75 UINT8 Revision;
76 UINT32 RsdtAddress;
77 UINT32 Length;
78 UINT64 XsdtAddress;
79 UINT8 ExtendedChecksum;
80 UINT8 Reserved[3];
82
86#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02
87
92typedef struct {
93 UINT32 Signature;
94 UINT32 Length;
96
97//
98// Root 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 UINT32 table pointers.
101//
102
106#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
107
108//
109// Extended System Description Table
110// No definition needed as it is a common description table header, the same with
111// EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
112//
113
117#define EFI_ACPI_4_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
118
122typedef struct {
124 UINT32 FirmwareCtrl;
125 UINT32 Dsdt;
126 UINT8 Reserved0;
127 UINT8 PreferredPmProfile;
128 UINT16 SciInt;
129 UINT32 SmiCmd;
130 UINT8 AcpiEnable;
131 UINT8 AcpiDisable;
132 UINT8 S4BiosReq;
133 UINT8 PstateCnt;
134 UINT32 Pm1aEvtBlk;
135 UINT32 Pm1bEvtBlk;
136 UINT32 Pm1aCntBlk;
137 UINT32 Pm1bCntBlk;
138 UINT32 Pm2CntBlk;
139 UINT32 PmTmrBlk;
140 UINT32 Gpe0Blk;
141 UINT32 Gpe1Blk;
142 UINT8 Pm1EvtLen;
143 UINT8 Pm1CntLen;
144 UINT8 Pm2CntLen;
145 UINT8 PmTmrLen;
146 UINT8 Gpe0BlkLen;
147 UINT8 Gpe1BlkLen;
148 UINT8 Gpe1Base;
149 UINT8 CstCnt;
150 UINT16 PLvl2Lat;
151 UINT16 PLvl3Lat;
152 UINT16 FlushSize;
153 UINT16 FlushStride;
154 UINT8 DutyOffset;
155 UINT8 DutyWidth;
156 UINT8 DayAlrm;
157 UINT8 MonAlrm;
158 UINT8 Century;
159 UINT16 IaPcBootArch;
160 UINT8 Reserved1;
161 UINT32 Flags;
163 UINT8 ResetValue;
164 UINT8 Reserved2[3];
165 UINT64 XFirmwareCtrl;
166 UINT64 XDsdt;
176
180#define EFI_ACPI_4_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x04
181
182//
183// Fixed ACPI Description Table Preferred Power Management Profile
184//
185#define EFI_ACPI_4_0_PM_PROFILE_UNSPECIFIED 0
186#define EFI_ACPI_4_0_PM_PROFILE_DESKTOP 1
187#define EFI_ACPI_4_0_PM_PROFILE_MOBILE 2
188#define EFI_ACPI_4_0_PM_PROFILE_WORKSTATION 3
189#define EFI_ACPI_4_0_PM_PROFILE_ENTERPRISE_SERVER 4
190#define EFI_ACPI_4_0_PM_PROFILE_SOHO_SERVER 5
191#define EFI_ACPI_4_0_PM_PROFILE_APPLIANCE_PC 6
192#define EFI_ACPI_4_0_PM_PROFILE_PERFORMANCE_SERVER 7
193
194//
195// Fixed ACPI Description Table Boot Architecture Flags
196// All other bits are reserved and must be set to 0.
197//
198#define EFI_ACPI_4_0_LEGACY_DEVICES BIT0
199#define EFI_ACPI_4_0_8042 BIT1
200#define EFI_ACPI_4_0_VGA_NOT_PRESENT BIT2
201#define EFI_ACPI_4_0_MSI_NOT_SUPPORTED BIT3
202#define EFI_ACPI_4_0_PCIE_ASPM_CONTROLS BIT4
203
204//
205// Fixed ACPI Description Table Fixed Feature Flags
206// All other bits are reserved and must be set to 0.
207//
208#define EFI_ACPI_4_0_WBINVD BIT0
209#define EFI_ACPI_4_0_WBINVD_FLUSH BIT1
210#define EFI_ACPI_4_0_PROC_C1 BIT2
211#define EFI_ACPI_4_0_P_LVL2_UP BIT3
212#define EFI_ACPI_4_0_PWR_BUTTON BIT4
213#define EFI_ACPI_4_0_SLP_BUTTON BIT5
214#define EFI_ACPI_4_0_FIX_RTC BIT6
215#define EFI_ACPI_4_0_RTC_S4 BIT7
216#define EFI_ACPI_4_0_TMR_VAL_EXT BIT8
217#define EFI_ACPI_4_0_DCK_CAP BIT9
218#define EFI_ACPI_4_0_RESET_REG_SUP BIT10
219#define EFI_ACPI_4_0_SEALED_CASE BIT11
220#define EFI_ACPI_4_0_HEADLESS BIT12
221#define EFI_ACPI_4_0_CPU_SW_SLP BIT13
222#define EFI_ACPI_4_0_PCI_EXP_WAK BIT14
223#define EFI_ACPI_4_0_USE_PLATFORM_CLOCK BIT15
224#define EFI_ACPI_4_0_S4_RTC_STS_VALID BIT16
225#define EFI_ACPI_4_0_REMOTE_POWER_ON_CAPABLE BIT17
226#define EFI_ACPI_4_0_FORCE_APIC_CLUSTER_MODEL BIT18
227#define EFI_ACPI_4_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
228
232typedef struct {
233 UINT32 Signature;
234 UINT32 Length;
235 UINT32 HardwareSignature;
236 UINT32 FirmwareWakingVector;
237 UINT32 GlobalLock;
238 UINT32 Flags;
239 UINT64 XFirmwareWakingVector;
240 UINT8 Version;
241 UINT8 Reserved0[3];
242 UINT32 OspmFlags;
243 UINT8 Reserved1[24];
245
249#define EFI_ACPI_4_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
250
255#define EFI_ACPI_4_0_S4BIOS_F BIT0
256#define EFI_ACPI_4_0_64BIT_WAKE_SUPPORTED_F BIT1
257
262#define EFI_ACPI_4_0_OSPM_64BIT_WAKE__F BIT0
263
264//
265// Differentiated System Description Table,
266// Secondary System Description Table
267// and Persistent System Description Table,
268// no definition needed as they are common description table header, the same with
269// EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
270//
271#define EFI_ACPI_4_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
272#define EFI_ACPI_4_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
273
278typedef struct {
280 UINT32 LocalApicAddress;
281 UINT32 Flags;
283
287#define EFI_ACPI_4_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
288
293#define EFI_ACPI_4_0_PCAT_COMPAT BIT0
294
295//
296// Multiple APIC Description Table APIC structure types
297// All other values between 0x0B an 0xFF are reserved and
298// will be ignored by OSPM.
299//
300#define EFI_ACPI_4_0_PROCESSOR_LOCAL_APIC 0x00
301#define EFI_ACPI_4_0_IO_APIC 0x01
302#define EFI_ACPI_4_0_INTERRUPT_SOURCE_OVERRIDE 0x02
303#define EFI_ACPI_4_0_NON_MASKABLE_INTERRUPT_SOURCE 0x03
304#define EFI_ACPI_4_0_LOCAL_APIC_NMI 0x04
305#define EFI_ACPI_4_0_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
306#define EFI_ACPI_4_0_IO_SAPIC 0x06
307#define EFI_ACPI_4_0_LOCAL_SAPIC 0x07
308#define EFI_ACPI_4_0_PLATFORM_INTERRUPT_SOURCES 0x08
309#define EFI_ACPI_4_0_PROCESSOR_LOCAL_X2APIC 0x09
310#define EFI_ACPI_4_0_LOCAL_X2APIC_NMI 0x0A
311
312//
313// APIC Structure Definitions
314//
315
319typedef struct {
320 UINT8 Type;
321 UINT8 Length;
322 UINT8 AcpiProcessorId;
323 UINT8 ApicId;
324 UINT32 Flags;
326
330#define EFI_ACPI_4_0_LOCAL_APIC_ENABLED BIT0
331
335typedef struct {
336 UINT8 Type;
337 UINT8 Length;
338 UINT8 IoApicId;
339 UINT8 Reserved;
340 UINT32 IoApicAddress;
341 UINT32 GlobalSystemInterruptBase;
343
347typedef struct {
348 UINT8 Type;
349 UINT8 Length;
350 UINT8 Bus;
351 UINT8 Source;
352 UINT32 GlobalSystemInterrupt;
353 UINT16 Flags;
355
359typedef struct {
360 UINT8 Type;
361 UINT8 Length;
362 UINT16 Flags;
363 UINT8 InterruptType;
364 UINT8 ProcessorId;
365 UINT8 ProcessorEid;
366 UINT8 IoSapicVector;
367 UINT32 GlobalSystemInterrupt;
368 UINT32 PlatformInterruptSourceFlags;
369 UINT8 CpeiProcessorOverride;
370 UINT8 Reserved[31];
372
373//
374// MPS INTI flags.
375// All other bits are reserved and must be set to 0.
376//
377#define EFI_ACPI_4_0_POLARITY (3 << 0)
378#define EFI_ACPI_4_0_TRIGGER_MODE (3 << 2)
379
383typedef struct {
384 UINT8 Type;
385 UINT8 Length;
386 UINT16 Flags;
387 UINT32 GlobalSystemInterrupt;
389
393typedef struct {
394 UINT8 Type;
395 UINT8 Length;
396 UINT8 AcpiProcessorId;
397 UINT16 Flags;
398 UINT8 LocalApicLint;
400
404typedef struct {
405 UINT8 Type;
406 UINT8 Length;
407 UINT16 Reserved;
408 UINT64 LocalApicAddress;
410
414typedef struct {
415 UINT8 Type;
416 UINT8 Length;
417 UINT8 IoApicId;
418 UINT8 Reserved;
419 UINT32 GlobalSystemInterruptBase;
420 UINT64 IoSapicAddress;
422
427typedef struct {
428 UINT8 Type;
429 UINT8 Length;
430 UINT8 AcpiProcessorId;
431 UINT8 LocalSapicId;
432 UINT8 LocalSapicEid;
433 UINT8 Reserved[3];
434 UINT32 Flags;
435 UINT32 ACPIProcessorUIDValue;
437
441typedef struct {
442 UINT8 Type;
443 UINT8 Length;
444 UINT16 Flags;
445 UINT8 InterruptType;
446 UINT8 ProcessorId;
447 UINT8 ProcessorEid;
448 UINT8 IoSapicVector;
449 UINT32 GlobalSystemInterrupt;
450 UINT32 PlatformInterruptSourceFlags;
452
457#define EFI_ACPI_4_0_CPEI_PROCESSOR_OVERRIDE BIT0
458
462typedef struct {
463 UINT8 Type;
464 UINT8 Length;
465 UINT8 Reserved[2];
466 UINT32 X2ApicId;
467 UINT32 Flags;
468 UINT32 AcpiProcessorUid;
470
474typedef struct {
475 UINT8 Type;
476 UINT8 Length;
477 UINT16 Flags;
478 UINT32 AcpiProcessorUid;
479 UINT8 LocalX2ApicLint;
480 UINT8 Reserved[3];
482
486typedef struct {
488 UINT32 WarningEnergyLevel;
489 UINT32 LowEnergyLevel;
490 UINT32 CriticalEnergyLevel;
492
496#define EFI_ACPI_4_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
497
503typedef struct {
507 UINT32 Uid;
508 UINT8 GpeBit;
510
514#define EFI_ACPI_4_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
515
520typedef struct {
522 UINT32 Reserved1;
523 UINT64 Reserved2;
525
529#define EFI_ACPI_4_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
530
531//
532// SRAT structure types.
533// All other values between 0x03 an 0xFF are reserved and
534// will be ignored by OSPM.
535//
536#define EFI_ACPI_4_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
537#define EFI_ACPI_4_0_MEMORY_AFFINITY 0x01
538#define EFI_ACPI_4_0_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
539
543typedef struct {
544 UINT8 Type;
545 UINT8 Length;
546 UINT8 ProximityDomain7To0;
547 UINT8 ApicId;
548 UINT32 Flags;
549 UINT8 LocalSapicEid;
550 UINT8 ProximityDomain31To8[3];
551 UINT32 ClockDomain;
553
557#define EFI_ACPI_4_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
558
562typedef struct {
563 UINT8 Type;
564 UINT8 Length;
565 UINT32 ProximityDomain;
566 UINT16 Reserved1;
567 UINT32 AddressBaseLow;
568 UINT32 AddressBaseHigh;
569 UINT32 LengthLow;
570 UINT32 LengthHigh;
571 UINT32 Reserved2;
572 UINT32 Flags;
573 UINT64 Reserved3;
575
576//
577// Memory Flags. All other bits are reserved and must be 0.
578//
579#define EFI_ACPI_4_0_MEMORY_ENABLED (1 << 0)
580#define EFI_ACPI_4_0_MEMORY_HOT_PLUGGABLE (1 << 1)
581#define EFI_ACPI_4_0_MEMORY_NONVOLATILE (1 << 2)
582
586typedef struct {
587 UINT8 Type;
588 UINT8 Length;
589 UINT8 Reserved1[2];
590 UINT32 ProximityDomain;
591 UINT32 X2ApicId;
592 UINT32 Flags;
593 UINT32 ClockDomain;
594 UINT8 Reserved2[4];
596
601typedef struct {
603 UINT64 NumberOfSystemLocalities;
605
609#define EFI_ACPI_4_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
610
614typedef struct {
616 UINT8 Reserved[8];
618
622#define EFI_ACPI_4_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
623
624//
625// CPEP processor structure types.
626//
627#define EFI_ACPI_4_0_CPEP_PROCESSOR_APIC_SAPIC 0x00
628
632typedef struct {
633 UINT8 Type;
634 UINT8 Length;
635 UINT8 ProcessorId;
636 UINT8 ProcessorEid;
637 UINT32 PollingInterval;
639
643typedef struct {
645 UINT32 OffsetProxDomInfo;
646 UINT32 MaximumNumberOfProximityDomains;
647 UINT32 MaximumNumberOfClockDomains;
648 UINT64 MaximumPhysicalAddress;
650
654#define EFI_ACPI_4_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
655
659typedef struct {
660 UINT8 Revision;
661 UINT8 Length;
662 UINT32 ProximityDomainRangeLow;
663 UINT32 ProximityDomainRangeHigh;
664 UINT32 MaximumProcessorCapacity;
665 UINT64 MaximumMemoryCapacity;
667
671typedef struct {
673 UINT32 BootErrorRegionLength;
674 UINT64 BootErrorRegion;
676
680#define EFI_ACPI_4_0_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
681
685typedef struct {
686 UINT32 UncorrectableErrorValid : 1;
687 UINT32 CorrectableErrorValid : 1;
688 UINT32 MultipleUncorrectableErrors : 1;
689 UINT32 MultipleCorrectableErrors : 1;
690 UINT32 ErrorDataEntryCount : 10;
691 UINT32 Reserved : 18;
693
697typedef struct {
699 UINT32 RawDataOffset;
700 UINT32 RawDataLength;
701 UINT32 DataLength;
702 UINT32 ErrorSeverity;
704
705//
706// Boot Error Severity types
707//
708#define EFI_ACPI_4_0_ERROR_SEVERITY_CORRECTABLE 0x00
709#define EFI_ACPI_4_0_ERROR_SEVERITY_RECOVERABLE 0x00
710#define EFI_ACPI_4_0_ERROR_SEVERITY_FATAL 0x01
711#define EFI_ACPI_4_0_ERROR_SEVERITY_CORRECTED 0x02
712#define EFI_ACPI_4_0_ERROR_SEVERITY_NONE 0x03
713
717typedef struct {
718 UINT8 SectionType[16];
719 UINT32 ErrorSeverity;
720 UINT16 Revision;
721 UINT8 ValidationBits;
722 UINT8 Flags;
723 UINT32 ErrorDataLength;
724 UINT8 FruId[16];
725 UINT8 FruText[20];
727
731#define EFI_ACPI_4_0_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0201
732
736typedef struct {
738 UINT32 ErrorSourceCount;
740
744#define EFI_ACPI_4_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
745
746//
747// Error Source structure types.
748//
749#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
750#define EFI_ACPI_4_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
751#define EFI_ACPI_4_0_IA32_ARCHITECTURE_NMI_ERROR 0x02
752#define EFI_ACPI_4_0_PCI_EXPRESS_ROOT_PORT_AER 0x06
753#define EFI_ACPI_4_0_PCI_EXPRESS_DEVICE_AER 0x07
754#define EFI_ACPI_4_0_PCI_EXPRESS_BRIDGE_AER 0x08
755#define EFI_ACPI_4_0_GENERIC_HARDWARE_ERROR 0x09
756
757//
758// Error Source structure flags.
759//
760#define EFI_ACPI_4_0_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
761#define EFI_ACPI_4_0_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
762
766typedef struct {
767 UINT16 Type;
768 UINT16 SourceId;
769 UINT8 Reserved0[2];
770 UINT8 Flags;
771 UINT8 Enabled;
772 UINT32 NumberOfRecordsToPreAllocate;
773 UINT32 MaxSectionsPerRecord;
774 UINT64 GlobalCapabilityInitData;
775 UINT64 GlobalControlInitData;
776 UINT8 NumberOfHardwareBanks;
777 UINT8 Reserved1[7];
779
783typedef struct {
784 UINT8 BankNumber;
785 UINT8 ClearStatusOnInitialization;
786 UINT8 StatusDataFormat;
787 UINT8 Reserved0;
788 UINT32 ControlRegisterMsrAddress;
789 UINT64 ControlInitData;
790 UINT32 StatusRegisterMsrAddress;
791 UINT32 AddressRegisterMsrAddress;
792 UINT32 MiscRegisterMsrAddress;
794
798#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
799#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
800#define EFI_ACPI_4_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
801
802//
803// Hardware Error Notification types. All other values are reserved
804//
805#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
806#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
807#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
808#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
809#define EFI_ACPI_4_0_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
810
814typedef struct {
815 UINT16 Type : 1;
816 UINT16 PollInterval : 1;
817 UINT16 SwitchToPollingThresholdValue : 1;
818 UINT16 SwitchToPollingThresholdWindow : 1;
819 UINT16 ErrorThresholdValue : 1;
820 UINT16 ErrorThresholdWindow : 1;
821 UINT16 Reserved : 10;
823
827typedef struct {
828 UINT8 Type;
829 UINT8 Length;
831 UINT32 PollInterval;
832 UINT32 Vector;
833 UINT32 SwitchToPollingThresholdValue;
834 UINT32 SwitchToPollingThresholdWindow;
835 UINT32 ErrorThresholdValue;
836 UINT32 ErrorThresholdWindow;
838
842typedef struct {
843 UINT16 Type;
844 UINT16 SourceId;
845 UINT8 Reserved0[2];
846 UINT8 Flags;
847 UINT8 Enabled;
848 UINT32 NumberOfRecordsToPreAllocate;
849 UINT32 MaxSectionsPerRecord;
851 UINT8 NumberOfHardwareBanks;
852 UINT8 Reserved1[3];
854
858typedef struct {
859 UINT16 Type;
860 UINT16 SourceId;
861 UINT8 Reserved0[2];
862 UINT32 NumberOfRecordsToPreAllocate;
863 UINT32 MaxSectionsPerRecord;
864 UINT32 MaxRawDataLength;
866
870typedef struct {
871 UINT16 Type;
872 UINT16 SourceId;
873 UINT8 Reserved0[2];
874 UINT8 Flags;
875 UINT8 Enabled;
876 UINT32 NumberOfRecordsToPreAllocate;
877 UINT32 MaxSectionsPerRecord;
878 UINT32 Bus;
879 UINT16 Device;
880 UINT16 Function;
881 UINT16 DeviceControl;
882 UINT8 Reserved1[2];
883 UINT32 UncorrectableErrorMask;
884 UINT32 UncorrectableErrorSeverity;
885 UINT32 CorrectableErrorMask;
886 UINT32 AdvancedErrorCapabilitiesAndControl;
887 UINT32 RootErrorCommand;
889
893typedef struct {
894 UINT16 Type;
895 UINT16 SourceId;
896 UINT8 Reserved0[2];
897 UINT8 Flags;
898 UINT8 Enabled;
899 UINT32 NumberOfRecordsToPreAllocate;
900 UINT32 MaxSectionsPerRecord;
901 UINT32 Bus;
902 UINT16 Device;
903 UINT16 Function;
904 UINT16 DeviceControl;
905 UINT8 Reserved1[2];
906 UINT32 UncorrectableErrorMask;
907 UINT32 UncorrectableErrorSeverity;
908 UINT32 CorrectableErrorMask;
909 UINT32 AdvancedErrorCapabilitiesAndControl;
911
915typedef struct {
916 UINT16 Type;
917 UINT16 SourceId;
918 UINT8 Reserved0[2];
919 UINT8 Flags;
920 UINT8 Enabled;
921 UINT32 NumberOfRecordsToPreAllocate;
922 UINT32 MaxSectionsPerRecord;
923 UINT32 Bus;
924 UINT16 Device;
925 UINT16 Function;
926 UINT16 DeviceControl;
927 UINT8 Reserved1[2];
928 UINT32 UncorrectableErrorMask;
929 UINT32 UncorrectableErrorSeverity;
930 UINT32 CorrectableErrorMask;
931 UINT32 AdvancedErrorCapabilitiesAndControl;
932 UINT32 SecondaryUncorrectableErrorMask;
933 UINT32 SecondaryUncorrectableErrorSeverity;
934 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
936
940typedef struct {
941 UINT16 Type;
942 UINT16 SourceId;
943 UINT16 RelatedSourceId;
944 UINT8 Flags;
945 UINT8 Enabled;
946 UINT32 NumberOfRecordsToPreAllocate;
947 UINT32 MaxSectionsPerRecord;
948 UINT32 MaxRawDataLength;
951 UINT32 ErrorStatusBlockLength;
953
957typedef struct {
959 UINT32 RawDataOffset;
960 UINT32 RawDataLength;
961 UINT32 DataLength;
962 UINT32 ErrorSeverity;
964
968typedef struct {
970 UINT32 SerializationHeaderSize;
971 UINT8 Reserved0[4];
972 UINT32 InstructionEntryCount;
974
978#define EFI_ACPI_4_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
979
983#define EFI_ACPI_4_0_ERST_BEGIN_WRITE_OPERATION 0x00
984#define EFI_ACPI_4_0_ERST_BEGIN_READ_OPERATION 0x01
985#define EFI_ACPI_4_0_ERST_BEGIN_CLEAR_OPERATION 0x02
986#define EFI_ACPI_4_0_ERST_END_OPERATION 0x03
987#define EFI_ACPI_4_0_ERST_SET_RECORD_OFFSET 0x04
988#define EFI_ACPI_4_0_ERST_EXECUTE_OPERATION 0x05
989#define EFI_ACPI_4_0_ERST_CHECK_BUSY_STATUS 0x06
990#define EFI_ACPI_4_0_ERST_GET_COMMAND_STATUS 0x07
991#define EFI_ACPI_4_0_ERST_GET_RECORD_IDENTIFIER 0x08
992#define EFI_ACPI_4_0_ERST_SET_RECORD_IDENTIFIER 0x09
993#define EFI_ACPI_4_0_ERST_GET_RECORD_COUNT 0x0A
994#define EFI_ACPI_4_0_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
995#define EFI_ACPI_4_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
996#define EFI_ACPI_4_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
997#define EFI_ACPI_4_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
998
1002#define EFI_ACPI_4_0_EINJ_STATUS_SUCCESS 0x00
1003#define EFI_ACPI_4_0_EINJ_STATUS_NOT_ENOUGH_SPACE 0x01
1004#define EFI_ACPI_4_0_EINJ_STATUS_HARDWARE_NOT_AVAILABLE 0x02
1005#define EFI_ACPI_4_0_EINJ_STATUS_FAILED 0x03
1006#define EFI_ACPI_4_0_EINJ_STATUS_RECORD_STORE_EMPTY 0x04
1007#define EFI_ACPI_4_0_EINJ_STATUS_RECORD_NOT_FOUND 0x05
1008
1012#define EFI_ACPI_4_0_ERST_READ_REGISTER 0x00
1013#define EFI_ACPI_4_0_ERST_READ_REGISTER_VALUE 0x01
1014#define EFI_ACPI_4_0_ERST_WRITE_REGISTER 0x02
1015#define EFI_ACPI_4_0_ERST_WRITE_REGISTER_VALUE 0x03
1016#define EFI_ACPI_4_0_ERST_NOOP 0x04
1017#define EFI_ACPI_4_0_ERST_LOAD_VAR1 0x05
1018#define EFI_ACPI_4_0_ERST_LOAD_VAR2 0x06
1019#define EFI_ACPI_4_0_ERST_STORE_VAR1 0x07
1020#define EFI_ACPI_4_0_ERST_ADD 0x08
1021#define EFI_ACPI_4_0_ERST_SUBTRACT 0x09
1022#define EFI_ACPI_4_0_ERST_ADD_VALUE 0x0A
1023#define EFI_ACPI_4_0_ERST_SUBTRACT_VALUE 0x0B
1024#define EFI_ACPI_4_0_ERST_STALL 0x0C
1025#define EFI_ACPI_4_0_ERST_STALL_WHILE_TRUE 0x0D
1026#define EFI_ACPI_4_0_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
1027#define EFI_ACPI_4_0_ERST_GOTO 0x0F
1028#define EFI_ACPI_4_0_ERST_SET_SRC_ADDRESS_BASE 0x10
1029#define EFI_ACPI_4_0_ERST_SET_DST_ADDRESS_BASE 0x11
1030#define EFI_ACPI_4_0_ERST_MOVE_DATA 0x12
1031
1035#define EFI_ACPI_4_0_ERST_PRESERVE_REGISTER 0x01
1036
1040typedef struct {
1041 UINT8 SerializationAction;
1042 UINT8 Instruction;
1043 UINT8 Flags;
1044 UINT8 Reserved0;
1046 UINT64 Value;
1047 UINT64 Mask;
1049
1053typedef struct {
1055 UINT32 InjectionHeaderSize;
1056 UINT8 InjectionFlags;
1057 UINT8 Reserved0[3];
1058 UINT32 InjectionEntryCount;
1060
1064#define EFI_ACPI_4_0_ERROR_INJECTION_TABLE_REVISION 0x01
1065
1069#define EFI_ACPI_4_0_EINJ_BEGIN_INJECTION_OPERATION 0x00
1070#define EFI_ACPI_4_0_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
1071#define EFI_ACPI_4_0_EINJ_SET_ERROR_TYPE 0x02
1072#define EFI_ACPI_4_0_EINJ_GET_ERROR_TYPE 0x03
1073#define EFI_ACPI_4_0_EINJ_END_OPERATION 0x04
1074#define EFI_ACPI_4_0_EINJ_EXECUTE_OPERATION 0x05
1075#define EFI_ACPI_4_0_EINJ_CHECK_BUSY_STATUS 0x06
1076#define EFI_ACPI_4_0_EINJ_GET_COMMAND_STATUS 0x07
1077#define EFI_ACPI_4_0_EINJ_TRIGGER_ERROR 0xFF
1078
1082#define EFI_ACPI_4_0_EINJ_STATUS_SUCCESS 0x00
1083#define EFI_ACPI_4_0_EINJ_STATUS_UNKNOWN_FAILURE 0x01
1084#define EFI_ACPI_4_0_EINJ_STATUS_INVALID_ACCESS 0x02
1085
1089#define EFI_ACPI_4_0_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
1090#define EFI_ACPI_4_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
1091#define EFI_ACPI_4_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
1092#define EFI_ACPI_4_0_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
1093#define EFI_ACPI_4_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
1094#define EFI_ACPI_4_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
1095#define EFI_ACPI_4_0_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
1096#define EFI_ACPI_4_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
1097#define EFI_ACPI_4_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
1098#define EFI_ACPI_4_0_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
1099#define EFI_ACPI_4_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
1100#define EFI_ACPI_4_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
1101
1105#define EFI_ACPI_4_0_EINJ_READ_REGISTER 0x00
1106#define EFI_ACPI_4_0_EINJ_READ_REGISTER_VALUE 0x01
1107#define EFI_ACPI_4_0_EINJ_WRITE_REGISTER 0x02
1108#define EFI_ACPI_4_0_EINJ_WRITE_REGISTER_VALUE 0x03
1109#define EFI_ACPI_4_0_EINJ_NOOP 0x04
1110
1114#define EFI_ACPI_4_0_EINJ_PRESERVE_REGISTER 0x01
1115
1119typedef struct {
1120 UINT8 InjectionAction;
1121 UINT8 Instruction;
1122 UINT8 Flags;
1123 UINT8 Reserved0;
1125 UINT64 Value;
1126 UINT64 Mask;
1128
1132typedef struct {
1133 UINT32 HeaderSize;
1134 UINT32 Revision;
1135 UINT32 TableSize;
1136 UINT32 EntryCount;
1138
1139//
1140// Known table signatures
1141//
1142
1146#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
1147
1151#define EFI_ACPI_4_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
1152
1156#define EFI_ACPI_4_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
1157
1161#define EFI_ACPI_4_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
1162
1166#define EFI_ACPI_4_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
1167
1171#define EFI_ACPI_4_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
1172
1176#define EFI_ACPI_4_0_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
1177
1181#define EFI_ACPI_4_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
1182
1186#define EFI_ACPI_4_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
1187
1191#define EFI_ACPI_4_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
1192
1196#define EFI_ACPI_4_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
1197
1201#define EFI_ACPI_4_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
1202
1206#define EFI_ACPI_4_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
1207
1211#define EFI_ACPI_4_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
1212
1216#define EFI_ACPI_4_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
1217
1221#define EFI_ACPI_4_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
1222
1226#define EFI_ACPI_4_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
1227
1231#define EFI_ACPI_4_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
1232
1236#define EFI_ACPI_4_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
1237
1241#define EFI_ACPI_4_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
1242
1246#define EFI_ACPI_4_0_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
1247
1251#define EFI_ACPI_4_0_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
1252
1256#define EFI_ACPI_4_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
1257
1261#define EFI_ACPI_4_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
1262
1266#define EFI_ACPI_4_0_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
1267
1271#define EFI_ACPI_4_0_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
1272
1276#define EFI_ACPI_4_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
1277
1281#define EFI_ACPI_4_0_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
1282
1286#define EFI_ACPI_4_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
1287
1291#define EFI_ACPI_4_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
1292
1296#define EFI_ACPI_4_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
1297
1301#define EFI_ACPI_4_0_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
1302
1306#define EFI_ACPI_4_0_WINDOWS_ACPI_ENLIGHTENMENT_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
1307
1311#define EFI_ACPI_4_0_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
1312
1316#define EFI_ACPI_4_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
1317
1318#pragma pack()
1319
1320#endif