1 /******************************************************************************
2  *
3  * Module Name: astable - Tables used for source conversion
4  *
5  *****************************************************************************/
6 
7 /******************************************************************************
8  *
9  * 1. Copyright Notice
10  *
11  * Some or all of this work - Copyright (c) 1999 - 2023, Intel Corp.
12  * All rights reserved.
13  *
14  * 2. License
15  *
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
19  * property rights.
20  *
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
27  *
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;
36  *
37  * The above copyright and patent license is granted only if the following
38  * conditions are met:
39  *
40  * 3. Conditions
41  *
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.
53  *
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
64  * make.
65  *
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
70  * distribution.
71  *
72  * 3.4. Intel retains all right, title, and interest in and to the Original
73  * Intel Code.
74  *
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.
79  *
80  * 4. Disclaimer and Export Compliance
81  *
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
88  * PARTICULAR PURPOSE.
89  *
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
97  * LIMITED REMEDY.
98  *
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.
113  *
114  *****************************************************************************
115  *
116  * Alternatively, you may choose to be licensed under the terms of the
117  * following license:
118  *
119  * Redistribution and use in source and binary forms, with or without
120  * modification, are permitted provided that the following conditions
121  * are met:
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.
133  *
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.
145  *
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.
149  *
150  *****************************************************************************/
151 
152 #include "acpisrc.h"
153 
154 
155 /******************************************************************************
156  *
157  * Standard/Common translation tables
158  *
159  ******************************************************************************/
160 
161 
162 ACPI_STRING_TABLE           StandardDataTypes[] = {
163 
164     /* Declarations first */
165 
166     {"UINT32      ",     "unsigned int",     REPLACE_SUBSTRINGS},
167     {"UINT16        ",   "unsigned short",   REPLACE_SUBSTRINGS},
168     {"UINT8        ",    "unsigned char",    REPLACE_SUBSTRINGS},
169     {"BOOLEAN      ",    "unsigned char",    REPLACE_SUBSTRINGS},
170 
171     /* Now do embedded typecasts */
172 
173     {"UINT32",           "unsigned int",     REPLACE_SUBSTRINGS},
174     {"UINT16",           "unsigned short",   REPLACE_SUBSTRINGS},
175     {"UINT8",            "unsigned char",    REPLACE_SUBSTRINGS},
176     {"BOOLEAN",          "unsigned char",    REPLACE_SUBSTRINGS},
177 
178     {"INT32  ",          "int    ",          REPLACE_SUBSTRINGS},
179     {"INT32",            "int",              REPLACE_SUBSTRINGS},
180     {"INT16",            "short",            REPLACE_SUBSTRINGS},
181     {"INT8",             "char",             REPLACE_SUBSTRINGS},
182 
183     /* Put back anything we broke (such as anything with _INT32_ in it) */
184 
185     {"_int_",            "_INT32_",          REPLACE_SUBSTRINGS},
186     {"_unsigned int_",   "_UINT32_",         REPLACE_SUBSTRINGS},
187     {NULL,               NULL,               0}
188 };
189 
190 
191 /******************************************************************************
192  *
193  * Linux-specific translation tables
194  *
195  ******************************************************************************/
196 
197 char                        EmptyHeader[] = "";
198 char                        DualLicenseHeader[] =
199 "/*\n"
200 " * Copyright (C) 2000 - 2023, Intel Corp.\n"
201 " * All rights reserved.\n"
202 " *\n"
203 " * Redistribution and use in source and binary forms, with or without\n"
204 " * modification, are permitted provided that the following conditions\n"
205 " * are met:\n"
206 " * 1. Redistributions of source code must retain the above copyright\n"
207 " *    notice, this list of conditions, and the following disclaimer,\n"
208 " *    without modification.\n"
209 " * 2. Redistributions in binary form must reproduce at minimum a disclaimer\n"
210 " *    substantially similar to the \"NO WARRANTY\" disclaimer below\n"
211 " *    (\"Disclaimer\") and any redistribution must be conditioned upon\n"
212 " *    including a substantially similar Disclaimer requirement for further\n"
213 " *    binary redistribution.\n"
214 " * 3. Neither the names of the above-listed copyright holders nor the names\n"
215 " *    of any contributors may be used to endorse or promote products derived\n"
216 " *    from this software without specific prior written permission.\n"
217 " *\n"
218 " * Alternatively, this software may be distributed under the terms of the\n"
219 " * GNU General Public License (\"GPL\") version 2 as published by the Free\n"
220 " * Software Foundation.\n"
221 " *\n"
222 " * NO WARRANTY\n"
223 " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"
224 " * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n"
225 " * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n"
226 " * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n"
227 " * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n"
228 " * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n"
229 " * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n"
230 " * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n"
231 " * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\n"
232 " * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n"
233 " * POSSIBILITY OF SUCH DAMAGES.\n"
234 " */\n";
235 
236 ACPI_STRING_TABLE           LinuxDataTypes[] = {
237 
238 /*
239  * Extra space is added after the type so there is room to add "struct", "union",
240  * etc. when the existing struct typedefs are eliminated.
241  */
242 
243     /* Declarations first - ACPI types and standard C types */
244 
245     {"INT64       ",            "s64         ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
246     {"UINT64      ",            "u64         ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
247     {"UINT32      ",            "u32         ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
248     {"INT32       ",            "s32         ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
249     {"UINT16      ",            "u16         ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
250     {"INT16       ",            "s16         ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
251     {"UINT8       ",            "u8          ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
252     {"BOOLEAN     ",            "u8          ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
253     {"char        ",            "char        ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
254     {"void        ",            "void        ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
255     {"char *      ",            "char *      ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
256     {"void *      ",            "void *      ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
257     {"int         ",            "int         ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
258     {"FILE        ",            "FILE        ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
259     {"size_t      ",            "size_t      ",     REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
260 
261     /* Now do embedded typecasts */
262 
263     {"UINT64",                  "u64",              REPLACE_WHOLE_WORD},
264     {"UINT32",                  "u32",              REPLACE_WHOLE_WORD},
265     {"UINT16",                  "u16",              REPLACE_WHOLE_WORD},
266     {"UINT8",                   "u8",               REPLACE_WHOLE_WORD},
267     {"BOOLEAN",                 "u8",               REPLACE_WHOLE_WORD},
268 
269     {"INT64  ",                 "s64    ",          REPLACE_WHOLE_WORD},
270     {"INT64",                   "s64",              REPLACE_WHOLE_WORD},
271     {"INT32  ",                 "s32    ",          REPLACE_WHOLE_WORD},
272     {"INT32",                   "s32",              REPLACE_WHOLE_WORD},
273     {"INT16  ",                 "s16    ",          REPLACE_WHOLE_WORD},
274     {"INT8   ",                 "s8     ",          REPLACE_WHOLE_WORD},
275     {"INT16",                   "s16",              REPLACE_WHOLE_WORD},
276     {"INT8",                    "s8",               REPLACE_WHOLE_WORD},
277 
278     {"__FUNCTION__",            "__func__",         REPLACE_WHOLE_WORD},
279 
280     {NULL,                      NULL,               0}
281 };
282 
283 ACPI_TYPED_IDENTIFIER_TABLE           AcpiIdentifiers[] = {
284 
285     {"ACPI_ADDRESS16_ATTRIBUTE",            SRC_TYPE_STRUCT},
286     {"ACPI_ADDRESS32_ATTRIBUTE",            SRC_TYPE_STRUCT},
287     {"ACPI_ADDRESS64_ATTRIBUTE",            SRC_TYPE_STRUCT},
288     {"ACPI_ADDRESS_RANGE",                  SRC_TYPE_STRUCT},
289     {"ACPI_ADR_SPACE_HANDLER",              SRC_TYPE_SIMPLE},
290     {"ACPI_ADR_SPACE_SETUP",                SRC_TYPE_SIMPLE},
291     {"ACPI_ADR_SPACE_TYPE",                 SRC_TYPE_SIMPLE},
292     {"ACPI_AML_OPERANDS",                   SRC_TYPE_UNION},
293     {"ACPI_BIT_REGISTER_INFO",              SRC_TYPE_STRUCT},
294     {"ACPI_BUFFER",                         SRC_TYPE_STRUCT},
295     {"ACPI_BUS_ATTRIBUTE",                  SRC_TYPE_STRUCT},
296     {"ACPI_CACHE_T",                        SRC_TYPE_SIMPLE},
297     {"ACPI_CMTABLE_HANDLER",                SRC_TYPE_SIMPLE},
298     {"ACPI_COMMENT_ADDR_NODE",              SRC_TYPE_STRUCT},
299     {"ACPI_COMMENT_NODE",                   SRC_TYPE_STRUCT},
300     {"ACPI_COMMON_FACS",                    SRC_TYPE_STRUCT},
301     {"ACPI_COMMON_STATE",                   SRC_TYPE_STRUCT},
302     {"ACPI_COMMON_DESCRIPTOR",              SRC_TYPE_STRUCT},
303     {"ACPI_COMPATIBLE_ID",                  SRC_TYPE_STRUCT},
304     {"ACPI_CONNECTION_INFO",                SRC_TYPE_STRUCT},
305     {"ACPI_CONTROL_STATE",                  SRC_TYPE_STRUCT},
306     {"ACPI_CONVERSION_TABLE",               SRC_TYPE_STRUCT},
307     {"ACPI_CPU_FLAGS",                      SRC_TYPE_SIMPLE},
308     {"ACPI_CREATE_FIELD_INFO",              SRC_TYPE_STRUCT},
309     {"ACPI_DATA_TABLE_MAPPING",             SRC_TYPE_STRUCT},
310     {"ACPI_DB_ARGUMENT_INFO",               SRC_TYPE_STRUCT},
311     {"ACPI_DB_COMMAND_HELP",                SRC_TYPE_STRUCT},
312     {"ACPI_DB_COMMAND_INFO",                SRC_TYPE_STRUCT},
313     {"ACPI_DB_EXECUTE_WALK",                SRC_TYPE_STRUCT},
314     {"ACPI_DB_METHOD_INFO",                 SRC_TYPE_STRUCT},
315     {"ACPI_DEBUG_MEM_BLOCK",                SRC_TYPE_STRUCT},
316     {"ACPI_DEBUG_MEM_HEADER",               SRC_TYPE_STRUCT},
317     {"ACPI_DEBUG_PRINT_INFO",               SRC_TYPE_STRUCT},
318     {"ACPI_DESCRIPTOR",                     SRC_TYPE_UNION},
319     {"ACPI_DEVICE_INFO",                    SRC_TYPE_STRUCT},
320     {"ACPI_DEVICE_WALK_INFO",               SRC_TYPE_STRUCT},
321     {"ACPI_DMTABLE_DATA",                   SRC_TYPE_STRUCT},
322     {"ACPI_DMTABLE_INFO",                   SRC_TYPE_STRUCT},
323     {"ACPI_DMTABLE_HANDLER",                SRC_TYPE_SIMPLE},
324     {"ACPI_EFI_FILE",                       SRC_TYPE_SIMPLE},
325     {"ACPI_EVALUATE_INFO",                  SRC_TYPE_STRUCT},
326     {"ACPI_EVENT_HANDLER",                  SRC_TYPE_SIMPLE},
327     {"ACPI_EVENT_STATUS",                   SRC_TYPE_SIMPLE},
328     {"ACPI_EVENT_TYPE",                     SRC_TYPE_SIMPLE},
329     {"ACPI_EXCEPTION_HANDLER",              SRC_TYPE_SIMPLE},
330     {"ACPI_EXCEPTION_INFO",                 SRC_TYPE_STRUCT},
331     {"ACPI_EXDUMP_INFO",                    SRC_TYPE_STRUCT},
332     {"ACPI_EXECUTE_OP",                     SRC_TYPE_SIMPLE},
333     {"ACPI_EXECUTE_TYPE",                   SRC_TYPE_SIMPLE},
334     {"ACPI_EXTERNAL_LIST",                  SRC_TYPE_STRUCT},
335     {"ACPI_EXTERNAL_FILE",                  SRC_TYPE_STRUCT},
336     {"ACPI_FADT_INFO",                      SRC_TYPE_STRUCT},
337     {"ACPI_FADT_PM_INFO",                   SRC_TYPE_STRUCT},
338     {"ACPI_FIELD_INFO",                     SRC_TYPE_STRUCT},
339     {"ACPI_FILE_NODE",                      SRC_TYPE_STRUCT},
340     {"ACPI_FIND_CONTEXT",                   SRC_TYPE_STRUCT},
341     {"ACPI_FIXED_EVENT_HANDLER",            SRC_TYPE_STRUCT},
342     {"ACPI_FIXED_EVENT_INFO",               SRC_TYPE_STRUCT},
343     {"ACPI_FFH_INFO",                       SRC_TYPE_STRUCT},
344     {"ACPI_GBL_EVENT_HANDLER",              SRC_TYPE_SIMPLE},
345     {"ACPI_GENERIC_ADDRESS",                SRC_TYPE_STRUCT},
346     {"ACPI_GENERIC_STATE",                  SRC_TYPE_UNION},
347     {"ACPI_GET_DEVICES_INFO",               SRC_TYPE_STRUCT},
348     {"ACPI_GLOBAL_NOTIFY_HANDLER",          SRC_TYPE_STRUCT},
349     {"ACPI_GPE_BLOCK_INFO",                 SRC_TYPE_STRUCT},
350     {"ACPI_GPE_CALLBACK",                   SRC_TYPE_SIMPLE},
351     {"ACPI_GPE_DEVICE_INFO",                SRC_TYPE_STRUCT},
352     {"ACPI_GPE_EVENT_INFO",                 SRC_TYPE_STRUCT},
353     {"ACPI_GPE_HANDLER",                    SRC_TYPE_SIMPLE},
354     {"ACPI_GPE_HANDLER_INFO",               SRC_TYPE_STRUCT},
355     {"ACPI_GPE_INDEX_INFO",                 SRC_TYPE_STRUCT},
356     {"ACPI_GPE_NOTIFY_INFO",                SRC_TYPE_STRUCT},
357     {"ACPI_GPE_REGISTER_INFO",              SRC_TYPE_STRUCT},
358     {"ACPI_GPE_WALK_INFO",                  SRC_TYPE_STRUCT},
359     {"ACPI_GPE_XRUPT_INFO",                 SRC_TYPE_STRUCT},
360     {"ACPI_GPIO_INFO",                      SRC_TYPE_STRUCT},
361     {"ACPI_HANDLE",                         SRC_TYPE_SIMPLE},
362     {"ACPI_HANDLER_INFO",                   SRC_TYPE_STRUCT},
363     {"ACPI_INIT_HANDLER",                   SRC_TYPE_SIMPLE},
364     {"ACPI_INTERFACE_HANDLER",              SRC_TYPE_SIMPLE},
365     {"ACPI_IDENTIFIER_TABLE",               SRC_TYPE_STRUCT},
366     {"ACPI_INIT_WALK_INFO",                 SRC_TYPE_STRUCT},
367     {"ACPI_INTEGER",                        SRC_TYPE_SIMPLE},
368     {"ACPI_INTEGER_OVERLAY",                SRC_TYPE_STRUCT},
369     {"ACPI_INTEGRITY_INFO",                 SRC_TYPE_STRUCT},
370     {"ACPI_INTERFACE_INFO",                 SRC_TYPE_STRUCT},
371     {"ACPI_INTERNAL_METHOD",                SRC_TYPE_SIMPLE},
372     {"ACPI_INTERPRETER_MODE",               SRC_TYPE_SIMPLE},
373     {"ACPI_IO_ADDRESS",                     SRC_TYPE_SIMPLE},
374     {"ACPI_IO_ATTRIBUTE",                   SRC_TYPE_STRUCT},
375     {"ACPI_LPIT_HEADER",                    SRC_TYPE_STRUCT},
376     {"ACPI_LPIT_IO",                        SRC_TYPE_STRUCT},
377     {"ACPI_LPIT_NATIVE",                    SRC_TYPE_STRUCT},
378     {"ACPI_MEM_MAPPING",                    SRC_TYPE_STRUCT},
379     {"ACPI_MEM_SPACE_CONTEXT",              SRC_TYPE_STRUCT},
380     {"ACPI_MEMORY_ATTRIBUTE",               SRC_TYPE_STRUCT},
381     {"ACPI_MEMORY_LIST",                    SRC_TYPE_STRUCT},
382     {"ACPI_METHOD_LOCAL",                   SRC_TYPE_STRUCT},
383     {"ACPI_MUTEX",                          SRC_TYPE_SIMPLE},
384     {"ACPI_MUTEX_HANDLE",                   SRC_TYPE_SIMPLE},
385     {"ACPI_MUTEX_INFO",                     SRC_TYPE_STRUCT},
386     {"ACPI_NAME",                           SRC_TYPE_SIMPLE},
387     {"ACPI_NAME_INFO",                      SRC_TYPE_STRUCT},
388     {"ACPI_NAME_UNION",                     SRC_TYPE_UNION},
389     {"ACPI_NAMESPACE_NODE",                 SRC_TYPE_STRUCT},
390     {"ACPI_NAMESTRING_INFO",                SRC_TYPE_STRUCT},
391     {"ACPI_NATIVE_INT",                     SRC_TYPE_SIMPLE},
392     {"ACPI_NATIVE_UINT",                    SRC_TYPE_SIMPLE},
393     {"ACPI_NEW_TABLE_DESC",                 SRC_TYPE_STRUCT},
394 
395     {"ACPI_NOTIFY_HANDLER",                 SRC_TYPE_SIMPLE},
396     {"ACPI_NOTIFY_INFO",                    SRC_TYPE_STRUCT},
397     {"ACPI_NS_SEARCH_DATA",                 SRC_TYPE_STRUCT},
398     {"ACPI_OBJ_INFO_HEADER",                SRC_TYPE_STRUCT},
399     {"ACPI_OBJECT",                         SRC_TYPE_UNION},
400     {"ACPI_OBJECT_ADDR_HANDLER",            SRC_TYPE_STRUCT},
401     {"ACPI_OBJECT_BANK_FIELD",              SRC_TYPE_STRUCT},
402     {"ACPI_OBJECT_BUFFER",                  SRC_TYPE_STRUCT},
403     {"ACPI_OBJECT_BUFFER_FIELD",            SRC_TYPE_STRUCT},
404     {"ACPI_OBJECT_CACHE_LIST",              SRC_TYPE_STRUCT},
405     {"ACPI_OBJECT_COMMON",                  SRC_TYPE_STRUCT},
406     {"ACPI_OBJECT_CONVERTER",               SRC_TYPE_SIMPLE},
407     {"ACPI_OBJECT_DATA",                    SRC_TYPE_STRUCT},
408     {"ACPI_OBJECT_DEVICE",                  SRC_TYPE_STRUCT},
409     {"ACPI_OBJECT_EVENT",                   SRC_TYPE_STRUCT},
410     {"ACPI_OBJECT_EXTRA",                   SRC_TYPE_STRUCT},
411     {"ACPI_OBJECT_FIELD_COMMON",            SRC_TYPE_STRUCT},
412     {"ACPI_OBJECT_HANDLER",                 SRC_TYPE_SIMPLE},
413     {"ACPI_OBJECT_INDEX_FIELD",             SRC_TYPE_STRUCT},
414     {"ACPI_OBJECT_INTEGER",                 SRC_TYPE_STRUCT},
415     {"ACPI_OBJECT_INFO",                    SRC_TYPE_STRUCT},
416     {"ACPI_OBJECT_LIST",                    SRC_TYPE_STRUCT},
417     {"ACPI_OBJECT_METHOD",                  SRC_TYPE_STRUCT},
418     {"ACPI_OBJECT_MUTEX",                   SRC_TYPE_STRUCT},
419     {"ACPI_OBJECT_NOTIFY_COMMON",           SRC_TYPE_STRUCT},
420     {"ACPI_OBJECT_NOTIFY_HANDLER",          SRC_TYPE_STRUCT},
421     {"ACPI_OBJECT_PACKAGE",                 SRC_TYPE_STRUCT},
422     {"ACPI_OBJECT_POWER_RESOURCE",          SRC_TYPE_STRUCT},
423     {"ACPI_OBJECT_PROCESSOR",               SRC_TYPE_STRUCT},
424     {"ACPI_OBJECT_REFERENCE",               SRC_TYPE_STRUCT},
425     {"ACPI_OBJECT_REGION",                  SRC_TYPE_STRUCT},
426     {"ACPI_OBJECT_REGION_FIELD",            SRC_TYPE_STRUCT},
427     {"ACPI_OBJECT_STRING",                  SRC_TYPE_STRUCT},
428     {"ACPI_OBJECT_THERMAL_ZONE",            SRC_TYPE_STRUCT},
429     {"ACPI_OBJECT_TYPE",                    SRC_TYPE_SIMPLE},
430     {"ACPI_OBJECT_TYPE8",                   SRC_TYPE_SIMPLE},
431     {"ACPI_OP_WALK_INFO",                   SRC_TYPE_STRUCT},
432     {"ACPI_OPCODE_INFO",                    SRC_TYPE_STRUCT},
433     {"ACPI_OPERAND_OBJECT",                 SRC_TYPE_UNION},
434     {"ACPI_OSD_HANDLER",                    SRC_TYPE_SIMPLE},
435     {"ACPI_OSD_EXEC_CALLBACK",              SRC_TYPE_SIMPLE},
436     {"ACPI_OWNER_ID",                       SRC_TYPE_SIMPLE},
437     {"ACPI_PACKAGE_INFO",                   SRC_TYPE_STRUCT},
438     {"ACPI_PACKAGE_INFO2",                  SRC_TYPE_STRUCT},
439     {"ACPI_PACKAGE_INFO3",                  SRC_TYPE_STRUCT},
440     {"ACPI_PACKAGE_INFO4",                  SRC_TYPE_STRUCT},
441     {"ACPI_PARSE_DOWNWARDS",                SRC_TYPE_SIMPLE},
442     {"ACPI_PARSE_OBJ_ASL",                  SRC_TYPE_STRUCT},
443     {"ACPI_PARSE_OBJ_COMMON",               SRC_TYPE_STRUCT},
444     {"ACPI_PARSE_OBJ_NAMED",                SRC_TYPE_STRUCT},
445     {"ACPI_PARSE_OBJECT",                   SRC_TYPE_UNION},
446     {"ACPI_PARSE_STATE",                    SRC_TYPE_STRUCT},
447     {"ACPI_PARSE_UPWARDS",                  SRC_TYPE_SIMPLE},
448     {"ACPI_PARSE_VALUE",                    SRC_TYPE_UNION},
449     {"ACPI_PCC_INFO",                       SRC_TYPE_STRUCT},
450     {"ACPI_PCI_DEVICE",                     SRC_TYPE_STRUCT},
451     {"ACPI_PCI_ID",                         SRC_TYPE_STRUCT},
452     {"ACPI_PCI_ROUTING_TABLE",              SRC_TYPE_STRUCT},
453     {"ACPI_PHYSICAL_ADDRESS",               SRC_TYPE_SIMPLE},
454     {"ACPI_PKG_CALLBACK",                   SRC_TYPE_SIMPLE},
455     {"ACPI_PKG_INFO",                       SRC_TYPE_STRUCT},
456     {"ACPI_PKG_STATE",                      SRC_TYPE_STRUCT},
457     {"ACPI_PMTT_HEADER",                    SRC_TYPE_STRUCT},
458     {"ACPI_PNP_DEVICE_ID",                  SRC_TYPE_STRUCT},
459     {"ACPI_PNP_DEVICE_ID_LIST",             SRC_TYPE_STRUCT},
460     {"ACPI_POINTER",                        SRC_TYPE_STRUCT},
461     {"ACPI_POINTERS",                       SRC_TYPE_UNION},
462     {"ACPI_PORT_INFO",                      SRC_TYPE_STRUCT},
463     {"ACPI_PREDEFINED_DATA",                SRC_TYPE_STRUCT},
464     {"ACPI_PREDEFINED_INFO",                SRC_TYPE_UNION},
465     {"ACPI_PREDEFINED_NAMES",               SRC_TYPE_STRUCT},
466     {"ACPI_PRUNE_INFO",                     SRC_TYPE_STRUCT},
467     {"ACPI_PSCOPE_STATE",                   SRC_TYPE_STRUCT},
468     {"ACPI_RASF_PARAMETER_BLOCK",           SRC_TYPE_STRUCT},
469     {"ACPI_RASF_PATROL_SCRUB_PARAMETER",    SRC_TYPE_STRUCT},
470     {"ACPI_RASF_SHARED_MEMORY",             SRC_TYPE_STRUCT},
471     {"ACPI_RAS2_PARAMETER_BLOCK",           SRC_TYPE_STRUCT},
472     {"ACPI_RAS2_PATROL_SCRUB_PARAMETER",    SRC_TYPE_STRUCT},
473     {"ACPI_RAS2_LA2PA_TRANSLATION_PARAM",   SRC_TYPE_STRUCT},
474     {"ACPI_RAS2_SHARED_MEMORY",             SRC_TYPE_STRUCT},
475     {"ACPI_REGION_WALK_INFO",               SRC_TYPE_STRUCT},
476     {"ACPI_REPAIR_FUNCTION",                SRC_TYPE_SIMPLE},
477     {"ACPI_REPAIR_INFO",                    SRC_TYPE_STRUCT},
478     {"ACPI_REG_WALK_INFO",                  SRC_TYPE_STRUCT},
479     {"ACPI_RESOURCE",                       SRC_TYPE_STRUCT},
480     {"ACPI_RESOURCE_HANDLER",               SRC_TYPE_SIMPLE},
481     {"ACPI_RESOURCE_ADDRESS",               SRC_TYPE_STRUCT},
482     {"ACPI_RESOURCE_ADDRESS16",             SRC_TYPE_STRUCT},
483     {"ACPI_RESOURCE_ADDRESS32",             SRC_TYPE_STRUCT},
484     {"ACPI_RESOURCE_ADDRESS64",             SRC_TYPE_STRUCT},
485     {"ACPI_RESOURCE_COMMON_SERIALBUS",      SRC_TYPE_STRUCT},
486     {"ACPI_RESOURCE_CSI2_SERIALBUS",        SRC_TYPE_STRUCT},
487     {"ACPI_RESOURCE_EXTENDED_ADDRESS64",    SRC_TYPE_STRUCT},
488     {"ACPI_RESOURCE_ATTRIBUTE",             SRC_TYPE_UNION},
489     {"ACPI_RESOURCE_DATA",                  SRC_TYPE_UNION},
490     {"ACPI_RESOURCE_DMA",                   SRC_TYPE_STRUCT},
491     {"ACPI_RESOURCE_END_TAG",               SRC_TYPE_STRUCT},
492     {"ACPI_RESOURCE_EXTENDED_IRQ",          SRC_TYPE_STRUCT},
493     {"ACPI_RESOURCE_FIXED_DMA",             SRC_TYPE_STRUCT},
494     {"ACPI_RESOURCE_FIXED_IO",              SRC_TYPE_STRUCT},
495     {"ACPI_RESOURCE_FIXED_MEMORY32",        SRC_TYPE_STRUCT},
496     {"ACPI_RESOURCE_GENERIC_REGISTER",      SRC_TYPE_STRUCT},
497     {"ACPI_RESOURCE_GPIO",                  SRC_TYPE_STRUCT},
498     {"ACPI_RESOURCE_I2C_SERIALBUS",         SRC_TYPE_STRUCT},
499     {"ACPI_RESOURCE_INFO",                  SRC_TYPE_STRUCT},
500     {"ACPI_RESOURCE_IO",                    SRC_TYPE_STRUCT},
501     {"ACPI_RESOURCE_IRQ",                   SRC_TYPE_STRUCT},
502     {"ACPI_RESOURCE_LABEL",                 SRC_TYPE_STRUCT},
503     {"ACPI_RESOURCE_MEMORY24",              SRC_TYPE_STRUCT},
504     {"ACPI_RESOURCE_MEMORY32",              SRC_TYPE_STRUCT},
505     {"ACPI_RESOURCE_PIN_CONFIG",            SRC_TYPE_STRUCT},
506     {"ACPI_RESOURCE_PIN_FUNCTION",          SRC_TYPE_STRUCT},
507     {"ACPI_RESOURCE_PIN_GROUP",             SRC_TYPE_STRUCT},
508     {"ACPI_RESOURCE_PIN_GROUP_CONFIG",      SRC_TYPE_STRUCT},
509     {"ACPI_RESOURCE_PIN_GROUP_FUNCTION",    SRC_TYPE_STRUCT},
510     {"ACPI_RESOURCE_SOURCE",                SRC_TYPE_STRUCT},
511     {"ACPI_RESOURCE_SPI_SERIALBUS",         SRC_TYPE_STRUCT},
512     {"ACPI_RESOURCE_START_DEPENDENT",       SRC_TYPE_STRUCT},
513     {"ACPI_RESOURCE_TAG",                   SRC_TYPE_STRUCT},
514     {"ACPI_RESOURCE_TYPE",                  SRC_TYPE_SIMPLE},
515     {"ACPI_RESOURCE_UART_SERIALBUS",        SRC_TYPE_STRUCT},
516     {"ACPI_RESOURCE_VENDOR",                SRC_TYPE_STRUCT},
517     {"ACPI_RESOURCE_VENDOR_TYPED",          SRC_TYPE_STRUCT},
518     {"ACPI_RESULT_VALUES",                  SRC_TYPE_STRUCT},
519     {"ACPI_ROUND_UP_TO_32_BIT",             SRC_TYPE_SIMPLE},
520     {"ACPI_RSCONVERT_INFO",                 SRC_TYPE_STRUCT},
521     {"ACPI_RSDUMP_INFO",                    SRC_TYPE_STRUCT},
522     {"ACPI_RW_LOCK",                        SRC_TYPE_STRUCT},
523     {"ACPI_S3PT_HEADER",                    SRC_TYPE_STRUCT},
524     {"ACPI_SCI_HANDLER",                    SRC_TYPE_SIMPLE},
525     {"ACPI_SCI_HANDLER_INFO",               SRC_TYPE_STRUCT},
526     {"ACPI_SCOPE_STATE",                    SRC_TYPE_STRUCT},
527     {"ACPI_SEMAPHORE",                      SRC_TYPE_SIMPLE},
528     {"ACPI_SERIAL_INFO",                    SRC_TYPE_STRUCT},
529     {"ACPI_SIGNAL_FATAL_INFO",              SRC_TYPE_STRUCT},
530     {"ACPI_SIMPLE_REPAIR_INFO",             SRC_TYPE_STRUCT},
531     {"ACPI_SIZE",                           SRC_TYPE_SIMPLE},
532     {"ACPI_SLEEP_FUNCTION",                 SRC_TYPE_SIMPLE},
533     {"ACPI_SLEEP_FUNCTIONS",                SRC_TYPE_STRUCT},
534     {"ACPI_SPINLOCK",                       SRC_TYPE_SIMPLE},
535     {"ACPI_STATISTICS",                     SRC_TYPE_STRUCT},
536     {"ACPI_STATUS",                         SRC_TYPE_SIMPLE},
537     {"ACPI_STRING",                         SRC_TYPE_SIMPLE},
538     {"ACPI_STRING_TABLE",                   SRC_TYPE_STRUCT},
539     {"ACPI_SUBTABLE_HEADER",                SRC_TYPE_STRUCT},
540     {"ACPI_SYSTEM_INFO",                    SRC_TYPE_STRUCT},
541     {"ACPI_TABLE_DESC",                     SRC_TYPE_STRUCT},
542     {"ACPI_TABLE_HANDLER",                  SRC_TYPE_SIMPLE},
543     {"ACPI_TABLE_HEADER",                   SRC_TYPE_STRUCT},
544     {"ACPI_TABLE_INFO",                     SRC_TYPE_STRUCT},
545     {"ACPI_TABLE_LIST",                     SRC_TYPE_STRUCT},
546     {"ACPI_TABLE_LPIT",                     SRC_TYPE_STRUCT},
547     {"ACPI_TABLE_SUPPORT",                  SRC_TYPE_STRUCT},
548     {"ACPI_TABLE_TYPE",                     SRC_TYPE_SIMPLE},
549     {"ACPI_TAG_INFO",                       SRC_TYPE_STRUCT},
550     {"ACPI_THREAD_ID",                      SRC_TYPE_SIMPLE},
551     {"ACPI_THREAD_STATE",                   SRC_TYPE_STRUCT},
552     {"ACPI_TRACE_EVENT_TYPE",               SRC_TYPE_SIMPLE},
553     {"ACPI_TYPED_IDENTIFIER_TABLE",         SRC_TYPE_STRUCT},
554     {"ACPI_UINTPTR_T",                      SRC_TYPE_SIMPLE},
555     {"ACPI_UPDATE_STATE",                   SRC_TYPE_STRUCT},
556     {"ACPI_UUID",                           SRC_TYPE_STRUCT},
557     {"ACPI_VENDOR_UUID",                    SRC_TYPE_STRUCT},
558     {"ACPI_VENDOR_WALK_INFO",               SRC_TYPE_STRUCT},
559     {"ACPI_WALK_AML_CALLBACK",              SRC_TYPE_SIMPLE},
560     {"ACPI_WALK_CALLBACK",                  SRC_TYPE_SIMPLE},
561     {"ACPI_WALK_RESOURCE_CALLBACK",         SRC_TYPE_SIMPLE},
562     {"ACPI_WALK_INFO",                      SRC_TYPE_STRUCT},
563     {"ACPI_WALK_STATE",                     SRC_TYPE_STRUCT},
564     {"ACPI_WHEA_HEADER",                    SRC_TYPE_STRUCT},
565 
566     /* Buffers related to predefined ACPI names (_PLD, etc.) */
567 
568     {"ACPI_FDE_INFO",                       SRC_TYPE_STRUCT},
569     {"ACPI_GRT_INFO",                       SRC_TYPE_STRUCT},
570     {"ACPI_GTM_INFO",                       SRC_TYPE_STRUCT},
571     {"ACPI_PLD_INFO",                       SRC_TYPE_STRUCT},
572 
573     /* Resources */
574 
575     {"ACPI_RS_LENGTH",                      SRC_TYPE_SIMPLE},
576     {"ACPI_RSDESC_SIZE",                    SRC_TYPE_SIMPLE},
577 
578     {"AML_RESOURCE",                        SRC_TYPE_UNION},
579     {"AML_RESOURCE_ADDRESS",                SRC_TYPE_STRUCT},
580     {"AML_RESOURCE_ADDRESS16",              SRC_TYPE_STRUCT},
581     {"AML_RESOURCE_ADDRESS32",              SRC_TYPE_STRUCT},
582     {"AML_RESOURCE_ADDRESS64",              SRC_TYPE_STRUCT},
583     {"AML_RESOURCE_COMMON_SERIALBUS",       SRC_TYPE_STRUCT},
584     {"AML_RESOURCE_CSI2_SERIALBUS",         SRC_TYPE_STRUCT},
585     {"AML_RESOURCE_DMA",                    SRC_TYPE_STRUCT},
586     {"AML_RESOURCE_END_DEPENDENT",          SRC_TYPE_STRUCT},
587     {"AML_RESOURCE_END_TAG",                SRC_TYPE_STRUCT},
588     {"AML_RESOURCE_EXTENDED_ADDRESS64",     SRC_TYPE_STRUCT},
589     {"AML_RESOURCE_EXTENDED_IRQ",           SRC_TYPE_STRUCT},
590     {"AML_RESOURCE_FIXED_DMA",              SRC_TYPE_STRUCT},
591     {"AML_RESOURCE_FIXED_IO",               SRC_TYPE_STRUCT},
592     {"AML_RESOURCE_FIXED_MEMORY32",         SRC_TYPE_STRUCT},
593     {"AML_RESOURCE_GENERIC_REGISTER",       SRC_TYPE_STRUCT},
594     {"AML_RESOURCE_GPIO",                   SRC_TYPE_STRUCT},
595     {"AML_RESOURCE_IO",                     SRC_TYPE_STRUCT},
596     {"AML_RESOURCE_I2C_SERIALBUS",          SRC_TYPE_STRUCT},
597     {"AML_RESOURCE_IRQ",                    SRC_TYPE_STRUCT},
598     {"AML_RESOURCE_IRQ_NOFLAGS",            SRC_TYPE_STRUCT},
599     {"AML_RESOURCE_LARGE_HEADER",           SRC_TYPE_STRUCT},
600     {"AML_RESOURCE_MEMORY24",               SRC_TYPE_STRUCT},
601     {"AML_RESOURCE_MEMORY32",               SRC_TYPE_STRUCT},
602     {"AML_RESOURCE_PIN_CONFIG",             SRC_TYPE_STRUCT},
603     {"AML_RESOURCE_PIN_FUNCTION",           SRC_TYPE_STRUCT},
604     {"AML_RESOURCE_PIN_GROUP",              SRC_TYPE_STRUCT},
605     {"AML_RESOURCE_PIN_GROUP_CONFIG",       SRC_TYPE_STRUCT},
606     {"AML_RESOURCE_PIN_GROUP_FUNCTION",     SRC_TYPE_STRUCT},
607     {"AML_RESOURCE_SMALL_HEADER",           SRC_TYPE_STRUCT},
608     {"AML_RESOURCE_SPI_SERIALBUS",          SRC_TYPE_STRUCT},
609     {"AML_RESOURCE_START_DEPENDENT",        SRC_TYPE_STRUCT},
610     {"AML_RESOURCE_START_DEPENDENT_NOPRIO", SRC_TYPE_STRUCT},
611     {"AML_RESOURCE_UART_SERIALBUS",         SRC_TYPE_STRUCT},
612     {"AML_RESOURCE_VENDOR_LARGE",           SRC_TYPE_STRUCT},
613     {"AML_RESOURCE_VENDOR_SMALL",           SRC_TYPE_STRUCT},
614     {"AS_BRACE_INFO",                       SRC_TYPE_STRUCT},
615     {"AS_SCAN_CALLBACK",                    SRC_TYPE_SIMPLE},
616 
617     {"APIC_HEADER",                         SRC_TYPE_STRUCT},
618     {"AE_DEBUG_REGIONS",                    SRC_TYPE_STRUCT},
619     {"AE_REGION",                           SRC_TYPE_STRUCT},
620     {"ASL_ANALYSIS_WALK_INFO",              SRC_TYPE_STRUCT},
621     {"ASL_CACHE_INFO",                      SRC_TYPE_STRUCT},
622     {"ASL_COMMENT_STATE",                   SRC_TYPE_STRUCT},
623     {"ASL_COMMENT_TYPES",                   SRC_TYPE_SIMPLE},
624     {"ASL_ERROR_MSG",                       SRC_TYPE_STRUCT},
625     {"ASL_EVENT_INFO",                      SRC_TYPE_STRUCT},
626     {"ASL_EXPECTED_MESSAGE",                SRC_TYPE_STRUCT},
627     {"ASL_EXPECTED_MSG_NODE",               SRC_TYPE_STRUCT},
628     {"ASL_FILE_DESC",                       SRC_TYPE_STRUCT},
629     {"ASL_FILE_INFO",                       SRC_TYPE_STRUCT},
630     {"ASL_FILE_NODE",                       SRC_TYPE_STRUCT},
631     {"ASL_FILE_STATUS",                     SRC_TYPE_STRUCT},
632     {"ASL_FILE_TYPES",                      SRC_TYPE_STRUCT},
633     {"ASL_GLOBAL_FILE_NODE",                SRC_TYPE_STRUCT},
634     {"ASL_INCLUDE_DIR",                     SRC_TYPE_STRUCT},
635     {"ASL_LISTING_NODE",                    SRC_TYPE_STRUCT},
636     {"ASL_LOCATION_NODE",                   SRC_TYPE_STRUCT},
637     {"ASL_MAPPING_ENTRY",                   SRC_TYPE_STRUCT},
638     {"ASL_METHOD_INFO",                     SRC_TYPE_STRUCT},
639     {"ASL_METHOD_LOCAL",                    SRC_TYPE_STRUCT},
640     {"ASL_RESERVED_INFO",                   SRC_TYPE_STRUCT},
641     {"ASL_RESOURCE_INFO",                   SRC_TYPE_STRUCT},
642     {"ASL_RESOURCE_NODE",                   SRC_TYPE_STRUCT},
643     {"ASL_WALK_CALLBACK",                   SRC_TYPE_SIMPLE},
644     {"ASL_XREF_INFO",                       SRC_TYPE_STRUCT},
645     {"UINT64_OVERLAY",                      SRC_TYPE_UNION},
646     {"UINT64_STRUCT",                       SRC_TYPE_STRUCT},
647 
648     /*
649      * Acpi table definition names.
650      */
651     {"ACPI_TABLE_AEST",                     SRC_TYPE_STRUCT},
652     {"ACPI_TABLE_AGDI",                     SRC_TYPE_STRUCT},
653     {"ACPI_TABLE_ASF",                      SRC_TYPE_STRUCT},
654     {"ACPI_TABLE_BDAT",                     SRC_TYPE_STRUCT},
655     {"ACPI_TABLE_BERT",                     SRC_TYPE_STRUCT},
656     {"ACPI_TABLE_BGRT",                     SRC_TYPE_STRUCT},
657     {"ACPI_TABLE_BOOT",                     SRC_TYPE_STRUCT},
658     {"ACPI_TABLE_CCEL",                     SRC_TYPE_STRUCT},
659     {"ACPI_TABLE_CDAT",                     SRC_TYPE_STRUCT},
660     {"ACPI_TABLE_CEDT",                     SRC_TYPE_STRUCT},
661     {"ACPI_TABLE_CPEP",                     SRC_TYPE_STRUCT},
662     {"ACPI_TABLE_CSRT",                     SRC_TYPE_STRUCT},
663     {"ACPI_TABLE_DBG2",                     SRC_TYPE_STRUCT},
664     {"ACPI_TABLE_DBGP",                     SRC_TYPE_STRUCT},
665     {"ACPI_TABLE_DMAR",                     SRC_TYPE_STRUCT},
666     {"ACPI_TABLE_DRTM",                     SRC_TYPE_STRUCT},
667     {"ACPI_TABLE_ECDT",                     SRC_TYPE_STRUCT},
668     {"ACPI_TABLE_EINJ",                     SRC_TYPE_STRUCT},
669     {"ACPI_TABLE_ERST",                     SRC_TYPE_STRUCT},
670     {"ACPI_TABLE_FACS",                     SRC_TYPE_STRUCT},
671     {"ACPI_TABLE_FADT",                     SRC_TYPE_STRUCT},
672     {"ACPI_TABLE_FPDT",                     SRC_TYPE_STRUCT},
673     {"ACPI_TABLE_GTDT",                     SRC_TYPE_STRUCT},
674     {"ACPI_TABLE_HEST",                     SRC_TYPE_STRUCT},
675     {"ACPI_TABLE_HMAT",                     SRC_TYPE_STRUCT},
676     {"ACPI_TABLE_HPET",                     SRC_TYPE_STRUCT},
677     {"ACPI_TABLE_IBFT",                     SRC_TYPE_STRUCT},
678     {"ACPI_TABLE_IORT",                     SRC_TYPE_STRUCT},
679     {"ACPI_TABLE_IVRS",                     SRC_TYPE_STRUCT},
680     {"ACPI_TABLE_MADT",                     SRC_TYPE_STRUCT},
681     {"ACPI_TABLE_MCFG",                     SRC_TYPE_STRUCT},
682     {"ACPI_TABLE_MCHI",                     SRC_TYPE_STRUCT},
683     {"ACPI_TABLE_MPAM",                     SRC_TYPE_STRUCT},
684     {"ACPI_TABLE_MPST",                     SRC_TYPE_STRUCT},
685     {"ACPI_TABLE_MSCT",                     SRC_TYPE_STRUCT},
686     {"ACPI_TABLE_MSDM",                     SRC_TYPE_STRUCT},
687     {"ACPI_TABLE_NFIT",                     SRC_TYPE_STRUCT},
688     {"ACPI_TABLE_PCCT",                     SRC_TYPE_STRUCT},
689     {"ACPI_TABLE_PDTT",                     SRC_TYPE_STRUCT},
690     {"ACPI_TABLE_PHAT",                     SRC_TYPE_STRUCT},
691     {"ACPI_TABLE_PMTT",                     SRC_TYPE_STRUCT},
692     {"ACPI_TABLE_PPTT",                     SRC_TYPE_STRUCT},
693     {"ACPI_TABLE_PRMT",                     SRC_TYPE_STRUCT},
694     {"ACPI_TABLE_RGRT",                     SRC_TYPE_STRUCT},
695     {"ACPI_TABLE_RSDP",                     SRC_TYPE_STRUCT},
696     {"ACPI_TABLE_RSDT",                     SRC_TYPE_STRUCT},
697     {"ACPI_TABLE_S3PT",                     SRC_TYPE_STRUCT},
698     {"ACPI_TABLE_SBST",                     SRC_TYPE_STRUCT},
699     {"ACPI_TABLE_SDEV",                     SRC_TYPE_STRUCT},
700     {"ACPI_TABLE_SVKL",                     SRC_TYPE_STRUCT},
701     {"ACPI_TABLE_SLIC",                     SRC_TYPE_STRUCT},
702     {"ACPI_TABLE_SLIT",                     SRC_TYPE_STRUCT},
703     {"ACPI_TABLE_SPCR",                     SRC_TYPE_STRUCT},
704     {"ACPI_TABLE_SPMI",                     SRC_TYPE_STRUCT},
705     {"ACPI_TABLE_SRAT",                     SRC_TYPE_STRUCT},
706     {"ACPI_TABLE_STAO",                     SRC_TYPE_STRUCT},
707     {"ACPI_TABLE_TCPA",                     SRC_TYPE_STRUCT},
708     {"ACPI_TABLE_TDEL",                     SRC_TYPE_STRUCT},
709     {"ACPI_TABLE_TPM2",                     SRC_TYPE_STRUCT},
710     {"ACPI_TABLE_TPM23",                    SRC_TYPE_STRUCT},
711     {"ACPI_TABLE_UEFI",                     SRC_TYPE_STRUCT},
712     {"ACPI_TABLE_VIOT",                     SRC_TYPE_STRUCT},
713     {"ACPI_TABLE_WAET",                     SRC_TYPE_STRUCT},
714     {"ACPI_TABLE_WDAT",                     SRC_TYPE_STRUCT},
715     {"ACPI_TABLE_WDDT",                     SRC_TYPE_STRUCT},
716     {"ACPI_TABLE_WDRT",                     SRC_TYPE_STRUCT},
717     {"ACPI_TABLE_WPBT",                     SRC_TYPE_STRUCT},
718     {"ACPI_TABLE_WSMT",                     SRC_TYPE_STRUCT},
719     {"ACPI_TABLE_XENV",                     SRC_TYPE_STRUCT},
720     {"ACPI_TABLE_XSDT",                     SRC_TYPE_STRUCT},
721 
722     /* Individual per-table names (typically subtables) */
723 
724     {"ACPI_AEST_GIC",                       SRC_TYPE_STRUCT},
725     {"ACPI_AEST_HEADER",                    SRC_TYPE_STRUCT},
726     {"ACPI_AEST_MEMORY",                    SRC_TYPE_STRUCT},
727     {"ACPI_AEST_NODE_INTERFACE",            SRC_TYPE_STRUCT},
728     {"ACPI_AEST_NODE_INTERRUPT",            SRC_TYPE_STRUCT},
729     {"ACPI_AEST_PROCESSOR",                 SRC_TYPE_STRUCT},
730     {"ACPI_AEST_PROCESSOR_CACHE",           SRC_TYPE_STRUCT},
731     {"ACPI_AEST_PROCESSOR_GENERIC",         SRC_TYPE_STRUCT},
732     {"ACPI_AEST_PROCESSOR_TLB",             SRC_TYPE_STRUCT},
733     {"ACPI_AEST_SMMU",                      SRC_TYPE_STRUCT},
734     {"ACPI_AEST_VENDOR",                    SRC_TYPE_STRUCT},
735     {"ACPI_ASF_ADDRESS",                    SRC_TYPE_STRUCT},
736     {"ACPI_ASF_ALERT",                      SRC_TYPE_STRUCT},
737     {"ACPI_ASF_ALERT_DATA",                 SRC_TYPE_STRUCT},
738     {"ACPI_ASF_CONTROL_DATA",               SRC_TYPE_STRUCT},
739     {"ACPI_ASF_HEADER",                     SRC_TYPE_STRUCT},
740     {"ACPI_ASF_INFO",                       SRC_TYPE_STRUCT},
741     {"ACPI_ASF_REMOTE",                     SRC_TYPE_STRUCT},
742     {"ACPI_ASF_RMCP",                       SRC_TYPE_STRUCT},
743     {"ACPI_BERT_REGION",                    SRC_TYPE_STRUCT},
744     {"ACPI_CEDT_CHBS",                      SRC_TYPE_STRUCT},
745     {"ACPI_CEDT_HEADER",                    SRC_TYPE_STRUCT},
746     {"ACPI_CPEP_POLLING",                   SRC_TYPE_STRUCT},
747     {"ACPI_CSRT_GROUP",                     SRC_TYPE_STRUCT},
748     {"ACPI_CSRT_DESCRIPTOR",                SRC_TYPE_STRUCT},
749     {"ACPI_CSRT_SHARED_INFO",               SRC_TYPE_STRUCT},
750     {"ACPI_DBG2_DEVICE",                    SRC_TYPE_STRUCT},
751     {"ACPI_DMAR_HEADER",                    SRC_TYPE_STRUCT},
752     {"ACPI_DMAR_DEVICE_SCOPE",              SRC_TYPE_STRUCT},
753     {"ACPI_DMAR_ANDD",                      SRC_TYPE_STRUCT},
754     {"ACPI_DMAR_ATSR",                      SRC_TYPE_STRUCT},
755     {"ACPI_DMAR_RHSA",                      SRC_TYPE_STRUCT},
756     {"ACPI_DMAR_HARDWARE_UNIT",             SRC_TYPE_STRUCT},
757     {"ACPI_DMAR_RESERVED_MEMORY",           SRC_TYPE_STRUCT},
758     {"ACPI_DRTM_DPS_ID",                    SRC_TYPE_STRUCT},
759     {"ACPI_DRTM_RESOURCE",                  SRC_TYPE_STRUCT},
760     {"ACPI_DRTM_RESOURCE_LIST",             SRC_TYPE_STRUCT},
761     {"ACPI_DRTM_VTABLE_LIST",               SRC_TYPE_STRUCT},
762     {"ACPI_EINJ_ENTRY",                     SRC_TYPE_STRUCT},
763     {"ACPI_EINJ_TRIGGER",                   SRC_TYPE_STRUCT},
764     {"ACPI_ERST_ENTRY",                     SRC_TYPE_STRUCT},
765     {"ACPI_ERST_INFO",                      SRC_TYPE_STRUCT},
766     {"ACPI_FPDT_HEADER",                    SRC_TYPE_STRUCT},
767     {"ACPI_FPDT_BOOT",                      SRC_TYPE_STRUCT},
768     {"ACPI_FPDT_BOOT_POINTER",              SRC_TYPE_STRUCT},
769     {"ACPI_FPDT_S3PT_POINTER",              SRC_TYPE_STRUCT},
770     {"ACPI_GTDT_HEADER",                    SRC_TYPE_STRUCT},
771     {"ACPI_GTDT_TIMER_BLOCK",               SRC_TYPE_STRUCT},
772     {"ACPI_GTDT_TIMER_ENTRY",               SRC_TYPE_STRUCT},
773     {"ACPI_GTDT_WATCHDOG",                  SRC_TYPE_STRUCT},
774     {"ACPI_HEST_AER_COMMON",                SRC_TYPE_STRUCT},
775     {"ACPI_HEST_HEADER",                    SRC_TYPE_STRUCT},
776     {"ACPI_HEST_NOTIFY",                    SRC_TYPE_STRUCT},
777     {"ACPI_HEST_IA_ERROR_BANK",             SRC_TYPE_STRUCT},
778     {"ACPI_HEST_IA_MACHINE_CHECK",          SRC_TYPE_STRUCT},
779     {"ACPI_HEST_IA_CORRECTED",              SRC_TYPE_STRUCT},
780     {"ACPI_HEST_IA_NMI",                    SRC_TYPE_STRUCT},
781     {"ACPI_HEST_AER_ROOT",                  SRC_TYPE_STRUCT},
782     {"ACPI_HEST_AER",                       SRC_TYPE_STRUCT},
783     {"ACPI_HEST_AER_BRIDGE",                SRC_TYPE_STRUCT},
784     {"ACPI_HEST_GENERIC",                   SRC_TYPE_STRUCT},
785     {"ACPI_HEST_GENERIC_V2",                SRC_TYPE_STRUCT},
786     {"ACPI_HEST_GENERIC_STATUS",            SRC_TYPE_STRUCT},
787     {"ACPI_HEST_GENERIC_DATA",              SRC_TYPE_STRUCT},
788     {"ACPI_HEST_GENERIC_DATA_V300",         SRC_TYPE_STRUCT},
789     {"ACPI_HEST_IA_DEFERRED_CHECK",         SRC_TYPE_STRUCT},
790     {"ACPI_HMAT_PROXIMITY_DOMAIN",          SRC_TYPE_STRUCT},
791     {"ACPI_HMAT_CACHE",                     SRC_TYPE_STRUCT},
792     {"ACPI_HMAT_LOCALITY",                  SRC_TYPE_STRUCT},
793     {"ACPI_HMAT_STRUCTURE",                 SRC_TYPE_STRUCT},
794     {"ACPI_IBFT_HEADER",                    SRC_TYPE_STRUCT},
795     {"ACPI_IBFT_CONTROL",                   SRC_TYPE_STRUCT},
796     {"ACPI_IBFT_INITIATOR",                 SRC_TYPE_STRUCT},
797     {"ACPI_IBFT_NIC",                       SRC_TYPE_STRUCT},
798     {"ACPI_IBFT_TARGET",                    SRC_TYPE_STRUCT},
799     {"ACPI_IORT_ID_MAPPING",                SRC_TYPE_STRUCT},
800     {"ACPI_IORT_ITS_GROUP",                 SRC_TYPE_STRUCT},
801     {"ACPI_IORT_MEMORY_ACCESS",             SRC_TYPE_STRUCT},
802     {"ACPI_IORT_NAMED_COMPONENT",           SRC_TYPE_STRUCT},
803     {"ACPI_IORT_NODE",                      SRC_TYPE_STRUCT},
804     {"ACPI_IORT_ROOT_COMPLEX",              SRC_TYPE_STRUCT},
805     {"ACPI_IORT_SMMU",                      SRC_TYPE_STRUCT},
806     {"ACPI_IORT_SMMU_GSI",                  SRC_TYPE_STRUCT},
807     {"ACPI_IORT_SMMU_V3",                   SRC_TYPE_STRUCT},
808     {"ACPI_IORT_PMCG",                      SRC_TYPE_STRUCT},
809     {"ACPI_IORT_RMR",                       SRC_TYPE_STRUCT},
810     {"ACPI_IORT_RMR_DESC",                  SRC_TYPE_STRUCT},
811     {"ACPI_IVRS_HEADER",                    SRC_TYPE_STRUCT},
812     {"ACPI_IVRS_HARDWARE",                  SRC_TYPE_STRUCT},
813     {"ACPI_IVRS_DE_HEADER",                 SRC_TYPE_STRUCT},
814     {"ACPI_IVRS_DEVICE4",                   SRC_TYPE_STRUCT},
815     {"ACPI_IVRS_DEVICE8A",                  SRC_TYPE_STRUCT},
816     {"ACPI_IVRS_DEVICE8B",                  SRC_TYPE_STRUCT},
817     {"ACPI_IVRS_DEVICE8C",                  SRC_TYPE_STRUCT},
818     {"ACPI_IVRS_MEMORY",                    SRC_TYPE_STRUCT},
819     {"ACPI_MADT_ADDRESS_OVERRIDE",          SRC_TYPE_STRUCT},
820     {"ACPI_MADT_GENERIC_MSI_FRAME",         SRC_TYPE_STRUCT},
821     {"ACPI_MADT_GENERIC_REDISTRIBUTOR",     SRC_TYPE_STRUCT},
822     {"ACPI_MADT_HEADER",                    SRC_TYPE_STRUCT},
823     {"ACPI_MADT_IO_APIC",                   SRC_TYPE_STRUCT},
824     {"ACPI_MADT_IO_SAPIC",                  SRC_TYPE_STRUCT},
825     {"ACPI_MADT_LOCAL_APIC",                SRC_TYPE_STRUCT},
826     {"ACPI_MADT_LOCAL_APIC_NMI",            SRC_TYPE_STRUCT},
827     {"ACPI_MADT_LOCAL_APIC_OVERRIDE",       SRC_TYPE_STRUCT},
828     {"ACPI_MADT_LOCAL_SAPIC",               SRC_TYPE_STRUCT},
829     {"ACPI_MADT_LOCAL_X2APIC",              SRC_TYPE_STRUCT},
830     {"ACPI_MADT_LOCAL_X2APIC_NMI",          SRC_TYPE_STRUCT},
831     {"ACPI_MADT_GENERIC_DISTRIBUTOR",       SRC_TYPE_STRUCT},
832     {"ACPI_MADT_GENERIC_INTERRUPT",         SRC_TYPE_STRUCT},
833     {"ACPI_MADT_INTERRUPT_OVERRIDE",        SRC_TYPE_STRUCT},
834     {"ACPI_MADT_INTERRUPT_SOURCE",          SRC_TYPE_STRUCT},
835     {"ACPI_MADT_NMI_SOURCE",                SRC_TYPE_STRUCT},
836     {"ACPI_MADT_MULTIPROC_WAKEUP",          SRC_TYPE_STRUCT},
837     {"ACPI_MADT_MULTIPROC_WAKEUP_MAILBOX",  SRC_TYPE_STRUCT},
838     {"ACPI_MADT_PROCESSOR_APIC",            SRC_TYPE_STRUCT},
839     {"ACPI_MCFG_ALLOCATION",                SRC_TYPE_STRUCT},
840     {"ACPI_MPAM_MSC_NODE",                  SRC_TYPE_STRUCT},
841     {"ACPI_MPAM_RESOURCE_LOCATOR",          SRC_TYPE_STRUCT},
842     {"ACPI_MPAM_RESOURCE_NODE",             SRC_TYPE_STRUCT},
843     {"ACPI_MPST_COMPONENT",                 SRC_TYPE_STRUCT},
844     {"ACPI_MPST_DATA_HDR",                  SRC_TYPE_STRUCT},
845     {"ACPI_MPST_POWER_DATA",                SRC_TYPE_STRUCT},
846     {"ACPI_MPST_POWER_NODE",                SRC_TYPE_STRUCT},
847     {"ACPI_MPST_POWER_STATE",               SRC_TYPE_STRUCT},
848     {"ACPI_MSCT_PROXIMITY",                 SRC_TYPE_STRUCT},
849     {"ACPI_NFIT_CAPABILITIES",              SRC_TYPE_STRUCT},
850     {"ACPI_NFIT_CONTROL_REGION",            SRC_TYPE_STRUCT},
851     {"ACPI_NFIT_DATA_REGION",               SRC_TYPE_STRUCT},
852     {"ACPI_NFIT_DEVICE_HANDLE",             SRC_TYPE_STRUCT},
853     {"ACPI_NFIT_FLUSH_ADDRESS",             SRC_TYPE_STRUCT},
854     {"ACPI_NFIT_HEADER",                    SRC_TYPE_STRUCT},
855     {"ACPI_NFIT_INTERLEAVE",                SRC_TYPE_STRUCT},
856     {"ACPI_NFIT_MEMORY_MAP",                SRC_TYPE_STRUCT},
857     {"ACPI_NFIT_SMBIOS",                    SRC_TYPE_STRUCT},
858     {"ACPI_NFIT_SYSTEM_ADDRESS",            SRC_TYPE_STRUCT},
859     {"ACPI_PCCT_EXT_PCC_SHARED_MEMORY",     SRC_TYPE_STRUCT},
860     {"ACPI_PCCT_HW_REDUCED",                SRC_TYPE_STRUCT},
861     {"ACPI_PCCT_HW_REDUCED_TYPE2",          SRC_TYPE_STRUCT},
862     {"ACPI_PCCT_EXT_PCC_MASTER",            SRC_TYPE_STRUCT},
863     {"ACPI_PCCT_EXT_PCC_SLAVE",             SRC_TYPE_STRUCT},
864     {"ACPI_PCCT_HW_REG",                    SRC_TYPE_STRUCT},
865     {"ACPI_PCCT_SHARED_MEMORY",             SRC_TYPE_STRUCT},
866     {"ACPI_PCCT_SUBSPACE",                  SRC_TYPE_STRUCT},
867     {"ACPI_PDTT_CHANNEL",                   SRC_TYPE_STRUCT},
868     {"ACPI_PHAT_HEADER",                    SRC_TYPE_STRUCT},
869     {"ACPI_PHAT_VERSION_DATA",              SRC_TYPE_STRUCT},
870     {"ACPI_PHAT_VERSION_ELEMENT",           SRC_TYPE_STRUCT},
871     {"ACPI_PHAT_HEALTH_DATA",               SRC_TYPE_STRUCT},
872     {"ACPI_PMTT_CONTROLLER",                SRC_TYPE_STRUCT},
873     {"ACPI_PMTT_HEADER",                    SRC_TYPE_STRUCT},
874     {"ACPI_PMTT_PHYSICAL_COMPONENT",        SRC_TYPE_STRUCT},
875     {"ACPI_PMTT_SOCKET",                    SRC_TYPE_STRUCT},
876     {"ACPI_PMTT_VENDOR_SPECIFIC",           SRC_TYPE_STRUCT},
877     {"ACPI_PPTT_CACHE",                     SRC_TYPE_STRUCT},
878     {"ACPI_PPTT_CACHE_V1",                  SRC_TYPE_STRUCT},
879     {"ACPI_PPTT_ID",                        SRC_TYPE_STRUCT},
880     {"ACPI_PPTT_PROCESSOR",                 SRC_TYPE_STRUCT},
881     {"ACPI_TABLE_PRMT_HEADER",              SRC_TYPE_STRUCT},
882     {"ACPI_PRMT_MODULE_HEADER",             SRC_TYPE_STRUCT},
883     {"ACPI_PRMT_MODULE_INFO",               SRC_TYPE_STRUCT},
884     {"ACPI_PRMT_HANDLER_INFO",              SRC_TYPE_STRUCT},
885     {"ACPI_RSDP_COMMON",                    SRC_TYPE_STRUCT},
886     {"ACPI_RSDP_EXTENSION",                 SRC_TYPE_STRUCT},
887     {"ACPI_S3PT_RESUME",                    SRC_TYPE_STRUCT},
888     {"ACPI_S3PT_SUSPEND",                   SRC_TYPE_STRUCT},
889     {"ACPI_SDEV_HEADER",                    SRC_TYPE_STRUCT},
890     {"ACPI_SDEV_NAMESPACE",                 SRC_TYPE_STRUCT},
891     {"ACPI_SDEV_PCIE",                      SRC_TYPE_STRUCT},
892     {"ACPI_SDEV_PCIE_PATH",                 SRC_TYPE_STRUCT},
893     {"ACPI_SVKL_KEY",                       SRC_TYPE_STRUCT},
894     {"ACPI_SRAT_CPU_AFFINITY",              SRC_TYPE_STRUCT},
895     {"ACPI_SRAT_HEADER",                    SRC_TYPE_STRUCT},
896     {"ACPI_SRAT_GIC_ITS_AFFINITY",          SRC_TYPE_STRUCT},
897     {"ACPI_SRAT_GICC_AFFINITY",             SRC_TYPE_STRUCT},
898     {"ACPI_SRAT_GENERIC_AFFINITY",          SRC_TYPE_STRUCT},
899     {"ACPI_SRAT_MEM_AFFINITY",              SRC_TYPE_STRUCT},
900     {"ACPI_SRAT_X2APIC_CPU_AFFINITY",       SRC_TYPE_STRUCT},
901     {"ACPI_TABLE_TCPA_CLIENT",              SRC_TYPE_STRUCT},
902     {"ACPI_TABLE_TCPA_SERVER",              SRC_TYPE_STRUCT},
903     {"ACPI_TPM2_TRAILER",                   SRC_TYPE_STRUCT},
904     {"ACPI_TPM23_TRAILER",                  SRC_TYPE_STRUCT},
905     {"ACPI_TPM2_ARM_SMC",                   SRC_TYPE_STRUCT},
906     {"ACPI_VIOT_HEADER",                    SRC_TYPE_STRUCT},
907     {"ACPI_VIOT_PCI_RANGE",                 SRC_TYPE_STRUCT},
908     {"ACPI_VIOT_MMIO",                      SRC_TYPE_STRUCT},
909     {"ACPI_VIOT_VIRTIO_IOMMU_PCI",          SRC_TYPE_STRUCT},
910     {"ACPI_VIOT_VIRTIO_IOMMU_MMIO",         SRC_TYPE_STRUCT},
911     {"ACPI_WDAT_ENTRY",                     SRC_TYPE_STRUCT},
912     {"ACPI_WPBT_UNICODE",                   SRC_TYPE_STRUCT},
913 
914     /* Data Table compiler */
915 
916     {"DT_FIELD",                            SRC_TYPE_STRUCT},
917     {"DT_SUBTABLE",                         SRC_TYPE_STRUCT},
918     {"DT_WALK_CALLBACK",                    SRC_TYPE_SIMPLE},
919 
920     /* iASL preprocessor */
921 
922     {"PR_DEFINE_INFO",                      SRC_TYPE_STRUCT},
923     {"PR_DIRECTIVE_INFO",                   SRC_TYPE_STRUCT},
924     {"PR_FILE_NODE",                        SRC_TYPE_STRUCT},
925     {"PR_LINE_MAPPING",                     SRC_TYPE_STRUCT},
926     {"PR_MACRO_ARG",                        SRC_TYPE_STRUCT},
927     {"PR_OPERATOR_INFO",                    SRC_TYPE_STRUCT},
928 
929     /* AcpiDump utility */
930 
931     {"AP_DUMP_ACTION",                      SRC_TYPE_STRUCT},
932 
933     /* AcpiHelp utility */
934 
935     {"AH_AML_OPCODE",                       SRC_TYPE_STRUCT},
936     {"AH_ASL_OPERATOR",                     SRC_TYPE_STRUCT},
937     {"AH_ASL_KEYWORD",                      SRC_TYPE_STRUCT},
938     {"AH_DEVICE_ID",                        SRC_TYPE_STRUCT},
939     {"AH_PREDEFINED_NAME",                  SRC_TYPE_STRUCT},
940     {"AH_TABLE",                            SRC_TYPE_STRUCT},
941     {"AH_UUID",                             SRC_TYPE_STRUCT},
942 
943     /* AcpiXtract utility */
944 
945     {"AX_TABLE_INFO",                       SRC_TYPE_STRUCT},
946 
947     /* OS service layers */
948 
949     {"EXTERNAL_FIND_INFO",                  SRC_TYPE_STRUCT},
950     {"OSL_TABLE_INFO",                      SRC_TYPE_STRUCT},
951 
952     {NULL, 0}
953 };
954 
955 
956 ACPI_IDENTIFIER_TABLE       LinuxAddStruct[] = {
957     {"acpi_namespace_node"},
958     {"acpi_parse_object"},
959     {"acpi_table_desc"},
960     {"acpi_walk_state"},
961     {NULL}
962 };
963 
964 
965 ACPI_IDENTIFIER_TABLE       LinuxEliminateLines_C[] = {
966 
967     {"#define __"},
968     {NULL}
969 };
970 
971 
972 ACPI_IDENTIFIER_TABLE       LinuxEliminateLines_H[] = {
973 
974     {NULL}
975 };
976 
977 
978 ACPI_IDENTIFIER_TABLE       LinuxConditionalIdentifiers[] = {
979 
980 /*    {"ACPI_USE_STANDARD_HEADERS"}, */
981     {"WIN32"},
982     {"_MSC_VER"},
983     {NULL}
984 };
985 
986 
987 ACPI_STRING_TABLE           LinuxSpecialStrings[] = {
988 
989     /* Include file paths */
990 
991     {"\"acpi.h\"",              "<acpi/acpi.h>",                REPLACE_WHOLE_WORD},
992     {"\"acpiosxf.h\"",          "<acpi/acpiosxf.h>",            REPLACE_WHOLE_WORD},
993     {"\"acpixf.h\"",            "<acpi/acpixf.h>",              REPLACE_WHOLE_WORD},
994     {"\"acbuffer.h\"",          "<acpi/acbuffer.h>",            REPLACE_WHOLE_WORD},
995     {"\"acconfig.h\"",          "<acpi/acconfig.h>",            REPLACE_WHOLE_WORD},
996     {"\"acexcep.h\"",           "<acpi/acexcep.h>",             REPLACE_WHOLE_WORD},
997     {"\"acnames.h\"",           "<acpi/acnames.h>",             REPLACE_WHOLE_WORD},
998     {"\"acoutput.h\"",          "<acpi/acoutput.h>",            REPLACE_WHOLE_WORD},
999     {"\"acrestyp.h\"",          "<acpi/acrestyp.h>",            REPLACE_WHOLE_WORD},
1000     {"\"actbl.h\"",             "<acpi/actbl.h>",               REPLACE_WHOLE_WORD},
1001     {"\"actbl1.h\"",            "<acpi/actbl1.h>",              REPLACE_WHOLE_WORD},
1002     {"\"actbl2.h\"",            "<acpi/actbl2.h>",              REPLACE_WHOLE_WORD},
1003     {"\"actbl3.h\"",            "<acpi/actbl3.h>",              REPLACE_WHOLE_WORD},
1004     {"\"actypes.h\"",           "<acpi/actypes.h>",             REPLACE_WHOLE_WORD},
1005     {"\"platform/acenv.h\"",    "<acpi/platform/acenv.h>",      REPLACE_WHOLE_WORD},
1006     {"\"platform/acenvex.h\"",  "<acpi/platform/acenvex.h>",    REPLACE_WHOLE_WORD},
1007     {"\"acgcc.h\"",             "<acpi/platform/acgcc.h>",      REPLACE_WHOLE_WORD},
1008     {"\"acintel.h\"",           "<acpi/platform/acintel.h>",    REPLACE_WHOLE_WORD},
1009     {"\"aclinux.h\"",           "<acpi/platform/aclinux.h>",    REPLACE_WHOLE_WORD},
1010     {"\"aclinuxex.h\"",         "<acpi/platform/aclinuxex.h>",  REPLACE_WHOLE_WORD},
1011 
1012     {NULL,                      NULL,               0}
1013 };
1014 
1015 
1016 ACPI_IDENTIFIER_TABLE       LinuxSpecialMacros[] = {
1017 
1018     {"ACPI_DBG_DEPENDENT_RETURN_VOID"},
1019     {"ACPI_EXPORT_SYMBOL"},
1020     {"ACPI_EXPORT_SYMBOL_INIT"},
1021     {"ACPI_EXTERNAL_RETURN_OK"},
1022     {"ACPI_EXTERNAL_RETURN_PTR"},
1023     {"ACPI_EXTERNAL_RETURN_STATUS"},
1024     {"ACPI_EXTERNAL_RETURN_UINT32"},
1025     {"ACPI_EXTERNAL_RETURN_VOID"},
1026     {"ACPI_HW_DEPENDENT_RETURN_OK"},
1027     {"ACPI_HW_DEPENDENT_RETURN_STATUS"},
1028     {"ACPI_HW_DEPENDENT_RETURN_VOID"},
1029     {"ACPI_MSG_DEPENDENT_RETURN_VOID"},
1030 
1031     {NULL}
1032 };
1033 
1034 
1035 ACPI_CONVERSION_TABLE       LinuxConversionTable =
1036 {
1037     EmptyHeader,
1038     FLG_NO_CARRIAGE_RETURNS | FLG_LOWERCASE_DIRNAMES,
1039 
1040     AcpiIdentifiers,
1041 
1042     /* C source files */
1043 
1044     "// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0\n",
1045     LinuxDataTypes,
1046     LinuxEliminateLines_C,
1047     NULL,
1048     NULL,
1049     AcpiIdentifiers,
1050     NULL,
1051     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1052      CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_BRACES_ON_SAME_LINE |
1053      CVT_MIXED_CASE_TO_UNDERSCORES | CVT_LOWER_CASE_IDENTIFIERS |
1054      CVT_REMOVE_DEBUG_MACROS | CVT_TRIM_WHITESPACE |
1055      CVT_REMOVE_EMPTY_BLOCKS | CVT_SPACES_TO_TABS8),
1056 
1057     /* C header files */
1058 
1059     "/* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */\n",
1060     LinuxDataTypes,
1061     LinuxEliminateLines_H,
1062     LinuxConditionalIdentifiers,
1063     NULL,
1064     AcpiIdentifiers,
1065     NULL,
1066     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1067      CVT_TRIM_LINES | CVT_MIXED_CASE_TO_UNDERSCORES |
1068      CVT_LOWER_CASE_IDENTIFIERS | CVT_TRIM_WHITESPACE |
1069      CVT_REMOVE_EMPTY_BLOCKS| CVT_REDUCE_TYPEDEFS | CVT_SPACES_TO_TABS8),
1070 
1071     /* Patch files */
1072 
1073     LinuxDataTypes,
1074     NULL,
1075     NULL,
1076     NULL,
1077     AcpiIdentifiers,
1078     NULL,
1079     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1080      CVT_MIXED_CASE_TO_UNDERSCORES),
1081 };
1082 
1083 
1084 /******************************************************************************
1085  *
1086  * Code cleanup translation tables
1087  *
1088  ******************************************************************************/
1089 
1090 ACPI_CONVERSION_TABLE       CleanupConversionTable =
1091 {
1092     NULL,
1093     FLG_DEFAULT_FLAGS,
1094     NULL,
1095     /* C source files */
1096 
1097     NULL,
1098     NULL,
1099     NULL,
1100     NULL,
1101     NULL,
1102     NULL,
1103     NULL,
1104     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1105      CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
1106 
1107     /* C header files */
1108 
1109     NULL,
1110     NULL,
1111     NULL,
1112     NULL,
1113     NULL,
1114     NULL,
1115     NULL,
1116     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1117      CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
1118 
1119     /* Patch files */
1120 
1121     NULL,
1122     NULL,
1123     NULL,
1124     NULL,
1125     NULL,
1126     NULL,
1127     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES),
1128 };
1129 
1130 
1131 ACPI_CONVERSION_TABLE       StatsConversionTable =
1132 {
1133     NULL,
1134     FLG_NO_FILE_OUTPUT,
1135     NULL,
1136 
1137     /* C source files */
1138 
1139     NULL,
1140     NULL,
1141     NULL,
1142     NULL,
1143     NULL,
1144     NULL,
1145     NULL,
1146     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1147      CVT_COUNT_SHORTMULTILINE_COMMENTS),
1148 
1149     /* C header files */
1150 
1151     NULL,
1152     NULL,
1153     NULL,
1154     NULL,
1155     NULL,
1156     NULL,
1157     NULL,
1158     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1159      CVT_COUNT_SHORTMULTILINE_COMMENTS),
1160 
1161     /* Patch files */
1162 
1163     NULL,
1164     NULL,
1165     NULL,
1166     NULL,
1167     NULL,
1168     NULL,
1169     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1170      CVT_COUNT_SHORTMULTILINE_COMMENTS),
1171 };
1172 
1173 
1174 /******************************************************************************
1175  *
1176  * Dual License injection translation table
1177  *
1178  ******************************************************************************/
1179 
1180 ACPI_CONVERSION_TABLE       LicenseConversionTable =
1181 {
1182     DualLicenseHeader,
1183     FLG_DEFAULT_FLAGS,
1184     NULL,
1185 
1186     /* C source files */
1187 
1188     NULL,
1189     NULL,
1190     NULL,
1191     NULL,
1192     NULL,
1193     NULL,
1194     NULL,
1195     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1196      CVT_COUNT_SHORTMULTILINE_COMMENTS),
1197 
1198     /* C header files */
1199 
1200     NULL,
1201     NULL,
1202     NULL,
1203     NULL,
1204     NULL,
1205     NULL,
1206     NULL,
1207     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1208      CVT_COUNT_SHORTMULTILINE_COMMENTS),
1209 
1210     /* Patch files */
1211 
1212     NULL,
1213     NULL,
1214     NULL,
1215     NULL,
1216     NULL,
1217     NULL,
1218     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1219      CVT_COUNT_SHORTMULTILINE_COMMENTS),
1220 };
1221 
1222 
1223 /******************************************************************************
1224  *
1225  * Customizable translation tables
1226  *
1227  ******************************************************************************/
1228 
1229 ACPI_STRING_TABLE           CustomReplacements[] =
1230 {
1231     {"(c) 1999 - 2021",     "(c) 1999 - 2023",         REPLACE_WHOLE_WORD}, /* Main ACPICA source */
1232     {"(c) 2006 - 2021",     "(c) 2006 - 2023",         REPLACE_WHOLE_WORD}, /* Test suites */
1233 
1234 #if 0
1235     {"SUPPORT, ASSISTANCE", "SUPPORT, ASSISTANCE",     REPLACE_WHOLE_WORD}, /* Fix intel header */
1236 
1237     {"(ACPI_INTEGER)", "(UINT64)",   REPLACE_WHOLE_WORD},
1238     {"ACPI_INTEGER        ", "UINT64              ",   REPLACE_WHOLE_WORD},
1239     {"ACPI_INTEGER", "UINT64",   REPLACE_WHOLE_WORD},
1240     {"ACPI_INTEGER_MAX", "ACPI_UINT64_MAX",   REPLACE_WHOLE_WORD},
1241     {"#include \"acpi.h\"",   "#include \"acpi.h\"\n#include \"accommon.h\"",  REPLACE_SUBSTRINGS},
1242     {"AcpiTbSumTable", "AcpiTbSumTable",  REPLACE_WHOLE_WORD},
1243     {"ACPI_SIG_BOOT", "ACPI_SIG_BOOT",   REPLACE_WHOLE_WORD},
1244     {"ACPI_SIG_DBGP", "ACPI_SIG_DBGP",   REPLACE_WHOLE_WORD},
1245     {"ACPI_SIG_DSDT", "ACPI_SIG_DSDT",   REPLACE_WHOLE_WORD},
1246     {"ACPI_SIG_ECDT", "ACPI_SIG_ECDT",   REPLACE_WHOLE_WORD},
1247     {"ACPI_SIG_FACS", "ACPI_SIG_FACS",   REPLACE_WHOLE_WORD},
1248     {"ACPI_SIG_FADT", "ACPI_SIG_FADT",   REPLACE_WHOLE_WORD},
1249     {"ACPI_SIG_HPET", "ACPI_SIG_HPET",   REPLACE_WHOLE_WORD},
1250     {"ACPI_SIG_MADT", "ACPI_SIG_MADT",   REPLACE_WHOLE_WORD},
1251     {"ACPI_SIG_MCFG", "ACPI_SIG_MCFG",   REPLACE_WHOLE_WORD},
1252     {"ACPI_SIG_PSDT", "ACPI_SIG_PSDT",   REPLACE_WHOLE_WORD},
1253     {"ACPI_NAME_RSDP", "ACPI_NAME_RSDP",   REPLACE_WHOLE_WORD},
1254     {"ACPI_SIG_RSDP", "ACPI_SIG_RSDP",   REPLACE_WHOLE_WORD},
1255     {"ACPI_SIG_RSDT", "ACPI_SIG_RSDT",   REPLACE_WHOLE_WORD},
1256     {"ACPI_SIG_SBST", "ACPI_SIG_SBST",   REPLACE_WHOLE_WORD},
1257     {"ACPI_SIG_SLIT", "ACPI_SIG_SLIT",   REPLACE_WHOLE_WORD},
1258     {"ACPI_SIG_SPCR", "ACPI_SIG_SPCR",   REPLACE_WHOLE_WORD},
1259     {"ACPI_SIG_SPIC", "ACPI_SIG_SPIC",   REPLACE_WHOLE_WORD},
1260     {"ACPI_SIG_SPMI", "ACPI_SIG_SPMI",   REPLACE_WHOLE_WORD},
1261     {"ACPI_SIG_SRAT", "ACPI_SIG_SRAT",   REPLACE_WHOLE_WORD},
1262     {"ACPI_SIG_SSDT", "ACPI_SIG_SSDT",   REPLACE_WHOLE_WORD},
1263     {"ACPI_SIG_TCPA", "ACPI_SIG_TCPA",   REPLACE_WHOLE_WORD},
1264     {"ACPI_SIG_WDRT", "ACPI_SIG_WDRT",   REPLACE_WHOLE_WORD},
1265     {"ACPI_SIG_XSDT", "ACPI_SIG_XSDT",   REPLACE_WHOLE_WORD},
1266 
1267     {"ACPI_ALLOCATE_ZEROED",    "ACPI_ALLOCATE_ZEROED",   REPLACE_WHOLE_WORD},
1268     {"ACPI_ALLOCATE",           "ACPI_ALLOCATE",          REPLACE_WHOLE_WORD},
1269     {"ACPI_FREE",               "ACPI_FREE",              REPLACE_WHOLE_WORD},
1270 
1271     "ACPI_NATIVE_UINT",     "ACPI_NATIVE_UINT",         REPLACE_WHOLE_WORD,
1272     "ACPI_NATIVE_UINT *",   "ACPI_NATIVE_UINT *",       REPLACE_WHOLE_WORD,
1273     "ACPI_NATIVE_UINT",     "ACPI_NATIVE_UINT",         REPLACE_WHOLE_WORD,
1274     "ACPI_NATIVE_INT",      "ACPI_NATIVE_INT",          REPLACE_WHOLE_WORD,
1275     "ACPI_NATIVE_INT *",    "ACPI_NATIVE_INT *",        REPLACE_WHOLE_WORD,
1276     "ACPI_NATIVE_INT",      "ACPI_NATIVE_INT",          REPLACE_WHOLE_WORD,
1277 #endif
1278 
1279     {NULL,                    NULL, 0}
1280 };
1281 
1282 
1283 ACPI_CONVERSION_TABLE       CustomConversionTable =
1284 {
1285     NULL,
1286     FLG_DEFAULT_FLAGS,
1287     NULL,
1288 
1289     /* C source files */
1290 
1291     NULL,
1292     CustomReplacements,
1293     LinuxEliminateLines_H,
1294     NULL,
1295     NULL,
1296     NULL,
1297     NULL,
1298     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1299      CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
1300 
1301     /* C header files */
1302 
1303     NULL,
1304     CustomReplacements,
1305     LinuxEliminateLines_H,
1306     NULL,
1307     NULL,
1308     NULL,
1309     NULL,
1310     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1311      CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
1312 
1313     /* C header files */
1314 
1315     NULL,
1316     NULL,
1317     NULL,
1318     NULL,
1319     NULL,
1320     NULL,
1321     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES),
1322 };
1323 
1324 
1325 /******************************************************************************
1326  *
1327  * Indentation result fixup table
1328  *
1329  ******************************************************************************/
1330 
1331 ACPI_CONVERSION_TABLE       IndentConversionTable =
1332 {
1333     NULL,
1334     FLG_NO_CARRIAGE_RETURNS,
1335 
1336     NULL,
1337 
1338     /* C source files */
1339 
1340     NULL,
1341     LinuxSpecialStrings,
1342     NULL,
1343     NULL,
1344     NULL,
1345     NULL,
1346     LinuxSpecialMacros,
1347     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1348      CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
1349 
1350     /* C header files */
1351 
1352     NULL,
1353     LinuxSpecialStrings,
1354     NULL,
1355     NULL,
1356     NULL,
1357     NULL,
1358     LinuxSpecialMacros,
1359     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
1360      CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
1361 
1362     /* C header files */
1363 
1364     NULL,
1365     NULL,
1366     NULL,
1367     NULL,
1368     NULL,
1369     NULL,
1370     (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES),
1371 };
1372