1 /******************************************************************************
3 * Name: actbl1.h - Additional ACPI table definitions
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2020, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
156 /*******************************************************************************
158 * Additional ACPI Tables
160 * These tables are not consumed directly by the ACPICA subsystem, but are
161 * included here to support device drivers and the AML disassembler.
163 ******************************************************************************/
167 * Values for description table header signatures for tables defined in this
168 * file. Useful because they make it more difficult to inadvertently type in
169 * the wrong signature.
171 #define ACPI_SIG_ASF "ASF!" /* Alert Standard Format table */
172 #define ACPI_SIG_BERT "BERT" /* Boot Error Record Table */
173 #define ACPI_SIG_BGRT "BGRT" /* Boot Graphics Resource Table */
174 #define ACPI_SIG_BOOT "BOOT" /* Simple Boot Flag Table */
175 #define ACPI_SIG_CPEP "CPEP" /* Corrected Platform Error Polling table */
176 #define ACPI_SIG_CSRT "CSRT" /* Core System Resource Table */
177 #define ACPI_SIG_DBG2 "DBG2" /* Debug Port table type 2 */
178 #define ACPI_SIG_DBGP "DBGP" /* Debug Port table */
179 #define ACPI_SIG_DMAR "DMAR" /* DMA Remapping table */
180 #define ACPI_SIG_DRTM "DRTM" /* Dynamic Root of Trust for Measurement table */
181 #define ACPI_SIG_ECDT "ECDT" /* Embedded Controller Boot Resources Table */
182 #define ACPI_SIG_EINJ "EINJ" /* Error Injection table */
183 #define ACPI_SIG_ERST "ERST" /* Error Record Serialization Table */
184 #define ACPI_SIG_FPDT "FPDT" /* Firmware Performance Data Table */
185 #define ACPI_SIG_GTDT "GTDT" /* Generic Timer Description Table */
186 #define ACPI_SIG_HEST "HEST" /* Hardware Error Source Table */
187 #define ACPI_SIG_HMAT "HMAT" /* Heterogeneous Memory Attributes Table */
188 #define ACPI_SIG_HPET "HPET" /* High Precision Event Timer table */
189 #define ACPI_SIG_IBFT "IBFT" /* iSCSI Boot Firmware Table */
191 #define ACPI_SIG_S3PT "S3PT" /* S3 Performance (sub)Table */
192 #define ACPI_SIG_PCCS "PCC" /* PCC Shared Memory Region */
195 /* Reserved table signatures */
197 #define ACPI_SIG_MATR "MATR" /* Memory Address Translation Table */
198 #define ACPI_SIG_MSDM "MSDM" /* Microsoft Data Management Table */
201 * These tables have been seen in the field, but no definition has been found
203 #ifdef ACPI_UNDEFINED_TABLES
204 #define ACPI_SIG_ATKG "ATKG"
205 #define ACPI_SIG_GSCI "GSCI" /* GMCH SCI table */
206 #define ACPI_SIG_IEIT "IEIT"
210 * All tables must be byte-packed to match the ACPI specification, since
211 * the tables are provided by the system BIOS.
216 * Note: C bitfields are not used for this reason:
218 * "Bitfields are great and easy to read, but unfortunately the C language
219 * does not specify the layout of bitfields in memory, which means they are
220 * essentially useless for dealing with packed data in on-disk formats or
221 * binary wire protocols." (Or ACPI tables and buffers.) "If you ask me,
222 * this decision was a design error in C. Ritchie could have picked an order
223 * and stuck with it." Norman Ramsey.
224 * See http://stackoverflow.com/a/1053662/41661
228 /*******************************************************************************
230 * Common subtable headers
232 ******************************************************************************/
234 /* Generic subtable header (used in MADT, SRAT, etc.) */
236 typedef struct acpi_subtable_header
241 } ACPI_SUBTABLE_HEADER;
244 /* Subtable header for WHEA tables (EINJ, ERST, WDAT) */
246 typedef struct acpi_whea_header
252 ACPI_GENERIC_ADDRESS RegisterRegion;
253 UINT64 Value; /* Value used with Read/Write register */
254 UINT64 Mask; /* Bitmask required for this register instruction */
259 /*******************************************************************************
261 * ASF - Alert Standard Format table (Signature "ASF!")
264 * Conforms to the Alert Standard Format Specification V2.0, 23 April 2003
266 ******************************************************************************/
268 typedef struct acpi_table_asf
270 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
275 /* ASF subtable header */
277 typedef struct acpi_asf_header
286 /* Values for Type field above */
290 ACPI_ASF_TYPE_INFO = 0,
291 ACPI_ASF_TYPE_ALERT = 1,
292 ACPI_ASF_TYPE_CONTROL = 2,
293 ACPI_ASF_TYPE_BOOT = 3,
294 ACPI_ASF_TYPE_ADDRESS = 4,
295 ACPI_ASF_TYPE_RESERVED = 5
302 /* 0: ASF Information */
304 typedef struct acpi_asf_info
306 ACPI_ASF_HEADER Header;
308 UINT8 MinPollInterval;
316 /* Masks for Flags field above */
318 #define ACPI_ASF_SMBUS_PROTOCOLS (1)
323 typedef struct acpi_asf_alert
325 ACPI_ASF_HEADER Header;
333 typedef struct acpi_asf_alert_data
348 } ACPI_ASF_ALERT_DATA;
351 /* 2: ASF Remote Control */
353 typedef struct acpi_asf_remote
355 ACPI_ASF_HEADER Header;
362 typedef struct acpi_asf_control_data
369 } ACPI_ASF_CONTROL_DATA;
372 /* 3: ASF RMCP Boot Options */
374 typedef struct acpi_asf_rmcp
376 ACPI_ASF_HEADER Header;
377 UINT8 Capabilities[7];
378 UINT8 CompletionCode;
383 UINT16 OemParameters;
390 typedef struct acpi_asf_address
392 ACPI_ASF_HEADER Header;
399 /*******************************************************************************
401 * BERT - Boot Error Record Table (ACPI 4.0)
404 ******************************************************************************/
406 typedef struct acpi_table_bert
408 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
409 UINT32 RegionLength; /* Length of the boot error region */
410 UINT64 Address; /* Physical address of the error region */
415 /* Boot Error Region (not a subtable, pointed to by Address field above) */
417 typedef struct acpi_bert_region
419 UINT32 BlockStatus; /* Type of error information */
420 UINT32 RawDataOffset; /* Offset to raw error data */
421 UINT32 RawDataLength; /* Length of raw error data */
422 UINT32 DataLength; /* Length of generic error data */
423 UINT32 ErrorSeverity; /* Severity code */
427 /* Values for BlockStatus flags above */
429 #define ACPI_BERT_UNCORRECTABLE (1)
430 #define ACPI_BERT_CORRECTABLE (1<<1)
431 #define ACPI_BERT_MULTIPLE_UNCORRECTABLE (1<<2)
432 #define ACPI_BERT_MULTIPLE_CORRECTABLE (1<<3)
433 #define ACPI_BERT_ERROR_ENTRY_COUNT (0xFF<<4) /* 8 bits, error count */
435 /* Values for ErrorSeverity above */
437 enum AcpiBertErrorSeverity
439 ACPI_BERT_ERROR_CORRECTABLE = 0,
440 ACPI_BERT_ERROR_FATAL = 1,
441 ACPI_BERT_ERROR_CORRECTED = 2,
442 ACPI_BERT_ERROR_NONE = 3,
443 ACPI_BERT_ERROR_RESERVED = 4 /* 4 and greater are reserved */
447 * Note: The generic error data that follows the ErrorSeverity field above
448 * uses the ACPI_HEST_GENERIC_DATA defined under the HEST table below
452 /*******************************************************************************
454 * BGRT - Boot Graphics Resource Table (ACPI 5.0)
457 ******************************************************************************/
459 typedef struct acpi_table_bgrt
461 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
471 /* Flags for Status field above */
473 #define ACPI_BGRT_DISPLAYED (1)
474 #define ACPI_BGRT_ORIENTATION_OFFSET (3 << 1)
477 /*******************************************************************************
479 * BOOT - Simple Boot Flag Table
482 * Conforms to the "Simple Boot Flag Specification", Version 2.1
484 ******************************************************************************/
486 typedef struct acpi_table_boot
488 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
489 UINT8 CmosIndex; /* Index in CMOS RAM for the boot register */
495 /*******************************************************************************
497 * CPEP - Corrected Platform Error Polling table (ACPI 4.0)
500 ******************************************************************************/
502 typedef struct acpi_table_cpep
504 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
512 typedef struct acpi_cpep_polling
514 ACPI_SUBTABLE_HEADER Header;
515 UINT8 Id; /* Processor ID */
516 UINT8 Eid; /* Processor EID */
517 UINT32 Interval; /* Polling interval (msec) */
522 /*******************************************************************************
524 * CSRT - Core System Resource Table
527 * Conforms to the "Core System Resource Table (CSRT)", November 14, 2011
529 ******************************************************************************/
531 typedef struct acpi_table_csrt
533 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
538 /* Resource Group subtable */
540 typedef struct acpi_csrt_group
549 UINT32 SharedInfoLength;
551 /* Shared data immediately follows (Length = SharedInfoLength) */
555 /* Shared Info subtable */
557 typedef struct acpi_csrt_shared_info
564 UINT8 InterruptPolarity;
567 UINT8 DmaAddressWidth;
568 UINT16 BaseRequestLine;
569 UINT16 NumHandshakeSignals;
572 /* Resource descriptors immediately follow (Length = Group Length - SharedInfoLength) */
574 } ACPI_CSRT_SHARED_INFO;
576 /* Resource Descriptor subtable */
578 typedef struct acpi_csrt_descriptor
585 /* Resource-specific information immediately follows */
587 } ACPI_CSRT_DESCRIPTOR;
592 #define ACPI_CSRT_TYPE_INTERRUPT 0x0001
593 #define ACPI_CSRT_TYPE_TIMER 0x0002
594 #define ACPI_CSRT_TYPE_DMA 0x0003
596 /* Resource Subtypes */
598 #define ACPI_CSRT_XRUPT_LINE 0x0000
599 #define ACPI_CSRT_XRUPT_CONTROLLER 0x0001
600 #define ACPI_CSRT_TIMER 0x0000
601 #define ACPI_CSRT_DMA_CHANNEL 0x0000
602 #define ACPI_CSRT_DMA_CONTROLLER 0x0001
605 /*******************************************************************************
607 * DBG2 - Debug Port Table 2
608 * Version 0 (Both main table and subtables)
610 * Conforms to "Microsoft Debug Port Table 2 (DBG2)", December 10, 2015
612 ******************************************************************************/
614 typedef struct acpi_table_dbg2
616 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
623 typedef struct acpi_dbg2_header
631 /* Debug Device Information Subtable */
633 typedef struct acpi_dbg2_device
637 UINT8 RegisterCount; /* Number of BaseAddress registers */
638 UINT16 NamepathLength;
639 UINT16 NamepathOffset;
640 UINT16 OemDataLength;
641 UINT16 OemDataOffset;
645 UINT16 BaseAddressOffset;
646 UINT16 AddressSizeOffset;
649 * BaseAddress (required) - Each in 12-byte Generic Address Structure format.
650 * AddressSize (required) - Array of UINT32 sizes corresponding to each BaseAddress register.
651 * Namepath (required) - Null terminated string. Single dot if not supported.
652 * OemData (optional) - Length is OemDataLength.
656 /* Types for PortType field above */
658 #define ACPI_DBG2_SERIAL_PORT 0x8000
659 #define ACPI_DBG2_1394_PORT 0x8001
660 #define ACPI_DBG2_USB_PORT 0x8002
661 #define ACPI_DBG2_NET_PORT 0x8003
663 /* Subtypes for PortSubtype field above */
665 #define ACPI_DBG2_16550_COMPATIBLE 0x0000
666 #define ACPI_DBG2_16550_SUBSET 0x0001
667 #define ACPI_DBG2_ARM_PL011 0x0003
668 #define ACPI_DBG2_ARM_SBSA_32BIT 0x000D
669 #define ACPI_DBG2_ARM_SBSA_GENERIC 0x000E
670 #define ACPI_DBG2_ARM_DCC 0x000F
671 #define ACPI_DBG2_BCM2835 0x0010
673 #define ACPI_DBG2_1394_STANDARD 0x0000
675 #define ACPI_DBG2_USB_XHCI 0x0000
676 #define ACPI_DBG2_USB_EHCI 0x0001
679 /*******************************************************************************
681 * DBGP - Debug Port table
684 * Conforms to the "Debug Port Specification", Version 1.00, 2/9/2000
686 ******************************************************************************/
688 typedef struct acpi_table_dbgp
690 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
691 UINT8 Type; /* 0=full 16550, 1=subset of 16550 */
693 ACPI_GENERIC_ADDRESS DebugPort;
698 /*******************************************************************************
700 * DMAR - DMA Remapping table
703 * Conforms to "Intel Virtualization Technology for Directed I/O",
704 * Version 2.3, October 2014
706 ******************************************************************************/
708 typedef struct acpi_table_dmar
710 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
711 UINT8 Width; /* Host Address Width */
717 /* Masks for Flags field above */
719 #define ACPI_DMAR_INTR_REMAP (1)
720 #define ACPI_DMAR_X2APIC_OPT_OUT (1<<1)
721 #define ACPI_DMAR_X2APIC_MODE (1<<2)
724 /* DMAR subtable header */
726 typedef struct acpi_dmar_header
733 /* Values for subtable type in ACPI_DMAR_HEADER */
737 ACPI_DMAR_TYPE_HARDWARE_UNIT = 0,
738 ACPI_DMAR_TYPE_RESERVED_MEMORY = 1,
739 ACPI_DMAR_TYPE_ROOT_ATS = 2,
740 ACPI_DMAR_TYPE_HARDWARE_AFFINITY = 3,
741 ACPI_DMAR_TYPE_NAMESPACE = 4,
742 ACPI_DMAR_TYPE_RESERVED = 5 /* 5 and greater are reserved */
746 /* DMAR Device Scope structure */
748 typedef struct acpi_dmar_device_scope
756 } ACPI_DMAR_DEVICE_SCOPE;
758 /* Values for EntryType in ACPI_DMAR_DEVICE_SCOPE - device types */
760 enum AcpiDmarScopeType
762 ACPI_DMAR_SCOPE_TYPE_NOT_USED = 0,
763 ACPI_DMAR_SCOPE_TYPE_ENDPOINT = 1,
764 ACPI_DMAR_SCOPE_TYPE_BRIDGE = 2,
765 ACPI_DMAR_SCOPE_TYPE_IOAPIC = 3,
766 ACPI_DMAR_SCOPE_TYPE_HPET = 4,
767 ACPI_DMAR_SCOPE_TYPE_NAMESPACE = 5,
768 ACPI_DMAR_SCOPE_TYPE_RESERVED = 6 /* 6 and greater are reserved */
771 typedef struct acpi_dmar_pci_path
776 } ACPI_DMAR_PCI_PATH;
780 * DMAR Subtables, correspond to Type in ACPI_DMAR_HEADER
783 /* 0: Hardware Unit Definition */
785 typedef struct acpi_dmar_hardware_unit
787 ACPI_DMAR_HEADER Header;
791 UINT64 Address; /* Register Base Address */
793 } ACPI_DMAR_HARDWARE_UNIT;
795 /* Masks for Flags field above */
797 #define ACPI_DMAR_INCLUDE_ALL (1)
800 /* 1: Reserved Memory Definition */
802 typedef struct acpi_dmar_reserved_memory
804 ACPI_DMAR_HEADER Header;
807 UINT64 BaseAddress; /* 4K aligned base address */
808 UINT64 EndAddress; /* 4K aligned limit address */
810 } ACPI_DMAR_RESERVED_MEMORY;
812 /* Masks for Flags field above */
814 #define ACPI_DMAR_ALLOW_ALL (1)
817 /* 2: Root Port ATS Capability Reporting Structure */
819 typedef struct acpi_dmar_atsr
821 ACPI_DMAR_HEADER Header;
828 /* Masks for Flags field above */
830 #define ACPI_DMAR_ALL_PORTS (1)
833 /* 3: Remapping Hardware Static Affinity Structure */
835 typedef struct acpi_dmar_rhsa
837 ACPI_DMAR_HEADER Header;
840 UINT32 ProximityDomain;
845 /* 4: ACPI Namespace Device Declaration Structure */
847 typedef struct acpi_dmar_andd
849 ACPI_DMAR_HEADER Header;
857 /*******************************************************************************
859 * DRTM - Dynamic Root of Trust for Measurement table
860 * Conforms to "TCG D-RTM Architecture" June 17 2013, Version 1.0.0
863 ******************************************************************************/
865 typedef struct acpi_table_drtm
867 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
868 UINT64 EntryBaseAddress;
870 UINT32 EntryAddress32;
871 UINT64 EntryAddress64;
873 UINT64 LogAreaAddress;
874 UINT32 LogAreaLength;
875 UINT64 ArchDependentAddress;
880 /* Flag Definitions for above */
882 #define ACPI_DRTM_ACCESS_ALLOWED (1)
883 #define ACPI_DRTM_ENABLE_GAP_CODE (1<<1)
884 #define ACPI_DRTM_INCOMPLETE_MEASUREMENTS (1<<2)
885 #define ACPI_DRTM_AUTHORITY_ORDER (1<<3)
888 /* 1) Validated Tables List (64-bit addresses) */
890 typedef struct acpi_drtm_vtable_list
892 UINT32 ValidatedTableCount;
893 UINT64 ValidatedTables[1];
895 } ACPI_DRTM_VTABLE_LIST;
897 /* 2) Resources List (of Resource Descriptors) */
899 /* Resource Descriptor */
901 typedef struct acpi_drtm_resource
907 } ACPI_DRTM_RESOURCE;
909 typedef struct acpi_drtm_resource_list
911 UINT32 ResourceCount;
912 ACPI_DRTM_RESOURCE Resources[1];
914 } ACPI_DRTM_RESOURCE_LIST;
916 /* 3) Platform-specific Identifiers List */
918 typedef struct acpi_drtm_dps_id
926 /*******************************************************************************
928 * ECDT - Embedded Controller Boot Resources Table
931 ******************************************************************************/
933 typedef struct acpi_table_ecdt
935 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
936 ACPI_GENERIC_ADDRESS Control; /* Address of EC command/status register */
937 ACPI_GENERIC_ADDRESS Data; /* Address of EC data register */
938 UINT32 Uid; /* Unique ID - must be same as the EC _UID method */
939 UINT8 Gpe; /* The GPE for the EC */
940 UINT8 Id[1]; /* Full namepath of the EC in the ACPI namespace */
945 /*******************************************************************************
947 * EINJ - Error Injection Table (ACPI 4.0)
950 ******************************************************************************/
952 typedef struct acpi_table_einj
954 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
963 /* EINJ Injection Instruction Entries (actions) */
965 typedef struct acpi_einj_entry
967 ACPI_WHEA_HEADER WheaHeader; /* Common header for WHEA tables */
971 /* Masks for Flags field above */
973 #define ACPI_EINJ_PRESERVE (1)
975 /* Values for Action field above */
979 ACPI_EINJ_BEGIN_OPERATION = 0,
980 ACPI_EINJ_GET_TRIGGER_TABLE = 1,
981 ACPI_EINJ_SET_ERROR_TYPE = 2,
982 ACPI_EINJ_GET_ERROR_TYPE = 3,
983 ACPI_EINJ_END_OPERATION = 4,
984 ACPI_EINJ_EXECUTE_OPERATION = 5,
985 ACPI_EINJ_CHECK_BUSY_STATUS = 6,
986 ACPI_EINJ_GET_COMMAND_STATUS = 7,
987 ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS = 8,
988 ACPI_EINJ_GET_EXECUTE_TIMINGS = 9,
989 ACPI_EINJ_ACTION_RESERVED = 10, /* 10 and greater are reserved */
990 ACPI_EINJ_TRIGGER_ERROR = 0xFF /* Except for this value */
993 /* Values for Instruction field above */
995 enum AcpiEinjInstructions
997 ACPI_EINJ_READ_REGISTER = 0,
998 ACPI_EINJ_READ_REGISTER_VALUE = 1,
999 ACPI_EINJ_WRITE_REGISTER = 2,
1000 ACPI_EINJ_WRITE_REGISTER_VALUE = 3,
1002 ACPI_EINJ_FLUSH_CACHELINE = 5,
1003 ACPI_EINJ_INSTRUCTION_RESERVED = 6 /* 6 and greater are reserved */
1006 typedef struct acpi_einj_error_type_with_addr
1009 UINT32 VendorStructOffset;
1016 } ACPI_EINJ_ERROR_TYPE_WITH_ADDR;
1018 typedef struct acpi_einj_vendor
1030 /* EINJ Trigger Error Action Table */
1032 typedef struct acpi_einj_trigger
1039 } ACPI_EINJ_TRIGGER;
1041 /* Command status return values */
1043 enum AcpiEinjCommandStatus
1045 ACPI_EINJ_SUCCESS = 0,
1046 ACPI_EINJ_FAILURE = 1,
1047 ACPI_EINJ_INVALID_ACCESS = 2,
1048 ACPI_EINJ_STATUS_RESERVED = 3 /* 3 and greater are reserved */
1052 /* Error types returned from ACPI_EINJ_GET_ERROR_TYPE (bitfield) */
1054 #define ACPI_EINJ_PROCESSOR_CORRECTABLE (1)
1055 #define ACPI_EINJ_PROCESSOR_UNCORRECTABLE (1<<1)
1056 #define ACPI_EINJ_PROCESSOR_FATAL (1<<2)
1057 #define ACPI_EINJ_MEMORY_CORRECTABLE (1<<3)
1058 #define ACPI_EINJ_MEMORY_UNCORRECTABLE (1<<4)
1059 #define ACPI_EINJ_MEMORY_FATAL (1<<5)
1060 #define ACPI_EINJ_PCIX_CORRECTABLE (1<<6)
1061 #define ACPI_EINJ_PCIX_UNCORRECTABLE (1<<7)
1062 #define ACPI_EINJ_PCIX_FATAL (1<<8)
1063 #define ACPI_EINJ_PLATFORM_CORRECTABLE (1<<9)
1064 #define ACPI_EINJ_PLATFORM_UNCORRECTABLE (1<<10)
1065 #define ACPI_EINJ_PLATFORM_FATAL (1<<11)
1066 #define ACPI_EINJ_VENDOR_DEFINED (1<<31)
1069 /*******************************************************************************
1071 * ERST - Error Record Serialization Table (ACPI 4.0)
1074 ******************************************************************************/
1076 typedef struct acpi_table_erst
1078 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1079 UINT32 HeaderLength;
1086 /* ERST Serialization Entries (actions) */
1088 typedef struct acpi_erst_entry
1090 ACPI_WHEA_HEADER WheaHeader; /* Common header for WHEA tables */
1094 /* Masks for Flags field above */
1096 #define ACPI_ERST_PRESERVE (1)
1098 /* Values for Action field above */
1100 enum AcpiErstActions
1102 ACPI_ERST_BEGIN_WRITE = 0,
1103 ACPI_ERST_BEGIN_READ = 1,
1104 ACPI_ERST_BEGIN_CLEAR = 2,
1106 ACPI_ERST_SET_RECORD_OFFSET = 4,
1107 ACPI_ERST_EXECUTE_OPERATION = 5,
1108 ACPI_ERST_CHECK_BUSY_STATUS = 6,
1109 ACPI_ERST_GET_COMMAND_STATUS = 7,
1110 ACPI_ERST_GET_RECORD_ID = 8,
1111 ACPI_ERST_SET_RECORD_ID = 9,
1112 ACPI_ERST_GET_RECORD_COUNT = 10,
1113 ACPI_ERST_BEGIN_DUMMY_WRIITE = 11,
1114 ACPI_ERST_NOT_USED = 12,
1115 ACPI_ERST_GET_ERROR_RANGE = 13,
1116 ACPI_ERST_GET_ERROR_LENGTH = 14,
1117 ACPI_ERST_GET_ERROR_ATTRIBUTES = 15,
1118 ACPI_ERST_EXECUTE_TIMINGS = 16,
1119 ACPI_ERST_ACTION_RESERVED = 17 /* 17 and greater are reserved */
1122 /* Values for Instruction field above */
1124 enum AcpiErstInstructions
1126 ACPI_ERST_READ_REGISTER = 0,
1127 ACPI_ERST_READ_REGISTER_VALUE = 1,
1128 ACPI_ERST_WRITE_REGISTER = 2,
1129 ACPI_ERST_WRITE_REGISTER_VALUE = 3,
1131 ACPI_ERST_LOAD_VAR1 = 5,
1132 ACPI_ERST_LOAD_VAR2 = 6,
1133 ACPI_ERST_STORE_VAR1 = 7,
1135 ACPI_ERST_SUBTRACT = 9,
1136 ACPI_ERST_ADD_VALUE = 10,
1137 ACPI_ERST_SUBTRACT_VALUE = 11,
1138 ACPI_ERST_STALL = 12,
1139 ACPI_ERST_STALL_WHILE_TRUE = 13,
1140 ACPI_ERST_SKIP_NEXT_IF_TRUE = 14,
1141 ACPI_ERST_GOTO = 15,
1142 ACPI_ERST_SET_SRC_ADDRESS_BASE = 16,
1143 ACPI_ERST_SET_DST_ADDRESS_BASE = 17,
1144 ACPI_ERST_MOVE_DATA = 18,
1145 ACPI_ERST_INSTRUCTION_RESERVED = 19 /* 19 and greater are reserved */
1148 /* Command status return values */
1150 enum AcpiErstCommandStatus
1152 ACPI_ERST_SUCCESS = 0,
1153 ACPI_ERST_NO_SPACE = 1,
1154 ACPI_ERST_NOT_AVAILABLE = 2,
1155 ACPI_ERST_FAILURE = 3,
1156 ACPI_ERST_RECORD_EMPTY = 4,
1157 ACPI_ERST_NOT_FOUND = 5,
1158 ACPI_ERST_STATUS_RESERVED = 6 /* 6 and greater are reserved */
1162 /* Error Record Serialization Information */
1164 typedef struct acpi_erst_info
1166 UINT16 Signature; /* Should be "ER" */
1172 /*******************************************************************************
1174 * FPDT - Firmware Performance Data Table (ACPI 5.0)
1177 ******************************************************************************/
1179 typedef struct acpi_table_fpdt
1181 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1186 /* FPDT subtable header (Performance Record Structure) */
1188 typedef struct acpi_fpdt_header
1196 /* Values for Type field above */
1200 ACPI_FPDT_TYPE_BOOT = 0,
1201 ACPI_FPDT_TYPE_S3PERF = 1
1209 /* 0: Firmware Basic Boot Performance Record */
1211 typedef struct acpi_fpdt_boot_pointer
1213 ACPI_FPDT_HEADER Header;
1217 } ACPI_FPDT_BOOT_POINTER;
1220 /* 1: S3 Performance Table Pointer Record */
1222 typedef struct acpi_fpdt_s3pt_pointer
1224 ACPI_FPDT_HEADER Header;
1228 } ACPI_FPDT_S3PT_POINTER;
1232 * S3PT - S3 Performance Table. This table is pointed to by the
1233 * S3 Pointer Record above.
1235 typedef struct acpi_table_s3pt
1237 UINT8 Signature[4]; /* "S3PT" */
1244 * S3PT Subtables (Not part of the actual FPDT)
1247 /* Values for Type field in S3PT header */
1251 ACPI_S3PT_TYPE_RESUME = 0,
1252 ACPI_S3PT_TYPE_SUSPEND = 1,
1253 ACPI_FPDT_BOOT_PERFORMANCE = 2
1256 typedef struct acpi_s3pt_resume
1258 ACPI_FPDT_HEADER Header;
1261 UINT64 AverageResume;
1265 typedef struct acpi_s3pt_suspend
1267 ACPI_FPDT_HEADER Header;
1268 UINT64 SuspendStart;
1271 } ACPI_S3PT_SUSPEND;
1275 * FPDT Boot Performance Record (Not part of the actual FPDT)
1277 typedef struct acpi_fpdt_boot
1279 ACPI_FPDT_HEADER Header;
1283 UINT64 StartupStart;
1284 UINT64 ExitServicesEntry;
1285 UINT64 ExitServicesExit;
1290 /*******************************************************************************
1292 * GTDT - Generic Timer Description Table (ACPI 5.1)
1295 ******************************************************************************/
1297 typedef struct acpi_table_gtdt
1299 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1300 UINT64 CounterBlockAddresss;
1302 UINT32 SecureEl1Interrupt;
1303 UINT32 SecureEl1Flags;
1304 UINT32 NonSecureEl1Interrupt;
1305 UINT32 NonSecureEl1Flags;
1306 UINT32 VirtualTimerInterrupt;
1307 UINT32 VirtualTimerFlags;
1308 UINT32 NonSecureEl2Interrupt;
1309 UINT32 NonSecureEl2Flags;
1310 UINT64 CounterReadBlockAddress;
1311 UINT32 PlatformTimerCount;
1312 UINT32 PlatformTimerOffset;
1316 /* Flag Definitions: Timer Block Physical Timers and Virtual timers */
1318 #define ACPI_GTDT_INTERRUPT_MODE (1)
1319 #define ACPI_GTDT_INTERRUPT_POLARITY (1<<1)
1320 #define ACPI_GTDT_ALWAYS_ON (1<<2)
1322 typedef struct acpi_gtdt_el2
1324 UINT32 VirtualEL2TimerGsiv;
1325 UINT32 VirtualEL2TimerFlags;
1329 /* Common GTDT subtable header */
1331 typedef struct acpi_gtdt_header
1338 /* Values for GTDT subtable type above */
1342 ACPI_GTDT_TYPE_TIMER_BLOCK = 0,
1343 ACPI_GTDT_TYPE_WATCHDOG = 1,
1344 ACPI_GTDT_TYPE_RESERVED = 2 /* 2 and greater are reserved */
1348 /* GTDT Subtables, correspond to Type in acpi_gtdt_header */
1350 /* 0: Generic Timer Block */
1352 typedef struct acpi_gtdt_timer_block
1354 ACPI_GTDT_HEADER Header;
1356 UINT64 BlockAddress;
1360 } ACPI_GTDT_TIMER_BLOCK;
1362 /* Timer Sub-Structure, one per timer */
1364 typedef struct acpi_gtdt_timer_entry
1369 UINT64 El0BaseAddress;
1370 UINT32 TimerInterrupt;
1372 UINT32 VirtualTimerInterrupt;
1373 UINT32 VirtualTimerFlags;
1376 } ACPI_GTDT_TIMER_ENTRY;
1378 /* Flag Definitions: TimerFlags and VirtualTimerFlags above */
1380 #define ACPI_GTDT_GT_IRQ_MODE (1)
1381 #define ACPI_GTDT_GT_IRQ_POLARITY (1<<1)
1383 /* Flag Definitions: CommonFlags above */
1385 #define ACPI_GTDT_GT_IS_SECURE_TIMER (1)
1386 #define ACPI_GTDT_GT_ALWAYS_ON (1<<1)
1389 /* 1: SBSA Generic Watchdog Structure */
1391 typedef struct acpi_gtdt_watchdog
1393 ACPI_GTDT_HEADER Header;
1395 UINT64 RefreshFrameAddress;
1396 UINT64 ControlFrameAddress;
1397 UINT32 TimerInterrupt;
1400 } ACPI_GTDT_WATCHDOG;
1402 /* Flag Definitions: TimerFlags above */
1404 #define ACPI_GTDT_WATCHDOG_IRQ_MODE (1)
1405 #define ACPI_GTDT_WATCHDOG_IRQ_POLARITY (1<<1)
1406 #define ACPI_GTDT_WATCHDOG_SECURE (1<<2)
1409 /*******************************************************************************
1411 * HEST - Hardware Error Source Table (ACPI 4.0)
1414 ******************************************************************************/
1416 typedef struct acpi_table_hest
1418 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1419 UINT32 ErrorSourceCount;
1424 /* HEST subtable header */
1426 typedef struct acpi_hest_header
1434 /* Values for Type field above for subtables */
1438 ACPI_HEST_TYPE_IA32_CHECK = 0,
1439 ACPI_HEST_TYPE_IA32_CORRECTED_CHECK = 1,
1440 ACPI_HEST_TYPE_IA32_NMI = 2,
1441 ACPI_HEST_TYPE_NOT_USED3 = 3,
1442 ACPI_HEST_TYPE_NOT_USED4 = 4,
1443 ACPI_HEST_TYPE_NOT_USED5 = 5,
1444 ACPI_HEST_TYPE_AER_ROOT_PORT = 6,
1445 ACPI_HEST_TYPE_AER_ENDPOINT = 7,
1446 ACPI_HEST_TYPE_AER_BRIDGE = 8,
1447 ACPI_HEST_TYPE_GENERIC_ERROR = 9,
1448 ACPI_HEST_TYPE_GENERIC_ERROR_V2 = 10,
1449 ACPI_HEST_TYPE_IA32_DEFERRED_CHECK = 11,
1450 ACPI_HEST_TYPE_RESERVED = 12 /* 12 and greater are reserved */
1455 * HEST substructures contained in subtables
1459 * IA32 Error Bank(s) - Follows the ACPI_HEST_IA_MACHINE_CHECK and
1460 * ACPI_HEST_IA_CORRECTED structures.
1462 typedef struct acpi_hest_ia_error_bank
1465 UINT8 ClearStatusOnInit;
1468 UINT32 ControlRegister;
1470 UINT32 StatusRegister;
1471 UINT32 AddressRegister;
1472 UINT32 MiscRegister;
1474 } ACPI_HEST_IA_ERROR_BANK;
1477 /* Common HEST sub-structure for PCI/AER structures below (6,7,8) */
1479 typedef struct acpi_hest_aer_common
1484 UINT32 RecordsToPreallocate;
1485 UINT32 MaxSectionsPerRecord;
1486 UINT32 Bus; /* Bus and Segment numbers */
1489 UINT16 DeviceControl;
1491 UINT32 UncorrectableMask;
1492 UINT32 UncorrectableSeverity;
1493 UINT32 CorrectableMask;
1494 UINT32 AdvancedCapabilities;
1496 } ACPI_HEST_AER_COMMON;
1498 /* Masks for HEST Flags fields */
1500 #define ACPI_HEST_FIRMWARE_FIRST (1)
1501 #define ACPI_HEST_GLOBAL (1<<1)
1502 #define ACPI_HEST_GHES_ASSIST (1<<2)
1505 * Macros to access the bus/segment numbers in Bus field above:
1506 * Bus number is encoded in bits 7:0
1507 * Segment number is encoded in bits 23:8
1509 #define ACPI_HEST_BUS(Bus) ((Bus) & 0xFF)
1510 #define ACPI_HEST_SEGMENT(Bus) (((Bus) >> 8) & 0xFFFF)
1513 /* Hardware Error Notification */
1515 typedef struct acpi_hest_notify
1519 UINT16 ConfigWriteEnable;
1520 UINT32 PollInterval;
1522 UINT32 PollingThresholdValue;
1523 UINT32 PollingThresholdWindow;
1524 UINT32 ErrorThresholdValue;
1525 UINT32 ErrorThresholdWindow;
1529 /* Values for Notify Type field above */
1531 enum AcpiHestNotifyTypes
1533 ACPI_HEST_NOTIFY_POLLED = 0,
1534 ACPI_HEST_NOTIFY_EXTERNAL = 1,
1535 ACPI_HEST_NOTIFY_LOCAL = 2,
1536 ACPI_HEST_NOTIFY_SCI = 3,
1537 ACPI_HEST_NOTIFY_NMI = 4,
1538 ACPI_HEST_NOTIFY_CMCI = 5, /* ACPI 5.0 */
1539 ACPI_HEST_NOTIFY_MCE = 6, /* ACPI 5.0 */
1540 ACPI_HEST_NOTIFY_GPIO = 7, /* ACPI 6.0 */
1541 ACPI_HEST_NOTIFY_SEA = 8, /* ACPI 6.1 */
1542 ACPI_HEST_NOTIFY_SEI = 9, /* ACPI 6.1 */
1543 ACPI_HEST_NOTIFY_GSIV = 10, /* ACPI 6.1 */
1544 ACPI_HEST_NOTIFY_SOFTWARE_DELEGATED = 11, /* ACPI 6.2 */
1545 ACPI_HEST_NOTIFY_RESERVED = 12 /* 12 and greater are reserved */
1548 /* Values for ConfigWriteEnable bitfield above */
1550 #define ACPI_HEST_TYPE (1)
1551 #define ACPI_HEST_POLL_INTERVAL (1<<1)
1552 #define ACPI_HEST_POLL_THRESHOLD_VALUE (1<<2)
1553 #define ACPI_HEST_POLL_THRESHOLD_WINDOW (1<<3)
1554 #define ACPI_HEST_ERR_THRESHOLD_VALUE (1<<4)
1555 #define ACPI_HEST_ERR_THRESHOLD_WINDOW (1<<5)
1562 /* 0: IA32 Machine Check Exception */
1564 typedef struct acpi_hest_ia_machine_check
1566 ACPI_HEST_HEADER Header;
1568 UINT8 Flags; /* See flags ACPI_HEST_GLOBAL, etc. above */
1570 UINT32 RecordsToPreallocate;
1571 UINT32 MaxSectionsPerRecord;
1572 UINT64 GlobalCapabilityData;
1573 UINT64 GlobalControlData;
1574 UINT8 NumHardwareBanks;
1577 } ACPI_HEST_IA_MACHINE_CHECK;
1580 /* 1: IA32 Corrected Machine Check */
1582 typedef struct acpi_hest_ia_corrected
1584 ACPI_HEST_HEADER Header;
1586 UINT8 Flags; /* See flags ACPI_HEST_GLOBAL, etc. above */
1588 UINT32 RecordsToPreallocate;
1589 UINT32 MaxSectionsPerRecord;
1590 ACPI_HEST_NOTIFY Notify;
1591 UINT8 NumHardwareBanks;
1594 } ACPI_HEST_IA_CORRECTED;
1597 /* 2: IA32 Non-Maskable Interrupt */
1599 typedef struct acpi_hest_ia_nmi
1601 ACPI_HEST_HEADER Header;
1603 UINT32 RecordsToPreallocate;
1604 UINT32 MaxSectionsPerRecord;
1605 UINT32 MaxRawDataLength;
1610 /* 3,4,5: Not used */
1612 /* 6: PCI Express Root Port AER */
1614 typedef struct acpi_hest_aer_root
1616 ACPI_HEST_HEADER Header;
1617 ACPI_HEST_AER_COMMON Aer;
1618 UINT32 RootErrorCommand;
1620 } ACPI_HEST_AER_ROOT;
1623 /* 7: PCI Express AER (AER Endpoint) */
1625 typedef struct acpi_hest_aer
1627 ACPI_HEST_HEADER Header;
1628 ACPI_HEST_AER_COMMON Aer;
1633 /* 8: PCI Express/PCI-X Bridge AER */
1635 typedef struct acpi_hest_aer_bridge
1637 ACPI_HEST_HEADER Header;
1638 ACPI_HEST_AER_COMMON Aer;
1639 UINT32 UncorrectableMask2;
1640 UINT32 UncorrectableSeverity2;
1641 UINT32 AdvancedCapabilities2;
1643 } ACPI_HEST_AER_BRIDGE;
1646 /* 9: Generic Hardware Error Source */
1648 typedef struct acpi_hest_generic
1650 ACPI_HEST_HEADER Header;
1651 UINT16 RelatedSourceId;
1654 UINT32 RecordsToPreallocate;
1655 UINT32 MaxSectionsPerRecord;
1656 UINT32 MaxRawDataLength;
1657 ACPI_GENERIC_ADDRESS ErrorStatusAddress;
1658 ACPI_HEST_NOTIFY Notify;
1659 UINT32 ErrorBlockLength;
1661 } ACPI_HEST_GENERIC;
1664 /* 10: Generic Hardware Error Source, version 2 */
1666 typedef struct acpi_hest_generic_v2
1668 ACPI_HEST_HEADER Header;
1669 UINT16 RelatedSourceId;
1672 UINT32 RecordsToPreallocate;
1673 UINT32 MaxSectionsPerRecord;
1674 UINT32 MaxRawDataLength;
1675 ACPI_GENERIC_ADDRESS ErrorStatusAddress;
1676 ACPI_HEST_NOTIFY Notify;
1677 UINT32 ErrorBlockLength;
1678 ACPI_GENERIC_ADDRESS ReadAckRegister;
1679 UINT64 ReadAckPreserve;
1680 UINT64 ReadAckWrite;
1682 } ACPI_HEST_GENERIC_V2;
1685 /* Generic Error Status block */
1687 typedef struct acpi_hest_generic_status
1690 UINT32 RawDataOffset;
1691 UINT32 RawDataLength;
1693 UINT32 ErrorSeverity;
1695 } ACPI_HEST_GENERIC_STATUS;
1697 /* Values for BlockStatus flags above */
1699 #define ACPI_HEST_UNCORRECTABLE (1)
1700 #define ACPI_HEST_CORRECTABLE (1<<1)
1701 #define ACPI_HEST_MULTIPLE_UNCORRECTABLE (1<<2)
1702 #define ACPI_HEST_MULTIPLE_CORRECTABLE (1<<3)
1703 #define ACPI_HEST_ERROR_ENTRY_COUNT (0xFF<<4) /* 8 bits, error count */
1706 /* Generic Error Data entry */
1708 typedef struct acpi_hest_generic_data
1710 UINT8 SectionType[16];
1711 UINT32 ErrorSeverity;
1713 UINT8 ValidationBits;
1715 UINT32 ErrorDataLength;
1719 } ACPI_HEST_GENERIC_DATA;
1721 /* Extension for revision 0x0300 */
1723 typedef struct acpi_hest_generic_data_v300
1725 UINT8 SectionType[16];
1726 UINT32 ErrorSeverity;
1728 UINT8 ValidationBits;
1730 UINT32 ErrorDataLength;
1735 } ACPI_HEST_GENERIC_DATA_V300;
1737 /* Values for ErrorSeverity above */
1739 #define ACPI_HEST_GEN_ERROR_RECOVERABLE 0
1740 #define ACPI_HEST_GEN_ERROR_FATAL 1
1741 #define ACPI_HEST_GEN_ERROR_CORRECTED 2
1742 #define ACPI_HEST_GEN_ERROR_NONE 3
1744 /* Flags for ValidationBits above */
1746 #define ACPI_HEST_GEN_VALID_FRU_ID (1)
1747 #define ACPI_HEST_GEN_VALID_FRU_STRING (1<<1)
1748 #define ACPI_HEST_GEN_VALID_TIMESTAMP (1<<2)
1751 /* 11: IA32 Deferred Machine Check Exception (ACPI 6.2) */
1753 typedef struct acpi_hest_ia_deferred_check
1755 ACPI_HEST_HEADER Header;
1757 UINT8 Flags; /* See flags ACPI_HEST_GLOBAL, etc. above */
1759 UINT32 RecordsToPreallocate;
1760 UINT32 MaxSectionsPerRecord;
1761 ACPI_HEST_NOTIFY Notify;
1762 UINT8 NumHardwareBanks;
1765 } ACPI_HEST_IA_DEFERRED_CHECK;
1768 /*******************************************************************************
1770 * HMAT - Heterogeneous Memory Attributes Table (ACPI 6.2)
1773 ******************************************************************************/
1775 typedef struct acpi_table_hmat
1777 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1783 /* Values for HMAT structure types */
1787 ACPI_HMAT_TYPE_ADDRESS_RANGE = 0, /* Memory subsystem address range */
1788 ACPI_HMAT_TYPE_LOCALITY = 1, /* System locality latency and bandwidth information */
1789 ACPI_HMAT_TYPE_CACHE = 2, /* Memory side cache information */
1790 ACPI_HMAT_TYPE_RESERVED = 3 /* 3 and greater are reserved */
1793 typedef struct acpi_hmat_structure
1799 } ACPI_HMAT_STRUCTURE;
1803 * HMAT Structures, correspond to Type in ACPI_HMAT_STRUCTURE
1806 /* 0: Memory proximity domain attributes */
1808 typedef struct acpi_hmat_proximity_domain
1810 ACPI_HMAT_STRUCTURE Header;
1813 UINT32 ProcessorPD; /* Processor proximity domain */
1814 UINT32 MemoryPD; /* Memory proximity domain */
1819 } ACPI_HMAT_PROXIMITY_DOMAIN;
1821 /* Masks for Flags field above */
1823 #define ACPI_HMAT_PROCESSOR_PD_VALID (1) /* 1: ProcessorPD field is valid */
1824 #define ACPI_HMAT_MEMORY_PD_VALID (1<<1) /* 1: MemoryPD field is valid */
1825 #define ACPI_HMAT_RESERVATION_HINT (1<<2) /* 1: Reservation hint */
1828 /* 1: System locality latency and bandwidth information */
1830 typedef struct acpi_hmat_locality
1832 ACPI_HMAT_STRUCTURE Header;
1836 UINT32 NumberOfInitiatorPDs;
1837 UINT32 NumberOfTargetPDs;
1839 UINT64 EntryBaseUnit;
1841 } ACPI_HMAT_LOCALITY;
1843 /* Masks for Flags field above */
1845 #define ACPI_HMAT_MEMORY_HIERARCHY (0x0F)
1847 /* Values for Memory Hierarchy flag */
1849 #define ACPI_HMAT_MEMORY 0
1850 #define ACPI_HMAT_LAST_LEVEL_CACHE 1
1851 #define ACPI_HMAT_1ST_LEVEL_CACHE 2
1852 #define ACPI_HMAT_2ND_LEVEL_CACHE 3
1853 #define ACPI_HMAT_3RD_LEVEL_CACHE 4
1855 /* Values for DataType field above */
1857 #define ACPI_HMAT_ACCESS_LATENCY 0
1858 #define ACPI_HMAT_READ_LATENCY 1
1859 #define ACPI_HMAT_WRITE_LATENCY 2
1860 #define ACPI_HMAT_ACCESS_BANDWIDTH 3
1861 #define ACPI_HMAT_READ_BANDWIDTH 4
1862 #define ACPI_HMAT_WRITE_BANDWIDTH 5
1865 /* 2: Memory side cache information */
1867 typedef struct acpi_hmat_cache
1869 ACPI_HMAT_STRUCTURE Header;
1873 UINT32 CacheAttributes;
1875 UINT16 NumberOfSMBIOSHandles;
1879 /* Masks for CacheAttributes field above */
1881 #define ACPI_HMAT_TOTAL_CACHE_LEVEL (0x0000000F)
1882 #define ACPI_HMAT_CACHE_LEVEL (0x000000F0)
1883 #define ACPI_HMAT_CACHE_ASSOCIATIVITY (0x00000F00)
1884 #define ACPI_HMAT_WRITE_POLICY (0x0000F000)
1885 #define ACPI_HMAT_CACHE_LINE_SIZE (0xFFFF0000)
1887 /* Values for cache associativity flag */
1889 #define ACPI_HMAT_CA_NONE (0)
1890 #define ACPI_HMAT_CA_DIRECT_MAPPED (1)
1891 #define ACPI_HMAT_CA_COMPLEX_CACHE_INDEXING (2)
1893 /* Values for write policy flag */
1895 #define ACPI_HMAT_CP_NONE (0)
1896 #define ACPI_HMAT_CP_WB (1)
1897 #define ACPI_HMAT_CP_WT (2)
1900 /*******************************************************************************
1902 * HPET - High Precision Event Timer table
1905 * Conforms to "IA-PC HPET (High Precision Event Timers) Specification",
1906 * Version 1.0a, October 2004
1908 ******************************************************************************/
1910 typedef struct acpi_table_hpet
1912 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1913 UINT32 Id; /* Hardware ID of event timer block */
1914 ACPI_GENERIC_ADDRESS Address; /* Address of event timer block */
1915 UINT8 Sequence; /* HPET sequence number */
1916 UINT16 MinimumTick; /* Main counter min tick, periodic mode */
1921 /* Masks for Flags field above */
1923 #define ACPI_HPET_PAGE_PROTECT_MASK (3)
1925 /* Values for Page Protect flags */
1927 enum AcpiHpetPageProtect
1929 ACPI_HPET_NO_PAGE_PROTECT = 0,
1930 ACPI_HPET_PAGE_PROTECT4 = 1,
1931 ACPI_HPET_PAGE_PROTECT64 = 2
1935 /*******************************************************************************
1937 * IBFT - Boot Firmware Table
1940 * Conforms to "iSCSI Boot Firmware Table (iBFT) as Defined in ACPI 3.0b
1941 * Specification", Version 1.01, March 1, 2007
1943 * Note: It appears that this table is not intended to appear in the RSDT/XSDT.
1944 * Therefore, it is not currently supported by the disassembler.
1946 ******************************************************************************/
1948 typedef struct acpi_table_ibft
1950 ACPI_TABLE_HEADER Header; /* Common ACPI table header */
1956 /* IBFT common subtable header */
1958 typedef struct acpi_ibft_header
1968 /* Values for Type field above */
1972 ACPI_IBFT_TYPE_NOT_USED = 0,
1973 ACPI_IBFT_TYPE_CONTROL = 1,
1974 ACPI_IBFT_TYPE_INITIATOR = 2,
1975 ACPI_IBFT_TYPE_NIC = 3,
1976 ACPI_IBFT_TYPE_TARGET = 4,
1977 ACPI_IBFT_TYPE_EXTENSIONS = 5,
1978 ACPI_IBFT_TYPE_RESERVED = 6 /* 6 and greater are reserved */
1982 /* IBFT subtables */
1984 typedef struct acpi_ibft_control
1986 ACPI_IBFT_HEADER Header;
1988 UINT16 InitiatorOffset;
1990 UINT16 Target0Offset;
1992 UINT16 Target1Offset;
1994 } ACPI_IBFT_CONTROL;
1996 typedef struct acpi_ibft_initiator
1998 ACPI_IBFT_HEADER Header;
1999 UINT8 SnsServer[16];
2000 UINT8 SlpServer[16];
2001 UINT8 PrimaryServer[16];
2002 UINT8 SecondaryServer[16];
2006 } ACPI_IBFT_INITIATOR;
2008 typedef struct acpi_ibft_nic
2010 ACPI_IBFT_HEADER Header;
2011 UINT8 IpAddress[16];
2012 UINT8 SubnetMaskPrefix;
2015 UINT8 PrimaryDns[16];
2016 UINT8 SecondaryDns[16];
2019 UINT8 MacAddress[6];
2026 typedef struct acpi_ibft_target
2028 ACPI_IBFT_HEADER Header;
2029 UINT8 TargetIpAddress[16];
2030 UINT16 TargetIpSocket;
2031 UINT8 TargetBootLun[8];
2033 UINT8 NicAssociation;
2034 UINT16 TargetNameLength;
2035 UINT16 TargetNameOffset;
2036 UINT16 ChapNameLength;
2037 UINT16 ChapNameOffset;
2038 UINT16 ChapSecretLength;
2039 UINT16 ChapSecretOffset;
2040 UINT16 ReverseChapNameLength;
2041 UINT16 ReverseChapNameOffset;
2042 UINT16 ReverseChapSecretLength;
2043 UINT16 ReverseChapSecretOffset;
2048 /* Reset to default packing */
2052 #endif /* __ACTBL1_H__ */