]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/IndustryStandard/Acpi64.h
MdePkg: Add Secure Access Components in the SDEV table
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Acpi64.h
1 /** @file
2 ACPI 6.4 definitions from the ACPI Specification Revision 6.4 Jan, 2021.
3
4 Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
5 Copyright (c) 2019 - 2021, ARM Ltd. All rights reserved.<BR>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8 **/
9
10 #ifndef ACPI_6_4_H_
11 #define ACPI_6_4_H_
12
13 #include <IndustryStandard/Acpi63.h>
14
15 //
16 // Ensure proper structure formats
17 //
18 #pragma pack(1)
19
20 ///
21 /// ACPI 6.4 Generic Address Space definition
22 ///
23 typedef struct {
24 UINT8 AddressSpaceId;
25 UINT8 RegisterBitWidth;
26 UINT8 RegisterBitOffset;
27 UINT8 AccessSize;
28 UINT64 Address;
29 } EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE;
30
31 //
32 // Generic Address Space Address IDs
33 //
34 #define EFI_ACPI_6_4_SYSTEM_MEMORY 0x00
35 #define EFI_ACPI_6_4_SYSTEM_IO 0x01
36 #define EFI_ACPI_6_4_PCI_CONFIGURATION_SPACE 0x02
37 #define EFI_ACPI_6_4_EMBEDDED_CONTROLLER 0x03
38 #define EFI_ACPI_6_4_SMBUS 0x04
39 #define EFI_ACPI_6_4_SYSTEM_CMOS 0x05
40 #define EFI_ACPI_6_4_PCI_BAR_TARGET 0x06
41 #define EFI_ACPI_6_4_IPMI 0x07
42 #define EFI_ACPI_6_4_GENERAL_PURPOSE_IO 0x08
43 #define EFI_ACPI_6_4_GENERIC_SERIAL_BUS 0x09
44 #define EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL 0x0A
45 #define EFI_ACPI_6_4_FUNCTIONAL_FIXED_HARDWARE 0x7F
46
47 //
48 // Generic Address Space Access Sizes
49 //
50 #define EFI_ACPI_6_4_UNDEFINED 0
51 #define EFI_ACPI_6_4_BYTE 1
52 #define EFI_ACPI_6_4_WORD 2
53 #define EFI_ACPI_6_4_DWORD 3
54 #define EFI_ACPI_6_4_QWORD 4
55
56 //
57 // ACPI 6.4 table structures
58 //
59
60 ///
61 /// Root System Description Pointer Structure
62 ///
63 typedef struct {
64 UINT64 Signature;
65 UINT8 Checksum;
66 UINT8 OemId[6];
67 UINT8 Revision;
68 UINT32 RsdtAddress;
69 UINT32 Length;
70 UINT64 XsdtAddress;
71 UINT8 ExtendedChecksum;
72 UINT8 Reserved[3];
73 } EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER;
74
75 ///
76 /// RSD_PTR Revision (as defined in ACPI 6.4 spec.)
77 ///
78 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02 ///< ACPISpec (Revision 6.4) says current value is 2
79
80 ///
81 /// Common table header, this prefaces all ACPI tables, including FACS, but
82 /// excluding the RSD PTR structure
83 ///
84 typedef struct {
85 UINT32 Signature;
86 UINT32 Length;
87 } EFI_ACPI_6_4_COMMON_HEADER;
88
89 //
90 // Root System Description Table
91 // No definition needed as it is a common description table header, the same with
92 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
93 //
94
95 ///
96 /// RSDT Revision (as defined in ACPI 6.4 spec.)
97 ///
98 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
99
100 //
101 // Extended System Description Table
102 // No definition needed as it is a common description table header, the same with
103 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
104 //
105
106 ///
107 /// XSDT Revision (as defined in ACPI 6.4 spec.)
108 ///
109 #define EFI_ACPI_6_4_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
110
111 ///
112 /// Fixed ACPI Description Table Structure (FADT)
113 ///
114 typedef struct {
115 EFI_ACPI_DESCRIPTION_HEADER Header;
116 UINT32 FirmwareCtrl;
117 UINT32 Dsdt;
118 UINT8 Reserved0;
119 UINT8 PreferredPmProfile;
120 UINT16 SciInt;
121 UINT32 SmiCmd;
122 UINT8 AcpiEnable;
123 UINT8 AcpiDisable;
124 UINT8 S4BiosReq;
125 UINT8 PstateCnt;
126 UINT32 Pm1aEvtBlk;
127 UINT32 Pm1bEvtBlk;
128 UINT32 Pm1aCntBlk;
129 UINT32 Pm1bCntBlk;
130 UINT32 Pm2CntBlk;
131 UINT32 PmTmrBlk;
132 UINT32 Gpe0Blk;
133 UINT32 Gpe1Blk;
134 UINT8 Pm1EvtLen;
135 UINT8 Pm1CntLen;
136 UINT8 Pm2CntLen;
137 UINT8 PmTmrLen;
138 UINT8 Gpe0BlkLen;
139 UINT8 Gpe1BlkLen;
140 UINT8 Gpe1Base;
141 UINT8 CstCnt;
142 UINT16 PLvl2Lat;
143 UINT16 PLvl3Lat;
144 UINT16 FlushSize;
145 UINT16 FlushStride;
146 UINT8 DutyOffset;
147 UINT8 DutyWidth;
148 UINT8 DayAlrm;
149 UINT8 MonAlrm;
150 UINT8 Century;
151 UINT16 IaPcBootArch;
152 UINT8 Reserved1;
153 UINT32 Flags;
154 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ResetReg;
155 UINT8 ResetValue;
156 UINT16 ArmBootArch;
157 UINT8 MinorVersion;
158 UINT64 XFirmwareCtrl;
159 UINT64 XDsdt;
160 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1aEvtBlk;
161 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1bEvtBlk;
162 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1aCntBlk;
163 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm1bCntBlk;
164 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPm2CntBlk;
165 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XPmTmrBlk;
166 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XGpe0Blk;
167 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE XGpe1Blk;
168 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE SleepControlReg;
169 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE SleepStatusReg;
170 UINT64 HypervisorVendorIdentity;
171 } EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE;
172
173 ///
174 /// FADT Version (as defined in ACPI 6.4 spec.)
175 ///
176 #define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_REVISION 0x06
177 #define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_MINOR_REVISION 0x04
178
179 //
180 // Fixed ACPI Description Table Preferred Power Management Profile
181 //
182 #define EFI_ACPI_6_4_PM_PROFILE_UNSPECIFIED 0
183 #define EFI_ACPI_6_4_PM_PROFILE_DESKTOP 1
184 #define EFI_ACPI_6_4_PM_PROFILE_MOBILE 2
185 #define EFI_ACPI_6_4_PM_PROFILE_WORKSTATION 3
186 #define EFI_ACPI_6_4_PM_PROFILE_ENTERPRISE_SERVER 4
187 #define EFI_ACPI_6_4_PM_PROFILE_SOHO_SERVER 5
188 #define EFI_ACPI_6_4_PM_PROFILE_APPLIANCE_PC 6
189 #define EFI_ACPI_6_4_PM_PROFILE_PERFORMANCE_SERVER 7
190 #define EFI_ACPI_6_4_PM_PROFILE_TABLET 8
191
192 //
193 // Fixed ACPI Description Table Boot Architecture Flags
194 // All other bits are reserved and must be set to 0.
195 //
196 #define EFI_ACPI_6_4_LEGACY_DEVICES BIT0
197 #define EFI_ACPI_6_4_8042 BIT1
198 #define EFI_ACPI_6_4_VGA_NOT_PRESENT BIT2
199 #define EFI_ACPI_6_4_MSI_NOT_SUPPORTED BIT3
200 #define EFI_ACPI_6_4_PCIE_ASPM_CONTROLS BIT4
201 #define EFI_ACPI_6_4_CMOS_RTC_NOT_PRESENT BIT5
202
203 //
204 // Fixed ACPI Description Table Arm Boot Architecture Flags
205 // All other bits are reserved and must be set to 0.
206 //
207 #define EFI_ACPI_6_4_ARM_PSCI_COMPLIANT BIT0
208 #define EFI_ACPI_6_4_ARM_PSCI_USE_HVC BIT1
209
210 //
211 // Fixed ACPI Description Table Fixed Feature Flags
212 // All other bits are reserved and must be set to 0.
213 //
214 #define EFI_ACPI_6_4_WBINVD BIT0
215 #define EFI_ACPI_6_4_WBINVD_FLUSH BIT1
216 #define EFI_ACPI_6_4_PROC_C1 BIT2
217 #define EFI_ACPI_6_4_P_LVL2_UP BIT3
218 #define EFI_ACPI_6_4_PWR_BUTTON BIT4
219 #define EFI_ACPI_6_4_SLP_BUTTON BIT5
220 #define EFI_ACPI_6_4_FIX_RTC BIT6
221 #define EFI_ACPI_6_4_RTC_S4 BIT7
222 #define EFI_ACPI_6_4_TMR_VAL_EXT BIT8
223 #define EFI_ACPI_6_4_DCK_CAP BIT9
224 #define EFI_ACPI_6_4_RESET_REG_SUP BIT10
225 #define EFI_ACPI_6_4_SEALED_CASE BIT11
226 #define EFI_ACPI_6_4_HEADLESS BIT12
227 #define EFI_ACPI_6_4_CPU_SW_SLP BIT13
228 #define EFI_ACPI_6_4_PCI_EXP_WAK BIT14
229 #define EFI_ACPI_6_4_USE_PLATFORM_CLOCK BIT15
230 #define EFI_ACPI_6_4_S4_RTC_STS_VALID BIT16
231 #define EFI_ACPI_6_4_REMOTE_POWER_ON_CAPABLE BIT17
232 #define EFI_ACPI_6_4_FORCE_APIC_CLUSTER_MODEL BIT18
233 #define EFI_ACPI_6_4_FORCE_APIC_PHYSICAL_DESTINATION_MODE BIT19
234 #define EFI_ACPI_6_4_HW_REDUCED_ACPI BIT20
235 #define EFI_ACPI_6_4_LOW_POWER_S0_IDLE_CAPABLE BIT21
236
237 ///
238 /// Firmware ACPI Control Structure
239 ///
240 typedef struct {
241 UINT32 Signature;
242 UINT32 Length;
243 UINT32 HardwareSignature;
244 UINT32 FirmwareWakingVector;
245 UINT32 GlobalLock;
246 UINT32 Flags;
247 UINT64 XFirmwareWakingVector;
248 UINT8 Version;
249 UINT8 Reserved0[3];
250 UINT32 OspmFlags;
251 UINT8 Reserved1[24];
252 } EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE;
253
254 ///
255 /// FACS Version (as defined in ACPI 6.4 spec.)
256 ///
257 #define EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION 0x02
258
259 ///
260 /// Firmware Control Structure Feature Flags
261 /// All other bits are reserved and must be set to 0.
262 ///
263 #define EFI_ACPI_6_4_S4BIOS_F BIT0
264 #define EFI_ACPI_6_4_64BIT_WAKE_SUPPORTED_F BIT1
265
266 ///
267 /// OSPM Enabled Firmware Control Structure Flags
268 /// All other bits are reserved and must be set to 0.
269 ///
270 #define EFI_ACPI_6_4_OSPM_64BIT_WAKE_F BIT0
271
272 //
273 // Differentiated System Description Table,
274 // Secondary System Description Table
275 // and Persistent System Description Table,
276 // no definition needed as they are common description table header, the same with
277 // EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
278 //
279 #define EFI_ACPI_6_4_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
280 #define EFI_ACPI_6_4_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION 0x02
281
282 ///
283 /// Multiple APIC Description Table header definition. The rest of the table
284 /// must be defined in a platform specific manner.
285 ///
286 typedef struct {
287 EFI_ACPI_DESCRIPTION_HEADER Header;
288 UINT32 LocalApicAddress;
289 UINT32 Flags;
290 } EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER;
291
292 ///
293 /// MADT Revision (as defined in ACPI 6.4 spec.)
294 ///
295 #define EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x05
296
297 ///
298 /// Multiple APIC Flags
299 /// All other bits are reserved and must be set to 0.
300 ///
301 #define EFI_ACPI_6_4_PCAT_COMPAT BIT0
302
303 //
304 // Multiple APIC Description Table APIC structure types
305 // All other values between 0x10 and 0x7F are reserved and
306 // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
307 //
308 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC 0x00
309 #define EFI_ACPI_6_4_IO_APIC 0x01
310 #define EFI_ACPI_6_4_INTERRUPT_SOURCE_OVERRIDE 0x02
311 #define EFI_ACPI_6_4_NON_MASKABLE_INTERRUPT_SOURCE 0x03
312 #define EFI_ACPI_6_4_LOCAL_APIC_NMI 0x04
313 #define EFI_ACPI_6_4_LOCAL_APIC_ADDRESS_OVERRIDE 0x05
314 #define EFI_ACPI_6_4_IO_SAPIC 0x06
315 #define EFI_ACPI_6_4_LOCAL_SAPIC 0x07
316 #define EFI_ACPI_6_4_PLATFORM_INTERRUPT_SOURCES 0x08
317 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC 0x09
318 #define EFI_ACPI_6_4_LOCAL_X2APIC_NMI 0x0A
319 #define EFI_ACPI_6_4_GIC 0x0B
320 #define EFI_ACPI_6_4_GICD 0x0C
321 #define EFI_ACPI_6_4_GIC_MSI_FRAME 0x0D
322 #define EFI_ACPI_6_4_GICR 0x0E
323 #define EFI_ACPI_6_4_GIC_ITS 0x0F
324 #define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP 0x10
325
326 //
327 // APIC Structure Definitions
328 //
329
330 ///
331 /// Processor Local APIC Structure Definition
332 ///
333 typedef struct {
334 UINT8 Type;
335 UINT8 Length;
336 UINT8 AcpiProcessorUid;
337 UINT8 ApicId;
338 UINT32 Flags;
339 } EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_STRUCTURE;
340
341 ///
342 /// Local APIC Flags. All other bits are reserved and must be 0.
343 ///
344 #define EFI_ACPI_6_4_LOCAL_APIC_ENABLED BIT0
345 #define EFI_ACPI_6_4_LOCAL_APIC_ONLINE_CAPABLE BIT1
346
347 ///
348 /// IO APIC Structure
349 ///
350 typedef struct {
351 UINT8 Type;
352 UINT8 Length;
353 UINT8 IoApicId;
354 UINT8 Reserved;
355 UINT32 IoApicAddress;
356 UINT32 GlobalSystemInterruptBase;
357 } EFI_ACPI_6_4_IO_APIC_STRUCTURE;
358
359 ///
360 /// Interrupt Source Override Structure
361 ///
362 typedef struct {
363 UINT8 Type;
364 UINT8 Length;
365 UINT8 Bus;
366 UINT8 Source;
367 UINT32 GlobalSystemInterrupt;
368 UINT16 Flags;
369 } EFI_ACPI_6_4_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE;
370
371 ///
372 /// Platform Interrupt Sources Structure Definition
373 ///
374 typedef struct {
375 UINT8 Type;
376 UINT8 Length;
377 UINT16 Flags;
378 UINT8 InterruptType;
379 UINT8 ProcessorId;
380 UINT8 ProcessorEid;
381 UINT8 IoSapicVector;
382 UINT32 GlobalSystemInterrupt;
383 UINT32 PlatformInterruptSourceFlags;
384 UINT8 CpeiProcessorOverride;
385 UINT8 Reserved[31];
386 } EFI_ACPI_6_4_PLATFORM_INTERRUPT_APIC_STRUCTURE;
387
388 //
389 // MPS INTI flags.
390 // All other bits are reserved and must be set to 0.
391 //
392 #define EFI_ACPI_6_4_POLARITY (3 << 0)
393 #define EFI_ACPI_6_4_TRIGGER_MODE (3 << 2)
394
395 ///
396 /// Non-Maskable Interrupt Source Structure
397 ///
398 typedef struct {
399 UINT8 Type;
400 UINT8 Length;
401 UINT16 Flags;
402 UINT32 GlobalSystemInterrupt;
403 } EFI_ACPI_6_4_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE;
404
405 ///
406 /// Local APIC NMI Structure
407 ///
408 typedef struct {
409 UINT8 Type;
410 UINT8 Length;
411 UINT8 AcpiProcessorUid;
412 UINT16 Flags;
413 UINT8 LocalApicLint;
414 } EFI_ACPI_6_4_LOCAL_APIC_NMI_STRUCTURE;
415
416 ///
417 /// Local APIC Address Override Structure
418 ///
419 typedef struct {
420 UINT8 Type;
421 UINT8 Length;
422 UINT16 Reserved;
423 UINT64 LocalApicAddress;
424 } EFI_ACPI_6_4_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE;
425
426 ///
427 /// IO SAPIC Structure
428 ///
429 typedef struct {
430 UINT8 Type;
431 UINT8 Length;
432 UINT8 IoApicId;
433 UINT8 Reserved;
434 UINT32 GlobalSystemInterruptBase;
435 UINT64 IoSapicAddress;
436 } EFI_ACPI_6_4_IO_SAPIC_STRUCTURE;
437
438 ///
439 /// Local SAPIC Structure
440 /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
441 ///
442 typedef struct {
443 UINT8 Type;
444 UINT8 Length;
445 UINT8 AcpiProcessorId;
446 UINT8 LocalSapicId;
447 UINT8 LocalSapicEid;
448 UINT8 Reserved[3];
449 UINT32 Flags;
450 UINT32 ACPIProcessorUIDValue;
451 } EFI_ACPI_6_4_PROCESSOR_LOCAL_SAPIC_STRUCTURE;
452
453 ///
454 /// Platform Interrupt Sources Structure
455 ///
456 typedef struct {
457 UINT8 Type;
458 UINT8 Length;
459 UINT16 Flags;
460 UINT8 InterruptType;
461 UINT8 ProcessorId;
462 UINT8 ProcessorEid;
463 UINT8 IoSapicVector;
464 UINT32 GlobalSystemInterrupt;
465 UINT32 PlatformInterruptSourceFlags;
466 } EFI_ACPI_6_4_PLATFORM_INTERRUPT_SOURCES_STRUCTURE;
467
468 ///
469 /// Platform Interrupt Source Flags.
470 /// All other bits are reserved and must be set to 0.
471 ///
472 #define EFI_ACPI_6_4_CPEI_PROCESSOR_OVERRIDE BIT0
473
474 ///
475 /// Processor Local x2APIC Structure Definition
476 ///
477 typedef struct {
478 UINT8 Type;
479 UINT8 Length;
480 UINT8 Reserved[2];
481 UINT32 X2ApicId;
482 UINT32 Flags;
483 UINT32 AcpiProcessorUid;
484 } EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_STRUCTURE;
485
486 ///
487 /// Local x2APIC NMI Structure
488 ///
489 typedef struct {
490 UINT8 Type;
491 UINT8 Length;
492 UINT16 Flags;
493 UINT32 AcpiProcessorUid;
494 UINT8 LocalX2ApicLint;
495 UINT8 Reserved[3];
496 } EFI_ACPI_6_4_LOCAL_X2APIC_NMI_STRUCTURE;
497
498 ///
499 /// GIC Structure
500 ///
501 typedef struct {
502 UINT8 Type;
503 UINT8 Length;
504 UINT16 Reserved;
505 UINT32 CPUInterfaceNumber;
506 UINT32 AcpiProcessorUid;
507 UINT32 Flags;
508 UINT32 ParkingProtocolVersion;
509 UINT32 PerformanceInterruptGsiv;
510 UINT64 ParkedAddress;
511 UINT64 PhysicalBaseAddress;
512 UINT64 GICV;
513 UINT64 GICH;
514 UINT32 VGICMaintenanceInterrupt;
515 UINT64 GICRBaseAddress;
516 UINT64 MPIDR;
517 UINT8 ProcessorPowerEfficiencyClass;
518 UINT8 Reserved2;
519 UINT16 SpeOverflowInterrupt;
520 } EFI_ACPI_6_4_GIC_STRUCTURE;
521
522 ///
523 /// GIC Flags. All other bits are reserved and must be 0.
524 ///
525 #define EFI_ACPI_6_4_GIC_ENABLED BIT0
526 #define EFI_ACPI_6_4_PERFORMANCE_INTERRUPT_MODEL BIT1
527 #define EFI_ACPI_6_4_VGIC_MAINTENANCE_INTERRUPT_MODE_FLAGS BIT2
528
529 ///
530 /// GIC Distributor Structure
531 ///
532 typedef struct {
533 UINT8 Type;
534 UINT8 Length;
535 UINT16 Reserved1;
536 UINT32 GicId;
537 UINT64 PhysicalBaseAddress;
538 UINT32 SystemVectorBase;
539 UINT8 GicVersion;
540 UINT8 Reserved2[3];
541 } EFI_ACPI_6_4_GIC_DISTRIBUTOR_STRUCTURE;
542
543 ///
544 /// GIC Version
545 ///
546 #define EFI_ACPI_6_4_GIC_V1 0x01
547 #define EFI_ACPI_6_4_GIC_V2 0x02
548 #define EFI_ACPI_6_4_GIC_V3 0x03
549 #define EFI_ACPI_6_4_GIC_V4 0x04
550
551 ///
552 /// GIC MSI Frame Structure
553 ///
554 typedef struct {
555 UINT8 Type;
556 UINT8 Length;
557 UINT16 Reserved1;
558 UINT32 GicMsiFrameId;
559 UINT64 PhysicalBaseAddress;
560 UINT32 Flags;
561 UINT16 SPICount;
562 UINT16 SPIBase;
563 } EFI_ACPI_6_4_GIC_MSI_FRAME_STRUCTURE;
564
565 ///
566 /// GIC MSI Frame Flags. All other bits are reserved and must be 0.
567 ///
568 #define EFI_ACPI_6_4_SPI_COUNT_BASE_SELECT BIT0
569
570 ///
571 /// GICR Structure
572 ///
573 typedef struct {
574 UINT8 Type;
575 UINT8 Length;
576 UINT16 Reserved;
577 UINT64 DiscoveryRangeBaseAddress;
578 UINT32 DiscoveryRangeLength;
579 } EFI_ACPI_6_4_GICR_STRUCTURE;
580
581 ///
582 /// GIC Interrupt Translation Service Structure
583 ///
584 typedef struct {
585 UINT8 Type;
586 UINT8 Length;
587 UINT16 Reserved;
588 UINT32 GicItsId;
589 UINT64 PhysicalBaseAddress;
590 UINT32 Reserved2;
591 } EFI_ACPI_6_4_GIC_ITS_STRUCTURE;
592
593 ///
594 /// Multiprocessor Wakeup Structure
595 ///
596 typedef struct {
597 UINT8 Type;
598 UINT8 Length;
599 UINT16 MailBoxVersion;
600 UINT32 Reserved;
601 UINT64 MailBoxAddress;
602 } EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_STRUCTURE;
603
604 ///
605 /// Multiprocessor Wakeup Mailbox Structure
606 ///
607 typedef struct {
608 UINT16 Command;
609 UINT16 Reserved;
610 UINT32 AcpiId;
611 UINT64 WakeupVector;
612 UINT8 ReservedForOs[2032];
613 UINT8 ReservedForFirmware[2048];
614 } EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_STRUCTURE;
615
616 #define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_COMMAND_NOOP 0x0000
617 #define EFI_ACPI_6_4_MULTIPROCESSOR_WAKEUP_MAILBOX_COMMAND_WAKEUP 0x0001
618
619 ///
620 /// Smart Battery Description Table (SBST)
621 ///
622 typedef struct {
623 EFI_ACPI_DESCRIPTION_HEADER Header;
624 UINT32 WarningEnergyLevel;
625 UINT32 LowEnergyLevel;
626 UINT32 CriticalEnergyLevel;
627 } EFI_ACPI_6_4_SMART_BATTERY_DESCRIPTION_TABLE;
628
629 ///
630 /// SBST Version (as defined in ACPI 6.4 spec.)
631 ///
632 #define EFI_ACPI_6_4_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
633
634 ///
635 /// Embedded Controller Boot Resources Table (ECDT)
636 /// The table is followed by a null terminated ASCII string that contains
637 /// a fully qualified reference to the name space object.
638 ///
639 typedef struct {
640 EFI_ACPI_DESCRIPTION_HEADER Header;
641 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE EcControl;
642 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE EcData;
643 UINT32 Uid;
644 UINT8 GpeBit;
645 } EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE;
646
647 ///
648 /// ECDT Version (as defined in ACPI 6.4 spec.)
649 ///
650 #define EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION 0x01
651
652 ///
653 /// System Resource Affinity Table (SRAT). The rest of the table
654 /// must be defined in a platform specific manner.
655 ///
656 typedef struct {
657 EFI_ACPI_DESCRIPTION_HEADER Header;
658 UINT32 Reserved1; ///< Must be set to 1
659 UINT64 Reserved2;
660 } EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER;
661
662 ///
663 /// SRAT Version (as defined in ACPI 6.4 spec.)
664 ///
665 #define EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION 0x03
666
667 //
668 // SRAT structure types.
669 // All other values between 0x06 an 0xFF are reserved and
670 // will be ignored by OSPM.
671 //
672 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY 0x00
673 #define EFI_ACPI_6_4_MEMORY_AFFINITY 0x01
674 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_AFFINITY 0x02
675 #define EFI_ACPI_6_4_GICC_AFFINITY 0x03
676 #define EFI_ACPI_6_4_GIC_ITS_AFFINITY 0x04
677 #define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY 0x05
678
679 ///
680 /// Processor Local APIC/SAPIC Affinity Structure Definition
681 ///
682 typedef struct {
683 UINT8 Type;
684 UINT8 Length;
685 UINT8 ProximityDomain7To0;
686 UINT8 ApicId;
687 UINT32 Flags;
688 UINT8 LocalSapicEid;
689 UINT8 ProximityDomain31To8[3];
690 UINT32 ClockDomain;
691 } EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE;
692
693 ///
694 /// Local APIC/SAPIC Flags. All other bits are reserved and must be 0.
695 ///
696 #define EFI_ACPI_6_4_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
697
698 ///
699 /// Memory Affinity Structure Definition
700 ///
701 typedef struct {
702 UINT8 Type;
703 UINT8 Length;
704 UINT32 ProximityDomain;
705 UINT16 Reserved1;
706 UINT32 AddressBaseLow;
707 UINT32 AddressBaseHigh;
708 UINT32 LengthLow;
709 UINT32 LengthHigh;
710 UINT32 Reserved2;
711 UINT32 Flags;
712 UINT64 Reserved3;
713 } EFI_ACPI_6_4_MEMORY_AFFINITY_STRUCTURE;
714
715 //
716 // Memory Flags. All other bits are reserved and must be 0.
717 //
718 #define EFI_ACPI_6_4_MEMORY_ENABLED (1 << 0)
719 #define EFI_ACPI_6_4_MEMORY_HOT_PLUGGABLE (1 << 1)
720 #define EFI_ACPI_6_4_MEMORY_NONVOLATILE (1 << 2)
721
722 ///
723 /// Processor Local x2APIC Affinity Structure Definition
724 ///
725 typedef struct {
726 UINT8 Type;
727 UINT8 Length;
728 UINT8 Reserved1[2];
729 UINT32 ProximityDomain;
730 UINT32 X2ApicId;
731 UINT32 Flags;
732 UINT32 ClockDomain;
733 UINT8 Reserved2[4];
734 } EFI_ACPI_6_4_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE;
735
736 ///
737 /// GICC Affinity Structure Definition
738 ///
739 typedef struct {
740 UINT8 Type;
741 UINT8 Length;
742 UINT32 ProximityDomain;
743 UINT32 AcpiProcessorUid;
744 UINT32 Flags;
745 UINT32 ClockDomain;
746 } EFI_ACPI_6_4_GICC_AFFINITY_STRUCTURE;
747
748 ///
749 /// GICC Flags. All other bits are reserved and must be 0.
750 ///
751 #define EFI_ACPI_6_4_GICC_ENABLED (1 << 0)
752
753 ///
754 /// GIC Interrupt Translation Service (ITS) Affinity Structure Definition
755 ///
756 typedef struct {
757 UINT8 Type;
758 UINT8 Length;
759 UINT32 ProximityDomain;
760 UINT8 Reserved[2];
761 UINT32 ItsId;
762 } EFI_ACPI_6_4_GIC_ITS_AFFINITY_STRUCTURE;
763
764 //
765 // Generic Initiator Affinity Structure Device Handle Types
766 // All other values between 0x02 an 0xFF are reserved and
767 // will be ignored by OSPM.
768 //
769 #define EFI_ACPI_6_4_ACPI_DEVICE_HANDLE 0x00
770 #define EFI_ACPI_6_4_PCI_DEVICE_HANDLE 0x01
771
772 ///
773 /// Device Handle - ACPI
774 ///
775 typedef struct {
776 UINT64 AcpiHid;
777 UINT32 AcpiUid;
778 UINT8 Reserved[4];
779 } EFI_ACPI_6_4_DEVICE_HANDLE_ACPI;
780
781 ///
782 /// Device Handle - PCI
783 ///
784 typedef struct {
785 UINT16 PciSegment;
786 UINT16 PciBdfNumber;
787 UINT8 Reserved[12];
788 } EFI_ACPI_6_4_DEVICE_HANDLE_PCI;
789
790 ///
791 /// Generic Initiator Affinity Structure
792 ///
793 typedef struct {
794 UINT8 Type;
795 UINT8 Length;
796 UINT8 Reserved1;
797 UINT8 DeviceHandleType;
798 UINT32 ProximityDomain;
799
800 union {
801 EFI_ACPI_6_4_DEVICE_HANDLE_ACPI Acpi;
802 EFI_ACPI_6_4_DEVICE_HANDLE_PCI Pci;
803 } DeviceHandle;
804
805 UINT32 Flags;
806 UINT8 Reserved2[4];
807 } EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE;
808
809 ///
810 /// Generic Initiator Affinity Structure Flags. All other bits are reserved
811 /// and must be 0.
812 ///
813 #define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ENABLED BIT0
814 #define EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE_ARCHITECTURAL_TRANSACTIONS BIT1
815
816 ///
817 /// System Locality Distance Information Table (SLIT).
818 /// The rest of the table is a matrix.
819 ///
820 typedef struct {
821 EFI_ACPI_DESCRIPTION_HEADER Header;
822 UINT64 NumberOfSystemLocalities;
823 } EFI_ACPI_6_4_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER;
824
825 ///
826 /// SLIT Version (as defined in ACPI 6.4 spec.)
827 ///
828 #define EFI_ACPI_6_4_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION 0x01
829
830 ///
831 /// Corrected Platform Error Polling Table (CPEP)
832 ///
833 typedef struct {
834 EFI_ACPI_DESCRIPTION_HEADER Header;
835 UINT8 Reserved[8];
836 } EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER;
837
838 ///
839 /// CPEP Version (as defined in ACPI 6.4 spec.)
840 ///
841 #define EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
842
843 //
844 // CPEP processor structure types.
845 //
846 #define EFI_ACPI_6_4_CPEP_PROCESSOR_APIC_SAPIC 0x00
847
848 ///
849 /// Corrected Platform Error Polling Processor Structure Definition
850 ///
851 typedef struct {
852 UINT8 Type;
853 UINT8 Length;
854 UINT8 ProcessorId;
855 UINT8 ProcessorEid;
856 UINT32 PollingInterval;
857 } EFI_ACPI_6_4_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE;
858
859 ///
860 /// Maximum System Characteristics Table (MSCT)
861 ///
862 typedef struct {
863 EFI_ACPI_DESCRIPTION_HEADER Header;
864 UINT32 OffsetProxDomInfo;
865 UINT32 MaximumNumberOfProximityDomains;
866 UINT32 MaximumNumberOfClockDomains;
867 UINT64 MaximumPhysicalAddress;
868 } EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER;
869
870 ///
871 /// MSCT Version (as defined in ACPI 6.4 spec.)
872 ///
873 #define EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
874
875 ///
876 /// Maximum Proximity Domain Information Structure Definition
877 ///
878 typedef struct {
879 UINT8 Revision;
880 UINT8 Length;
881 UINT32 ProximityDomainRangeLow;
882 UINT32 ProximityDomainRangeHigh;
883 UINT32 MaximumProcessorCapacity;
884 UINT64 MaximumMemoryCapacity;
885 } EFI_ACPI_6_4_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE;
886
887 ///
888 /// ACPI RAS Feature Table definition.
889 ///
890 typedef struct {
891 EFI_ACPI_DESCRIPTION_HEADER Header;
892 UINT8 PlatformCommunicationChannelIdentifier[12];
893 } EFI_ACPI_6_4_RAS_FEATURE_TABLE;
894
895 ///
896 /// RASF Version (as defined in ACPI 6.4 spec.)
897 ///
898 #define EFI_ACPI_6_4_RAS_FEATURE_TABLE_REVISION 0x01
899
900 ///
901 /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
902 ///
903 typedef struct {
904 UINT32 Signature;
905 UINT16 Command;
906 UINT16 Status;
907 UINT16 Version;
908 UINT8 RASCapabilities[16];
909 UINT8 SetRASCapabilities[16];
910 UINT16 NumberOfRASFParameterBlocks;
911 UINT32 SetRASCapabilitiesStatus;
912 } EFI_ACPI_6_4_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
913
914 ///
915 /// ACPI RASF PCC command code
916 ///
917 #define EFI_ACPI_6_4_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND 0x01
918
919 ///
920 /// ACPI RASF Platform RAS Capabilities
921 ///
922 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED BIT0
923 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPORTED_AND_EXPOSED_TO_SOFTWARE BIT1
924 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_CPU_CACHE_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT2
925 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_MEMORY_CONTROLLER_FLUSH_TO_NVDIMM_DURABILITY_ON_POWER_LOSS BIT3
926 #define EFI_ACPI_6_4_RASF_PLATFORM_RAS_CAPABILITY_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_HARDWARE_MIRRORING BIT4
927
928 ///
929 /// ACPI RASF Parameter Block structure for PATROL_SCRUB
930 ///
931 typedef struct {
932 UINT16 Type;
933 UINT16 Version;
934 UINT16 Length;
935 UINT16 PatrolScrubCommand;
936 UINT64 RequestedAddressRange[2];
937 UINT64 ActualAddressRange[2];
938 UINT16 Flags;
939 UINT8 RequestedSpeed;
940 } EFI_ACPI_6_4_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE;
941
942 ///
943 /// ACPI RASF Patrol Scrub command
944 ///
945 #define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS 0x01
946 #define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER 0x02
947 #define EFI_ACPI_6_4_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER 0x03
948
949 ///
950 /// Memory Power State Table definition.
951 ///
952 typedef struct {
953 EFI_ACPI_DESCRIPTION_HEADER Header;
954 UINT8 PlatformCommunicationChannelIdentifier;
955 UINT8 Reserved[3];
956 // Memory Power Node Structure
957 // Memory Power State Characteristics
958 } EFI_ACPI_6_4_MEMORY_POWER_STATUS_TABLE;
959
960 ///
961 /// MPST Version (as defined in ACPI 6.4 spec.)
962 ///
963 #define EFI_ACPI_6_4_MEMORY_POWER_STATE_TABLE_REVISION 0x01
964
965 ///
966 /// MPST Platform Communication Channel Shared Memory Region definition.
967 ///
968 typedef struct {
969 UINT32 Signature;
970 UINT16 Command;
971 UINT16 Status;
972 UINT32 MemoryPowerCommandRegister;
973 UINT32 MemoryPowerStatusRegister;
974 UINT32 PowerStateId;
975 UINT32 MemoryPowerNodeId;
976 UINT64 MemoryEnergyConsumed;
977 UINT64 ExpectedAveragePowerComsuned;
978 } EFI_ACPI_6_4_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
979
980 ///
981 /// ACPI MPST PCC command code
982 ///
983 #define EFI_ACPI_6_4_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND 0x03
984
985 ///
986 /// ACPI MPST Memory Power command
987 ///
988 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE 0x01
989 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE 0x02
990 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED 0x03
991 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED 0x04
992
993 ///
994 /// MPST Memory Power Node Table
995 ///
996 typedef struct {
997 UINT8 PowerStateValue;
998 UINT8 PowerStateInformationIndex;
999 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE;
1000
1001 typedef struct {
1002 UINT8 Flag;
1003 UINT8 Reserved;
1004 UINT16 MemoryPowerNodeId;
1005 UINT32 Length;
1006 UINT64 AddressBase;
1007 UINT64 AddressLength;
1008 UINT32 NumberOfPowerStates;
1009 UINT32 NumberOfPhysicalComponents;
1010 //EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE MemoryPowerState[NumberOfPowerStates];
1011 //UINT16 PhysicalComponentIdentifier[NumberOfPhysicalComponents];
1012 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE;
1013
1014 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE 0x01
1015 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED 0x02
1016 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE 0x04
1017
1018 typedef struct {
1019 UINT16 MemoryPowerNodeCount;
1020 UINT8 Reserved[2];
1021 } EFI_ACPI_6_4_MPST_MEMORY_POWER_NODE_TABLE;
1022
1023 ///
1024 /// MPST Memory Power State Characteristics Table
1025 ///
1026 typedef struct {
1027 UINT8 PowerStateStructureID;
1028 UINT8 Flag;
1029 UINT16 Reserved;
1030 UINT32 AveragePowerConsumedInMPS0;
1031 UINT32 RelativePowerSavingToMPS0;
1032 UINT64 ExitLatencyToMPS0;
1033 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE;
1034
1035 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED 0x01
1036 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY 0x02
1037 #define EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT 0x04
1038
1039 typedef struct {
1040 UINT16 MemoryPowerStateCharacteristicsCount;
1041 UINT8 Reserved[2];
1042 } EFI_ACPI_6_4_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE;
1043
1044 ///
1045 /// Platform Memory Topology Table definition.
1046 ///
1047 typedef struct {
1048 EFI_ACPI_DESCRIPTION_HEADER Header;
1049 UINT32 NumberOfMemoryDevices;
1050 //EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[NumberOfMemoryDevices];
1051 } EFI_ACPI_6_4_PLATFORM_MEMORY_TOPOLOGY_TABLE;
1052
1053 ///
1054 /// PMTT Version (as defined in ACPI 6.4 spec.)
1055 ///
1056 #define EFI_ACPI_6_4_MEMORY_TOPOLOGY_TABLE_REVISION 0x02
1057
1058 ///
1059 /// Common Memory Device.
1060 ///
1061 typedef struct {
1062 UINT8 Type;
1063 UINT8 Reserved;
1064 UINT16 Length;
1065 UINT16 Flags;
1066 UINT16 Reserved1;
1067 UINT32 NumberOfMemoryDevices;
1068 //UINT8 TypeSpecificData[];
1069 //EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[NumberOfMemoryDevices];
1070 } EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE;
1071
1072 ///
1073 /// Memory Device Type.
1074 ///
1075 #define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_SOCKET 0x1
1076 #define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
1077 #define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_DIMM 0x3
1078 #define EFI_ACPI_6_4_PMTT_MEMORY_DEVICE_TYPE_VENDOR_SPECIFIC_TYPE 0xFF
1079
1080 ///
1081 /// Socket Type Data.
1082 ///
1083 typedef struct {
1084 EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader;
1085 UINT16 SocketIdentifier;
1086 UINT16 Reserved;
1087 //EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[];
1088 } EFI_ACPI_6_4_PMTT_SOCKET_TYPE_DATA;
1089
1090 ///
1091 /// Memory Controller Type Data.
1092 ///
1093 typedef struct {
1094 EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader;
1095 UINT16 MemoryControllerIdentifier;
1096 UINT16 Reserved;
1097 //EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[];
1098 } EFI_ACPI_6_4_PMTT_MEMORY_CONTROLLER_TYPE_DATA;
1099
1100 ///
1101 /// DIMM Type Specific Data.
1102 ///
1103 typedef struct {
1104 EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader;
1105 UINT32 SmbiosHandle;
1106 } EFI_ACPI_6_4_PMTT_DIMM_TYPE_SPECIFIC_DATA;
1107
1108 ///
1109 /// Vendor Specific Type Data.
1110 ///
1111 typedef struct {
1112 EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE CommonMemoryDeviceHeader;
1113 UINT8 TypeUuid[16];
1114 //EFI_ACPI_6_4_PMTT_VENDOR_SPECIFIC_TYPE_DATA VendorSpecificData[];
1115 //EFI_ACPI_6_4_PMTT_COMMON_MEMORY_DEVICE MemoryDeviceStructure[];
1116 } EFI_ACPI_6_4_PMTT_VENDOR_SPECIFIC_TYPE_DATA;
1117
1118 ///
1119 /// Boot Graphics Resource Table definition.
1120 ///
1121 typedef struct {
1122 EFI_ACPI_DESCRIPTION_HEADER Header;
1123 ///
1124 /// 2-bytes (16 bit) version ID. This value must be 1.
1125 ///
1126 UINT16 Version;
1127 ///
1128 /// 1-byte status field indicating current status about the table.
1129 /// Bits[7:3] = Reserved (must be zero)
1130 /// Bits[2:1] = Orientation Offset. These bits describe the clockwise
1131 /// degree offset from the image's default orientation.
1132 /// [00] = 0, no offset
1133 /// [01] = 90
1134 /// [10] = 180
1135 /// [11] = 270
1136 /// Bit [0] = Displayed. A one indicates the boot image graphic is
1137 /// displayed.
1138 ///
1139 UINT8 Status;
1140 ///
1141 /// 1-byte enumerated type field indicating format of the image.
1142 /// 0 = Bitmap
1143 /// 1 - 255 Reserved (for future use)
1144 ///
1145 UINT8 ImageType;
1146 ///
1147 /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
1148 /// of the image bitmap.
1149 ///
1150 UINT64 ImageAddress;
1151 ///
1152 /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
1153 /// (X, Y) display offset of the top left corner of the boot image.
1154 /// The top left corner of the display is at offset (0, 0).
1155 ///
1156 UINT32 ImageOffsetX;
1157 ///
1158 /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
1159 /// (X, Y) display offset of the top left corner of the boot image.
1160 /// The top left corner of the display is at offset (0, 0).
1161 ///
1162 UINT32 ImageOffsetY;
1163 } EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE;
1164
1165 ///
1166 /// BGRT Revision
1167 ///
1168 #define EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1169
1170 ///
1171 /// BGRT Version
1172 ///
1173 #define EFI_ACPI_6_4_BGRT_VERSION 0x01
1174
1175 ///
1176 /// BGRT Status
1177 ///
1178 #define EFI_ACPI_6_4_BGRT_STATUS_NOT_DISPLAYED 0x00
1179 #define EFI_ACPI_6_4_BGRT_STATUS_DISPLAYED 0x01
1180
1181 ///
1182 /// BGRT Image Type
1183 ///
1184 #define EFI_ACPI_6_4_BGRT_IMAGE_TYPE_BMP 0x00
1185
1186 ///
1187 /// FPDT Version (as defined in ACPI 6.4 spec.)
1188 ///
1189 #define EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1190
1191 ///
1192 /// FPDT Performance Record Types
1193 ///
1194 #define EFI_ACPI_6_4_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER 0x0000
1195 #define EFI_ACPI_6_4_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER 0x0001
1196
1197 ///
1198 /// FPDT Performance Record Revision
1199 ///
1200 #define EFI_ACPI_6_4_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER 0x01
1201 #define EFI_ACPI_6_4_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1202
1203 ///
1204 /// FPDT Runtime Performance Record Types
1205 ///
1206 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME 0x0000
1207 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND 0x0001
1208 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT 0x0002
1209
1210 ///
1211 /// FPDT Runtime Performance Record Revision
1212 ///
1213 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME 0x01
1214 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND 0x01
1215 #define EFI_ACPI_6_4_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT 0x02
1216
1217 ///
1218 /// FPDT Performance Record header
1219 ///
1220 typedef struct {
1221 UINT16 Type;
1222 UINT8 Length;
1223 UINT8 Revision;
1224 } EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER;
1225
1226 ///
1227 /// FPDT Performance Table header
1228 ///
1229 typedef struct {
1230 UINT32 Signature;
1231 UINT32 Length;
1232 } EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER;
1233
1234 ///
1235 /// FPDT Firmware Basic Boot Performance Pointer Record Structure
1236 ///
1237 typedef struct {
1238 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header;
1239 UINT32 Reserved;
1240 ///
1241 /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
1242 ///
1243 UINT64 BootPerformanceTablePointer;
1244 } EFI_ACPI_6_4_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD;
1245
1246 ///
1247 /// FPDT S3 Performance Table Pointer Record Structure
1248 ///
1249 typedef struct {
1250 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header;
1251 UINT32 Reserved;
1252 ///
1253 /// 64-bit processor-relative physical address of the S3 Performance Table.
1254 ///
1255 UINT64 S3PerformanceTablePointer;
1256 } EFI_ACPI_6_4_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD;
1257
1258 ///
1259 /// FPDT Firmware Basic Boot Performance Record Structure
1260 ///
1261 typedef struct {
1262 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header;
1263 UINT32 Reserved;
1264 ///
1265 /// Timer value logged at the beginning of firmware image execution.
1266 /// This may not always be zero or near zero.
1267 ///
1268 UINT64 ResetEnd;
1269 ///
1270 /// Timer value logged just prior to loading the OS boot loader into memory.
1271 /// For non-UEFI compatible boots, this field must be zero.
1272 ///
1273 UINT64 OsLoaderLoadImageStart;
1274 ///
1275 /// Timer value logged just prior to launching the previously loaded OS boot loader image.
1276 /// For non-UEFI compatible boots, the timer value logged will be just prior
1277 /// to the INT 19h handler invocation.
1278 ///
1279 UINT64 OsLoaderStartImageStart;
1280 ///
1281 /// Timer value logged at the point when the OS loader calls the
1282 /// ExitBootServices function for UEFI compatible firmware.
1283 /// For non-UEFI compatible boots, this field must be zero.
1284 ///
1285 UINT64 ExitBootServicesEntry;
1286 ///
1287 /// Timer value logged at the point just prior towhen the OS loader gaining
1288 /// control back from calls the ExitBootServices function for UEFI compatible firmware.
1289 /// For non-UEFI compatible boots, this field must be zero.
1290 ///
1291 UINT64 ExitBootServicesExit;
1292 } EFI_ACPI_6_4_FPDT_FIRMWARE_BASIC_BOOT_RECORD;
1293
1294 ///
1295 /// FPDT Firmware Basic Boot Performance Table signature
1296 ///
1297 #define EFI_ACPI_6_4_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('F', 'B', 'P', 'T')
1298
1299 //
1300 // FPDT Firmware Basic Boot Performance Table
1301 //
1302 typedef struct {
1303 EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER Header;
1304 //
1305 // one or more Performance Records.
1306 //
1307 } EFI_ACPI_6_4_FPDT_FIRMWARE_BASIC_BOOT_TABLE;
1308
1309 ///
1310 /// FPDT "S3PT" S3 Performance Table
1311 ///
1312 #define EFI_ACPI_6_4_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE SIGNATURE_32('S', '3', 'P', 'T')
1313
1314 //
1315 // FPDT Firmware S3 Boot Performance Table
1316 //
1317 typedef struct {
1318 EFI_ACPI_6_4_FPDT_PERFORMANCE_TABLE_HEADER Header;
1319 //
1320 // one or more Performance Records.
1321 //
1322 } EFI_ACPI_6_4_FPDT_FIRMWARE_S3_BOOT_TABLE;
1323
1324 ///
1325 /// FPDT Basic S3 Resume Performance Record
1326 ///
1327 typedef struct {
1328 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header;
1329 ///
1330 /// A count of the number of S3 resume cycles since the last full boot sequence.
1331 ///
1332 UINT32 ResumeCount;
1333 ///
1334 /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
1335 /// OS waking vector. Only the most recent resume cycle's time is retained.
1336 ///
1337 UINT64 FullResume;
1338 ///
1339 /// Average timer value of all resume cycles logged since the last full boot
1340 /// sequence, including the most recent resume. Note that the entire log of
1341 /// timer values does not need to be retained in order to calculate this average.
1342 ///
1343 UINT64 AverageResume;
1344 } EFI_ACPI_6_4_FPDT_S3_RESUME_RECORD;
1345
1346 ///
1347 /// FPDT Basic S3 Suspend Performance Record
1348 ///
1349 typedef struct {
1350 EFI_ACPI_6_4_FPDT_PERFORMANCE_RECORD_HEADER Header;
1351 ///
1352 /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
1353 /// Only the most recent suspend cycle's timer value is retained.
1354 ///
1355 UINT64 SuspendStart;
1356 ///
1357 /// Timer value recorded at the final firmware write to SLP_TYP (or other
1358 /// mechanism) used to trigger hardware entry to S3.
1359 /// Only the most recent suspend cycle's timer value is retained.
1360 ///
1361 UINT64 SuspendEnd;
1362 } EFI_ACPI_6_4_FPDT_S3_SUSPEND_RECORD;
1363
1364 ///
1365 /// Firmware Performance Record Table definition.
1366 ///
1367 typedef struct {
1368 EFI_ACPI_DESCRIPTION_HEADER Header;
1369 } EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_RECORD_TABLE;
1370
1371 ///
1372 /// Generic Timer Description Table definition.
1373 ///
1374 typedef struct {
1375 EFI_ACPI_DESCRIPTION_HEADER Header;
1376 UINT64 CntControlBasePhysicalAddress;
1377 UINT32 Reserved;
1378 UINT32 SecurePL1TimerGSIV;
1379 UINT32 SecurePL1TimerFlags;
1380 UINT32 NonSecurePL1TimerGSIV;
1381 UINT32 NonSecurePL1TimerFlags;
1382 UINT32 VirtualTimerGSIV;
1383 UINT32 VirtualTimerFlags;
1384 UINT32 NonSecurePL2TimerGSIV;
1385 UINT32 NonSecurePL2TimerFlags;
1386 UINT64 CntReadBasePhysicalAddress;
1387 UINT32 PlatformTimerCount;
1388 UINT32 PlatformTimerOffset;
1389 UINT32 VirtualPL2TimerGSIV;
1390 UINT32 VirtualPL2TimerFlags;
1391 } EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE;
1392
1393 ///
1394 /// GTDT Version (as defined in ACPI 6.4 spec.)
1395 ///
1396 #define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x03
1397
1398 ///
1399 /// Timer Flags. All other bits are reserved and must be 0.
1400 ///
1401 #define EFI_ACPI_6_4_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1402 #define EFI_ACPI_6_4_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1403 #define EFI_ACPI_6_4_GTDT_TIMER_FLAG_ALWAYS_ON_CAPABILITY BIT2
1404
1405 ///
1406 /// Platform Timer Type
1407 ///
1408 #define EFI_ACPI_6_4_GTDT_GT_BLOCK 0
1409 #define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG 1
1410
1411 ///
1412 /// GT Block Structure
1413 ///
1414 typedef struct {
1415 UINT8 Type;
1416 UINT16 Length;
1417 UINT8 Reserved;
1418 UINT64 CntCtlBase;
1419 UINT32 GTBlockTimerCount;
1420 UINT32 GTBlockTimerOffset;
1421 } EFI_ACPI_6_4_GTDT_GT_BLOCK_STRUCTURE;
1422
1423 ///
1424 /// GT Block Timer Structure
1425 ///
1426 typedef struct {
1427 UINT8 GTFrameNumber;
1428 UINT8 Reserved[3];
1429 UINT64 CntBaseX;
1430 UINT64 CntEL0BaseX;
1431 UINT32 GTxPhysicalTimerGSIV;
1432 UINT32 GTxPhysicalTimerFlags;
1433 UINT32 GTxVirtualTimerGSIV;
1434 UINT32 GTxVirtualTimerFlags;
1435 UINT32 GTxCommonFlags;
1436 } EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_STRUCTURE;
1437
1438 ///
1439 /// GT Block Physical Timers and Virtual Timers Flags. All other bits are reserved and must be 0.
1440 ///
1441 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_MODE BIT0
1442 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_TIMER_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1443
1444 ///
1445 /// Common Flags Flags. All other bits are reserved and must be 0.
1446 ///
1447 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_COMMON_FLAG_SECURE_TIMER BIT0
1448 #define EFI_ACPI_6_4_GTDT_GT_BLOCK_COMMON_FLAG_ALWAYS_ON_CAPABILITY BIT1
1449
1450 ///
1451 /// Arm Generic Watchdog Structure
1452 ///
1453 typedef struct {
1454 UINT8 Type;
1455 UINT16 Length;
1456 UINT8 Reserved;
1457 UINT64 RefreshFramePhysicalAddress;
1458 UINT64 WatchdogControlFramePhysicalAddress;
1459 UINT32 WatchdogTimerGSIV;
1460 UINT32 WatchdogTimerFlags;
1461 } EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_STRUCTURE;
1462
1463 ///
1464 /// Arm Generic Watchdog Timer Flags. All other bits are reserved and must be 0.
1465 ///
1466 #define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_MODE BIT0
1467 #define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_FLAG_TIMER_INTERRUPT_POLARITY BIT1
1468 #define EFI_ACPI_6_4_GTDT_ARM_GENERIC_WATCHDOG_FLAG_SECURE_TIMER BIT2
1469
1470 //
1471 // NVDIMM Firmware Interface Table definition.
1472 //
1473 typedef struct {
1474 EFI_ACPI_DESCRIPTION_HEADER Header;
1475 UINT32 Reserved;
1476 } EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE;
1477
1478 //
1479 // NFIT Version (as defined in ACPI 6.4 spec.)
1480 //
1481 #define EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE_REVISION 0x1
1482
1483 //
1484 // Definition for NFIT Table Structure Types
1485 //
1486 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE_TYPE 0
1487 #define EFI_ACPI_6_4_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE_TYPE 1
1488 #define EFI_ACPI_6_4_NFIT_INTERLEAVE_STRUCTURE_TYPE 2
1489 #define EFI_ACPI_6_4_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE_TYPE 3
1490 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE_TYPE 4
1491 #define EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE_TYPE 5
1492 #define EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE_TYPE 6
1493
1494 //
1495 // Definition for NFIT Structure Header
1496 //
1497 typedef struct {
1498 UINT16 Type;
1499 UINT16 Length;
1500 } EFI_ACPI_6_4_NFIT_STRUCTURE_HEADER;
1501
1502 //
1503 // Definition for System Physical Address Range Structure
1504 //
1505 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_CONTROL_REGION_FOR_MANAGEMENT BIT0
1506 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_PROXIMITY_DOMAIN_VALID BIT1
1507 #define EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_FLAGS_SPA_LOCATION_COOKIE_VALID BIT2
1508
1509 #define EFI_ACPI_6_4_NFIT_GUID_VOLATILE_MEMORY_REGION { 0x7305944F, 0xFDDA, 0x44E3, { 0xB1, 0x6C, 0x3F, 0x22, 0xD2, 0x52, 0xE5, 0xD0 }}
1510 #define EFI_ACPI_6_4_NFIT_GUID_BYTE_ADDRESSABLE_PERSISTENT_MEMORY_REGION { 0x66F0D379, 0xB4F3, 0x4074, { 0xAC, 0x43, 0x0D, 0x33, 0x18, 0xB7, 0x8C, 0xDB }}
1511 #define EFI_ACPI_6_4_NFIT_GUID_NVDIMM_CONTROL_REGION { 0x92F701F6, 0x13B4, 0x405D, { 0x91, 0x0B, 0x29, 0x93, 0x67, 0xE8, 0x23, 0x4C }}
1512 #define EFI_ACPI_6_4_NFIT_GUID_NVDIMM_BLOCK_DATA_WINDOW_REGION { 0x91AF0530, 0x5D86, 0x470E, { 0xA6, 0xB0, 0x0A, 0x2D, 0xB9, 0x40, 0x82, 0x49 }}
1513 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_VOLATILE { 0x77AB535A, 0x45FC, 0x624B, { 0x55, 0x60, 0xF7, 0xB2, 0x81, 0xD1, 0xF9, 0x6E }}
1514 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_VOLATILE { 0x3D5ABD30, 0x4175, 0x87CE, { 0x6D, 0x64, 0xD2, 0xAD, 0xE5, 0x23, 0xC4, 0xBB }}
1515 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_DISK_REGION_PERSISTENT { 0x5CEA02C9, 0x4D07, 0x69D3, { 0x26, 0x9F ,0x44, 0x96, 0xFB, 0xE0, 0x96, 0xF9 }}
1516 #define EFI_ACPI_6_4_NFIT_GUID_RAM_DISK_SUPPORTING_VIRTUAL_CD_REGION_PERSISTENT { 0x08018188, 0x42CD, 0xBB48, { 0x10, 0x0F, 0x53, 0x87, 0xD5, 0x3D, 0xED, 0x3D }}
1517
1518 typedef struct {
1519 UINT16 Type;
1520 UINT16 Length;
1521 UINT16 SPARangeStructureIndex;
1522 UINT16 Flags;
1523 UINT32 Reserved_8;
1524 UINT32 ProximityDomain;
1525 GUID AddressRangeTypeGUID;
1526 UINT64 SystemPhysicalAddressRangeBase;
1527 UINT64 SystemPhysicalAddressRangeLength;
1528 UINT64 AddressRangeMemoryMappingAttribute;
1529 UINT64 SPALocationCookie;
1530 } EFI_ACPI_6_4_NFIT_SYSTEM_PHYSICAL_ADDRESS_RANGE_STRUCTURE;
1531
1532 //
1533 // Definition for Memory Device to System Physical Address Range Mapping Structure
1534 //
1535 typedef struct {
1536 UINT32 DIMMNumber:4;
1537 UINT32 MemoryChannelNumber:4;
1538 UINT32 MemoryControllerID:4;
1539 UINT32 SocketID:4;
1540 UINT32 NodeControllerID:12;
1541 UINT32 Reserved_28:4;
1542 } EFI_ACPI_6_4_NFIT_DEVICE_HANDLE;
1543
1544 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_PREVIOUS_SAVE_FAIL BIT0
1545 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_LAST_RESTORE_FAIL BIT1
1546 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_PLATFORM_FLUSH_FAIL BIT2
1547 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_NOT_ARMED_PRIOR_TO_OSPM_HAND_OFF BIT3
1548 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_SMART_HEALTH_EVENTS_PRIOR_OSPM_HAND_OFF BIT4
1549 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_ENABLED_TO_NOTIFY_OSPM_ON_SMART_HEALTH_EVENTS BIT5
1550 #define EFI_ACPI_6_4_NFIT_MEMORY_DEVICE_STATE_FLAGS_FIRMWARE_NOT_MAP_NVDIMM_TO_SPA BIT6
1551
1552 typedef struct {
1553 UINT16 Type;
1554 UINT16 Length;
1555 EFI_ACPI_6_4_NFIT_DEVICE_HANDLE NFITDeviceHandle;
1556 UINT16 NVDIMMPhysicalID;
1557 UINT16 NVDIMMRegionID;
1558 UINT16 SPARangeStructureIndex ;
1559 UINT16 NVDIMMControlRegionStructureIndex;
1560 UINT64 NVDIMMRegionSize;
1561 UINT64 RegionOffset;
1562 UINT64 NVDIMMPhysicalAddressRegionBase;
1563 UINT16 InterleaveStructureIndex;
1564 UINT16 InterleaveWays;
1565 UINT16 NVDIMMStateFlags;
1566 UINT16 Reserved_46;
1567 } EFI_ACPI_6_4_NFIT_NVDIMM_REGION_MAPPING_STRUCTURE;
1568
1569 //
1570 // Definition for Interleave Structure
1571 //
1572 typedef struct {
1573 UINT16 Type;
1574 UINT16 Length;
1575 UINT16 InterleaveStructureIndex;
1576 UINT16 Reserved_6;
1577 UINT32 NumberOfLines;
1578 UINT32 LineSize;
1579 //UINT32 LineOffset[NumberOfLines];
1580 } EFI_ACPI_6_4_NFIT_INTERLEAVE_STRUCTURE;
1581
1582 //
1583 // Definition for SMBIOS Management Information Structure
1584 //
1585 typedef struct {
1586 UINT16 Type;
1587 UINT16 Length;
1588 UINT32 Reserved_4;
1589 //UINT8 Data[];
1590 } EFI_ACPI_6_4_NFIT_SMBIOS_MANAGEMENT_INFORMATION_STRUCTURE;
1591
1592 //
1593 // Definition for NVDIMM Control Region Structure
1594 //
1595 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_VALID_FIELDS_MANUFACTURING BIT0
1596
1597 #define EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_FLAGS_BLOCK_DATA_WINDOWS_BUFFERED BIT0
1598
1599 typedef struct {
1600 UINT16 Type;
1601 UINT16 Length;
1602 UINT16 NVDIMMControlRegionStructureIndex;
1603 UINT16 VendorID;
1604 UINT16 DeviceID;
1605 UINT16 RevisionID;
1606 UINT16 SubsystemVendorID;
1607 UINT16 SubsystemDeviceID;
1608 UINT16 SubsystemRevisionID;
1609 UINT8 ValidFields;
1610 UINT8 ManufacturingLocation;
1611 UINT16 ManufacturingDate;
1612 UINT8 Reserved_22[2];
1613 UINT32 SerialNumber;
1614 UINT16 RegionFormatInterfaceCode;
1615 UINT16 NumberOfBlockControlWindows;
1616 UINT64 SizeOfBlockControlWindow;
1617 UINT64 CommandRegisterOffsetInBlockControlWindow;
1618 UINT64 SizeOfCommandRegisterInBlockControlWindows;
1619 UINT64 StatusRegisterOffsetInBlockControlWindow;
1620 UINT64 SizeOfStatusRegisterInBlockControlWindows;
1621 UINT16 NVDIMMControlRegionFlag;
1622 UINT8 Reserved_74[6];
1623 } EFI_ACPI_6_4_NFIT_NVDIMM_CONTROL_REGION_STRUCTURE;
1624
1625 //
1626 // Definition for NVDIMM Block Data Window Region Structure
1627 //
1628 typedef struct {
1629 UINT16 Type;
1630 UINT16 Length;
1631 UINT16 NVDIMMControlRegionStructureIndex;
1632 UINT16 NumberOfBlockDataWindows;
1633 UINT64 BlockDataWindowStartOffset;
1634 UINT64 SizeOfBlockDataWindow;
1635 UINT64 BlockAccessibleMemoryCapacity;
1636 UINT64 BeginningAddressOfFirstBlockInBlockAccessibleMemory;
1637 } EFI_ACPI_6_4_NFIT_NVDIMM_BLOCK_DATA_WINDOW_REGION_STRUCTURE;
1638
1639 //
1640 // Definition for Flush Hint Address Structure
1641 //
1642 typedef struct {
1643 UINT16 Type;
1644 UINT16 Length;
1645 EFI_ACPI_6_4_NFIT_DEVICE_HANDLE NFITDeviceHandle;
1646 UINT16 NumberOfFlushHintAddresses;
1647 UINT8 Reserved_10[6];
1648 //UINT64 FlushHintAddress[NumberOfFlushHintAddresses];
1649 } EFI_ACPI_6_4_NFIT_FLUSH_HINT_ADDRESS_STRUCTURE;
1650
1651 ///
1652 /// Secure DEVices Table (SDEV)
1653 ///
1654 typedef struct {
1655 EFI_ACPI_DESCRIPTION_HEADER Header;
1656 } EFI_ACPI_6_4_SECURE_DEVICES_TABLE_HEADER;
1657
1658 ///
1659 /// SDEV Revision (as defined in ACPI 6.4 spec.)
1660 ///
1661 #define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_REVISION 0x01
1662
1663 ///
1664 /// Secure Device types
1665 ///
1666 #define EFI_ACPI_6_4_SDEV_TYPE_ACPI_NAMESPACE_DEVICE 0x00
1667 #define EFI_ACPI_6_4_SDEV_TYPE_PCIE_ENDPOINT_DEVICE 0x01
1668
1669 ///
1670 /// Secure Device flags
1671 ///
1672 #define EFI_ACPI_6_4_SDEV_FLAG_ALLOW_HANDOFF BIT0
1673 #define EFI_ACPI_6_4_SDEV_FLAG_SECURE_ACCESS_COMPONENTS_PRESENT BIT1
1674
1675 ///
1676 /// SDEV Structure Header
1677 ///
1678 typedef struct {
1679 UINT8 Type;
1680 UINT8 Flags;
1681 UINT16 Length;
1682 } EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER;
1683
1684 ///
1685 /// ACPI_NAMESPACE_DEVICE based Secure Device Structure
1686 ///
1687 typedef struct {
1688 EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
1689 UINT16 DeviceIdentifierOffset;
1690 UINT16 DeviceIdentifierLength;
1691 UINT16 VendorSpecificDataOffset;
1692 UINT16 VendorSpecificDataLength;
1693 UINT16 SecureAccessComponentsOffset;
1694 UINT16 SecureAccessComponentsLength;
1695 } EFI_ACPI_6_4_SDEV_STRUCTURE_ACPI_NAMESPACE_DEVICE;
1696
1697 ///
1698 /// Secure Access Component Types
1699 ///
1700 #define EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_TYPE_IDENTIFICATION 0x00
1701 #define EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_TYPE_MEMORY 0x01
1702
1703 ///
1704 /// Identification Based Secure Access Component
1705 ///
1706 typedef struct {
1707 EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
1708 UINT16 HardwareIdentifierOffset;
1709 UINT16 HardwareIdentifierLength;
1710 UINT16 SubsystemIdentifierOffset;
1711 UINT16 SubsystemIdentifierLength;
1712 UINT16 HardwareRevision;
1713 UINT8 HardwareRevisionPresent;
1714 UINT8 ClassCodePresent;
1715 UINT8 PciCompatibleBaseClass;
1716 UINT8 PciCompatibleSubClass;
1717 UINT8 PciCompatibleProgrammingInterface;
1718 } EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_IDENTIFICATION_STRUCTURE;
1719
1720 ///
1721 /// Memory-based Secure Access Component
1722 ///
1723 typedef struct {
1724 EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
1725 UINT32 Reserved;
1726 UINT64 MemoryAddressBase;
1727 UINT64 MemoryLength;
1728 } EFI_ACPI_6_4_SDEV_SECURE_ACCESS_COMPONENT_MEMORY_STRUCTURE;
1729
1730 ///
1731 /// PCIe Endpoint Device based Secure Device Structure
1732 ///
1733 typedef struct {
1734 EFI_ACPI_6_4_SDEV_STRUCTURE_HEADER Header;
1735 UINT16 PciSegmentNumber;
1736 UINT16 StartBusNumber;
1737 UINT16 PciPathOffset;
1738 UINT16 PciPathLength;
1739 UINT16 VendorSpecificDataOffset;
1740 UINT16 VendorSpecificDataLength;
1741 } EFI_ACPI_6_4_SDEV_STRUCTURE_PCIE_ENDPOINT_DEVICE;
1742
1743 ///
1744 /// Boot Error Record Table (BERT)
1745 ///
1746 typedef struct {
1747 EFI_ACPI_DESCRIPTION_HEADER Header;
1748 UINT32 BootErrorRegionLength;
1749 UINT64 BootErrorRegion;
1750 } EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_HEADER;
1751
1752 ///
1753 /// BERT Version (as defined in ACPI 6.4 spec.)
1754 ///
1755 #define EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1756
1757 ///
1758 /// Boot Error Region Block Status Definition
1759 ///
1760 typedef struct {
1761 UINT32 UncorrectableErrorValid:1;
1762 UINT32 CorrectableErrorValid:1;
1763 UINT32 MultipleUncorrectableErrors:1;
1764 UINT32 MultipleCorrectableErrors:1;
1765 UINT32 ErrorDataEntryCount:10;
1766 UINT32 Reserved:18;
1767 } EFI_ACPI_6_4_ERROR_BLOCK_STATUS;
1768
1769 ///
1770 /// Boot Error Region Definition
1771 ///
1772 typedef struct {
1773 EFI_ACPI_6_4_ERROR_BLOCK_STATUS BlockStatus;
1774 UINT32 RawDataOffset;
1775 UINT32 RawDataLength;
1776 UINT32 DataLength;
1777 UINT32 ErrorSeverity;
1778 } EFI_ACPI_6_4_BOOT_ERROR_REGION_STRUCTURE;
1779
1780 //
1781 // Boot Error Severity types
1782 //
1783 #define EFI_ACPI_6_4_ERROR_SEVERITY_CORRECTABLE 0x00
1784 #define EFI_ACPI_6_4_ERROR_SEVERITY_FATAL 0x01
1785 #define EFI_ACPI_6_4_ERROR_SEVERITY_CORRECTED 0x02
1786 #define EFI_ACPI_6_4_ERROR_SEVERITY_NONE 0x03
1787
1788 ///
1789 /// Generic Error Data Entry Definition
1790 ///
1791 typedef struct {
1792 UINT8 SectionType[16];
1793 UINT32 ErrorSeverity;
1794 UINT16 Revision;
1795 UINT8 ValidationBits;
1796 UINT8 Flags;
1797 UINT32 ErrorDataLength;
1798 UINT8 FruId[16];
1799 UINT8 FruText[20];
1800 UINT8 Timestamp[8];
1801 } EFI_ACPI_6_4_GENERIC_ERROR_DATA_ENTRY_STRUCTURE;
1802
1803 ///
1804 /// Generic Error Data Entry Version (as defined in ACPI 6.4 spec.)
1805 ///
1806 #define EFI_ACPI_6_4_GENERIC_ERROR_DATA_ENTRY_REVISION 0x0300
1807
1808 ///
1809 /// HEST - Hardware Error Source Table
1810 ///
1811 typedef struct {
1812 EFI_ACPI_DESCRIPTION_HEADER Header;
1813 UINT32 ErrorSourceCount;
1814 } EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_HEADER;
1815
1816 ///
1817 /// HEST Version (as defined in ACPI 6.4 spec.)
1818 ///
1819 #define EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1820
1821 //
1822 // Error Source structure types.
1823 //
1824 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION 0x00
1825 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK 0x01
1826 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_NMI_ERROR 0x02
1827 #define EFI_ACPI_6_4_PCI_EXPRESS_ROOT_PORT_AER 0x06
1828 #define EFI_ACPI_6_4_PCI_EXPRESS_DEVICE_AER 0x07
1829 #define EFI_ACPI_6_4_PCI_EXPRESS_BRIDGE_AER 0x08
1830 #define EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR 0x09
1831 #define EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_VERSION_2 0x0A
1832 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK 0x0B
1833
1834 //
1835 // Error Source structure flags.
1836 //
1837 #define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_FIRMWARE_FIRST (1 << 0)
1838 #define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_GLOBAL (1 << 1)
1839 #define EFI_ACPI_6_4_ERROR_SOURCE_FLAG_GHES_ASSIST (1 << 2)
1840
1841 ///
1842 /// IA-32 Architecture Machine Check Exception Structure Definition
1843 ///
1844 typedef struct {
1845 UINT16 Type;
1846 UINT16 SourceId;
1847 UINT8 Reserved0[2];
1848 UINT8 Flags;
1849 UINT8 Enabled;
1850 UINT32 NumberOfRecordsToPreAllocate;
1851 UINT32 MaxSectionsPerRecord;
1852 UINT64 GlobalCapabilityInitData;
1853 UINT64 GlobalControlInitData;
1854 UINT8 NumberOfHardwareBanks;
1855 UINT8 Reserved1[7];
1856 } EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE;
1857
1858 ///
1859 /// IA-32 Architecture Machine Check Bank Structure Definition
1860 ///
1861 typedef struct {
1862 UINT8 BankNumber;
1863 UINT8 ClearStatusOnInitialization;
1864 UINT8 StatusDataFormat;
1865 UINT8 Reserved0;
1866 UINT32 ControlRegisterMsrAddress;
1867 UINT64 ControlInitData;
1868 UINT32 StatusRegisterMsrAddress;
1869 UINT32 AddressRegisterMsrAddress;
1870 UINT32 MiscRegisterMsrAddress;
1871 } EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE;
1872
1873 ///
1874 /// IA-32 Architecture Machine Check Bank Structure MCA data format
1875 ///
1876 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32 0x00
1877 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64 0x01
1878 #define EFI_ACPI_6_4_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64 0x02
1879
1880 //
1881 // Hardware Error Notification types. All other values are reserved
1882 //
1883 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_POLLED 0x00
1884 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT 0x01
1885 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT 0x02
1886 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_SCI 0x03
1887 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_NMI 0x04
1888 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CMCI 0x05
1889 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_MCE 0x06
1890 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_GPIO_SIGNAL 0x07
1891 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEA 0x08
1892 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_ARMV8_SEI 0x09
1893 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_GSIV 0x0A
1894 #define EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_SOFTWARE_DELEGATED_EXCEPTION 0x0B
1895
1896 ///
1897 /// Hardware Error Notification Configuration Write Enable Structure Definition
1898 ///
1899 typedef struct {
1900 UINT16 Type:1;
1901 UINT16 PollInterval:1;
1902 UINT16 SwitchToPollingThresholdValue:1;
1903 UINT16 SwitchToPollingThresholdWindow:1;
1904 UINT16 ErrorThresholdValue:1;
1905 UINT16 ErrorThresholdWindow:1;
1906 UINT16 Reserved:10;
1907 } EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE;
1908
1909 ///
1910 /// Hardware Error Notification Structure Definition
1911 ///
1912 typedef struct {
1913 UINT8 Type;
1914 UINT8 Length;
1915 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE ConfigurationWriteEnable;
1916 UINT32 PollInterval;
1917 UINT32 Vector;
1918 UINT32 SwitchToPollingThresholdValue;
1919 UINT32 SwitchToPollingThresholdWindow;
1920 UINT32 ErrorThresholdValue;
1921 UINT32 ErrorThresholdWindow;
1922 } EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE;
1923
1924 ///
1925 /// IA-32 Architecture Corrected Machine Check Structure Definition
1926 ///
1927 typedef struct {
1928 UINT16 Type;
1929 UINT16 SourceId;
1930 UINT8 Reserved0[2];
1931 UINT8 Flags;
1932 UINT8 Enabled;
1933 UINT32 NumberOfRecordsToPreAllocate;
1934 UINT32 MaxSectionsPerRecord;
1935 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
1936 UINT8 NumberOfHardwareBanks;
1937 UINT8 Reserved1[3];
1938 } EFI_ACPI_6_4_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE;
1939
1940 ///
1941 /// IA-32 Architecture NMI Error Structure Definition
1942 ///
1943 typedef struct {
1944 UINT16 Type;
1945 UINT16 SourceId;
1946 UINT8 Reserved0[2];
1947 UINT32 NumberOfRecordsToPreAllocate;
1948 UINT32 MaxSectionsPerRecord;
1949 UINT32 MaxRawDataLength;
1950 } EFI_ACPI_6_4_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE;
1951
1952 ///
1953 /// PCI Express Root Port AER Structure Definition
1954 ///
1955 typedef struct {
1956 UINT16 Type;
1957 UINT16 SourceId;
1958 UINT8 Reserved0[2];
1959 UINT8 Flags;
1960 UINT8 Enabled;
1961 UINT32 NumberOfRecordsToPreAllocate;
1962 UINT32 MaxSectionsPerRecord;
1963 UINT32 Bus;
1964 UINT16 Device;
1965 UINT16 Function;
1966 UINT16 DeviceControl;
1967 UINT8 Reserved1[2];
1968 UINT32 UncorrectableErrorMask;
1969 UINT32 UncorrectableErrorSeverity;
1970 UINT32 CorrectableErrorMask;
1971 UINT32 AdvancedErrorCapabilitiesAndControl;
1972 UINT32 RootErrorCommand;
1973 } EFI_ACPI_6_4_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE;
1974
1975 ///
1976 /// PCI Express Device AER Structure Definition
1977 ///
1978 typedef struct {
1979 UINT16 Type;
1980 UINT16 SourceId;
1981 UINT8 Reserved0[2];
1982 UINT8 Flags;
1983 UINT8 Enabled;
1984 UINT32 NumberOfRecordsToPreAllocate;
1985 UINT32 MaxSectionsPerRecord;
1986 UINT32 Bus;
1987 UINT16 Device;
1988 UINT16 Function;
1989 UINT16 DeviceControl;
1990 UINT8 Reserved1[2];
1991 UINT32 UncorrectableErrorMask;
1992 UINT32 UncorrectableErrorSeverity;
1993 UINT32 CorrectableErrorMask;
1994 UINT32 AdvancedErrorCapabilitiesAndControl;
1995 } EFI_ACPI_6_4_PCI_EXPRESS_DEVICE_AER_STRUCTURE;
1996
1997 ///
1998 /// PCI Express Bridge AER Structure Definition
1999 ///
2000 typedef struct {
2001 UINT16 Type;
2002 UINT16 SourceId;
2003 UINT8 Reserved0[2];
2004 UINT8 Flags;
2005 UINT8 Enabled;
2006 UINT32 NumberOfRecordsToPreAllocate;
2007 UINT32 MaxSectionsPerRecord;
2008 UINT32 Bus;
2009 UINT16 Device;
2010 UINT16 Function;
2011 UINT16 DeviceControl;
2012 UINT8 Reserved1[2];
2013 UINT32 UncorrectableErrorMask;
2014 UINT32 UncorrectableErrorSeverity;
2015 UINT32 CorrectableErrorMask;
2016 UINT32 AdvancedErrorCapabilitiesAndControl;
2017 UINT32 SecondaryUncorrectableErrorMask;
2018 UINT32 SecondaryUncorrectableErrorSeverity;
2019 UINT32 SecondaryAdvancedErrorCapabilitiesAndControl;
2020 } EFI_ACPI_6_4_PCI_EXPRESS_BRIDGE_AER_STRUCTURE;
2021
2022 ///
2023 /// Generic Hardware Error Source Structure Definition
2024 ///
2025 typedef struct {
2026 UINT16 Type;
2027 UINT16 SourceId;
2028 UINT16 RelatedSourceId;
2029 UINT8 Flags;
2030 UINT8 Enabled;
2031 UINT32 NumberOfRecordsToPreAllocate;
2032 UINT32 MaxSectionsPerRecord;
2033 UINT32 MaxRawDataLength;
2034 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress;
2035 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
2036 UINT32 ErrorStatusBlockLength;
2037 } EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE;
2038
2039 ///
2040 /// Generic Hardware Error Source Version 2 Structure Definition
2041 ///
2042 typedef struct {
2043 UINT16 Type;
2044 UINT16 SourceId;
2045 UINT16 RelatedSourceId;
2046 UINT8 Flags;
2047 UINT8 Enabled;
2048 UINT32 NumberOfRecordsToPreAllocate;
2049 UINT32 MaxSectionsPerRecord;
2050 UINT32 MaxRawDataLength;
2051 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusAddress;
2052 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
2053 UINT32 ErrorStatusBlockLength;
2054 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ReadAckRegister;
2055 UINT64 ReadAckPreserve;
2056 UINT64 ReadAckWrite;
2057 } EFI_ACPI_6_4_GENERIC_HARDWARE_ERROR_SOURCE_VERSION_2_STRUCTURE;
2058
2059 ///
2060 /// Generic Error Status Definition
2061 ///
2062 typedef struct {
2063 EFI_ACPI_6_4_ERROR_BLOCK_STATUS BlockStatus;
2064 UINT32 RawDataOffset;
2065 UINT32 RawDataLength;
2066 UINT32 DataLength;
2067 UINT32 ErrorSeverity;
2068 } EFI_ACPI_6_4_GENERIC_ERROR_STATUS_STRUCTURE;
2069
2070 ///
2071 /// IA-32 Architecture Deferred Machine Check Structure Definition
2072 ///
2073 typedef struct {
2074 UINT16 Type;
2075 UINT16 SourceId;
2076 UINT8 Reserved0[2];
2077 UINT8 Flags;
2078 UINT8 Enabled;
2079 UINT32 NumberOfRecordsToPreAllocate;
2080 UINT32 MaxSectionsPerRecord;
2081 EFI_ACPI_6_4_HARDWARE_ERROR_NOTIFICATION_STRUCTURE NotificationStructure;
2082 UINT8 NumberOfHardwareBanks;
2083 UINT8 Reserved1[3];
2084 } EFI_ACPI_6_4_IA32_ARCHITECTURE_DEFERRED_MACHINE_CHECK_STRUCTURE;;
2085
2086 ///
2087 /// HMAT - Heterogeneous Memory Attribute Table
2088 ///
2089 typedef struct {
2090 EFI_ACPI_DESCRIPTION_HEADER Header;
2091 UINT8 Reserved[4];
2092 } EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_HEADER;
2093
2094 ///
2095 /// HMAT Revision (as defined in ACPI 6.4 spec.)
2096 ///
2097 #define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_REVISION 0x02
2098
2099 ///
2100 /// HMAT types
2101 ///
2102 #define EFI_ACPI_6_4_HMAT_TYPE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES 0x00
2103 #define EFI_ACPI_6_4_HMAT_TYPE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO 0x01
2104 #define EFI_ACPI_6_4_HMAT_TYPE_MEMORY_SIDE_CACHE_INFO 0x02
2105
2106 ///
2107 /// HMAT Structure Header
2108 ///
2109 typedef struct {
2110 UINT16 Type;
2111 UINT8 Reserved[2];
2112 UINT32 Length;
2113 } EFI_ACPI_6_4_HMAT_STRUCTURE_HEADER;
2114
2115 ///
2116 /// Memory Proximity Domain Attributes Structure flags
2117 ///
2118 typedef struct {
2119 UINT16 InitiatorProximityDomainValid:1;
2120 UINT16 Reserved:15;
2121 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS;
2122
2123 ///
2124 /// Memory Proximity Domain Attributes Structure
2125 ///
2126 typedef struct {
2127 UINT16 Type;
2128 UINT8 Reserved[2];
2129 UINT32 Length;
2130 EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES_FLAGS Flags;
2131 UINT8 Reserved1[2];
2132 UINT32 InitiatorProximityDomain;
2133 UINT32 MemoryProximityDomain;
2134 UINT8 Reserved2[20];
2135 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_PROXIMITY_DOMAIN_ATTRIBUTES;
2136
2137 ///
2138 /// System Locality Latency and Bandwidth Information Structure flags
2139 ///
2140 typedef struct {
2141 UINT8 MemoryHierarchy:4;
2142 UINT8 AccessAttributes:2;
2143 UINT8 Reserved:2;
2144 } EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS;
2145
2146 ///
2147 /// System Locality Latency and Bandwidth Information Structure
2148 ///
2149 typedef struct {
2150 UINT16 Type;
2151 UINT8 Reserved[2];
2152 UINT32 Length;
2153 EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO_FLAGS Flags;
2154 UINT8 DataType;
2155 UINT8 MinTransferSize;
2156 UINT8 Reserved1;
2157 UINT32 NumberOfInitiatorProximityDomains;
2158 UINT32 NumberOfTargetProximityDomains;
2159 UINT8 Reserved2[4];
2160 UINT64 EntryBaseUnit;
2161 } EFI_ACPI_6_4_HMAT_STRUCTURE_SYSTEM_LOCALITY_LATENCY_AND_BANDWIDTH_INFO;
2162
2163 ///
2164 /// Memory Side Cache Information Structure cache attributes
2165 ///
2166 typedef struct {
2167 UINT32 TotalCacheLevels:4;
2168 UINT32 CacheLevel:4;
2169 UINT32 CacheAssociativity:4;
2170 UINT32 WritePolicy:4;
2171 UINT32 CacheLineSize:16;
2172 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES;
2173
2174 ///
2175 /// Memory Side Cache Information Structure
2176 ///
2177 typedef struct {
2178 UINT16 Type;
2179 UINT8 Reserved[2];
2180 UINT32 Length;
2181 UINT32 MemoryProximityDomain;
2182 UINT8 Reserved1[4];
2183 UINT64 MemorySideCacheSize;
2184 EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO_CACHE_ATTRIBUTES CacheAttributes;
2185 UINT8 Reserved2[2];
2186 UINT16 NumberOfSmbiosHandles;
2187 } EFI_ACPI_6_4_HMAT_STRUCTURE_MEMORY_SIDE_CACHE_INFO;
2188
2189 ///
2190 /// ERST - Error Record Serialization Table
2191 ///
2192 typedef struct {
2193 EFI_ACPI_DESCRIPTION_HEADER Header;
2194 UINT32 SerializationHeaderSize;
2195 UINT8 Reserved0[4];
2196 UINT32 InstructionEntryCount;
2197 } EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_HEADER;
2198
2199 ///
2200 /// ERST Version (as defined in ACPI 6.4 spec.)
2201 ///
2202 #define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
2203
2204 ///
2205 /// ERST Serialization Actions
2206 ///
2207 #define EFI_ACPI_6_4_ERST_BEGIN_WRITE_OPERATION 0x00
2208 #define EFI_ACPI_6_4_ERST_BEGIN_READ_OPERATION 0x01
2209 #define EFI_ACPI_6_4_ERST_BEGIN_CLEAR_OPERATION 0x02
2210 #define EFI_ACPI_6_4_ERST_END_OPERATION 0x03
2211 #define EFI_ACPI_6_4_ERST_SET_RECORD_OFFSET 0x04
2212 #define EFI_ACPI_6_4_ERST_EXECUTE_OPERATION 0x05
2213 #define EFI_ACPI_6_4_ERST_CHECK_BUSY_STATUS 0x06
2214 #define EFI_ACPI_6_4_ERST_GET_COMMAND_STATUS 0x07
2215 #define EFI_ACPI_6_4_ERST_GET_RECORD_IDENTIFIER 0x08
2216 #define EFI_ACPI_6_4_ERST_SET_RECORD_IDENTIFIER 0x09
2217 #define EFI_ACPI_6_4_ERST_GET_RECORD_COUNT 0x0A
2218 #define EFI_ACPI_6_4_ERST_BEGIN_DUMMY_WRITE_OPERATION 0x0B
2219 #define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE 0x0D
2220 #define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH 0x0E
2221 #define EFI_ACPI_6_4_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES 0x0F
2222 #define EFI_ACPI_6_4_ERST_GET_EXECUTE_OPERATION_TIMINGS 0x10
2223
2224 ///
2225 /// ERST Action Command Status
2226 ///
2227 #define EFI_ACPI_6_4_ERST_STATUS_SUCCESS 0x00
2228 #define EFI_ACPI_6_4_ERST_STATUS_NOT_ENOUGH_SPACE 0x01
2229 #define EFI_ACPI_6_4_ERST_STATUS_HARDWARE_NOT_AVAILABLE 0x02
2230 #define EFI_ACPI_6_4_ERST_STATUS_FAILED 0x03
2231 #define EFI_ACPI_6_4_ERST_STATUS_RECORD_STORE_EMPTY 0x04
2232 #define EFI_ACPI_6_4_ERST_STATUS_RECORD_NOT_FOUND 0x05
2233
2234 ///
2235 /// ERST Serialization Instructions
2236 ///
2237 #define EFI_ACPI_6_4_ERST_READ_REGISTER 0x00
2238 #define EFI_ACPI_6_4_ERST_READ_REGISTER_VALUE 0x01
2239 #define EFI_ACPI_6_4_ERST_WRITE_REGISTER 0x02
2240 #define EFI_ACPI_6_4_ERST_WRITE_REGISTER_VALUE 0x03
2241 #define EFI_ACPI_6_4_ERST_NOOP 0x04
2242 #define EFI_ACPI_6_4_ERST_LOAD_VAR1 0x05
2243 #define EFI_ACPI_6_4_ERST_LOAD_VAR2 0x06
2244 #define EFI_ACPI_6_4_ERST_STORE_VAR1 0x07
2245 #define EFI_ACPI_6_4_ERST_ADD 0x08
2246 #define EFI_ACPI_6_4_ERST_SUBTRACT 0x09
2247 #define EFI_ACPI_6_4_ERST_ADD_VALUE 0x0A
2248 #define EFI_ACPI_6_4_ERST_SUBTRACT_VALUE 0x0B
2249 #define EFI_ACPI_6_4_ERST_STALL 0x0C
2250 #define EFI_ACPI_6_4_ERST_STALL_WHILE_TRUE 0x0D
2251 #define EFI_ACPI_6_4_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE 0x0E
2252 #define EFI_ACPI_6_4_ERST_GOTO 0x0F
2253 #define EFI_ACPI_6_4_ERST_SET_SRC_ADDRESS_BASE 0x10
2254 #define EFI_ACPI_6_4_ERST_SET_DST_ADDRESS_BASE 0x11
2255 #define EFI_ACPI_6_4_ERST_MOVE_DATA 0x12
2256
2257 ///
2258 /// ERST Instruction Flags
2259 ///
2260 #define EFI_ACPI_6_4_ERST_PRESERVE_REGISTER 0x01
2261
2262 ///
2263 /// ERST Serialization Instruction Entry
2264 ///
2265 typedef struct {
2266 UINT8 SerializationAction;
2267 UINT8 Instruction;
2268 UINT8 Flags;
2269 UINT8 Reserved0;
2270 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE RegisterRegion;
2271 UINT64 Value;
2272 UINT64 Mask;
2273 } EFI_ACPI_6_4_ERST_SERIALIZATION_INSTRUCTION_ENTRY;
2274
2275 ///
2276 /// EINJ - Error Injection Table
2277 ///
2278 typedef struct {
2279 EFI_ACPI_DESCRIPTION_HEADER Header;
2280 UINT32 InjectionHeaderSize;
2281 UINT8 InjectionFlags;
2282 UINT8 Reserved0[3];
2283 UINT32 InjectionEntryCount;
2284 } EFI_ACPI_6_4_ERROR_INJECTION_TABLE_HEADER;
2285
2286 ///
2287 /// EINJ Version (as defined in ACPI 6.4 spec.)
2288 ///
2289 #define EFI_ACPI_6_4_ERROR_INJECTION_TABLE_REVISION 0x01
2290
2291 ///
2292 /// EINJ Error Injection Actions
2293 ///
2294 #define EFI_ACPI_6_4_EINJ_BEGIN_INJECTION_OPERATION 0x00
2295 #define EFI_ACPI_6_4_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE 0x01
2296 #define EFI_ACPI_6_4_EINJ_SET_ERROR_TYPE 0x02
2297 #define EFI_ACPI_6_4_EINJ_GET_ERROR_TYPE 0x03
2298 #define EFI_ACPI_6_4_EINJ_END_OPERATION 0x04
2299 #define EFI_ACPI_6_4_EINJ_EXECUTE_OPERATION 0x05
2300 #define EFI_ACPI_6_4_EINJ_CHECK_BUSY_STATUS 0x06
2301 #define EFI_ACPI_6_4_EINJ_GET_COMMAND_STATUS 0x07
2302 #define EFI_ACPI_6_4_EINJ_TRIGGER_ERROR 0xFF
2303
2304 ///
2305 /// EINJ Action Command Status
2306 ///
2307 #define EFI_ACPI_6_4_EINJ_STATUS_SUCCESS 0x00
2308 #define EFI_ACPI_6_4_EINJ_STATUS_UNKNOWN_FAILURE 0x01
2309 #define EFI_ACPI_6_4_EINJ_STATUS_INVALID_ACCESS 0x02
2310
2311 ///
2312 /// EINJ Error Type Definition
2313 ///
2314 #define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_CORRECTABLE (1 << 0)
2315 #define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL (1 << 1)
2316 #define EFI_ACPI_6_4_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL (1 << 2)
2317 #define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_CORRECTABLE (1 << 3)
2318 #define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL (1 << 4)
2319 #define EFI_ACPI_6_4_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL (1 << 5)
2320 #define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE (1 << 6)
2321 #define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL (1 << 7)
2322 #define EFI_ACPI_6_4_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL (1 << 8)
2323 #define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_CORRECTABLE (1 << 9)
2324 #define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL (1 << 10)
2325 #define EFI_ACPI_6_4_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL (1 << 11)
2326
2327 ///
2328 /// EINJ Injection Instructions
2329 ///
2330 #define EFI_ACPI_6_4_EINJ_READ_REGISTER 0x00
2331 #define EFI_ACPI_6_4_EINJ_READ_REGISTER_VALUE 0x01
2332 #define EFI_ACPI_6_4_EINJ_WRITE_REGISTER 0x02
2333 #define EFI_ACPI_6_4_EINJ_WRITE_REGISTER_VALUE 0x03
2334 #define EFI_ACPI_6_4_EINJ_NOOP 0x04
2335
2336 ///
2337 /// EINJ Instruction Flags
2338 ///
2339 #define EFI_ACPI_6_4_EINJ_PRESERVE_REGISTER 0x01
2340
2341 ///
2342 /// EINJ Injection Instruction Entry
2343 ///
2344 typedef struct {
2345 UINT8 InjectionAction;
2346 UINT8 Instruction;
2347 UINT8 Flags;
2348 UINT8 Reserved0;
2349 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE RegisterRegion;
2350 UINT64 Value;
2351 UINT64 Mask;
2352 } EFI_ACPI_6_4_EINJ_INJECTION_INSTRUCTION_ENTRY;
2353
2354 ///
2355 /// EINJ Trigger Action Table
2356 ///
2357 typedef struct {
2358 UINT32 HeaderSize;
2359 UINT32 Revision;
2360 UINT32 TableSize;
2361 UINT32 EntryCount;
2362 } EFI_ACPI_6_4_EINJ_TRIGGER_ACTION_TABLE;
2363
2364 ///
2365 /// Platform Communications Channel Table (PCCT)
2366 ///
2367 typedef struct {
2368 EFI_ACPI_DESCRIPTION_HEADER Header;
2369 UINT32 Flags;
2370 UINT64 Reserved;
2371 } EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER;
2372
2373 ///
2374 /// PCCT Version (as defined in ACPI 6.4 spec.)
2375 ///
2376 #define EFI_ACPI_6_4_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x02
2377
2378 ///
2379 /// PCCT Global Flags
2380 ///
2381 #define EFI_ACPI_6_4_PCCT_FLAGS_PLATFORM_INTERRUPT BIT0
2382
2383 //
2384 // PCCT Subspace type
2385 //
2386 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_GENERIC 0x00
2387 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_1_HW_REDUCED_COMMUNICATIONS 0x01
2388 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_2_HW_REDUCED_COMMUNICATIONS 0x02
2389 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_3_EXTENDED_PCC 0x03
2390 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_4_EXTENDED_PCC 0x04
2391 #define EFI_ACPI_6_4_PCCT_SUBSPACE_TYPE_5_HW_REGISTERS_COMMUNICATIONS 0x05
2392
2393 ///
2394 /// PCC Subspace Structure Header
2395 ///
2396 typedef struct {
2397 UINT8 Type;
2398 UINT8 Length;
2399 } EFI_ACPI_6_4_PCCT_SUBSPACE_HEADER;
2400
2401 ///
2402 /// Generic Communications Subspace Structure
2403 ///
2404 typedef struct {
2405 UINT8 Type;
2406 UINT8 Length;
2407 UINT8 Reserved[6];
2408 UINT64 BaseAddress;
2409 UINT64 AddressLength;
2410 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister;
2411 UINT64 DoorbellPreserve;
2412 UINT64 DoorbellWrite;
2413 UINT32 NominalLatency;
2414 UINT32 MaximumPeriodicAccessRate;
2415 UINT16 MinimumRequestTurnaroundTime;
2416 } EFI_ACPI_6_4_PCCT_SUBSPACE_GENERIC;
2417
2418 ///
2419 /// Generic Communications Channel Shared Memory Region
2420 ///
2421
2422 typedef struct {
2423 UINT8 Command;
2424 UINT8 Reserved:7;
2425 UINT8 NotifyOnCompletion:1;
2426 } EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND;
2427
2428 typedef struct {
2429 UINT8 CommandComplete:1;
2430 UINT8 PlatformInterrupt:1;
2431 UINT8 Error:1;
2432 UINT8 PlatformNotification:1;
2433 UINT8 Reserved:4;
2434 UINT8 Reserved1;
2435 } EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS;
2436
2437 typedef struct {
2438 UINT32 Signature;
2439 EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND Command;
2440 EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS Status;
2441 } EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER;
2442
2443 #define EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_POLARITY BIT0
2444 #define EFI_ACPI_6_4_PCCT_SUBSPACE_PLATFORM_INTERRUPT_FLAGS_MODE BIT1
2445
2446 ///
2447 /// Type 1 HW-Reduced Communications Subspace Structure
2448 ///
2449 typedef struct {
2450 UINT8 Type;
2451 UINT8 Length;
2452 UINT32 PlatformInterrupt;
2453 UINT8 PlatformInterruptFlags;
2454 UINT8 Reserved;
2455 UINT64 BaseAddress;
2456 UINT64 AddressLength;
2457 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister;
2458 UINT64 DoorbellPreserve;
2459 UINT64 DoorbellWrite;
2460 UINT32 NominalLatency;
2461 UINT32 MaximumPeriodicAccessRate;
2462 UINT16 MinimumRequestTurnaroundTime;
2463 } EFI_ACPI_6_4_PCCT_SUBSPACE_1_HW_REDUCED_COMMUNICATIONS;
2464
2465 ///
2466 /// Type 2 HW-Reduced Communications Subspace Structure
2467 ///
2468 typedef struct {
2469 UINT8 Type;
2470 UINT8 Length;
2471 UINT32 PlatformInterrupt;
2472 UINT8 PlatformInterruptFlags;
2473 UINT8 Reserved;
2474 UINT64 BaseAddress;
2475 UINT64 AddressLength;
2476 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister;
2477 UINT64 DoorbellPreserve;
2478 UINT64 DoorbellWrite;
2479 UINT32 NominalLatency;
2480 UINT32 MaximumPeriodicAccessRate;
2481 UINT16 MinimumRequestTurnaroundTime;
2482 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister;
2483 UINT64 PlatformInterruptAckPreserve;
2484 UINT64 PlatformInterruptAckWrite;
2485 } EFI_ACPI_6_4_PCCT_SUBSPACE_2_HW_REDUCED_COMMUNICATIONS;
2486
2487 ///
2488 /// Type 3 Extended PCC Subspace Structure
2489 ///
2490 typedef struct {
2491 UINT8 Type;
2492 UINT8 Length;
2493 UINT32 PlatformInterrupt;
2494 UINT8 PlatformInterruptFlags;
2495 UINT8 Reserved;
2496 UINT64 BaseAddress;
2497 UINT32 AddressLength;
2498 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister;
2499 UINT64 DoorbellPreserve;
2500 UINT64 DoorbellWrite;
2501 UINT32 NominalLatency;
2502 UINT32 MaximumPeriodicAccessRate;
2503 UINT32 MinimumRequestTurnaroundTime;
2504 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE PlatformInterruptAckRegister;
2505 UINT64 PlatformInterruptAckPreserve;
2506 UINT64 PlatformInterruptAckSet;
2507 UINT8 Reserved1[8];
2508 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister;
2509 UINT64 CommandCompleteCheckMask;
2510 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteUpdateRegister;
2511 UINT64 CommandCompleteUpdatePreserve;
2512 UINT64 CommandCompleteUpdateSet;
2513 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister;
2514 UINT64 ErrorStatusMask;
2515 } EFI_ACPI_6_4_PCCT_SUBSPACE_3_EXTENDED_PCC;
2516
2517 ///
2518 /// Type 4 Extended PCC Subspace Structure
2519 ///
2520 typedef EFI_ACPI_6_4_PCCT_SUBSPACE_3_EXTENDED_PCC EFI_ACPI_6_4_PCCT_SUBSPACE_4_EXTENDED_PCC;
2521
2522 #define EFI_ACPI_6_4_PCCT_MASTER_SLAVE_COMMUNICATIONS_CHANNEL_FLAGS_NOTIFY_ON_COMPLETION BIT0
2523
2524 typedef struct {
2525 UINT32 Signature;
2526 UINT32 Flags;
2527 UINT32 Length;
2528 UINT32 Command;
2529 } EFI_ACPI_6_4_PCCT_EXTENDED_PCC_SHARED_MEMORY_REGION_HEADER;
2530
2531 ///
2532 /// Type 5 HW Registers based Communications Subspace Structure
2533 ///
2534 typedef struct {
2535 UINT8 Type;
2536 UINT8 Length;
2537 UINT16 Version;
2538 UINT64 BaseAddress;
2539 UINT64 SharedMemoryRangeLength;
2540 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE DoorbellRegister;
2541 UINT64 DoorbellPreserve;
2542 UINT64 DoorbellWrite;
2543 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE CommandCompleteCheckRegister;
2544 UINT64 CommandCompleteCheckMask;
2545 EFI_ACPI_6_4_GENERIC_ADDRESS_STRUCTURE ErrorStatusRegister;
2546 UINT64 ErrorStatusMask;
2547 UINT32 NominalLatency;
2548 UINT32 MinimumRequestTurnaroundTime;
2549 } EFI_ACPI_6_4_PCCT_SUBSPACE_5_HW_REGISTERS_COMMUNICATIONS;
2550
2551 ///
2552 /// Reduced PCC Subspace Shared Memory Region
2553 ///
2554 typedef struct {
2555 UINT32 Signature;
2556 //UINT8 CommunicationSubspace[];
2557 } EFI_6_4_PCCT_REDUCED_PCC_SUBSPACE_SHARED_MEMORY_REGION;
2558
2559 ///
2560 /// Platform Debug Trigger Table (PDTT)
2561 ///
2562 typedef struct {
2563 EFI_ACPI_DESCRIPTION_HEADER Header;
2564 UINT8 TriggerCount;
2565 UINT8 Reserved[3];
2566 UINT32 TriggerIdentifierArrayOffset;
2567 } EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_HEADER;
2568
2569 ///
2570 /// PDTT Revision (as defined in ACPI 6.4 spec.)
2571 ///
2572 #define EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_REVISION 0x00
2573
2574 ///
2575 /// PDTT Platform Communication Channel Identifier Structure
2576 ///
2577 typedef struct {
2578 UINT16 SubChannelIdentifer:8;
2579 UINT16 Runtime:1;
2580 UINT16 WaitForCompletion:1;
2581 UINT16 TriggerOrder:1;
2582 UINT16 Reserved:5;
2583 } EFI_ACPI_6_4_PDTT_PCC_IDENTIFIER;
2584
2585 ///
2586 /// PCC Commands Codes used by Platform Debug Trigger Table
2587 ///
2588 #define EFI_ACPI_6_4_PDTT_PCC_COMMAND_DOORBELL_ONLY 0x00
2589 #define EFI_ACPI_6_4_PDTT_PCC_COMMAND_VENDOR_SPECIFIC 0x01
2590
2591 ///
2592 /// PDTT Platform Communication Channel
2593 ///
2594 typedef EFI_ACPI_6_4_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER EFI_ACPI_6_4_PDTT_PCC;
2595
2596 ///
2597 /// Processor Properties Topology Table (PPTT)
2598 ///
2599 typedef struct {
2600 EFI_ACPI_DESCRIPTION_HEADER Header;
2601 } EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_HEADER;
2602
2603 ///
2604 /// PPTT Revision (as defined in ACPI 6.4 spec.)
2605 ///
2606 #define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_REVISION 0x02
2607
2608 ///
2609 /// PPTT types
2610 ///
2611 #define EFI_ACPI_6_4_PPTT_TYPE_PROCESSOR 0x00
2612 #define EFI_ACPI_6_4_PPTT_TYPE_CACHE 0x01
2613 #define EFI_ACPI_6_4_PPTT_TYPE_ID 0x02
2614
2615 ///
2616 /// PPTT Structure Header
2617 ///
2618 typedef struct {
2619 UINT8 Type;
2620 UINT8 Length;
2621 UINT8 Reserved[2];
2622 } EFI_ACPI_6_4_PPTT_STRUCTURE_HEADER;
2623
2624 ///
2625 /// For PPTT struct processor flags
2626 ///
2627 #define EFI_ACPI_6_4_PPTT_PACKAGE_NOT_PHYSICAL 0x0
2628 #define EFI_ACPI_6_4_PPTT_PACKAGE_PHYSICAL 0x1
2629 #define EFI_ACPI_6_4_PPTT_PROCESSOR_ID_INVALID 0x0
2630 #define EFI_ACPI_6_4_PPTT_PROCESSOR_ID_VALID 0x1
2631 #define EFI_ACPI_6_4_PPTT_PROCESSOR_IS_NOT_THREAD 0x0
2632 #define EFI_ACPI_6_4_PPTT_PROCESSOR_IS_THREAD 0x1
2633 #define EFI_ACPI_6_4_PPTT_NODE_IS_NOT_LEAF 0x0
2634 #define EFI_ACPI_6_4_PPTT_NODE_IS_LEAF 0x1
2635 #define EFI_ACPI_6_4_PPTT_IMPLEMENTATION_NOT_IDENTICAL 0x0
2636 #define EFI_ACPI_6_4_PPTT_IMPLEMENTATION_IDENTICAL 0x1
2637
2638 ///
2639 /// Processor hierarchy node structure flags
2640 ///
2641 typedef struct {
2642 UINT32 PhysicalPackage:1;
2643 UINT32 AcpiProcessorIdValid:1;
2644 UINT32 ProcessorIsAThread:1;
2645 UINT32 NodeIsALeaf:1;
2646 UINT32 IdenticalImplementation:1;
2647 UINT32 Reserved:27;
2648 } EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR_FLAGS;
2649
2650 ///
2651 /// Processor hierarchy node structure
2652 ///
2653 typedef struct {
2654 UINT8 Type;
2655 UINT8 Length;
2656 UINT8 Reserved[2];
2657 EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR_FLAGS Flags;
2658 UINT32 Parent;
2659 UINT32 AcpiProcessorId;
2660 UINT32 NumberOfPrivateResources;
2661 } EFI_ACPI_6_4_PPTT_STRUCTURE_PROCESSOR;
2662
2663 ///
2664 /// For PPTT struct cache flags
2665 ///
2666 #define EFI_ACPI_6_4_PPTT_CACHE_SIZE_INVALID 0x0
2667 #define EFI_ACPI_6_4_PPTT_CACHE_SIZE_VALID 0x1
2668 #define EFI_ACPI_6_4_PPTT_NUMBER_OF_SETS_INVALID 0x0
2669 #define EFI_ACPI_6_4_PPTT_NUMBER_OF_SETS_VALID 0x1
2670 #define EFI_ACPI_6_4_PPTT_ASSOCIATIVITY_INVALID 0x0
2671 #define EFI_ACPI_6_4_PPTT_ASSOCIATIVITY_VALID 0x1
2672 #define EFI_ACPI_6_4_PPTT_ALLOCATION_TYPE_INVALID 0x0
2673 #define EFI_ACPI_6_4_PPTT_ALLOCATION_TYPE_VALID 0x1
2674 #define EFI_ACPI_6_4_PPTT_CACHE_TYPE_INVALID 0x0
2675 #define EFI_ACPI_6_4_PPTT_CACHE_TYPE_VALID 0x1
2676 #define EFI_ACPI_6_4_PPTT_WRITE_POLICY_INVALID 0x0
2677 #define EFI_ACPI_6_4_PPTT_WRITE_POLICY_VALID 0x1
2678 #define EFI_ACPI_6_4_PPTT_LINE_SIZE_INVALID 0x0
2679 #define EFI_ACPI_6_4_PPTT_LINE_SIZE_VALID 0x1
2680
2681 ///
2682 /// Cache Type Structure flags
2683 ///
2684 typedef struct {
2685 UINT32 SizePropertyValid:1;
2686 UINT32 NumberOfSetsValid:1;
2687 UINT32 AssociativityValid:1;
2688 UINT32 AllocationTypeValid:1;
2689 UINT32 CacheTypeValid:1;
2690 UINT32 WritePolicyValid:1;
2691 UINT32 LineSizeValid:1;
2692 UINT32 Reserved:25;
2693 } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS;
2694
2695 ///
2696 /// For cache attributes
2697 ///
2698 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_READ 0x0
2699 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_WRITE 0x1
2700 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_ALLOCATION_READ_WRITE 0x2
2701 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_DATA 0x0
2702 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_INSTRUCTION 0x1
2703 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_CACHE_TYPE_UNIFIED 0x2
2704 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_BACK 0x0
2705 #define EFI_ACPI_6_4_CACHE_ATTRIBUTES_WRITE_POLICY_WRITE_THROUGH 0x1
2706
2707 ///
2708 /// Cache Type Structure cache attributes
2709 ///
2710 typedef struct {
2711 UINT8 AllocationType:2;
2712 UINT8 CacheType:2;
2713 UINT8 WritePolicy:1;
2714 UINT8 Reserved:3;
2715 } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_ATTRIBUTES;
2716
2717 ///
2718 /// Cache Type Structure
2719 ///
2720 typedef struct {
2721 UINT8 Type;
2722 UINT8 Length;
2723 UINT8 Reserved[2];
2724 EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_FLAGS Flags;
2725 UINT32 NextLevelOfCache;
2726 UINT32 Size;
2727 UINT32 NumberOfSets;
2728 UINT8 Associativity;
2729 EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE_ATTRIBUTES Attributes;
2730 UINT16 LineSize;
2731 } EFI_ACPI_6_4_PPTT_STRUCTURE_CACHE;
2732
2733 ///
2734 /// ID structure
2735 ///
2736 typedef struct {
2737 UINT8 Type;
2738 UINT8 Length;
2739 UINT8 Reserved[2];
2740 UINT32 VendorId;
2741 UINT64 Level1Id;
2742 UINT64 Level2Id;
2743 UINT16 MajorRev;
2744 UINT16 MinorRev;
2745 UINT16 SpinRev;
2746 } EFI_ACPI_6_4_PPTT_STRUCTURE_ID;
2747
2748 ///
2749 /// Platform Health Assessment Table (PHAT) Format
2750 ///
2751 typedef struct {
2752 EFI_ACPI_DESCRIPTION_HEADER Header;
2753 //UINT8 PlatformTelemetryRecords[];
2754 } EFI_ACPI_6_4_PLATFORM_HEALTH_ASSESSMENT_TABLE;
2755
2756 #define EFI_ACPI_6_4_PLATFORM_HEALTH_ASSESSMENT_TABLE_REVISION 0x01
2757
2758 ///
2759 /// PHAT Record Format
2760 ///
2761 typedef struct {
2762 UINT16 PlatformHealthAssessmentRecordType;
2763 UINT16 RecordLength;
2764 UINT8 Revision;
2765 //UINT8 Data[];
2766 } EFI_ACPI_6_4_PHAT_RECORD;
2767
2768 ///
2769 /// PHAT Record Type Format
2770 ///
2771 #define EFI_ACPI_6_4_PHAT_RECORD_TYPE_FIRMWARE_VERSION_DATA_RECORD 0x0000
2772 #define EFI_ACPI_6_4_PHAT_RECORD_TYPE_FIRMWARE_HEALTH_DATA_RECORD 0x0001
2773
2774 ///
2775 /// PHAT Version Element
2776 ///
2777 typedef struct {
2778 GUID ComponentId;
2779 UINT64 VersionValue;
2780 UINT32 ProducerId;
2781 } EFI_ACPI_6_4_PHAT_VERSION_ELEMENT;
2782
2783 ///
2784 /// PHAT Firmware Version Data Record
2785 ///
2786 typedef struct {
2787 UINT16 PlatformRecordType;
2788 UINT16 RecordLength;
2789 UINT8 Revision;
2790 UINT8 Reserved[3];
2791 UINT32 RecordCount;
2792 //UINT8 PhatVersionElement[];
2793 } EFI_ACPI_6_4_PHAT_FIRMWARE_VERISON_DATA_RECORD;
2794
2795 #define EFI_ACPI_6_4_PHAT_FIRMWARE_VERSION_DATA_RECORD_REVISION 0x01
2796
2797 ///
2798 /// Firmware Health Data Record Structure
2799 ///
2800 typedef struct {
2801 UINT16 PlatformRecordType;
2802 UINT16 RecordLength;
2803 UINT8 Revision;
2804 UINT16 Reserved;
2805 UINT8 AmHealthy;
2806 GUID DeviceSignature;
2807 UINT32 DeviceSpecificDataOffset;
2808 //UINT8 DevicePath[];
2809 //UINT8 DeviceSpecificData[];
2810 } EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_STRUCTURE;
2811
2812 #define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_REVISION 0x01
2813
2814 ///
2815 /// Firmware Health Data Record device health state
2816 ///
2817 #define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_ERRORS_FOUND 0x00
2818 #define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_NO_ERRORS_FOUND 0x01
2819 #define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_UNKNOWN 0x02
2820 #define EFI_ACPI_6_4_PHAT_FIRMWARE_HEALTH_DATA_RECORD_ADVISORY 0x03
2821
2822 //
2823 // Known table signatures
2824 //
2825
2826 ///
2827 /// "RSD PTR " Root System Description Pointer
2828 ///
2829 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
2830
2831 ///
2832 /// "APIC" Multiple APIC Description Table
2833 ///
2834 #define EFI_ACPI_6_4_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('A', 'P', 'I', 'C')
2835
2836 ///
2837 /// "BERT" Boot Error Record Table
2838 ///
2839 #define EFI_ACPI_6_4_BOOT_ERROR_RECORD_TABLE_SIGNATURE SIGNATURE_32('B', 'E', 'R', 'T')
2840
2841 ///
2842 /// "BGRT" Boot Graphics Resource Table
2843 ///
2844 #define EFI_ACPI_6_4_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('B', 'G', 'R', 'T')
2845
2846 ///
2847 /// "CDIT" Component Distance Information Table
2848 ///
2849 #define EFI_ACPI_6_4_COMPONENT_DISTANCE_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('C', 'D', 'I', 'T')
2850
2851 ///
2852 /// "CPEP" Corrected Platform Error Polling Table
2853 ///
2854 #define EFI_ACPI_6_4_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE SIGNATURE_32('C', 'P', 'E', 'P')
2855
2856 ///
2857 /// "CRAT" Component Resource Attribute Table
2858 ///
2859 #define EFI_ACPI_6_4_COMPONENT_RESOURCE_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('C', 'R', 'A', 'T')
2860
2861 ///
2862 /// "DSDT" Differentiated System Description Table
2863 ///
2864 #define EFI_ACPI_6_4_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('D', 'S', 'D', 'T')
2865
2866 ///
2867 /// "ECDT" Embedded Controller Boot Resources Table
2868 ///
2869 #define EFI_ACPI_6_4_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE SIGNATURE_32('E', 'C', 'D', 'T')
2870
2871 ///
2872 /// "EINJ" Error Injection Table
2873 ///
2874 #define EFI_ACPI_6_4_ERROR_INJECTION_TABLE_SIGNATURE SIGNATURE_32('E', 'I', 'N', 'J')
2875
2876 ///
2877 /// "ERST" Error Record Serialization Table
2878 ///
2879 #define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE SIGNATURE_32('E', 'R', 'S', 'T')
2880
2881 ///
2882 /// "FACP" Fixed ACPI Description Table
2883 ///
2884 #define EFI_ACPI_6_4_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'P')
2885
2886 ///
2887 /// "FACS" Firmware ACPI Control Structure
2888 ///
2889 #define EFI_ACPI_6_4_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE SIGNATURE_32('F', 'A', 'C', 'S')
2890
2891 ///
2892 /// "FPDT" Firmware Performance Data Table
2893 ///
2894 #define EFI_ACPI_6_4_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE SIGNATURE_32('F', 'P', 'D', 'T')
2895
2896 ///
2897 /// "GTDT" Generic Timer Description Table
2898 ///
2899 #define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('G', 'T', 'D', 'T')
2900
2901 ///
2902 /// "HEST" Hardware Error Source Table
2903 ///
2904 #define EFI_ACPI_6_4_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE SIGNATURE_32('H', 'E', 'S', 'T')
2905
2906 ///
2907 /// "HMAT" Heterogeneous Memory Attribute Table
2908 ///
2909 #define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE SIGNATURE_32('H', 'M', 'A', 'T')
2910
2911 ///
2912 /// "MPST" Memory Power State Table
2913 ///
2914 #define EFI_ACPI_6_4_MEMORY_POWER_STATE_TABLE_SIGNATURE SIGNATURE_32('M', 'P', 'S', 'T')
2915
2916 ///
2917 /// "MSCT" Maximum System Characteristics Table
2918 ///
2919 #define EFI_ACPI_6_4_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'C', 'T')
2920
2921 ///
2922 /// "NFIT" NVDIMM Firmware Interface Table
2923 ///
2924 #define EFI_ACPI_6_4_NVDIMM_FIRMWARE_INTERFACE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('N', 'F', 'I', 'T')
2925
2926 ///
2927 /// "PDTT" Platform Debug Trigger Table
2928 ///
2929 #define EFI_ACPI_6_4_PLATFORM_DEBUG_TRIGGER_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'D', 'T', 'T')
2930
2931 ///
2932 /// "PMTT" Platform Memory Topology Table
2933 ///
2934 #define EFI_ACPI_6_4_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE SIGNATURE_32('P', 'M', 'T', 'T')
2935
2936 ///
2937 /// "PPTT" Processor Properties Topology Table
2938 ///
2939 #define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('P', 'P', 'T', 'T')
2940
2941 ///
2942 /// "PSDT" Persistent System Description Table
2943 ///
2944 #define EFI_ACPI_6_4_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('P', 'S', 'D', 'T')
2945
2946 ///
2947 /// "RASF" ACPI RAS Feature Table
2948 ///
2949 #define EFI_ACPI_6_4_ACPI_RAS_FEATURE_TABLE_SIGNATURE SIGNATURE_32('R', 'A', 'S', 'F')
2950
2951 ///
2952 /// "RSDT" Root System Description Table
2953 ///
2954 #define EFI_ACPI_6_4_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('R', 'S', 'D', 'T')
2955
2956 ///
2957 /// "SBST" Smart Battery Specification Table
2958 ///
2959 #define EFI_ACPI_6_4_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE SIGNATURE_32('S', 'B', 'S', 'T')
2960
2961 ///
2962 /// "SDEV" Secure DEVices Table
2963 ///
2964 #define EFI_ACPI_6_4_SECURE_DEVICES_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'V')
2965
2966 ///
2967 /// "SLIT" System Locality Information Table
2968 ///
2969 #define EFI_ACPI_6_4_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'T')
2970
2971 ///
2972 /// "SRAT" System Resource Affinity Table
2973 ///
2974 #define EFI_ACPI_6_4_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE SIGNATURE_32('S', 'R', 'A', 'T')
2975
2976 ///
2977 /// "SSDT" Secondary System Description Table
2978 ///
2979 #define EFI_ACPI_6_4_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('S', 'S', 'D', 'T')
2980
2981 ///
2982 /// "XSDT" Extended System Description Table
2983 ///
2984 #define EFI_ACPI_6_4_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('X', 'S', 'D', 'T')
2985
2986 ///
2987 /// "BOOT" MS Simple Boot Spec
2988 ///
2989 #define EFI_ACPI_6_4_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE SIGNATURE_32('B', 'O', 'O', 'T')
2990
2991 ///
2992 /// "CSRT" MS Core System Resource Table
2993 ///
2994 #define EFI_ACPI_6_4_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('C', 'S', 'R', 'T')
2995
2996 ///
2997 /// "DBG2" MS Debug Port 2 Spec
2998 ///
2999 #define EFI_ACPI_6_4_DEBUG_PORT_2_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', '2')
3000
3001 ///
3002 /// "DBGP" MS Debug Port Spec
3003 ///
3004 #define EFI_ACPI_6_4_DEBUG_PORT_TABLE_SIGNATURE SIGNATURE_32('D', 'B', 'G', 'P')
3005
3006 ///
3007 /// "DMAR" DMA Remapping Table
3008 ///
3009 #define EFI_ACPI_6_4_DMA_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('D', 'M', 'A', 'R')
3010
3011 ///
3012 /// "DRTM" Dynamic Root of Trust for Measurement Table
3013 ///
3014 #define EFI_ACPI_6_4_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE SIGNATURE_32('D', 'R', 'T', 'M')
3015
3016 ///
3017 /// "ETDT" Event Timer Description Table
3018 ///
3019 #define EFI_ACPI_6_4_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('E', 'T', 'D', 'T')
3020
3021 ///
3022 /// "HPET" IA-PC High Precision Event Timer Table
3023 ///
3024 #define EFI_ACPI_6_4_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE SIGNATURE_32('H', 'P', 'E', 'T')
3025
3026 ///
3027 /// "iBFT" iSCSI Boot Firmware Table
3028 ///
3029 #define EFI_ACPI_6_4_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE SIGNATURE_32('i', 'B', 'F', 'T')
3030
3031 ///
3032 /// "IORT" I/O Remapping Table
3033 ///
3034 #define EFI_ACPI_6_4_IO_REMAPPING_TABLE_SIGNATURE SIGNATURE_32('I', 'O', 'R', 'T')
3035
3036 ///
3037 /// "IVRS" I/O Virtualization Reporting Structure
3038 ///
3039 #define EFI_ACPI_6_4_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE SIGNATURE_32('I', 'V', 'R', 'S')
3040
3041 ///
3042 /// "LPIT" Low Power Idle Table
3043 ///
3044 #define EFI_ACPI_6_4_LOW_POWER_IDLE_TABLE_STRUCTURE_SIGNATURE SIGNATURE_32('L', 'P', 'I', 'T')
3045
3046 ///
3047 /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
3048 ///
3049 #define EFI_ACPI_6_4_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'F', 'G')
3050
3051 ///
3052 /// "MCHI" Management Controller Host Interface Table
3053 ///
3054 #define EFI_ACPI_6_4_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('M', 'C', 'H', 'I')
3055
3056 ///
3057 /// "MSDM" MS Data Management Table
3058 ///
3059 #define EFI_ACPI_6_4_DATA_MANAGEMENT_TABLE_SIGNATURE SIGNATURE_32('M', 'S', 'D', 'M')
3060
3061 ///
3062 /// "PCCT" Platform Communications Channel Table
3063 ///
3064 #define EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE SIGNATURE_32('P', 'C', 'C', 'T')
3065
3066 ///
3067 /// "PHAT" Platform Health Assessment Table
3068 ///
3069 #define EFI_ACPI_6_4_PLATFORM_HEALTH_ASSESSMENT_TABLE_SIGNATURE SIGNATURE_32('P', 'H', 'A', 'T')
3070
3071 ///
3072 /// "SDEI" Software Delegated Exceptions Interface Table
3073 ///
3074 #define EFI_ACPI_6_4_SOFTWARE_DELEGATED_EXCEPTIONS_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'D', 'E', 'I')
3075
3076 ///
3077 /// "SLIC" MS Software Licensing Table Specification
3078 ///
3079 #define EFI_ACPI_6_4_SOFTWARE_LICENSING_TABLE_SIGNATURE SIGNATURE_32('S', 'L', 'I', 'C')
3080
3081 ///
3082 /// "SPCR" Serial Port Concole Redirection Table
3083 ///
3084 #define EFI_ACPI_6_4_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'C', 'R')
3085
3086 ///
3087 /// "SPMI" Server Platform Management Interface Table
3088 ///
3089 #define EFI_ACPI_6_4_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE SIGNATURE_32('S', 'P', 'M', 'I')
3090
3091 ///
3092 /// "STAO" _STA Override Table
3093 ///
3094 #define EFI_ACPI_6_4_STA_OVERRIDE_TABLE_SIGNATURE SIGNATURE_32('S', 'T', 'A', 'O')
3095
3096 ///
3097 /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
3098 ///
3099 #define EFI_ACPI_6_4_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE SIGNATURE_32('T', 'C', 'P', 'A')
3100
3101 ///
3102 /// "TPM2" Trusted Computing Platform 1 Table
3103 ///
3104 #define EFI_ACPI_6_4_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE SIGNATURE_32('T', 'P', 'M', '2')
3105
3106 ///
3107 /// "UEFI" UEFI ACPI Data Table
3108 ///
3109 #define EFI_ACPI_6_4_UEFI_ACPI_DATA_TABLE_SIGNATURE SIGNATURE_32('U', 'E', 'F', 'I')
3110
3111 ///
3112 /// "WAET" Windows ACPI Emulated Devices Table
3113 ///
3114 #define EFI_ACPI_6_4_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE SIGNATURE_32('W', 'A', 'E', 'T')
3115
3116 ///
3117 /// "WDAT" Watchdog Action Table
3118 ///
3119 #define EFI_ACPI_6_4_WATCHDOG_ACTION_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'A', 'T')
3120
3121 ///
3122 /// "WDRT" Watchdog Resource Table
3123 ///
3124 #define EFI_ACPI_6_4_WATCHDOG_RESOURCE_TABLE_SIGNATURE SIGNATURE_32('W', 'D', 'R', 'T')
3125
3126 ///
3127 /// "WPBT" MS Platform Binary Table
3128 ///
3129 #define EFI_ACPI_6_4_PLATFORM_BINARY_TABLE_SIGNATURE SIGNATURE_32('W', 'P', 'B', 'T')
3130
3131 ///
3132 /// "WSMT" Windows SMM Security Mitigation Table
3133 ///
3134 #define EFI_ACPI_6_4_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE SIGNATURE_32('W', 'S', 'M', 'T')
3135
3136 ///
3137 /// "XENV" Xen Project Table
3138 ///
3139 #define EFI_ACPI_6_4_XEN_PROJECT_TABLE_SIGNATURE SIGNATURE_32('X', 'E', 'N', 'V')
3140
3141 #pragma pack()
3142
3143 #endif