ahtable.c revision 1.1.1.14 1 /******************************************************************************
2 *
3 * Module Name: ahtable - Table of known ACPI tables with descriptions
4 *
5 *****************************************************************************/
6
7 /*
8 * Copyright (C) 2000 - 2021, Intel Corp.
9 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
29 *
30 * NO WARRANTY
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
42 */
43
44 #include "acpi.h"
45 #include "accommon.h"
46
47
48 /* Local prototypes */
49
50 const AH_TABLE *
51 AcpiAhGetTableInfo (
52 char *Signature);
53
54 extern const AH_TABLE AcpiGbl_SupportedTables[];
55
56
57 /*******************************************************************************
58 *
59 * FUNCTION: AcpiAhGetTableInfo
60 *
61 * PARAMETERS: Signature - ACPI signature (4 chars) to match
62 *
63 * RETURN: Pointer to a valid AH_TABLE. Null if no match found.
64 *
65 * DESCRIPTION: Find a match in the "help" table of supported ACPI tables
66 *
67 ******************************************************************************/
68
69 const AH_TABLE *
70 AcpiAhGetTableInfo (
71 char *Signature)
72 {
73 const AH_TABLE *Info;
74
75
76 for (Info = AcpiGbl_SupportedTables; Info->Signature; Info++)
77 {
78 if (ACPI_COMPARE_NAMESEG (Signature, Info->Signature))
79 {
80 return (Info);
81 }
82 }
83
84 return (NULL);
85 }
86
87
88 /*
89 * Note: Any tables added here should be duplicated within AcpiDmTableData
90 * in the file common/dmtable.c
91 */
92 const AH_TABLE AcpiGbl_SupportedTables[] =
93 {
94 {ACPI_SIG_AEST, "Arm Error Source Table"},
95 {ACPI_SIG_AGDI, "Arm Generic Diagnostic Dump and Reset Device Interface Table"},
96 {ACPI_SIG_ASF, "Alert Standard Format Table"},
97 {ACPI_SIG_BDAT, "BIOS Data ACPI Table"},
98 {ACPI_SIG_BERT, "Boot Error Record Table"},
99 {ACPI_SIG_BGRT, "Boot Graphics Resource Table"},
100 {ACPI_SIG_BOOT, "Simple Boot Flag Table"},
101 {ACPI_SIG_CEDT, "CXL Early Discovery Table"},
102 {ACPI_SIG_CPEP, "Corrected Platform Error Polling Table"},
103 {ACPI_SIG_CSRT, "Core System Resource Table"},
104 {ACPI_SIG_DBG2, "Debug Port Table type 2"},
105 {ACPI_SIG_DBGP, "Debug Port Table"},
106 {ACPI_SIG_DMAR, "DMA Remapping Table"},
107 {ACPI_SIG_DRTM, "Dynamic Root of Trust for Measurement Table"},
108 {ACPI_SIG_DSDT, "Differentiated System Description Table (AML table)"},
109 {ACPI_SIG_ECDT, "Embedded Controller Boot Resources Table"},
110 {ACPI_SIG_EINJ, "Error Injection Table"},
111 {ACPI_SIG_ERST, "Error Record Serialization Table"},
112 {ACPI_SIG_FACS, "Firmware ACPI Control Structure"},
113 {ACPI_SIG_FADT, "Fixed ACPI Description Table (FADT)"},
114 {ACPI_SIG_FPDT, "Firmware Performance Data Table"},
115 {ACPI_SIG_GTDT, "Generic Timer Description Table"},
116 {ACPI_SIG_HEST, "Hardware Error Source Table"},
117 {ACPI_SIG_HMAT, "Heterogeneous Memory Attributes Table"},
118 {ACPI_SIG_HPET, "High Precision Event Timer Table"},
119 {ACPI_SIG_IORT, "IO Remapping Table"},
120 {ACPI_SIG_IVRS, "I/O Virtualization Reporting Structure"},
121 {ACPI_SIG_LPIT, "Low Power Idle Table"},
122 {ACPI_SIG_MADT, "Multiple APIC Description Table (MADT)"},
123 {ACPI_SIG_MCFG, "Memory Mapped Configuration Table"},
124 {ACPI_SIG_MCHI, "Management Controller Host Interface Table"},
125 {ACPI_SIG_MPST, "Memory Power State Table"},
126 {ACPI_SIG_MSCT, "Maximum System Characteristics Table"},
127 {ACPI_SIG_MSDM, "Microsoft Data Management Table"},
128 {ACPI_SIG_NFIT, "NVDIMM Firmware Interface Table"},
129 {ACPI_SIG_NHLT, "Non HD Audio Link Table"},
130 {ACPI_SIG_PCCT, "Platform Communications Channel Table"},
131 {ACPI_SIG_PDTT, "Platform Debug Trigger Table"},
132 {ACPI_SIG_PHAT, "Platform Health Assessment Table"},
133 {ACPI_SIG_PMTT, "Platform Memory Topology Table"},
134 {ACPI_SIG_PPTT, "Processor Properties Topology Table"},
135 {ACPI_SIG_PRMT, "Platform Runtime Mechanism Table"},
136 {ACPI_SIG_RASF, "RAS Features Table"},
137 {ACPI_SIG_RGRT, "Regulatory Graphics Resource Table"},
138 {ACPI_RSDP_NAME,"Root System Description Pointer"},
139 {ACPI_SIG_RSDT, "Root System Description Table"},
140 {ACPI_SIG_S3PT, "S3 Performance Table"},
141 {ACPI_SIG_SBST, "Smart Battery Specification Table"},
142 {ACPI_SIG_SDEI, "Software Delegated Exception Interface Table"},
143 {ACPI_SIG_SDEV, "Secure Devices Table"},
144 {ACPI_SIG_SLIC, "Software Licensing Description Table"},
145 {ACPI_SIG_SLIT, "System Locality Information Table"},
146 {ACPI_SIG_SPCR, "Serial Port Console Redirection Table"},
147 {ACPI_SIG_SPMI, "Server Platform Management Interface Table"},
148 {ACPI_SIG_SRAT, "System Resource Affinity Table"},
149 {ACPI_SIG_SSDT, "Secondary System Description Table (AML table)"},
150 {ACPI_SIG_STAO, "Status Override Table"},
151 {ACPI_SIG_SVKL, "Storage Volume Key Location Table"},
152 {ACPI_SIG_TCPA, "Trusted Computing Platform Alliance Table"},
153 {ACPI_SIG_TDEL, "TD-Event Log Table"},
154 {ACPI_SIG_TPM2, "Trusted Platform Module hardware interface Table"},
155 {ACPI_SIG_UEFI, "UEFI Boot Optimization Table"},
156 {ACPI_SIG_VIOT, "Virtual I/O Translation Table"},
157 {ACPI_SIG_WAET, "Windows ACPI Emulated Devices Table"},
158 {ACPI_SIG_WDAT, "Watchdog Action Table"},
159 {ACPI_SIG_WDDT, "Watchdog Description Table"},
160 {ACPI_SIG_WDRT, "Watchdog Resource Table"},
161 {ACPI_SIG_WPBT, "Windows Platform Binary Table"},
162 {ACPI_SIG_WSMT, "Windows SMM Security Mitigations Table"},
163 {ACPI_SIG_XENV, "Xen Environment Table"},
164 {ACPI_SIG_XSDT, "Extended System Description Table"},
165 {NULL, NULL}
166 };
167