xref: /dflybsd-src/sys/contrib/dev/acpica/source/common/ahtable.c (revision b4315fc7edb71a3b20b837c3aa96f46bf41080bf)
1896f2e3aSSascha Wildner /******************************************************************************
2896f2e3aSSascha Wildner  *
3896f2e3aSSascha Wildner  * Module Name: ahtable - Table of known ACPI tables with descriptions
4896f2e3aSSascha Wildner  *
5896f2e3aSSascha Wildner  *****************************************************************************/
6896f2e3aSSascha Wildner 
7*b4315fc7SSascha Wildner /******************************************************************************
8*b4315fc7SSascha Wildner  *
9*b4315fc7SSascha Wildner  * 1. Copyright Notice
10*b4315fc7SSascha Wildner  *
11*b4315fc7SSascha Wildner  * Some or all of this work - Copyright (c) 1999 - 2017, Intel Corp.
12896f2e3aSSascha Wildner  * All rights reserved.
13896f2e3aSSascha Wildner  *
14*b4315fc7SSascha Wildner  * 2. License
15*b4315fc7SSascha Wildner  *
16*b4315fc7SSascha Wildner  * 2.1. This is your license from Intel Corp. under its intellectual property
17*b4315fc7SSascha Wildner  * rights. You may have additional license terms from the party that provided
18*b4315fc7SSascha Wildner  * you this software, covering your right to use that party's intellectual
19*b4315fc7SSascha Wildner  * property rights.
20*b4315fc7SSascha Wildner  *
21*b4315fc7SSascha Wildner  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22*b4315fc7SSascha Wildner  * copy of the source code appearing in this file ("Covered Code") an
23*b4315fc7SSascha Wildner  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24*b4315fc7SSascha Wildner  * base code distributed originally by Intel ("Original Intel Code") to copy,
25*b4315fc7SSascha Wildner  * make derivatives, distribute, use and display any portion of the Covered
26*b4315fc7SSascha Wildner  * Code in any form, with the right to sublicense such rights; and
27*b4315fc7SSascha Wildner  *
28*b4315fc7SSascha Wildner  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29*b4315fc7SSascha Wildner  * license (with the right to sublicense), under only those claims of Intel
30*b4315fc7SSascha Wildner  * patents that are infringed by the Original Intel Code, to make, use, sell,
31*b4315fc7SSascha Wildner  * offer to sell, and import the Covered Code and derivative works thereof
32*b4315fc7SSascha Wildner  * solely to the minimum extent necessary to exercise the above copyright
33*b4315fc7SSascha Wildner  * license, and in no event shall the patent license extend to any additions
34*b4315fc7SSascha Wildner  * to or modifications of the Original Intel Code. No other license or right
35*b4315fc7SSascha Wildner  * is granted directly or by implication, estoppel or otherwise;
36*b4315fc7SSascha Wildner  *
37*b4315fc7SSascha Wildner  * The above copyright and patent license is granted only if the following
38*b4315fc7SSascha Wildner  * conditions are met:
39*b4315fc7SSascha Wildner  *
40*b4315fc7SSascha Wildner  * 3. Conditions
41*b4315fc7SSascha Wildner  *
42*b4315fc7SSascha Wildner  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43*b4315fc7SSascha Wildner  * Redistribution of source code of any substantial portion of the Covered
44*b4315fc7SSascha Wildner  * Code or modification with rights to further distribute source must include
45*b4315fc7SSascha Wildner  * the above Copyright Notice, the above License, this list of Conditions,
46*b4315fc7SSascha Wildner  * and the following Disclaimer and Export Compliance provision. In addition,
47*b4315fc7SSascha Wildner  * Licensee must cause all Covered Code to which Licensee contributes to
48*b4315fc7SSascha Wildner  * contain a file documenting the changes Licensee made to create that Covered
49*b4315fc7SSascha Wildner  * Code and the date of any change. Licensee must include in that file the
50*b4315fc7SSascha Wildner  * documentation of any changes made by any predecessor Licensee. Licensee
51*b4315fc7SSascha Wildner  * must include a prominent statement that the modification is derived,
52*b4315fc7SSascha Wildner  * directly or indirectly, from Original Intel Code.
53*b4315fc7SSascha Wildner  *
54*b4315fc7SSascha Wildner  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55*b4315fc7SSascha Wildner  * Redistribution of source code of any substantial portion of the Covered
56*b4315fc7SSascha Wildner  * Code or modification without rights to further distribute source must
57*b4315fc7SSascha Wildner  * include the following Disclaimer and Export Compliance provision in the
58*b4315fc7SSascha Wildner  * documentation and/or other materials provided with distribution. In
59*b4315fc7SSascha Wildner  * addition, Licensee may not authorize further sublicense of source of any
60*b4315fc7SSascha Wildner  * portion of the Covered Code, and must include terms to the effect that the
61*b4315fc7SSascha Wildner  * license from Licensee to its licensee is limited to the intellectual
62*b4315fc7SSascha Wildner  * property embodied in the software Licensee provides to its licensee, and
63*b4315fc7SSascha Wildner  * not to intellectual property embodied in modifications its licensee may
64*b4315fc7SSascha Wildner  * make.
65*b4315fc7SSascha Wildner  *
66*b4315fc7SSascha Wildner  * 3.3. Redistribution of Executable. Redistribution in executable form of any
67*b4315fc7SSascha Wildner  * substantial portion of the Covered Code or modification must reproduce the
68*b4315fc7SSascha Wildner  * above Copyright Notice, and the following Disclaimer and Export Compliance
69*b4315fc7SSascha Wildner  * provision in the documentation and/or other materials provided with the
70*b4315fc7SSascha Wildner  * distribution.
71*b4315fc7SSascha Wildner  *
72*b4315fc7SSascha Wildner  * 3.4. Intel retains all right, title, and interest in and to the Original
73*b4315fc7SSascha Wildner  * Intel Code.
74*b4315fc7SSascha Wildner  *
75*b4315fc7SSascha Wildner  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76*b4315fc7SSascha Wildner  * Intel shall be used in advertising or otherwise to promote the sale, use or
77*b4315fc7SSascha Wildner  * other dealings in products derived from or relating to the Covered Code
78*b4315fc7SSascha Wildner  * without prior written authorization from Intel.
79*b4315fc7SSascha Wildner  *
80*b4315fc7SSascha Wildner  * 4. Disclaimer and Export Compliance
81*b4315fc7SSascha Wildner  *
82*b4315fc7SSascha Wildner  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83*b4315fc7SSascha Wildner  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84*b4315fc7SSascha Wildner  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85*b4315fc7SSascha Wildner  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86*b4315fc7SSascha Wildner  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87*b4315fc7SSascha Wildner  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88*b4315fc7SSascha Wildner  * PARTICULAR PURPOSE.
89*b4315fc7SSascha Wildner  *
90*b4315fc7SSascha Wildner  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91*b4315fc7SSascha Wildner  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92*b4315fc7SSascha Wildner  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93*b4315fc7SSascha Wildner  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94*b4315fc7SSascha Wildner  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95*b4315fc7SSascha Wildner  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96*b4315fc7SSascha Wildner  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97*b4315fc7SSascha Wildner  * LIMITED REMEDY.
98*b4315fc7SSascha Wildner  *
99*b4315fc7SSascha Wildner  * 4.3. Licensee shall not export, either directly or indirectly, any of this
100*b4315fc7SSascha Wildner  * software or system incorporating such software without first obtaining any
101*b4315fc7SSascha Wildner  * required license or other approval from the U. S. Department of Commerce or
102*b4315fc7SSascha Wildner  * any other agency or department of the United States Government. In the
103*b4315fc7SSascha Wildner  * event Licensee exports any such software from the United States or
104*b4315fc7SSascha Wildner  * re-exports any such software from a foreign destination, Licensee shall
105*b4315fc7SSascha Wildner  * ensure that the distribution and export/re-export of the software is in
106*b4315fc7SSascha Wildner  * compliance with all laws, regulations, orders, or other restrictions of the
107*b4315fc7SSascha Wildner  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108*b4315fc7SSascha Wildner  * any of its subsidiaries will export/re-export any technical data, process,
109*b4315fc7SSascha Wildner  * software, or service, directly or indirectly, to any country for which the
110*b4315fc7SSascha Wildner  * United States government or any agency thereof requires an export license,
111*b4315fc7SSascha Wildner  * other governmental approval, or letter of assurance, without first obtaining
112*b4315fc7SSascha Wildner  * such license, approval or letter.
113*b4315fc7SSascha Wildner  *
114*b4315fc7SSascha Wildner  *****************************************************************************
115*b4315fc7SSascha Wildner  *
116*b4315fc7SSascha Wildner  * Alternatively, you may choose to be licensed under the terms of the
117*b4315fc7SSascha Wildner  * following license:
118*b4315fc7SSascha Wildner  *
119896f2e3aSSascha Wildner  * Redistribution and use in source and binary forms, with or without
120896f2e3aSSascha Wildner  * modification, are permitted provided that the following conditions
121896f2e3aSSascha Wildner  * are met:
122896f2e3aSSascha Wildner  * 1. Redistributions of source code must retain the above copyright
123896f2e3aSSascha Wildner  *    notice, this list of conditions, and the following disclaimer,
124896f2e3aSSascha Wildner  *    without modification.
125896f2e3aSSascha Wildner  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126896f2e3aSSascha Wildner  *    substantially similar to the "NO WARRANTY" disclaimer below
127896f2e3aSSascha Wildner  *    ("Disclaimer") and any redistribution must be conditioned upon
128896f2e3aSSascha Wildner  *    including a substantially similar Disclaimer requirement for further
129896f2e3aSSascha Wildner  *    binary redistribution.
130896f2e3aSSascha Wildner  * 3. Neither the names of the above-listed copyright holders nor the names
131896f2e3aSSascha Wildner  *    of any contributors may be used to endorse or promote products derived
132896f2e3aSSascha Wildner  *    from this software without specific prior written permission.
133896f2e3aSSascha Wildner  *
134*b4315fc7SSascha Wildner  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135*b4315fc7SSascha Wildner  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136*b4315fc7SSascha Wildner  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137*b4315fc7SSascha Wildner  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138*b4315fc7SSascha Wildner  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139*b4315fc7SSascha Wildner  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140*b4315fc7SSascha Wildner  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141*b4315fc7SSascha Wildner  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142*b4315fc7SSascha Wildner  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143*b4315fc7SSascha Wildner  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144*b4315fc7SSascha Wildner  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145*b4315fc7SSascha Wildner  *
146*b4315fc7SSascha Wildner  * Alternatively, you may choose to be licensed under the terms of the
147896f2e3aSSascha Wildner  * GNU General Public License ("GPL") version 2 as published by the Free
148896f2e3aSSascha Wildner  * Software Foundation.
149896f2e3aSSascha Wildner  *
150*b4315fc7SSascha Wildner  *****************************************************************************/
151896f2e3aSSascha Wildner 
152896f2e3aSSascha Wildner #include "acpi.h"
153896f2e3aSSascha Wildner #include "accommon.h"
154896f2e3aSSascha Wildner 
155896f2e3aSSascha Wildner 
156896f2e3aSSascha Wildner /* Local prototypes */
157896f2e3aSSascha Wildner 
158896f2e3aSSascha Wildner const AH_TABLE *
159896f2e3aSSascha Wildner AcpiAhGetTableInfo (
160896f2e3aSSascha Wildner     char                    *Signature);
161896f2e3aSSascha Wildner 
16238b5d46cSSascha Wildner extern const AH_TABLE      Gbl_AcpiSupportedTables[];
163896f2e3aSSascha Wildner 
164896f2e3aSSascha Wildner 
165896f2e3aSSascha Wildner /*******************************************************************************
166896f2e3aSSascha Wildner  *
167896f2e3aSSascha Wildner  * FUNCTION:    AcpiAhGetTableInfo
168896f2e3aSSascha Wildner  *
169896f2e3aSSascha Wildner  * PARAMETERS:  Signature           - ACPI signature (4 chars) to match
170896f2e3aSSascha Wildner  *
171896f2e3aSSascha Wildner  * RETURN:      Pointer to a valid AH_TABLE. Null if no match found.
172896f2e3aSSascha Wildner  *
173896f2e3aSSascha Wildner  * DESCRIPTION: Find a match in the "help" table of supported ACPI tables
174896f2e3aSSascha Wildner  *
175896f2e3aSSascha Wildner  ******************************************************************************/
176896f2e3aSSascha Wildner 
177896f2e3aSSascha Wildner const AH_TABLE *
178896f2e3aSSascha Wildner AcpiAhGetTableInfo (
179896f2e3aSSascha Wildner     char                    *Signature)
180896f2e3aSSascha Wildner {
181896f2e3aSSascha Wildner     const AH_TABLE      *Info;
182896f2e3aSSascha Wildner 
183896f2e3aSSascha Wildner 
18438b5d46cSSascha Wildner     for (Info = Gbl_AcpiSupportedTables; Info->Signature; Info++)
185896f2e3aSSascha Wildner     {
186896f2e3aSSascha Wildner         if (ACPI_COMPARE_NAME (Signature, Info->Signature))
187896f2e3aSSascha Wildner         {
188896f2e3aSSascha Wildner             return (Info);
189896f2e3aSSascha Wildner         }
190896f2e3aSSascha Wildner     }
191896f2e3aSSascha Wildner 
192896f2e3aSSascha Wildner     return (NULL);
193896f2e3aSSascha Wildner }
194896f2e3aSSascha Wildner 
195896f2e3aSSascha Wildner 
196896f2e3aSSascha Wildner /*
197896f2e3aSSascha Wildner  * Note: Any tables added here should be duplicated within AcpiDmTableData
198896f2e3aSSascha Wildner  * in the file common/dmtable.c
199896f2e3aSSascha Wildner  */
20038b5d46cSSascha Wildner const AH_TABLE      Gbl_AcpiSupportedTables[] =
201896f2e3aSSascha Wildner {
202896f2e3aSSascha Wildner     {ACPI_SIG_ASF,  "Alert Standard Format table"},
203896f2e3aSSascha Wildner     {ACPI_SIG_BERT, "Boot Error Record Table"},
204896f2e3aSSascha Wildner     {ACPI_SIG_BGRT, "Boot Graphics Resource Table"},
205896f2e3aSSascha Wildner     {ACPI_SIG_BOOT, "Simple Boot Flag Table"},
206896f2e3aSSascha Wildner     {ACPI_SIG_CPEP, "Corrected Platform Error Polling table"},
207896f2e3aSSascha Wildner     {ACPI_SIG_CSRT, "Core System Resource Table"},
208896f2e3aSSascha Wildner     {ACPI_SIG_DBG2, "Debug Port table type 2"},
209896f2e3aSSascha Wildner     {ACPI_SIG_DBGP, "Debug Port table"},
210896f2e3aSSascha Wildner     {ACPI_SIG_DMAR, "DMA Remapping table"},
211896f2e3aSSascha Wildner     {ACPI_SIG_DRTM, "Dynamic Root of Trust for Measurement table"},
212896f2e3aSSascha Wildner     {ACPI_SIG_DSDT, "Differentiated System Description Table (AML table)"},
213896f2e3aSSascha Wildner     {ACPI_SIG_ECDT, "Embedded Controller Boot Resources Table"},
214896f2e3aSSascha Wildner     {ACPI_SIG_EINJ, "Error Injection table"},
215896f2e3aSSascha Wildner     {ACPI_SIG_ERST, "Error Record Serialization Table"},
216896f2e3aSSascha Wildner     {ACPI_SIG_FACS, "Firmware ACPI Control Structure"},
217896f2e3aSSascha Wildner     {ACPI_SIG_FADT, "Fixed ACPI Description Table (FADT)"},
218896f2e3aSSascha Wildner     {ACPI_SIG_FPDT, "Firmware Performance Data Table"},
219896f2e3aSSascha Wildner     {ACPI_SIG_GTDT, "Generic Timer Description Table"},
220896f2e3aSSascha Wildner     {ACPI_SIG_HEST, "Hardware Error Source Table"},
221896f2e3aSSascha Wildner     {ACPI_SIG_HPET, "High Precision Event Timer table"},
222896f2e3aSSascha Wildner     {ACPI_SIG_IORT, "IO Remapping Table"},
223896f2e3aSSascha Wildner     {ACPI_SIG_IVRS, "I/O Virtualization Reporting Structure"},
224896f2e3aSSascha Wildner     {ACPI_SIG_LPIT, "Low Power Idle Table"},
225896f2e3aSSascha Wildner     {ACPI_SIG_MADT, "Multiple APIC Description Table (MADT)"},
226896f2e3aSSascha Wildner     {ACPI_SIG_MCFG, "Memory Mapped Configuration table"},
227896f2e3aSSascha Wildner     {ACPI_SIG_MCHI, "Management Controller Host Interface table"},
228896f2e3aSSascha Wildner     {ACPI_SIG_MPST, "Memory Power State Table"},
229896f2e3aSSascha Wildner     {ACPI_SIG_MSCT, "Maximum System Characteristics Table"},
230896f2e3aSSascha Wildner     {ACPI_SIG_MSDM, "Microsoft Data Management table"},
231896f2e3aSSascha Wildner     {ACPI_SIG_MTMR, "MID Timer Table"},
232896f2e3aSSascha Wildner     {ACPI_SIG_NFIT, "NVDIMM Firmware Interface Table"},
233896f2e3aSSascha Wildner     {ACPI_SIG_PCCT, "Platform Communications Channel Table"},
234896f2e3aSSascha Wildner     {ACPI_SIG_PMTT, "Platform Memory Topology Table"},
235277350a0SSascha Wildner     {ACPI_SIG_RASF, "RAS Features Table"},
236896f2e3aSSascha Wildner     {ACPI_RSDP_NAME,"Root System Description Pointer"},
237896f2e3aSSascha Wildner     {ACPI_SIG_RSDT, "Root System Description Table"},
238896f2e3aSSascha Wildner     {ACPI_SIG_S3PT, "S3 Performance Table"},
239896f2e3aSSascha Wildner     {ACPI_SIG_SBST, "Smart Battery Specification Table"},
240896f2e3aSSascha Wildner     {ACPI_SIG_SLIC, "Software Licensing Description Table"},
241896f2e3aSSascha Wildner     {ACPI_SIG_SLIT, "System Locality Information Table"},
242896f2e3aSSascha Wildner     {ACPI_SIG_SPCR, "Serial Port Console Redirection table"},
243896f2e3aSSascha Wildner     {ACPI_SIG_SPMI, "Server Platform Management Interface table"},
244896f2e3aSSascha Wildner     {ACPI_SIG_SRAT, "System Resource Affinity Table"},
245896f2e3aSSascha Wildner     {ACPI_SIG_SSDT, "Secondary System Description Table (AML table)"},
246896f2e3aSSascha Wildner     {ACPI_SIG_STAO, "Status Override table"},
247896f2e3aSSascha Wildner     {ACPI_SIG_TCPA, "Trusted Computing Platform Alliance table"},
248896f2e3aSSascha Wildner     {ACPI_SIG_TPM2, "Trusted Platform Module hardware interface table"},
249896f2e3aSSascha Wildner     {ACPI_SIG_UEFI, "UEFI Boot Optimization Table"},
250896f2e3aSSascha Wildner     {ACPI_SIG_VRTC, "Virtual Real-Time Clock Table"},
251896f2e3aSSascha Wildner     {ACPI_SIG_WAET, "Windows ACPI Emulated Devices Table"},
252896f2e3aSSascha Wildner     {ACPI_SIG_WDAT, "Watchdog Action Table"},
253896f2e3aSSascha Wildner     {ACPI_SIG_WDDT, "Watchdog Description Table"},
254896f2e3aSSascha Wildner     {ACPI_SIG_WDRT, "Watchdog Resource Table"},
255896f2e3aSSascha Wildner     {ACPI_SIG_WPBT, "Windows Platform Binary Table"},
256896f2e3aSSascha Wildner     {ACPI_SIG_XENV, "Xen Environment table"},
257896f2e3aSSascha Wildner     {ACPI_SIG_XSDT, "Extended System Description Table"},
258896f2e3aSSascha Wildner     {NULL,          NULL}
259896f2e3aSSascha Wildner };
260