1 /** @file
2   ACPI 5.0 definitions from the ACPI Specification Revision 5.0a November 13, 2013.
3 
4   Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR>
5   Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
6   This program and the accompanying materials
7   are licensed and made available under the terms and conditions of the BSD License
8   which accompanies this distribution.  The full text of the license may be found at
9   http://opensource.org/licenses/bsd-license.php
10 
11   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 **/
14 
15 #ifndef _ACPI_5_0_H_
16 #define _ACPI_5_0_H_
17 
18 FILE_LICENCE ( BSD3 );
19 
20 #include <ipxe/efi/IndustryStandard/Acpi40.h>
21 
22 //
23 // Define for Desriptor
24 //
25 #define ACPI_SMALL_FIXED_DMA_DESCRIPTOR_NAME                         0x0A
26 #define ACPI_LARGE_GPIO_CONNECTION_DESCRIPTOR_NAME                   0x0C
27 #define ACPI_LARGE_GENERIC_SERIAL_BUS_CONNECTION_DESCRIPTOR_NAME     0x0E
28 
29 #define ACPI_FIXED_DMA_DESCRIPTOR                         0x55
30 #define ACPI_GPIO_CONNECTION_DESCRIPTOR                   0x8C
31 #define ACPI_GENERIC_SERIAL_BUS_CONNECTION_DESCRIPTOR     0x8E
32 
33 #pragma pack(1)
34 
35 ///
36 /// Generic DMA Descriptor.
37 ///
38 typedef PACKED struct {
39   ACPI_SMALL_RESOURCE_HEADER   Header;
40   UINT16                       DmaRequestLine;
41   UINT16                       DmaChannel;
42   UINT8                        DmaTransferWidth;
43 } EFI_ACPI_FIXED_DMA_DESCRIPTOR;
44 
45 ///
46 /// GPIO Connection Descriptor
47 ///
48 typedef PACKED struct {
49   ACPI_LARGE_RESOURCE_HEADER    Header;
50   UINT8                         RevisionId;
51   UINT8                         ConnectionType;
52   UINT16                        GeneralFlags;
53   UINT16                        InterruptFlags;
54   UINT8                         PinConfiguration;
55   UINT16                        OutputDriveStrength;
56   UINT16                        DebounceTimeout;
57   UINT16                        PinTableOffset;
58   UINT8                         ResourceSourceIndex;
59   UINT16                        ResourceSourceNameOffset;
60   UINT16                        VendorDataOffset;
61   UINT16                        VendorDataLength;
62 } EFI_ACPI_GPIO_CONNECTION_DESCRIPTOR;
63 
64 #define EFI_ACPI_GPIO_CONNECTION_TYPE_INTERRUPT   0x0
65 #define EFI_ACPI_GPIO_CONNECTION_TYPE_IO          0x1
66 
67 ///
68 /// Serial Bus Resource Descriptor (Generic)
69 ///
70 typedef PACKED struct {
71   ACPI_LARGE_RESOURCE_HEADER    Header;
72   UINT8                         RevisionId;
73   UINT8                         ResourceSourceIndex;
74   UINT8                         SerialBusType;
75   UINT8                         GeneralFlags;
76   UINT16                        TypeSpecificFlags;
77   UINT8                         TypeSpecificRevisionId;
78   UINT16                        TypeDataLength;
79 // Type specific data
80 } EFI_ACPI_SERIAL_BUS_RESOURCE_DESCRIPTOR;
81 
82 #define EFI_ACPI_SERIAL_BUS_RESOURCE_TYPE_I2C   0x1
83 #define EFI_ACPI_SERIAL_BUS_RESOURCE_TYPE_SPI   0x2
84 #define EFI_ACPI_SERIAL_BUS_RESOURCE_TYPE_UART  0x3
85 
86 ///
87 /// Serial Bus Resource Descriptor (I2C)
88 ///
89 typedef PACKED struct {
90   ACPI_LARGE_RESOURCE_HEADER    Header;
91   UINT8                         RevisionId;
92   UINT8                         ResourceSourceIndex;
93   UINT8                         SerialBusType;
94   UINT8                         GeneralFlags;
95   UINT16                        TypeSpecificFlags;
96   UINT8                         TypeSpecificRevisionId;
97   UINT16                        TypeDataLength;
98   UINT32                        ConnectionSpeed;
99   UINT16                        SlaveAddress;
100 } EFI_ACPI_SERIAL_BUS_RESOURCE_I2C_DESCRIPTOR;
101 
102 ///
103 /// Serial Bus Resource Descriptor (SPI)
104 ///
105 typedef PACKED struct {
106   ACPI_LARGE_RESOURCE_HEADER    Header;
107   UINT8                         RevisionId;
108   UINT8                         ResourceSourceIndex;
109   UINT8                         SerialBusType;
110   UINT8                         GeneralFlags;
111   UINT16                        TypeSpecificFlags;
112   UINT8                         TypeSpecificRevisionId;
113   UINT16                        TypeDataLength;
114   UINT32                        ConnectionSpeed;
115   UINT8                         DataBitLength;
116   UINT8                         Phase;
117   UINT8                         Polarity;
118   UINT16                        DeviceSelection;
119 } EFI_ACPI_SERIAL_BUS_RESOURCE_SPI_DESCRIPTOR;
120 
121 ///
122 /// Serial Bus Resource Descriptor (UART)
123 ///
124 typedef PACKED struct {
125   ACPI_LARGE_RESOURCE_HEADER    Header;
126   UINT8                         RevisionId;
127   UINT8                         ResourceSourceIndex;
128   UINT8                         SerialBusType;
129   UINT8                         GeneralFlags;
130   UINT16                        TypeSpecificFlags;
131   UINT8                         TypeSpecificRevisionId;
132   UINT16                        TypeDataLength;
133   UINT32                        DefaultBaudRate;
134   UINT16                        RxFIFO;
135   UINT16                        TxFIFO;
136   UINT8                         Parity;
137   UINT8                         SerialLinesEnabled;
138 } EFI_ACPI_SERIAL_BUS_RESOURCE_UART_DESCRIPTOR;
139 
140 #pragma pack()
141 
142 //
143 // Ensure proper structure formats
144 //
145 #pragma pack(1)
146 
147 ///
148 /// ACPI 5.0 Generic Address Space definition
149 ///
150 typedef struct {
151   UINT8   AddressSpaceId;
152   UINT8   RegisterBitWidth;
153   UINT8   RegisterBitOffset;
154   UINT8   AccessSize;
155   UINT64  Address;
156 } EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE;
157 
158 //
159 // Generic Address Space Address IDs
160 //
161 #define EFI_ACPI_5_0_SYSTEM_MEMORY              0
162 #define EFI_ACPI_5_0_SYSTEM_IO                  1
163 #define EFI_ACPI_5_0_PCI_CONFIGURATION_SPACE    2
164 #define EFI_ACPI_5_0_EMBEDDED_CONTROLLER        3
165 #define EFI_ACPI_5_0_SMBUS                      4
166 #define EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL  0x0A
167 #define EFI_ACPI_5_0_FUNCTIONAL_FIXED_HARDWARE       0x7F
168 
169 //
170 // Generic Address Space Access Sizes
171 //
172 #define EFI_ACPI_5_0_UNDEFINED  0
173 #define EFI_ACPI_5_0_BYTE       1
174 #define EFI_ACPI_5_0_WORD       2
175 #define EFI_ACPI_5_0_DWORD      3
176 #define EFI_ACPI_5_0_QWORD      4
177 
178 //
179 // ACPI 5.0 table structures
180 //
181 
182 ///
183 /// Root System Description Pointer Structure
184 ///
185 typedef struct {
186   UINT64  Signature;
187   UINT8   Checksum;
188   UINT8   OemId[6];
189   UINT8   Revision;
190   UINT32  RsdtAddress;
191   UINT32  Length;
192   UINT64  XsdtAddress;
193   UINT8   ExtendedChecksum;
194   UINT8   Reserved[3];
195 } EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER;
196 
197 ///
198 /// RSD_PTR Revision (as defined in ACPI 5.0 spec.)
199 ///
200 #define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER_REVISION 0x02  ///< ACPISpec (Revision 5.0) says current value is 2
201 
202 ///
203 /// Common table header, this prefaces all ACPI tables, including FACS, but
204 /// excluding the RSD PTR structure
205 ///
206 typedef struct {
207   UINT32  Signature;
208   UINT32  Length;
209 } EFI_ACPI_5_0_COMMON_HEADER;
210 
211 //
212 // Root System Description Table
213 // No definition needed as it is a common description table header, the same with
214 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT32 table pointers.
215 //
216 
217 ///
218 /// RSDT Revision (as defined in ACPI 5.0 spec.)
219 ///
220 #define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
221 
222 //
223 // Extended System Description Table
224 // No definition needed as it is a common description table header, the same with
225 // EFI_ACPI_DESCRIPTION_HEADER, followed by a variable number of UINT64 table pointers.
226 //
227 
228 ///
229 /// XSDT Revision (as defined in ACPI 5.0 spec.)
230 ///
231 #define EFI_ACPI_5_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_REVISION 0x01
232 
233 ///
234 /// Fixed ACPI Description Table Structure (FADT)
235 ///
236 typedef struct {
237   EFI_ACPI_DESCRIPTION_HEADER             Header;
238   UINT32                                  FirmwareCtrl;
239   UINT32                                  Dsdt;
240   UINT8                                   Reserved0;
241   UINT8                                   PreferredPmProfile;
242   UINT16                                  SciInt;
243   UINT32                                  SmiCmd;
244   UINT8                                   AcpiEnable;
245   UINT8                                   AcpiDisable;
246   UINT8                                   S4BiosReq;
247   UINT8                                   PstateCnt;
248   UINT32                                  Pm1aEvtBlk;
249   UINT32                                  Pm1bEvtBlk;
250   UINT32                                  Pm1aCntBlk;
251   UINT32                                  Pm1bCntBlk;
252   UINT32                                  Pm2CntBlk;
253   UINT32                                  PmTmrBlk;
254   UINT32                                  Gpe0Blk;
255   UINT32                                  Gpe1Blk;
256   UINT8                                   Pm1EvtLen;
257   UINT8                                   Pm1CntLen;
258   UINT8                                   Pm2CntLen;
259   UINT8                                   PmTmrLen;
260   UINT8                                   Gpe0BlkLen;
261   UINT8                                   Gpe1BlkLen;
262   UINT8                                   Gpe1Base;
263   UINT8                                   CstCnt;
264   UINT16                                  PLvl2Lat;
265   UINT16                                  PLvl3Lat;
266   UINT16                                  FlushSize;
267   UINT16                                  FlushStride;
268   UINT8                                   DutyOffset;
269   UINT8                                   DutyWidth;
270   UINT8                                   DayAlrm;
271   UINT8                                   MonAlrm;
272   UINT8                                   Century;
273   UINT16                                  IaPcBootArch;
274   UINT8                                   Reserved1;
275   UINT32                                  Flags;
276   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  ResetReg;
277   UINT8                                   ResetValue;
278   UINT8                                   Reserved2[3];
279   UINT64                                  XFirmwareCtrl;
280   UINT64                                  XDsdt;
281   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XPm1aEvtBlk;
282   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XPm1bEvtBlk;
283   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XPm1aCntBlk;
284   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XPm1bCntBlk;
285   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XPm2CntBlk;
286   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XPmTmrBlk;
287   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XGpe0Blk;
288   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  XGpe1Blk;
289   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  SleepControlReg;
290   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  SleepStatusReg;
291 } EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE;
292 
293 ///
294 /// FADT Version (as defined in ACPI 5.0 spec.)
295 ///
296 #define EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_REVISION  0x05
297 
298 //
299 // Fixed ACPI Description Table Preferred Power Management Profile
300 //
301 #define EFI_ACPI_5_0_PM_PROFILE_UNSPECIFIED         0
302 #define EFI_ACPI_5_0_PM_PROFILE_DESKTOP             1
303 #define EFI_ACPI_5_0_PM_PROFILE_MOBILE              2
304 #define EFI_ACPI_5_0_PM_PROFILE_WORKSTATION         3
305 #define EFI_ACPI_5_0_PM_PROFILE_ENTERPRISE_SERVER   4
306 #define EFI_ACPI_5_0_PM_PROFILE_SOHO_SERVER         5
307 #define EFI_ACPI_5_0_PM_PROFILE_APPLIANCE_PC        6
308 #define EFI_ACPI_5_0_PM_PROFILE_PERFORMANCE_SERVER  7
309 #define EFI_ACPI_5_0_PM_PROFILE_TABLET              8
310 
311 //
312 // Fixed ACPI Description Table Boot Architecture Flags
313 // All other bits are reserved and must be set to 0.
314 //
315 #define EFI_ACPI_5_0_LEGACY_DEVICES              BIT0
316 #define EFI_ACPI_5_0_8042                        BIT1
317 #define EFI_ACPI_5_0_VGA_NOT_PRESENT             BIT2
318 #define EFI_ACPI_5_0_MSI_NOT_SUPPORTED           BIT3
319 #define EFI_ACPI_5_0_PCIE_ASPM_CONTROLS          BIT4
320 #define EFI_ACPI_5_0_CMOS_RTC_NOT_PRESENT        BIT5
321 
322 //
323 // Fixed ACPI Description Table Fixed Feature Flags
324 // All other bits are reserved and must be set to 0.
325 //
326 #define EFI_ACPI_5_0_WBINVD                                 BIT0
327 #define EFI_ACPI_5_0_WBINVD_FLUSH                           BIT1
328 #define EFI_ACPI_5_0_PROC_C1                                BIT2
329 #define EFI_ACPI_5_0_P_LVL2_UP                              BIT3
330 #define EFI_ACPI_5_0_PWR_BUTTON                             BIT4
331 #define EFI_ACPI_5_0_SLP_BUTTON                             BIT5
332 #define EFI_ACPI_5_0_FIX_RTC                                BIT6
333 #define EFI_ACPI_5_0_RTC_S4                                 BIT7
334 #define EFI_ACPI_5_0_TMR_VAL_EXT                            BIT8
335 #define EFI_ACPI_5_0_DCK_CAP                                BIT9
336 #define EFI_ACPI_5_0_RESET_REG_SUP                          BIT10
337 #define EFI_ACPI_5_0_SEALED_CASE                            BIT11
338 #define EFI_ACPI_5_0_HEADLESS                               BIT12
339 #define EFI_ACPI_5_0_CPU_SW_SLP                             BIT13
340 #define EFI_ACPI_5_0_PCI_EXP_WAK                            BIT14
341 #define EFI_ACPI_5_0_USE_PLATFORM_CLOCK                     BIT15
342 #define EFI_ACPI_5_0_S4_RTC_STS_VALID                       BIT16
343 #define EFI_ACPI_5_0_REMOTE_POWER_ON_CAPABLE                BIT17
344 #define EFI_ACPI_5_0_FORCE_APIC_CLUSTER_MODEL               BIT18
345 #define EFI_ACPI_5_0_FORCE_APIC_PHYSICAL_DESTINATION_MODE   BIT19
346 #define EFI_ACPI_5_0_HW_REDUCED_ACPI                        BIT20
347 #define EFI_ACPI_5_0_LOW_POWER_S0_IDLE_CAPABLE              BIT21
348 
349 ///
350 /// Firmware ACPI Control Structure
351 ///
352 typedef struct {
353   UINT32  Signature;
354   UINT32  Length;
355   UINT32  HardwareSignature;
356   UINT32  FirmwareWakingVector;
357   UINT32  GlobalLock;
358   UINT32  Flags;
359   UINT64  XFirmwareWakingVector;
360   UINT8   Version;
361   UINT8   Reserved0[3];
362   UINT32  OspmFlags;
363   UINT8   Reserved1[24];
364 } EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE;
365 
366 ///
367 /// FACS Version (as defined in ACPI 5.0 spec.)
368 ///
369 #define EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_VERSION  0x02
370 
371 ///
372 /// Firmware Control Structure Feature Flags
373 /// All other bits are reserved and must be set to 0.
374 ///
375 #define EFI_ACPI_5_0_S4BIOS_F                     BIT0
376 #define EFI_ACPI_5_0_64BIT_WAKE_SUPPORTED_F       BIT1
377 
378 ///
379 /// OSPM Enabled Firmware Control Structure Flags
380 /// All other bits are reserved and must be set to 0.
381 ///
382 #define EFI_ACPI_5_0_OSPM_64BIT_WAKE_F            BIT0
383 
384 //
385 // Differentiated System Description Table,
386 // Secondary System Description Table
387 // and Persistent System Description Table,
388 // no definition needed as they are common description table header, the same with
389 // EFI_ACPI_DESCRIPTION_HEADER, followed by a definition block.
390 //
391 #define EFI_ACPI_5_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_REVISION   0x02
392 #define EFI_ACPI_5_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_REVISION        0x02
393 
394 ///
395 /// Multiple APIC Description Table header definition.  The rest of the table
396 /// must be defined in a platform specific manner.
397 ///
398 typedef struct {
399   EFI_ACPI_DESCRIPTION_HEADER Header;
400   UINT32                      LocalApicAddress;
401   UINT32                      Flags;
402 } EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER;
403 
404 ///
405 /// MADT Revision (as defined in ACPI 5.0 spec.)
406 ///
407 #define EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_REVISION 0x03
408 
409 ///
410 /// Multiple APIC Flags
411 /// All other bits are reserved and must be set to 0.
412 ///
413 #define EFI_ACPI_5_0_PCAT_COMPAT         BIT0
414 
415 //
416 // Multiple APIC Description Table APIC structure types
417 // All other values between 0x0D and 0x7F are reserved and
418 // will be ignored by OSPM. 0x80 ~ 0xFF are reserved for OEM.
419 //
420 #define EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC           0x00
421 #define EFI_ACPI_5_0_IO_APIC                        0x01
422 #define EFI_ACPI_5_0_INTERRUPT_SOURCE_OVERRIDE      0x02
423 #define EFI_ACPI_5_0_NON_MASKABLE_INTERRUPT_SOURCE  0x03
424 #define EFI_ACPI_5_0_LOCAL_APIC_NMI                 0x04
425 #define EFI_ACPI_5_0_LOCAL_APIC_ADDRESS_OVERRIDE    0x05
426 #define EFI_ACPI_5_0_IO_SAPIC                       0x06
427 #define EFI_ACPI_5_0_LOCAL_SAPIC                    0x07
428 #define EFI_ACPI_5_0_PLATFORM_INTERRUPT_SOURCES     0x08
429 #define EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC         0x09
430 #define EFI_ACPI_5_0_LOCAL_X2APIC_NMI               0x0A
431 #define EFI_ACPI_5_0_GIC                            0x0B
432 #define EFI_ACPI_5_0_GICD                           0x0C
433 
434 //
435 // APIC Structure Definitions
436 //
437 
438 ///
439 /// Processor Local APIC Structure Definition
440 ///
441 typedef struct {
442   UINT8   Type;
443   UINT8   Length;
444   UINT8   AcpiProcessorId;
445   UINT8   ApicId;
446   UINT32  Flags;
447 } EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_STRUCTURE;
448 
449 ///
450 /// Local APIC Flags.  All other bits are reserved and must be 0.
451 ///
452 #define EFI_ACPI_5_0_LOCAL_APIC_ENABLED        BIT0
453 
454 ///
455 /// IO APIC Structure
456 ///
457 typedef struct {
458   UINT8   Type;
459   UINT8   Length;
460   UINT8   IoApicId;
461   UINT8   Reserved;
462   UINT32  IoApicAddress;
463   UINT32  GlobalSystemInterruptBase;
464 } EFI_ACPI_5_0_IO_APIC_STRUCTURE;
465 
466 ///
467 /// Interrupt Source Override Structure
468 ///
469 typedef struct {
470   UINT8   Type;
471   UINT8   Length;
472   UINT8   Bus;
473   UINT8   Source;
474   UINT32  GlobalSystemInterrupt;
475   UINT16  Flags;
476 } EFI_ACPI_5_0_INTERRUPT_SOURCE_OVERRIDE_STRUCTURE;
477 
478 ///
479 /// Platform Interrupt Sources Structure Definition
480 ///
481 typedef struct {
482   UINT8   Type;
483   UINT8   Length;
484   UINT16  Flags;
485   UINT8   InterruptType;
486   UINT8   ProcessorId;
487   UINT8   ProcessorEid;
488   UINT8   IoSapicVector;
489   UINT32  GlobalSystemInterrupt;
490   UINT32  PlatformInterruptSourceFlags;
491   UINT8   CpeiProcessorOverride;
492   UINT8   Reserved[31];
493 } EFI_ACPI_5_0_PLATFORM_INTERRUPT_APIC_STRUCTURE;
494 
495 //
496 // MPS INTI flags.
497 // All other bits are reserved and must be set to 0.
498 //
499 #define EFI_ACPI_5_0_POLARITY      (3 << 0)
500 #define EFI_ACPI_5_0_TRIGGER_MODE  (3 << 2)
501 
502 ///
503 /// Non-Maskable Interrupt Source Structure
504 ///
505 typedef struct {
506   UINT8   Type;
507   UINT8   Length;
508   UINT16  Flags;
509   UINT32  GlobalSystemInterrupt;
510 } EFI_ACPI_5_0_NON_MASKABLE_INTERRUPT_SOURCE_STRUCTURE;
511 
512 ///
513 /// Local APIC NMI Structure
514 ///
515 typedef struct {
516   UINT8   Type;
517   UINT8   Length;
518   UINT8   AcpiProcessorId;
519   UINT16  Flags;
520   UINT8   LocalApicLint;
521 } EFI_ACPI_5_0_LOCAL_APIC_NMI_STRUCTURE;
522 
523 ///
524 /// Local APIC Address Override Structure
525 ///
526 typedef struct {
527   UINT8   Type;
528   UINT8   Length;
529   UINT16  Reserved;
530   UINT64  LocalApicAddress;
531 } EFI_ACPI_5_0_LOCAL_APIC_ADDRESS_OVERRIDE_STRUCTURE;
532 
533 ///
534 /// IO SAPIC Structure
535 ///
536 typedef struct {
537   UINT8   Type;
538   UINT8   Length;
539   UINT8   IoApicId;
540   UINT8   Reserved;
541   UINT32  GlobalSystemInterruptBase;
542   UINT64  IoSapicAddress;
543 } EFI_ACPI_5_0_IO_SAPIC_STRUCTURE;
544 
545 ///
546 /// Local SAPIC Structure
547 /// This struct followed by a null-terminated ASCII string - ACPI Processor UID String
548 ///
549 typedef struct {
550   UINT8   Type;
551   UINT8   Length;
552   UINT8   AcpiProcessorId;
553   UINT8   LocalSapicId;
554   UINT8   LocalSapicEid;
555   UINT8   Reserved[3];
556   UINT32  Flags;
557   UINT32  ACPIProcessorUIDValue;
558 } EFI_ACPI_5_0_PROCESSOR_LOCAL_SAPIC_STRUCTURE;
559 
560 ///
561 /// Platform Interrupt Sources Structure
562 ///
563 typedef struct {
564   UINT8   Type;
565   UINT8   Length;
566   UINT16  Flags;
567   UINT8   InterruptType;
568   UINT8   ProcessorId;
569   UINT8   ProcessorEid;
570   UINT8   IoSapicVector;
571   UINT32  GlobalSystemInterrupt;
572   UINT32  PlatformInterruptSourceFlags;
573 } EFI_ACPI_5_0_PLATFORM_INTERRUPT_SOURCES_STRUCTURE;
574 
575 ///
576 /// Platform Interrupt Source Flags.
577 /// All other bits are reserved and must be set to 0.
578 ///
579 #define EFI_ACPI_5_0_CPEI_PROCESSOR_OVERRIDE          BIT0
580 
581 ///
582 /// Processor Local x2APIC Structure Definition
583 ///
584 typedef struct {
585   UINT8   Type;
586   UINT8   Length;
587   UINT8   Reserved[2];
588   UINT32  X2ApicId;
589   UINT32  Flags;
590   UINT32  AcpiProcessorUid;
591 } EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC_STRUCTURE;
592 
593 ///
594 /// Local x2APIC NMI Structure
595 ///
596 typedef struct {
597   UINT8   Type;
598   UINT8   Length;
599   UINT16  Flags;
600   UINT32  AcpiProcessorUid;
601   UINT8   LocalX2ApicLint;
602   UINT8   Reserved[3];
603 } EFI_ACPI_5_0_LOCAL_X2APIC_NMI_STRUCTURE;
604 
605 ///
606 /// GIC Structure
607 ///
608 typedef struct {
609   UINT8   Type;
610   UINT8   Length;
611   UINT16  Reserved;
612   UINT32  GicId;
613   UINT32  AcpiProcessorUid;
614   UINT32  Flags;
615   UINT32  ParkingProtocolVersion;
616   UINT32  PerformanceInterruptGsiv;
617   UINT64  ParkedAddress;
618   UINT64  PhysicalBaseAddress;
619 } EFI_ACPI_5_0_GIC_STRUCTURE;
620 
621 ///
622 /// GIC Flags.  All other bits are reserved and must be 0.
623 ///
624 #define EFI_ACPI_5_0_GIC_ENABLED                     BIT0
625 #define EFI_ACPI_5_0_PERFORMANCE_INTERRUPT_MODEL     BIT1
626 
627 ///
628 /// GIC Distributor Structure
629 ///
630 typedef struct {
631   UINT8   Type;
632   UINT8   Length;
633   UINT16  Reserved1;
634   UINT32  GicId;
635   UINT64  PhysicalBaseAddress;
636   UINT32  SystemVectorBase;
637   UINT32  Reserved2;
638 } EFI_ACPI_5_0_GIC_DISTRIBUTOR_STRUCTURE;
639 
640 ///
641 /// Smart Battery Description Table (SBST)
642 ///
643 typedef struct {
644   EFI_ACPI_DESCRIPTION_HEADER Header;
645   UINT32                      WarningEnergyLevel;
646   UINT32                      LowEnergyLevel;
647   UINT32                      CriticalEnergyLevel;
648 } EFI_ACPI_5_0_SMART_BATTERY_DESCRIPTION_TABLE;
649 
650 ///
651 /// SBST Version (as defined in ACPI 5.0 spec.)
652 ///
653 #define EFI_ACPI_5_0_SMART_BATTERY_DESCRIPTION_TABLE_REVISION 0x01
654 
655 ///
656 /// Embedded Controller Boot Resources Table (ECDT)
657 /// The table is followed by a null terminated ASCII string that contains
658 /// a fully qualified reference to the name space object.
659 ///
660 typedef struct {
661   EFI_ACPI_DESCRIPTION_HEADER             Header;
662   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  EcControl;
663   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE  EcData;
664   UINT32                                  Uid;
665   UINT8                                   GpeBit;
666 } EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE;
667 
668 ///
669 /// ECDT Version (as defined in ACPI 5.0 spec.)
670 ///
671 #define EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_REVISION  0x01
672 
673 ///
674 /// System Resource Affinity Table (SRAT).  The rest of the table
675 /// must be defined in a platform specific manner.
676 ///
677 typedef struct {
678   EFI_ACPI_DESCRIPTION_HEADER Header;
679   UINT32                      Reserved1;  ///< Must be set to 1
680   UINT64                      Reserved2;
681 } EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_HEADER;
682 
683 ///
684 /// SRAT Version (as defined in ACPI 5.0 spec.)
685 ///
686 #define EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_REVISION  0x03
687 
688 //
689 // SRAT structure types.
690 // All other values between 0x03 an 0xFF are reserved and
691 // will be ignored by OSPM.
692 //
693 #define EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY  0x00
694 #define EFI_ACPI_5_0_MEMORY_AFFINITY                      0x01
695 #define EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC_AFFINITY      0x02
696 
697 ///
698 /// Processor Local APIC/SAPIC Affinity Structure Definition
699 ///
700 typedef struct {
701   UINT8   Type;
702   UINT8   Length;
703   UINT8   ProximityDomain7To0;
704   UINT8   ApicId;
705   UINT32  Flags;
706   UINT8   LocalSapicEid;
707   UINT8   ProximityDomain31To8[3];
708   UINT32  ClockDomain;
709 } EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_AFFINITY_STRUCTURE;
710 
711 ///
712 /// Local APIC/SAPIC Flags.  All other bits are reserved and must be 0.
713 ///
714 #define EFI_ACPI_5_0_PROCESSOR_LOCAL_APIC_SAPIC_ENABLED (1 << 0)
715 
716 ///
717 /// Memory Affinity Structure Definition
718 ///
719 typedef struct {
720   UINT8   Type;
721   UINT8   Length;
722   UINT32  ProximityDomain;
723   UINT16  Reserved1;
724   UINT32  AddressBaseLow;
725   UINT32  AddressBaseHigh;
726   UINT32  LengthLow;
727   UINT32  LengthHigh;
728   UINT32  Reserved2;
729   UINT32  Flags;
730   UINT64  Reserved3;
731 } EFI_ACPI_5_0_MEMORY_AFFINITY_STRUCTURE;
732 
733 //
734 // Memory Flags.  All other bits are reserved and must be 0.
735 //
736 #define EFI_ACPI_5_0_MEMORY_ENABLED       (1 << 0)
737 #define EFI_ACPI_5_0_MEMORY_HOT_PLUGGABLE (1 << 1)
738 #define EFI_ACPI_5_0_MEMORY_NONVOLATILE   (1 << 2)
739 
740 ///
741 /// Processor Local x2APIC Affinity Structure Definition
742 ///
743 typedef struct {
744   UINT8   Type;
745   UINT8   Length;
746   UINT8   Reserved1[2];
747   UINT32  ProximityDomain;
748   UINT32  X2ApicId;
749   UINT32  Flags;
750   UINT32  ClockDomain;
751   UINT8   Reserved2[4];
752 } EFI_ACPI_5_0_PROCESSOR_LOCAL_X2APIC_AFFINITY_STRUCTURE;
753 
754 ///
755 /// System Locality Distance Information Table (SLIT).
756 /// The rest of the table is a matrix.
757 ///
758 typedef struct {
759   EFI_ACPI_DESCRIPTION_HEADER Header;
760   UINT64                      NumberOfSystemLocalities;
761 } EFI_ACPI_5_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_HEADER;
762 
763 ///
764 /// SLIT Version (as defined in ACPI 5.0 spec.)
765 ///
766 #define EFI_ACPI_5_0_SYSTEM_LOCALITY_DISTANCE_INFORMATION_TABLE_REVISION  0x01
767 
768 ///
769 /// Corrected Platform Error Polling Table (CPEP)
770 ///
771 typedef struct {
772   EFI_ACPI_DESCRIPTION_HEADER Header;
773   UINT8                       Reserved[8];
774 } EFI_ACPI_5_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_HEADER;
775 
776 ///
777 /// CPEP Version (as defined in ACPI 5.0 spec.)
778 ///
779 #define EFI_ACPI_5_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_REVISION 0x01
780 
781 //
782 // CPEP processor structure types.
783 //
784 #define EFI_ACPI_5_0_CPEP_PROCESSOR_APIC_SAPIC  0x00
785 
786 ///
787 /// Corrected Platform Error Polling Processor Structure Definition
788 ///
789 typedef struct {
790   UINT8   Type;
791   UINT8   Length;
792   UINT8   ProcessorId;
793   UINT8   ProcessorEid;
794   UINT32  PollingInterval;
795 } EFI_ACPI_5_0_CPEP_PROCESSOR_APIC_SAPIC_STRUCTURE;
796 
797 ///
798 /// Maximum System Characteristics Table (MSCT)
799 ///
800 typedef struct {
801   EFI_ACPI_DESCRIPTION_HEADER Header;
802   UINT32                      OffsetProxDomInfo;
803   UINT32                      MaximumNumberOfProximityDomains;
804   UINT32                      MaximumNumberOfClockDomains;
805   UINT64                      MaximumPhysicalAddress;
806 } EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_HEADER;
807 
808 ///
809 /// MSCT Version (as defined in ACPI 5.0 spec.)
810 ///
811 #define EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_REVISION 0x01
812 
813 ///
814 /// Maximum Proximity Domain Information Structure Definition
815 ///
816 typedef struct {
817   UINT8   Revision;
818   UINT8   Length;
819   UINT32  ProximityDomainRangeLow;
820   UINT32  ProximityDomainRangeHigh;
821   UINT32  MaximumProcessorCapacity;
822   UINT64  MaximumMemoryCapacity;
823 } EFI_ACPI_5_0_MAXIMUM_PROXIMITY_DOMAIN_INFORMATION_STRUCTURE;
824 
825 ///
826 /// ACPI RAS Feature Table definition.
827 ///
828 typedef struct {
829   EFI_ACPI_DESCRIPTION_HEADER Header;
830   UINT8                       PlatformCommunicationChannelIdentifier[12];
831 } EFI_ACPI_5_0_RAS_FEATURE_TABLE;
832 
833 ///
834 /// RASF Version (as defined in ACPI 5.0 spec.)
835 ///
836 #define EFI_ACPI_5_0_RAS_FEATURE_TABLE_REVISION 0x01
837 
838 ///
839 /// ACPI RASF Platform Communication Channel Shared Memory Region definition.
840 ///
841 typedef struct {
842   UINT32                      Signature;
843   UINT16                      Command;
844   UINT16                      Status;
845   UINT16                      Version;
846   UINT8                       RASCapabilities[16];
847   UINT8                       SetRASCapabilities[16];
848   UINT16                      NumberOfRASFParameterBlocks;
849   UINT32                      SetRASCapabilitiesStatus;
850 } EFI_ACPI_5_0_RASF_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
851 
852 ///
853 /// ACPI RASF PCC command code
854 ///
855 #define EFI_ACPI_5_0_RASF_PCC_COMMAND_CODE_EXECUTE_RASF_COMMAND  0x01
856 
857 ///
858 /// ACPI RASF Platform RAS Capabilities
859 ///
860 #define EFI_ACPI_5_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED                          0x01
861 #define EFI_ACPI_5_0_RASF_PLATFORM_RAS_CAPABILITY_HARDWARE_BASED_PATROL_SCRUB_SUPPOTED_AND_EXPOSED_TO_SOFTWARE  0x02
862 
863 ///
864 /// ACPI RASF Parameter Block structure for PATROL_SCRUB
865 ///
866 typedef struct {
867   UINT16                      Type;
868   UINT16                      Version;
869   UINT16                      Length;
870   UINT16                      PatrolScrubCommand;
871   UINT64                      RequestedAddressRange[2];
872   UINT64                      ActualAddressRange[2];
873   UINT16                      Flags;
874   UINT8                       RequestedSpeed;
875 } EFI_ACPI_5_0_RASF_PATROL_SCRUB_PLATFORM_BLOCK_STRUCTURE;
876 
877 ///
878 /// ACPI RASF Patrol Scrub command
879 ///
880 #define EFI_ACPI_5_0_RASF_PATROL_SCRUB_COMMAND_GET_PATROL_PARAMETERS   0x01
881 #define EFI_ACPI_5_0_RASF_PATROL_SCRUB_COMMAND_START_PATROL_SCRUBBER   0x02
882 #define EFI_ACPI_5_0_RASF_PATROL_SCRUB_COMMAND_STOP_PATROL_SCRUBBER    0x03
883 
884 ///
885 /// Memory Power State Table definition.
886 ///
887 typedef struct {
888   EFI_ACPI_DESCRIPTION_HEADER Header;
889   UINT8                       PlatformCommunicationChannelIdentifier;
890   UINT8                       Reserved[3];
891 // Memory Power Node Structure
892 // Memory Power State Characteristics
893 } EFI_ACPI_5_0_MEMORY_POWER_STATUS_TABLE;
894 
895 ///
896 /// MPST Version (as defined in ACPI 5.0 spec.)
897 ///
898 #define EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_REVISION 0x01
899 
900 ///
901 /// MPST Platform Communication Channel Shared Memory Region definition.
902 ///
903 typedef struct {
904   UINT32                      Signature;
905   UINT16                      Command;
906   UINT16                      Status;
907   UINT32                      MemoryPowerCommandRegister;
908   UINT32                      MemoryPowerStatusRegister;
909   UINT32                      PowerStateId;
910   UINT32                      MemoryPowerNodeId;
911   UINT64                      MemoryEnergyConsumed;
912   UINT64                      ExpectedAveragePowerComsuned;
913 } EFI_ACPI_5_0_MPST_PLATFORM_COMMUNICATION_CHANNEL_SHARED_MEMORY_REGION;
914 
915 ///
916 /// ACPI MPST PCC command code
917 ///
918 #define EFI_ACPI_5_0_MPST_PCC_COMMAND_CODE_EXECUTE_MPST_COMMAND  0x03
919 
920 ///
921 /// ACPI MPST Memory Power command
922 ///
923 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_POWER_STATE       0x01
924 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_SET_MEMORY_POWER_STATE       0x02
925 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_GET_AVERAGE_POWER_CONSUMED   0x03
926 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_COMMAND_GET_MEMORY_ENERGY_CONSUMED   0x04
927 
928 ///
929 /// MPST Memory Power Node Table
930 ///
931 typedef struct {
932   UINT8                                             PowerStateValue;
933   UINT8                                             PowerStateInformationIndex;
934 } EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE;
935 
936 typedef struct {
937   UINT8                                             Flag;
938   UINT8                                             Reserved;
939   UINT16                                            MemoryPowerNodeId;
940   UINT32                                            Length;
941   UINT64                                            AddressBase;
942   UINT64                                            AddressLength;
943   UINT32                                            NumberOfPowerStates;
944   UINT32                                            NumberOfPhysicalComponents;
945 //EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE              MemoryPowerState[NumberOfPowerStates];
946 //UINT16                                            PhysicalComponentIdentifier[NumberOfPhysicalComponents];
947 } EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE;
948 
949 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_ENABLE          0x01
950 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_POWER_MANAGED   0x02
951 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_STRUCTURE_FLAG_HOT_PLUGGABLE   0x04
952 
953 typedef struct {
954   UINT16                      MemoryPowerNodeCount;
955   UINT8                       Reserved[2];
956 } EFI_ACPI_5_0_MPST_MEMORY_POWER_NODE_TABLE;
957 
958 ///
959 /// MPST Memory Power State Characteristics Table
960 ///
961 typedef struct {
962   UINT8                                             PowerStateStructureID;
963   UINT8                                             Flag;
964   UINT16                                            Reserved;
965   UINT32                                            AveragePowerConsumedInMPS0;
966   UINT32                                            RelativePowerSavingToMPS0;
967   UINT64                                            ExitLatencyToMPS0;
968 } EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE;
969 
970 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_MEMORY_CONTENT_PRESERVED              0x01
971 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_ENTRY   0x02
972 #define EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_STRUCTURE_FLAG_AUTONOMOUS_MEMORY_POWER_STATE_EXIT    0x04
973 
974 typedef struct {
975   UINT16                      MemoryPowerStateCharacteristicsCount;
976   UINT8                       Reserved[2];
977 } EFI_ACPI_5_0_MPST_MEMORY_POWER_STATE_CHARACTERISTICS_TABLE;
978 
979 ///
980 /// Memory Topology Table definition.
981 ///
982 typedef struct {
983   EFI_ACPI_DESCRIPTION_HEADER Header;
984   UINT32                      Reserved;
985 } EFI_ACPI_5_0_MEMORY_TOPOLOGY_TABLE;
986 
987 ///
988 /// PMTT Version (as defined in ACPI 5.0 spec.)
989 ///
990 #define EFI_ACPI_5_0_MEMORY_TOPOLOGY_TABLE_REVISION 0x01
991 
992 ///
993 /// Common Memory Aggregator Device Structure.
994 ///
995 typedef struct {
996   UINT8                       Type;
997   UINT8                       Reserved;
998   UINT16                      Length;
999   UINT16                      Flags;
1000   UINT16                      Reserved1;
1001 } EFI_ACPI_5_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
1002 
1003 ///
1004 /// Memory Aggregator Device Type
1005 ///
1006 #define EFI_ACPI_5_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_SOCKET            0x1
1007 #define EFI_ACPI_5_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_MEMORY_CONTROLLER 0x2
1008 #define EFI_ACPI_5_0_PMMT_MEMORY_AGGREGATOR_DEVICE_TYPE_DIMM              0x3
1009 
1010 ///
1011 /// Socket Memory Aggregator Device Structure.
1012 ///
1013 typedef struct {
1014   EFI_ACPI_5_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE  Header;
1015   UINT16                                                       SocketIdentifier;
1016   UINT16                                                       Reserved;
1017 //EFI_ACPI_5_0_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE  MemoryController[];
1018 } EFI_ACPI_5_0_PMMT_SOCKET_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
1019 
1020 ///
1021 /// MemoryController Memory Aggregator Device Structure.
1022 ///
1023 typedef struct {
1024   EFI_ACPI_5_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE  Header;
1025   UINT32                                                       ReadLatency;
1026   UINT32                                                       WriteLatency;
1027   UINT32                                                       ReadBandwidth;
1028   UINT32                                                       WriteBandwidth;
1029   UINT16                                                       OptimalAccessUnit;
1030   UINT16                                                       OptimalAccessAlignment;
1031   UINT16                                                       Reserved;
1032   UINT16                                                       NumberOfProximityDomains;
1033 //UINT32                                                       ProximityDomain[NumberOfProximityDomains];
1034 //EFI_ACPI_5_0_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE    PhysicalComponent[];
1035 } EFI_ACPI_5_0_PMMT_MEMORY_CONTROLLER_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
1036 
1037 ///
1038 /// DIMM Memory Aggregator Device Structure.
1039 ///
1040 typedef struct {
1041   EFI_ACPI_5_0_PMMT_COMMON_MEMORY_AGGREGATOR_DEVICE_STRUCTURE  Header;
1042   UINT16                                                       PhysicalComponentIdentifier;
1043   UINT16                                                       Reserved;
1044   UINT32                                                       SizeOfDimm;
1045   UINT32                                                       SmbiosHandle;
1046 } EFI_ACPI_5_0_PMMT_DIMM_MEMORY_AGGREGATOR_DEVICE_STRUCTURE;
1047 
1048 ///
1049 /// Boot Graphics Resource Table definition.
1050 ///
1051 typedef struct {
1052   EFI_ACPI_DESCRIPTION_HEADER Header;
1053   ///
1054   /// 2-bytes (16 bit) version ID. This value must be 1.
1055   ///
1056   UINT16                      Version;
1057   ///
1058   /// 1-byte status field indicating current status about the table.
1059   ///     Bits[7:1] = Reserved (must be zero)
1060   ///     Bit [0] = Valid. A one indicates the boot image graphic is valid.
1061   ///
1062   UINT8                       Status;
1063   ///
1064   /// 1-byte enumerated type field indicating format of the image.
1065   ///     0 = Bitmap
1066   ///     1 - 255  Reserved (for future use)
1067   ///
1068   UINT8                       ImageType;
1069   ///
1070   /// 8-byte (64 bit) physical address pointing to the firmware's in-memory copy
1071   /// of the image bitmap.
1072   ///
1073   UINT64                      ImageAddress;
1074   ///
1075   /// A 4-byte (32-bit) unsigned long describing the display X-offset of the boot image.
1076   /// (X, Y) display offset of the top left corner of the boot image.
1077   /// The top left corner of the display is at offset (0, 0).
1078   ///
1079   UINT32                      ImageOffsetX;
1080   ///
1081   /// A 4-byte (32-bit) unsigned long describing the display Y-offset of the boot image.
1082   /// (X, Y) display offset of the top left corner of the boot image.
1083   /// The top left corner of the display is at offset (0, 0).
1084   ///
1085   UINT32                      ImageOffsetY;
1086 } EFI_ACPI_5_0_BOOT_GRAPHICS_RESOURCE_TABLE;
1087 
1088 ///
1089 /// BGRT Revision
1090 ///
1091 #define EFI_ACPI_5_0_BOOT_GRAPHICS_RESOURCE_TABLE_REVISION 1
1092 
1093 ///
1094 /// BGRT Version
1095 ///
1096 #define EFI_ACPI_5_0_BGRT_VERSION         0x01
1097 
1098 ///
1099 /// BGRT Status
1100 ///
1101 #define EFI_ACPI_5_0_BGRT_STATUS_NOT_DISPLAYED 0x00
1102 #define EFI_ACPI_5_0_BGRT_STATUS_DISPLAYED     0x01
1103 #define EFI_ACPI_5_0_BGRT_STATUS_INVALID       EFI_ACPI_5_0_BGRT_STATUS_NOT_DISPLAYED
1104 #define EFI_ACPI_5_0_BGRT_STATUS_VALID         EFI_ACPI_5_0_BGRT_STATUS_DISPLAYED
1105 
1106 ///
1107 /// BGRT Image Type
1108 ///
1109 #define EFI_ACPI_5_0_BGRT_IMAGE_TYPE_BMP  0x00
1110 
1111 ///
1112 /// FPDT Version (as defined in ACPI 5.0 spec.)
1113 ///
1114 #define EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_REVISION 0x01
1115 
1116 ///
1117 /// FPDT Performance Record Types
1118 ///
1119 #define EFI_ACPI_5_0_FPDT_RECORD_TYPE_FIRMWARE_BASIC_BOOT_POINTER      0x0000
1120 #define EFI_ACPI_5_0_FPDT_RECORD_TYPE_S3_PERFORMANCE_TABLE_POINTER     0x0001
1121 
1122 ///
1123 /// FPDT Performance Record Revision
1124 ///
1125 #define EFI_ACPI_5_0_FPDT_RECORD_REVISION_FIRMWARE_BASIC_BOOT_POINTER  0x01
1126 #define EFI_ACPI_5_0_FPDT_RECORD_REVISION_S3_PERFORMANCE_TABLE_POINTER 0x01
1127 
1128 ///
1129 /// FPDT Runtime Performance Record Types
1130 ///
1131 #define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_S3_RESUME                0x0000
1132 #define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_S3_SUSPEND               0x0001
1133 #define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_TYPE_FIRMWARE_BASIC_BOOT      0x0002
1134 
1135 ///
1136 /// FPDT Runtime Performance Record Revision
1137 ///
1138 #define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_S3_RESUME            0x01
1139 #define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_S3_SUSPEND           0x01
1140 #define EFI_ACPI_5_0_FPDT_RUNTIME_RECORD_REVISION_FIRMWARE_BASIC_BOOT  0x02
1141 
1142 ///
1143 /// FPDT Performance Record header
1144 ///
1145 typedef struct {
1146   UINT16           Type;
1147   UINT8            Length;
1148   UINT8            Revision;
1149 } EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER;
1150 
1151 ///
1152 /// FPDT Performance Table header
1153 ///
1154 typedef struct {
1155   UINT32  Signature;
1156   UINT32  Length;
1157 } EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER;
1158 
1159 ///
1160 /// FPDT Firmware Basic Boot Performance Pointer Record Structure
1161 ///
1162 typedef struct {
1163   EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER     Header;
1164   UINT32                                          Reserved;
1165   ///
1166   /// 64-bit processor-relative physical address of the Basic Boot Performance Table.
1167   ///
1168   UINT64                                          BootPerformanceTablePointer;
1169 } EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_POINTER_RECORD;
1170 
1171 ///
1172 /// FPDT S3 Performance Table Pointer Record Structure
1173 ///
1174 typedef struct {
1175   EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER     Header;
1176   UINT32                                          Reserved;
1177   ///
1178   /// 64-bit processor-relative physical address of the S3 Performance Table.
1179   ///
1180   UINT64                                          S3PerformanceTablePointer;
1181 } EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_POINTER_RECORD;
1182 
1183 ///
1184 /// FPDT Firmware Basic Boot Performance Record Structure
1185 ///
1186 typedef struct {
1187   EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER     Header;
1188   UINT32                                          Reserved;
1189   ///
1190   /// Timer value logged at the beginning of firmware image execution.
1191   /// This may not always be zero or near zero.
1192   ///
1193   UINT64                                          ResetEnd;
1194   ///
1195   /// Timer value logged just prior to loading the OS boot loader into memory.
1196   /// For non-UEFI compatible boots, this field must be zero.
1197   ///
1198   UINT64                                          OsLoaderLoadImageStart;
1199   ///
1200   /// Timer value logged just prior to launching the previously loaded OS boot loader image.
1201   /// For non-UEFI compatible boots, the timer value logged will be just prior
1202   /// to the INT 19h handler invocation.
1203   ///
1204   UINT64                                          OsLoaderStartImageStart;
1205   ///
1206   /// Timer value logged at the point when the OS loader calls the
1207   /// ExitBootServices function for UEFI compatible firmware.
1208   /// For non-UEFI compatible boots, this field must be zero.
1209   ///
1210   UINT64                                          ExitBootServicesEntry;
1211   ///
1212   /// Timer value logged at the point just prior towhen the OS loader gaining
1213   /// control back from calls the ExitBootServices function for UEFI compatible firmware.
1214   /// For non-UEFI compatible boots, this field must be zero.
1215   ///
1216   UINT64                                          ExitBootServicesExit;
1217 } EFI_ACPI_5_0_FPDT_FIRMWARE_BASIC_BOOT_RECORD;
1218 
1219 ///
1220 /// FPDT Firmware Basic Boot Performance Table signature
1221 ///
1222 #define EFI_ACPI_5_0_FPDT_BOOT_PERFORMANCE_TABLE_SIGNATURE  SIGNATURE_32('F', 'B', 'P', 'T')
1223 
1224 //
1225 // FPDT Firmware Basic Boot Performance Table
1226 //
1227 typedef struct {
1228   EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER      Header;
1229   //
1230   // one or more Performance Records.
1231   //
1232 } EFI_ACPI_5_0_FPDT_FIRMWARE_BASIC_BOOT_TABLE;
1233 
1234 ///
1235 /// FPDT "S3PT" S3 Performance Table
1236 ///
1237 #define EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE  SIGNATURE_32('S', '3', 'P', 'T')
1238 
1239 //
1240 // FPDT Firmware S3 Boot Performance Table
1241 //
1242 typedef struct {
1243   EFI_ACPI_5_0_FPDT_PERFORMANCE_TABLE_HEADER      Header;
1244   //
1245   // one or more Performance Records.
1246   //
1247 } EFI_ACPI_5_0_FPDT_FIRMWARE_S3_BOOT_TABLE;
1248 
1249 ///
1250 /// FPDT Basic S3 Resume Performance Record
1251 ///
1252 typedef struct {
1253   EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER     Header;
1254   ///
1255   /// A count of the number of S3 resume cycles since the last full boot sequence.
1256   ///
1257   UINT32                                          ResumeCount;
1258   ///
1259   /// Timer recorded at the end of BIOS S3 resume, just prior to handoff to the
1260   /// OS waking vector. Only the most recent resume cycle's time is retained.
1261   ///
1262   UINT64                                          FullResume;
1263   ///
1264   /// Average timer value of all resume cycles logged since the last full boot
1265   /// sequence, including the most recent resume.  Note that the entire log of
1266   /// timer values does not need to be retained in order to calculate this average.
1267   ///
1268   UINT64                                          AverageResume;
1269 } EFI_ACPI_5_0_FPDT_S3_RESUME_RECORD;
1270 
1271 ///
1272 /// FPDT Basic S3 Suspend Performance Record
1273 ///
1274 typedef struct {
1275   EFI_ACPI_5_0_FPDT_PERFORMANCE_RECORD_HEADER     Header;
1276   ///
1277   /// Timer value recorded at the OS write to SLP_TYP upon entry to S3.
1278   /// Only the most recent suspend cycle's timer value is retained.
1279   ///
1280   UINT64                                          SuspendStart;
1281   ///
1282   /// Timer value recorded at the final firmware write to SLP_TYP (or other
1283   /// mechanism) used to trigger hardware entry to S3.
1284   /// Only the most recent suspend cycle's timer value is retained.
1285   ///
1286   UINT64                                          SuspendEnd;
1287 } EFI_ACPI_5_0_FPDT_S3_SUSPEND_RECORD;
1288 
1289 ///
1290 /// Firmware Performance Record Table definition.
1291 ///
1292 typedef struct {
1293   EFI_ACPI_DESCRIPTION_HEADER Header;
1294 } EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_RECORD_TABLE;
1295 
1296 ///
1297 /// Generic Timer Description Table definition.
1298 ///
1299 typedef struct {
1300   EFI_ACPI_DESCRIPTION_HEADER Header;
1301   UINT64                      PhysicalAddress;
1302   UINT32                      GlobalFlags;
1303   UINT32                      SecurePL1TimerGSIV;
1304   UINT32                      SecurePL1TimerFlags;
1305   UINT32                      NonSecurePL1TimerGSIV;
1306   UINT32                      NonSecurePL1TimerFlags;
1307   UINT32                      VirtualTimerGSIV;
1308   UINT32                      VirtualTimerFlags;
1309   UINT32                      NonSecurePL2TimerGSIV;
1310   UINT32                      NonSecurePL2TimerFlags;
1311 } EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE;
1312 
1313 ///
1314 /// GTDT Version (as defined in ACPI 5.0 spec.)
1315 ///
1316 #define EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_REVISION 0x01
1317 
1318 ///
1319 /// Global Flags.  All other bits are reserved and must be 0.
1320 ///
1321 #define EFI_ACPI_5_0_GTDT_GLOBAL_FLAG_MEMORY_MAPPED_BLOCK_PRESENT   BIT0
1322 #define EFI_ACPI_5_0_GTDT_GLOBAL_FLAG_INTERRUPT_MODE                BIT1
1323 
1324 ///
1325 /// Timer Flags.  All other bits are reserved and must be 0.
1326 ///
1327 #define EFI_ACPI_5_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_MODE          BIT0
1328 #define EFI_ACPI_5_0_GTDT_TIMER_FLAG_TIMER_INTERRUPT_POLARITY      BIT1
1329 
1330 ///
1331 /// Boot Error Record Table (BERT)
1332 ///
1333 typedef struct {
1334   EFI_ACPI_DESCRIPTION_HEADER Header;
1335   UINT32                      BootErrorRegionLength;
1336   UINT64                      BootErrorRegion;
1337 } EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_HEADER;
1338 
1339 ///
1340 /// BERT Version (as defined in ACPI 5.0 spec.)
1341 ///
1342 #define EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_REVISION 0x01
1343 
1344 ///
1345 /// Boot Error Region Block Status Definition
1346 ///
1347 typedef struct {
1348   UINT32       UncorrectableErrorValid:1;
1349   UINT32       CorrectableErrorValid:1;
1350   UINT32       MultipleUncorrectableErrors:1;
1351   UINT32       MultipleCorrectableErrors:1;
1352   UINT32       ErrorDataEntryCount:10;
1353   UINT32       Reserved:18;
1354 } EFI_ACPI_5_0_ERROR_BLOCK_STATUS;
1355 
1356 ///
1357 /// Boot Error Region Definition
1358 ///
1359 typedef struct {
1360   EFI_ACPI_5_0_ERROR_BLOCK_STATUS              BlockStatus;
1361   UINT32                                       RawDataOffset;
1362   UINT32                                       RawDataLength;
1363   UINT32                                       DataLength;
1364   UINT32                                       ErrorSeverity;
1365 } EFI_ACPI_5_0_BOOT_ERROR_REGION_STRUCTURE;
1366 
1367 //
1368 // Boot Error Severity types
1369 //
1370 #define EFI_ACPI_5_0_ERROR_SEVERITY_CORRECTABLE  0x00
1371 #define EFI_ACPI_5_0_ERROR_SEVERITY_FATAL        0x01
1372 #define EFI_ACPI_5_0_ERROR_SEVERITY_CORRECTED    0x02
1373 #define EFI_ACPI_5_0_ERROR_SEVERITY_NONE         0x03
1374 
1375 ///
1376 /// Generic Error Data Entry Definition
1377 ///
1378 typedef struct {
1379   UINT8    SectionType[16];
1380   UINT32   ErrorSeverity;
1381   UINT16   Revision;
1382   UINT8    ValidationBits;
1383   UINT8    Flags;
1384   UINT32   ErrorDataLength;
1385   UINT8    FruId[16];
1386   UINT8    FruText[20];
1387 } EFI_ACPI_5_0_GENERIC_ERROR_DATA_ENTRY_STRUCTURE;
1388 
1389 ///
1390 /// Generic Error Data Entry Version (as defined in ACPI 5.0 spec.)
1391 ///
1392 #define EFI_ACPI_5_0_GENERIC_ERROR_DATA_ENTRY_REVISION  0x0201
1393 
1394 ///
1395 /// HEST - Hardware Error Source Table
1396 ///
1397 typedef struct {
1398   EFI_ACPI_DESCRIPTION_HEADER Header;
1399   UINT32                      ErrorSourceCount;
1400 } EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_HEADER;
1401 
1402 ///
1403 /// HEST Version (as defined in ACPI 5.0 spec.)
1404 ///
1405 #define EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_REVISION 0x01
1406 
1407 //
1408 // Error Source structure types.
1409 //
1410 #define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION  0x00
1411 #define EFI_ACPI_5_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK  0x01
1412 #define EFI_ACPI_5_0_IA32_ARCHITECTURE_NMI_ERROR                0x02
1413 #define EFI_ACPI_5_0_PCI_EXPRESS_ROOT_PORT_AER                  0x06
1414 #define EFI_ACPI_5_0_PCI_EXPRESS_DEVICE_AER                     0x07
1415 #define EFI_ACPI_5_0_PCI_EXPRESS_BRIDGE_AER                     0x08
1416 #define EFI_ACPI_5_0_GENERIC_HARDWARE_ERROR                     0x09
1417 
1418 //
1419 // Error Source structure flags.
1420 //
1421 #define EFI_ACPI_5_0_ERROR_SOURCE_FLAG_FIRMWARE_FIRST       (1 << 0)
1422 #define EFI_ACPI_5_0_ERROR_SOURCE_FLAG_GLOBAL               (1 << 1)
1423 
1424 ///
1425 /// IA-32 Architecture Machine Check Exception Structure Definition
1426 ///
1427 typedef struct {
1428   UINT16  Type;
1429   UINT16  SourceId;
1430   UINT8   Reserved0[2];
1431   UINT8   Flags;
1432   UINT8   Enabled;
1433   UINT32  NumberOfRecordsToPreAllocate;
1434   UINT32  MaxSectionsPerRecord;
1435   UINT64  GlobalCapabilityInitData;
1436   UINT64  GlobalControlInitData;
1437   UINT8   NumberOfHardwareBanks;
1438   UINT8   Reserved1[7];
1439 } EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_EXCEPTION_STRUCTURE;
1440 
1441 ///
1442 /// IA-32 Architecture Machine Check Bank Structure Definition
1443 ///
1444 typedef struct {
1445   UINT8   BankNumber;
1446   UINT8   ClearStatusOnInitialization;
1447   UINT8   StatusDataFormat;
1448   UINT8   Reserved0;
1449   UINT32  ControlRegisterMsrAddress;
1450   UINT64  ControlInitData;
1451   UINT32  StatusRegisterMsrAddress;
1452   UINT32  AddressRegisterMsrAddress;
1453   UINT32  MiscRegisterMsrAddress;
1454 } EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_BANK_STRUCTURE;
1455 
1456 ///
1457 /// IA-32 Architecture Machine Check Bank Structure MCA data format
1458 ///
1459 #define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_IA32      0x00
1460 #define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_INTEL64   0x01
1461 #define EFI_ACPI_5_0_IA32_ARCHITECTURE_MACHINE_CHECK_ERROR_DATA_FORMAT_AMD64     0x02
1462 
1463 //
1464 // Hardware Error Notification types. All other values are reserved
1465 //
1466 #define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_POLLED                0x00
1467 #define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_EXTERNAL_INTERRUPT    0x01
1468 #define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_LOCAL_INTERRUPT       0x02
1469 #define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_SCI                   0x03
1470 #define EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_NMI                   0x04
1471 
1472 ///
1473 /// Hardware Error Notification Configuration Write Enable Structure Definition
1474 ///
1475 typedef struct {
1476   UINT16    Type:1;
1477   UINT16    PollInterval:1;
1478   UINT16    SwitchToPollingThresholdValue:1;
1479   UINT16    SwitchToPollingThresholdWindow:1;
1480   UINT16    ErrorThresholdValue:1;
1481   UINT16    ErrorThresholdWindow:1;
1482   UINT16    Reserved:10;
1483 } EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE;
1484 
1485 ///
1486 /// Hardware Error Notification Structure Definition
1487 ///
1488 typedef struct {
1489   UINT8                                                                          Type;
1490   UINT8                                                                          Length;
1491   EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_CONFIGURATION_WRITE_ENABLE_STRUCTURE  ConfigurationWriteEnable;
1492   UINT32                                                                         PollInterval;
1493   UINT32                                                                         Vector;
1494   UINT32                                                                         SwitchToPollingThresholdValue;
1495   UINT32                                                                         SwitchToPollingThresholdWindow;
1496   UINT32                                                                         ErrorThresholdValue;
1497   UINT32                                                                         ErrorThresholdWindow;
1498 } EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE;
1499 
1500 ///
1501 /// IA-32 Architecture Corrected Machine Check Structure Definition
1502 ///
1503 typedef struct {
1504   UINT16                                                 Type;
1505   UINT16                                                 SourceId;
1506   UINT8                                                  Reserved0[2];
1507   UINT8                                                  Flags;
1508   UINT8                                                  Enabled;
1509   UINT32                                                 NumberOfRecordsToPreAllocate;
1510   UINT32                                                 MaxSectionsPerRecord;
1511   EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE     NotificationStructure;
1512   UINT8                                                  NumberOfHardwareBanks;
1513   UINT8                                                  Reserved1[3];
1514 } EFI_ACPI_5_0_IA32_ARCHITECTURE_CORRECTED_MACHINE_CHECK_STRUCTURE;
1515 
1516 ///
1517 /// IA-32 Architecture NMI Error Structure Definition
1518 ///
1519 typedef struct {
1520   UINT16  Type;
1521   UINT16  SourceId;
1522   UINT8   Reserved0[2];
1523   UINT32  NumberOfRecordsToPreAllocate;
1524   UINT32  MaxSectionsPerRecord;
1525   UINT32  MaxRawDataLength;
1526 } EFI_ACPI_5_0_IA32_ARCHITECTURE_NMI_ERROR_STRUCTURE;
1527 
1528 ///
1529 /// PCI Express Root Port AER Structure Definition
1530 ///
1531 typedef struct {
1532   UINT16  Type;
1533   UINT16  SourceId;
1534   UINT8   Reserved0[2];
1535   UINT8   Flags;
1536   UINT8   Enabled;
1537   UINT32  NumberOfRecordsToPreAllocate;
1538   UINT32  MaxSectionsPerRecord;
1539   UINT32  Bus;
1540   UINT16  Device;
1541   UINT16  Function;
1542   UINT16  DeviceControl;
1543   UINT8   Reserved1[2];
1544   UINT32  UncorrectableErrorMask;
1545   UINT32  UncorrectableErrorSeverity;
1546   UINT32  CorrectableErrorMask;
1547   UINT32  AdvancedErrorCapabilitiesAndControl;
1548   UINT32  RootErrorCommand;
1549 } EFI_ACPI_5_0_PCI_EXPRESS_ROOT_PORT_AER_STRUCTURE;
1550 
1551 ///
1552 /// PCI Express Device AER Structure Definition
1553 ///
1554 typedef struct {
1555   UINT16  Type;
1556   UINT16  SourceId;
1557   UINT8   Reserved0[2];
1558   UINT8   Flags;
1559   UINT8   Enabled;
1560   UINT32  NumberOfRecordsToPreAllocate;
1561   UINT32  MaxSectionsPerRecord;
1562   UINT32  Bus;
1563   UINT16  Device;
1564   UINT16  Function;
1565   UINT16  DeviceControl;
1566   UINT8   Reserved1[2];
1567   UINT32  UncorrectableErrorMask;
1568   UINT32  UncorrectableErrorSeverity;
1569   UINT32  CorrectableErrorMask;
1570   UINT32  AdvancedErrorCapabilitiesAndControl;
1571 } EFI_ACPI_5_0_PCI_EXPRESS_DEVICE_AER_STRUCTURE;
1572 
1573 ///
1574 /// PCI Express Bridge AER Structure Definition
1575 ///
1576 typedef struct {
1577   UINT16  Type;
1578   UINT16  SourceId;
1579   UINT8   Reserved0[2];
1580   UINT8   Flags;
1581   UINT8   Enabled;
1582   UINT32  NumberOfRecordsToPreAllocate;
1583   UINT32  MaxSectionsPerRecord;
1584   UINT32  Bus;
1585   UINT16  Device;
1586   UINT16  Function;
1587   UINT16  DeviceControl;
1588   UINT8   Reserved1[2];
1589   UINT32  UncorrectableErrorMask;
1590   UINT32  UncorrectableErrorSeverity;
1591   UINT32  CorrectableErrorMask;
1592   UINT32  AdvancedErrorCapabilitiesAndControl;
1593   UINT32  SecondaryUncorrectableErrorMask;
1594   UINT32  SecondaryUncorrectableErrorSeverity;
1595   UINT32  SecondaryAdvancedErrorCapabilitiesAndControl;
1596 } EFI_ACPI_5_0_PCI_EXPRESS_BRIDGE_AER_STRUCTURE;
1597 
1598 ///
1599 /// Generic Hardware Error Source Structure Definition
1600 ///
1601 typedef struct {
1602   UINT16                                                 Type;
1603   UINT16                                                 SourceId;
1604   UINT16                                                 RelatedSourceId;
1605   UINT8                                                  Flags;
1606   UINT8                                                  Enabled;
1607   UINT32                                                 NumberOfRecordsToPreAllocate;
1608   UINT32                                                 MaxSectionsPerRecord;
1609   UINT32                                                 MaxRawDataLength;
1610   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE                 ErrorStatusAddress;
1611   EFI_ACPI_5_0_HARDWARE_ERROR_NOTIFICATION_STRUCTURE     NotificationStructure;
1612   UINT32                                                 ErrorStatusBlockLength;
1613 } EFI_ACPI_5_0_GENERIC_HARDWARE_ERROR_SOURCE_STRUCTURE;
1614 
1615 ///
1616 /// Generic Error Status Definition
1617 ///
1618 typedef struct {
1619   EFI_ACPI_5_0_ERROR_BLOCK_STATUS              BlockStatus;
1620   UINT32                                       RawDataOffset;
1621   UINT32                                       RawDataLength;
1622   UINT32                                       DataLength;
1623   UINT32                                       ErrorSeverity;
1624 } EFI_ACPI_5_0_GENERIC_ERROR_STATUS_STRUCTURE;
1625 
1626 ///
1627 /// ERST - Error Record Serialization Table
1628 ///
1629 typedef struct {
1630   EFI_ACPI_DESCRIPTION_HEADER Header;
1631   UINT32                      SerializationHeaderSize;
1632   UINT8                       Reserved0[4];
1633   UINT32                      InstructionEntryCount;
1634 } EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_HEADER;
1635 
1636 ///
1637 /// ERST Version (as defined in ACPI 5.0 spec.)
1638 ///
1639 #define EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_REVISION 0x01
1640 
1641 ///
1642 /// ERST Serialization Actions
1643 ///
1644 #define EFI_ACPI_5_0_ERST_BEGIN_WRITE_OPERATION                    0x00
1645 #define EFI_ACPI_5_0_ERST_BEGIN_READ_OPERATION                     0x01
1646 #define EFI_ACPI_5_0_ERST_BEGIN_CLEAR_OPERATION                    0x02
1647 #define EFI_ACPI_5_0_ERST_END_OPERATION                            0x03
1648 #define EFI_ACPI_5_0_ERST_SET_RECORD_OFFSET                        0x04
1649 #define EFI_ACPI_5_0_ERST_EXECUTE_OPERATION                        0x05
1650 #define EFI_ACPI_5_0_ERST_CHECK_BUSY_STATUS                        0x06
1651 #define EFI_ACPI_5_0_ERST_GET_COMMAND_STATUS                       0x07
1652 #define EFI_ACPI_5_0_ERST_GET_RECORD_IDENTIFIER                    0x08
1653 #define EFI_ACPI_5_0_ERST_SET_RECORD_IDENTIFIER                    0x09
1654 #define EFI_ACPI_5_0_ERST_GET_RECORD_COUNT                         0x0A
1655 #define EFI_ACPI_5_0_ERST_BEGIN_DUMMY_WRITE_OPERATION              0x0B
1656 #define EFI_ACPI_5_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE              0x0D
1657 #define EFI_ACPI_5_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_LENGTH       0x0E
1658 #define EFI_ACPI_5_0_ERST_GET_ERROR_LOG_ADDRESS_RANGE_ATTRIBUTES   0x0F
1659 
1660 ///
1661 /// ERST Action Command Status
1662 ///
1663 #define EFI_ACPI_5_0_ERST_STATUS_SUCCESS                           0x00
1664 #define EFI_ACPI_5_0_ERST_STATUS_NOT_ENOUGH_SPACE                  0x01
1665 #define EFI_ACPI_5_0_ERST_STATUS_HARDWARE_NOT_AVAILABLE            0x02
1666 #define EFI_ACPI_5_0_ERST_STATUS_FAILED                            0x03
1667 #define EFI_ACPI_5_0_ERST_STATUS_RECORD_STORE_EMPTY                0x04
1668 #define EFI_ACPI_5_0_ERST_STATUS_RECORD_NOT_FOUND                  0x05
1669 
1670 ///
1671 /// ERST Serialization Instructions
1672 ///
1673 #define EFI_ACPI_5_0_ERST_READ_REGISTER                            0x00
1674 #define EFI_ACPI_5_0_ERST_READ_REGISTER_VALUE                      0x01
1675 #define EFI_ACPI_5_0_ERST_WRITE_REGISTER                           0x02
1676 #define EFI_ACPI_5_0_ERST_WRITE_REGISTER_VALUE                     0x03
1677 #define EFI_ACPI_5_0_ERST_NOOP                                     0x04
1678 #define EFI_ACPI_5_0_ERST_LOAD_VAR1                                0x05
1679 #define EFI_ACPI_5_0_ERST_LOAD_VAR2                                0x06
1680 #define EFI_ACPI_5_0_ERST_STORE_VAR1                               0x07
1681 #define EFI_ACPI_5_0_ERST_ADD                                      0x08
1682 #define EFI_ACPI_5_0_ERST_SUBTRACT                                 0x09
1683 #define EFI_ACPI_5_0_ERST_ADD_VALUE                                0x0A
1684 #define EFI_ACPI_5_0_ERST_SUBTRACT_VALUE                           0x0B
1685 #define EFI_ACPI_5_0_ERST_STALL                                    0x0C
1686 #define EFI_ACPI_5_0_ERST_STALL_WHILE_TRUE                         0x0D
1687 #define EFI_ACPI_5_0_ERST_SKIP_NEXT_INSTRUCTION_IF_TRUE            0x0E
1688 #define EFI_ACPI_5_0_ERST_GOTO                                     0x0F
1689 #define EFI_ACPI_5_0_ERST_SET_SRC_ADDRESS_BASE                     0x10
1690 #define EFI_ACPI_5_0_ERST_SET_DST_ADDRESS_BASE                     0x11
1691 #define EFI_ACPI_5_0_ERST_MOVE_DATA                                0x12
1692 
1693 ///
1694 /// ERST Instruction Flags
1695 ///
1696 #define EFI_ACPI_5_0_ERST_PRESERVE_REGISTER                        0x01
1697 
1698 ///
1699 /// ERST Serialization Instruction Entry
1700 ///
1701 typedef struct {
1702   UINT8                                    SerializationAction;
1703   UINT8                                    Instruction;
1704   UINT8                                    Flags;
1705   UINT8                                    Reserved0;
1706   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE   RegisterRegion;
1707   UINT64                                   Value;
1708   UINT64                                   Mask;
1709 } EFI_ACPI_5_0_ERST_SERIALIZATION_INSTRUCTION_ENTRY;
1710 
1711 ///
1712 /// EINJ - Error Injection Table
1713 ///
1714 typedef struct {
1715   EFI_ACPI_DESCRIPTION_HEADER Header;
1716   UINT32                      InjectionHeaderSize;
1717   UINT8                       InjectionFlags;
1718   UINT8                       Reserved0[3];
1719   UINT32                      InjectionEntryCount;
1720 } EFI_ACPI_5_0_ERROR_INJECTION_TABLE_HEADER;
1721 
1722 ///
1723 /// EINJ Version (as defined in ACPI 5.0 spec.)
1724 ///
1725 #define EFI_ACPI_5_0_ERROR_INJECTION_TABLE_REVISION 0x01
1726 
1727 ///
1728 /// EINJ Error Injection Actions
1729 ///
1730 #define EFI_ACPI_5_0_EINJ_BEGIN_INJECTION_OPERATION                0x00
1731 #define EFI_ACPI_5_0_EINJ_GET_TRIGGER_ERROR_ACTION_TABLE           0x01
1732 #define EFI_ACPI_5_0_EINJ_SET_ERROR_TYPE                           0x02
1733 #define EFI_ACPI_5_0_EINJ_GET_ERROR_TYPE                           0x03
1734 #define EFI_ACPI_5_0_EINJ_END_OPERATION                            0x04
1735 #define EFI_ACPI_5_0_EINJ_EXECUTE_OPERATION                        0x05
1736 #define EFI_ACPI_5_0_EINJ_CHECK_BUSY_STATUS                        0x06
1737 #define EFI_ACPI_5_0_EINJ_GET_COMMAND_STATUS                       0x07
1738 #define EFI_ACPI_5_0_EINJ_TRIGGER_ERROR                            0xFF
1739 
1740 ///
1741 /// EINJ Action Command Status
1742 ///
1743 #define EFI_ACPI_5_0_EINJ_STATUS_SUCCESS                           0x00
1744 #define EFI_ACPI_5_0_EINJ_STATUS_UNKNOWN_FAILURE                   0x01
1745 #define EFI_ACPI_5_0_EINJ_STATUS_INVALID_ACCESS                    0x02
1746 
1747 ///
1748 /// EINJ Error Type Definition
1749 ///
1750 #define EFI_ACPI_5_0_EINJ_ERROR_PROCESSOR_CORRECTABLE                 (1 << 0)
1751 #define EFI_ACPI_5_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_NONFATAL      (1 << 1)
1752 #define EFI_ACPI_5_0_EINJ_ERROR_PROCESSOR_UNCORRECTABLE_FATAL         (1 << 2)
1753 #define EFI_ACPI_5_0_EINJ_ERROR_MEMORY_CORRECTABLE                    (1 << 3)
1754 #define EFI_ACPI_5_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_NONFATAL         (1 << 4)
1755 #define EFI_ACPI_5_0_EINJ_ERROR_MEMORY_UNCORRECTABLE_FATAL            (1 << 5)
1756 #define EFI_ACPI_5_0_EINJ_ERROR_PCI_EXPRESS_CORRECTABLE               (1 << 6)
1757 #define EFI_ACPI_5_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_NONFATAL    (1 << 7)
1758 #define EFI_ACPI_5_0_EINJ_ERROR_PCI_EXPRESS_UNCORRECTABLE_FATAL       (1 << 8)
1759 #define EFI_ACPI_5_0_EINJ_ERROR_PLATFORM_CORRECTABLE                  (1 << 9)
1760 #define EFI_ACPI_5_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_NONFATAL       (1 << 10)
1761 #define EFI_ACPI_5_0_EINJ_ERROR_PLATFORM_UNCORRECTABLE_FATAL          (1 << 11)
1762 
1763 ///
1764 /// EINJ Injection Instructions
1765 ///
1766 #define EFI_ACPI_5_0_EINJ_READ_REGISTER                            0x00
1767 #define EFI_ACPI_5_0_EINJ_READ_REGISTER_VALUE                      0x01
1768 #define EFI_ACPI_5_0_EINJ_WRITE_REGISTER                           0x02
1769 #define EFI_ACPI_5_0_EINJ_WRITE_REGISTER_VALUE                     0x03
1770 #define EFI_ACPI_5_0_EINJ_NOOP                                     0x04
1771 
1772 ///
1773 /// EINJ Instruction Flags
1774 ///
1775 #define EFI_ACPI_5_0_EINJ_PRESERVE_REGISTER                        0x01
1776 
1777 ///
1778 /// EINJ Injection Instruction Entry
1779 ///
1780 typedef struct {
1781   UINT8                                    InjectionAction;
1782   UINT8                                    Instruction;
1783   UINT8                                    Flags;
1784   UINT8                                    Reserved0;
1785   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE   RegisterRegion;
1786   UINT64                                   Value;
1787   UINT64                                   Mask;
1788 } EFI_ACPI_5_0_EINJ_INJECTION_INSTRUCTION_ENTRY;
1789 
1790 ///
1791 /// EINJ Trigger Action Table
1792 ///
1793 typedef struct {
1794   UINT32  HeaderSize;
1795   UINT32  Revision;
1796   UINT32  TableSize;
1797   UINT32  EntryCount;
1798 } EFI_ACPI_5_0_EINJ_TRIGGER_ACTION_TABLE;
1799 
1800 ///
1801 /// Platform Communications Channel Table (PCCT)
1802 ///
1803 typedef struct {
1804   EFI_ACPI_DESCRIPTION_HEADER Header;
1805   UINT32                      Flags;
1806   UINT64                      Reserved;
1807 } EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_HEADER;
1808 
1809 ///
1810 /// PCCT Version (as defined in ACPI 5.0 spec.)
1811 ///
1812 #define EFI_ACPI_5_0_PLATFORM_COMMUNICATION_CHANNEL_TABLE_REVISION 0x01
1813 
1814 ///
1815 /// PCCT Global Flags
1816 ///
1817 #define EFI_ACPI_5_0_PCCT_FLAGS_SCI_DOORBELL                      BIT0
1818 
1819 //
1820 // PCCT Subspace type
1821 //
1822 #define EFI_ACPI_5_0_PCCT_SUBSPACE_TYPE_GENERIC  0x00
1823 
1824 ///
1825 /// PCC Subspace Structure Header
1826 ///
1827 typedef struct {
1828   UINT8        Type;
1829   UINT8        Length;
1830 } EFI_ACPI_5_0_PCCT_SUBSPACE_HEADER;
1831 
1832 ///
1833 /// Generic Communications Subspace Structure
1834 ///
1835 typedef struct {
1836   UINT8                                    Type;
1837   UINT8                                    Length;
1838   UINT8                                    Reserved[6];
1839   UINT64                                   BaseAddress;
1840   UINT64                                   AddressLength;
1841   EFI_ACPI_5_0_GENERIC_ADDRESS_STRUCTURE   DoorbellRegister;
1842   UINT64                                   DoorbellPreserve;
1843   UINT64                                   DoorbellWrite;
1844   UINT32                                   NominalLatency;
1845   UINT32                                   MaximumPeriodicAccessRate;
1846   UINT16                                   MinimumRequestTurnaroundTime;
1847 } EFI_ACPI_5_0_PCCT_SUBSPACE_GENERIC;
1848 
1849 ///
1850 /// Generic Communications Channel Shared Memory Region
1851 ///
1852 
1853 typedef struct {
1854   UINT8                                    Command;
1855   UINT8                                    Reserved:7;
1856   UINT8                                    GenerateSci:1;
1857 } EFI_ACPI_5_0_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND;
1858 
1859 typedef struct {
1860   UINT8                                    CommandComplete:1;
1861   UINT8                                    SciDoorbell:1;
1862   UINT8                                    Error:1;
1863   UINT8                                    PlatformNotification:1;
1864   UINT8                                    Reserved:4;
1865   UINT8                                    Reserved1;
1866 } EFI_ACPI_5_0_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS;
1867 
1868 typedef struct {
1869   UINT32                                                    Signature;
1870   EFI_ACPI_5_0_PCCT_GENERIC_SHARED_MEMORY_REGION_COMMAND    Command;
1871   EFI_ACPI_5_0_PCCT_GENERIC_SHARED_MEMORY_REGION_STATUS     Status;
1872 } EFI_ACPI_5_0_PCCT_GENERIC_SHARED_MEMORY_REGION_HEADER;
1873 
1874 //
1875 // Known table signatures
1876 //
1877 
1878 ///
1879 /// "RSD PTR " Root System Description Pointer
1880 ///
1881 #define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_POINTER_SIGNATURE  SIGNATURE_64('R', 'S', 'D', ' ', 'P', 'T', 'R', ' ')
1882 
1883 ///
1884 /// "APIC" Multiple APIC Description Table
1885 ///
1886 #define EFI_ACPI_5_0_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('A', 'P', 'I', 'C')
1887 
1888 ///
1889 /// "BERT" Boot Error Record Table
1890 ///
1891 #define EFI_ACPI_5_0_BOOT_ERROR_RECORD_TABLE_SIGNATURE  SIGNATURE_32('B', 'E', 'R', 'T')
1892 
1893 ///
1894 /// "BGRT" Boot Graphics Resource Table
1895 ///
1896 #define EFI_ACPI_5_0_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE  SIGNATURE_32('B', 'G', 'R', 'T')
1897 
1898 ///
1899 /// "CPEP" Corrected Platform Error Polling Table
1900 ///
1901 #define EFI_ACPI_5_0_CORRECTED_PLATFORM_ERROR_POLLING_TABLE_SIGNATURE  SIGNATURE_32('C', 'P', 'E', 'P')
1902 
1903 ///
1904 /// "DSDT" Differentiated System Description Table
1905 ///
1906 #define EFI_ACPI_5_0_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('D', 'S', 'D', 'T')
1907 
1908 ///
1909 /// "ECDT" Embedded Controller Boot Resources Table
1910 ///
1911 #define EFI_ACPI_5_0_EMBEDDED_CONTROLLER_BOOT_RESOURCES_TABLE_SIGNATURE  SIGNATURE_32('E', 'C', 'D', 'T')
1912 
1913 ///
1914 /// "EINJ" Error Injection Table
1915 ///
1916 #define EFI_ACPI_5_0_ERROR_INJECTION_TABLE_SIGNATURE  SIGNATURE_32('E', 'I', 'N', 'J')
1917 
1918 ///
1919 /// "ERST" Error Record Serialization Table
1920 ///
1921 #define EFI_ACPI_5_0_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE  SIGNATURE_32('E', 'R', 'S', 'T')
1922 
1923 ///
1924 /// "FACP" Fixed ACPI Description Table
1925 ///
1926 #define EFI_ACPI_5_0_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('F', 'A', 'C', 'P')
1927 
1928 ///
1929 /// "FACS" Firmware ACPI Control Structure
1930 ///
1931 #define EFI_ACPI_5_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE  SIGNATURE_32('F', 'A', 'C', 'S')
1932 
1933 ///
1934 /// "FPDT" Firmware Performance Data Table
1935 ///
1936 #define EFI_ACPI_5_0_FIRMWARE_PERFORMANCE_DATA_TABLE_SIGNATURE  SIGNATURE_32('F', 'P', 'D', 'T')
1937 
1938 ///
1939 /// "GTDT" Generic Timer Description Table
1940 ///
1941 #define EFI_ACPI_5_0_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('G', 'T', 'D', 'T')
1942 
1943 ///
1944 /// "HEST" Hardware Error Source Table
1945 ///
1946 #define EFI_ACPI_5_0_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE  SIGNATURE_32('H', 'E', 'S', 'T')
1947 
1948 ///
1949 /// "MPST" Memory Power State Table
1950 ///
1951 #define EFI_ACPI_5_0_MEMORY_POWER_STATE_TABLE_SIGNATURE  SIGNATURE_32('M', 'P', 'S', 'T')
1952 
1953 ///
1954 /// "MSCT" Maximum System Characteristics Table
1955 ///
1956 #define EFI_ACPI_5_0_MAXIMUM_SYSTEM_CHARACTERISTICS_TABLE_SIGNATURE  SIGNATURE_32('M', 'S', 'C', 'T')
1957 
1958 ///
1959 /// "PMTT" Platform Memory Topology Table
1960 ///
1961 #define EFI_ACPI_5_0_PLATFORM_MEMORY_TOPOLOGY_TABLE_SIGNATURE  SIGNATURE_32('P', 'M', 'T', 'T')
1962 
1963 ///
1964 /// "PSDT" Persistent System Description Table
1965 ///
1966 #define EFI_ACPI_5_0_PERSISTENT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('P', 'S', 'D', 'T')
1967 
1968 ///
1969 /// "RASF" ACPI RAS Feature Table
1970 ///
1971 #define EFI_ACPI_5_0_ACPI_RAS_FEATURE_TABLE_SIGNATURE  SIGNATURE_32('R', 'A', 'S', 'F')
1972 
1973 ///
1974 /// "RSDT" Root System Description Table
1975 ///
1976 #define EFI_ACPI_5_0_ROOT_SYSTEM_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('R', 'S', 'D', 'T')
1977 
1978 ///
1979 /// "SBST" Smart Battery Specification Table
1980 ///
1981 #define EFI_ACPI_5_0_SMART_BATTERY_SPECIFICATION_TABLE_SIGNATURE  SIGNATURE_32('S', 'B', 'S', 'T')
1982 
1983 ///
1984 /// "SLIT" System Locality Information Table
1985 ///
1986 #define EFI_ACPI_5_0_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE  SIGNATURE_32('S', 'L', 'I', 'T')
1987 
1988 ///
1989 /// "SRAT" System Resource Affinity Table
1990 ///
1991 #define EFI_ACPI_5_0_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE  SIGNATURE_32('S', 'R', 'A', 'T')
1992 
1993 ///
1994 /// "SSDT" Secondary System Description Table
1995 ///
1996 #define EFI_ACPI_5_0_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('S', 'S', 'D', 'T')
1997 
1998 ///
1999 /// "XSDT" Extended System Description Table
2000 ///
2001 #define EFI_ACPI_5_0_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('X', 'S', 'D', 'T')
2002 
2003 ///
2004 /// "BOOT" MS Simple Boot Spec
2005 ///
2006 #define EFI_ACPI_5_0_SIMPLE_BOOT_FLAG_TABLE_SIGNATURE  SIGNATURE_32('B', 'O', 'O', 'T')
2007 
2008 ///
2009 /// "CSRT" MS Core System Resource Table
2010 ///
2011 #define EFI_ACPI_5_0_CORE_SYSTEM_RESOURCE_TABLE_SIGNATURE  SIGNATURE_32('C', 'S', 'R', 'T')
2012 
2013 ///
2014 /// "DBG2" MS Debug Port 2 Spec
2015 ///
2016 #define EFI_ACPI_5_0_DEBUG_PORT_2_TABLE_SIGNATURE  SIGNATURE_32('D', 'B', 'G', '2')
2017 
2018 ///
2019 /// "DBGP" MS Debug Port Spec
2020 ///
2021 #define EFI_ACPI_5_0_DEBUG_PORT_TABLE_SIGNATURE  SIGNATURE_32('D', 'B', 'G', 'P')
2022 
2023 ///
2024 /// "DMAR" DMA Remapping Table
2025 ///
2026 #define EFI_ACPI_5_0_DMA_REMAPPING_TABLE_SIGNATURE  SIGNATURE_32('D', 'M', 'A', 'R')
2027 
2028 ///
2029 /// "DRTM" Dynamic Root of Trust for Measurement Table
2030 ///
2031 #define EFI_ACPI_5_0_DYNAMIC_ROOT_OF_TRUST_FOR_MEASUREMENT_TABLE_SIGNATURE  SIGNATURE_32('D', 'R', 'T', 'M')
2032 
2033 ///
2034 /// "ETDT" Event Timer Description Table
2035 ///
2036 #define EFI_ACPI_5_0_EVENT_TIMER_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('E', 'T', 'D', 'T')
2037 
2038 ///
2039 /// "HPET" IA-PC High Precision Event Timer Table
2040 ///
2041 #define EFI_ACPI_5_0_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE  SIGNATURE_32('H', 'P', 'E', 'T')
2042 
2043 ///
2044 /// "iBFT" iSCSI Boot Firmware Table
2045 ///
2046 #define EFI_ACPI_5_0_ISCSI_BOOT_FIRMWARE_TABLE_SIGNATURE  SIGNATURE_32('i', 'B', 'F', 'T')
2047 
2048 ///
2049 /// "IVRS" I/O Virtualization Reporting Structure
2050 ///
2051 #define EFI_ACPI_5_0_IO_VIRTUALIZATION_REPORTING_STRUCTURE_SIGNATURE  SIGNATURE_32('I', 'V', 'R', 'S')
2052 
2053 ///
2054 /// "MCFG" PCI Express Memory Mapped Configuration Space Base Address Description Table
2055 ///
2056 #define EFI_ACPI_5_0_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE  SIGNATURE_32('M', 'C', 'F', 'G')
2057 
2058 ///
2059 /// "MCHI" Management Controller Host Interface Table
2060 ///
2061 #define EFI_ACPI_5_0_MANAGEMENT_CONTROLLER_HOST_INTERFACE_TABLE_SIGNATURE  SIGNATURE_32('M', 'C', 'H', 'I')
2062 
2063 ///
2064 /// "MSDM" MS Data Management Table
2065 ///
2066 #define EFI_ACPI_5_0_DATA_MANAGEMENT_TABLE_SIGNATURE  SIGNATURE_32('M', 'S', 'D', 'M')
2067 
2068 ///
2069 /// "SLIC" MS Software Licensing Table Specification
2070 ///
2071 #define EFI_ACPI_5_0_SOFTWARE_LICENSING_TABLE_SIGNATURE  SIGNATURE_32('S', 'L', 'I', 'C')
2072 
2073 ///
2074 /// "SPCR" Serial Port Concole Redirection Table
2075 ///
2076 #define EFI_ACPI_5_0_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE  SIGNATURE_32('S', 'P', 'C', 'R')
2077 
2078 ///
2079 /// "SPMI" Server Platform Management Interface Table
2080 ///
2081 #define EFI_ACPI_5_0_SERVER_PLATFORM_MANAGEMENT_INTERFACE_TABLE_SIGNATURE  SIGNATURE_32('S', 'P', 'M', 'I')
2082 
2083 ///
2084 /// "TCPA" Trusted Computing Platform Alliance Capabilities Table
2085 ///
2086 #define EFI_ACPI_5_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE  SIGNATURE_32('T', 'C', 'P', 'A')
2087 
2088 ///
2089 /// "TPM2" Trusted Computing Platform 1 Table
2090 ///
2091 #define EFI_ACPI_5_0_TRUSTED_COMPUTING_PLATFORM_2_TABLE_SIGNATURE  SIGNATURE_32('T', 'P', 'M', '2')
2092 
2093 ///
2094 /// "UEFI" UEFI ACPI Data Table
2095 ///
2096 #define EFI_ACPI_5_0_UEFI_ACPI_DATA_TABLE_SIGNATURE  SIGNATURE_32('U', 'E', 'F', 'I')
2097 
2098 ///
2099 /// "WAET" Windows ACPI Emulated Devices Table
2100 ///
2101 #define EFI_ACPI_5_0_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE  SIGNATURE_32('W', 'A', 'E', 'T')
2102 #define EFI_ACPI_5_0_WINDOWS_ACPI_ENLIGHTENMENT_TABLE_SIGNATURE  EFI_ACPI_5_0_WINDOWS_ACPI_EMULATED_DEVICES_TABLE_SIGNATURE
2103 
2104 ///
2105 /// "WDAT" Watchdog Action Table
2106 ///
2107 #define EFI_ACPI_5_0_WATCHDOG_ACTION_TABLE_SIGNATURE  SIGNATURE_32('W', 'D', 'A', 'T')
2108 
2109 ///
2110 /// "WDRT" Watchdog Resource Table
2111 ///
2112 #define EFI_ACPI_5_0_WATCHDOG_RESOURCE_TABLE_SIGNATURE  SIGNATURE_32('W', 'D', 'R', 'T')
2113 
2114 ///
2115 /// "WPBT" MS Platform Binary Table
2116 ///
2117 #define EFI_ACPI_5_0_PLATFORM_BINARY_TABLE_SIGNATURE  SIGNATURE_32('W', 'P', 'B', 'T')
2118 
2119 #pragma pack()
2120 
2121 #endif
2122