Fixed compatibility of output.
[AROS.git] / arch / all-pc / acpica / source / tools / acpisrc / astable.c
blob081767b19ea2417cd1fbf4205a0054e1903c87fe
1 /******************************************************************************
3 * Module Name: astable - Tables used for source conversion
5 *****************************************************************************/
7 /*
8 * Copyright (C) 2000 - 2013, Intel Corp.
9 * All rights reserved.
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.
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.
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 MERCHANTIBILITY 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.
45 #include "acpisrc.h"
46 #include "acapps.h"
49 /******************************************************************************
51 * Standard/Common translation tables
53 ******************************************************************************/
56 ACPI_STRING_TABLE StandardDataTypes[] = {
58 /* Declarations first */
60 {"UINT32 ", "unsigned int", REPLACE_SUBSTRINGS},
61 {"UINT16 ", "unsigned short", REPLACE_SUBSTRINGS},
62 {"UINT8 ", "unsigned char", REPLACE_SUBSTRINGS},
63 {"BOOLEAN ", "unsigned char", REPLACE_SUBSTRINGS},
65 /* Now do embedded typecasts */
67 {"UINT32", "unsigned int", REPLACE_SUBSTRINGS},
68 {"UINT16", "unsigned short", REPLACE_SUBSTRINGS},
69 {"UINT8", "unsigned char", REPLACE_SUBSTRINGS},
70 {"BOOLEAN", "unsigned char", REPLACE_SUBSTRINGS},
72 {"INT32 ", "int ", REPLACE_SUBSTRINGS},
73 {"INT32", "int", REPLACE_SUBSTRINGS},
74 {"INT16", "short", REPLACE_SUBSTRINGS},
75 {"INT8", "char", REPLACE_SUBSTRINGS},
77 /* Put back anything we broke (such as anything with _INT32_ in it) */
79 {"_int_", "_INT32_", REPLACE_SUBSTRINGS},
80 {"_unsigned int_", "_UINT32_", REPLACE_SUBSTRINGS},
81 {NULL, NULL, 0}
85 /******************************************************************************
87 * Linux-specific translation tables
89 ******************************************************************************/
91 char DualLicenseHeader[] =
92 "/*\n"
93 " * Copyright (C) 2000 - 2013, Intel Corp.\n"
94 " * All rights reserved.\n"
95 " *\n"
96 " * Redistribution and use in source and binary forms, with or without\n"
97 " * modification, are permitted provided that the following conditions\n"
98 " * are met:\n"
99 " * 1. Redistributions of source code must retain the above copyright\n"
100 " * notice, this list of conditions, and the following disclaimer,\n"
101 " * without modification.\n"
102 " * 2. Redistributions in binary form must reproduce at minimum a disclaimer\n"
103 " * substantially similar to the \"NO WARRANTY\" disclaimer below\n"
104 " * (\"Disclaimer\") and any redistribution must be conditioned upon\n"
105 " * including a substantially similar Disclaimer requirement for further\n"
106 " * binary redistribution.\n"
107 " * 3. Neither the names of the above-listed copyright holders nor the names\n"
108 " * of any contributors may be used to endorse or promote products derived\n"
109 " * from this software without specific prior written permission.\n"
110 " *\n"
111 " * Alternatively, this software may be distributed under the terms of the\n"
112 " * GNU General Public License (\"GPL\") version 2 as published by the Free\n"
113 " * Software Foundation.\n"
114 " *\n"
115 " * NO WARRANTY\n"
116 " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"
117 " * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n"
118 " * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR\n"
119 " * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n"
120 " * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n"
121 " * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n"
122 " * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n"
123 " * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n"
124 " * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\n"
125 " * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n"
126 " * POSSIBILITY OF SUCH DAMAGES.\n"
127 " */\n";
129 ACPI_STRING_TABLE LinuxDataTypes[] = {
132 * Extra space is added after the type so there is room to add "struct", "union",
133 * etc. when the existing struct typedefs are eliminated.
136 /* Declarations first - ACPI types and standard C types */
138 {"INT64 ", "s64 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
139 {"UINT64 ", "u64 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
140 {"UINT32 ", "u32 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
141 {"INT32 ", "s32 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
142 {"UINT16 ", "u16 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
143 {"INT16 ", "s16 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
144 {"UINT8 ", "u8 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
145 {"BOOLEAN ", "u8 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
146 {"char ", "char ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
147 {"void ", "void ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
148 {"char * ", "char * ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
149 {"void * ", "void * ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
150 {"int ", "int ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
151 {"FILE ", "FILE ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
152 {"size_t ", "size_t ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
154 /* Now do embedded typecasts */
156 {"UINT64", "u64", REPLACE_WHOLE_WORD},
157 {"UINT32", "u32", REPLACE_WHOLE_WORD},
158 {"UINT16", "u16", REPLACE_WHOLE_WORD},
159 {"UINT8", "u8", REPLACE_WHOLE_WORD},
160 {"BOOLEAN", "u8", REPLACE_WHOLE_WORD},
162 {"INT64 ", "s64 ", REPLACE_WHOLE_WORD},
163 {"INT64", "s64", REPLACE_WHOLE_WORD},
164 {"INT32 ", "s32 ", REPLACE_WHOLE_WORD},
165 {"INT32", "s32", REPLACE_WHOLE_WORD},
166 {"INT16 ", "s16 ", REPLACE_WHOLE_WORD},
167 {"INT8 ", "s8 ", REPLACE_WHOLE_WORD},
168 {"INT16", "s16", REPLACE_WHOLE_WORD},
169 {"INT8", "s8", REPLACE_WHOLE_WORD},
171 {NULL, NULL, 0}
174 ACPI_TYPED_IDENTIFIER_TABLE AcpiIdentifiers[] = {
176 {"ACPI_ADDRESS_RANGE", SRC_TYPE_STRUCT},
177 {"ACPI_ADR_SPACE_HANDLER", SRC_TYPE_SIMPLE},
178 {"ACPI_ADR_SPACE_SETUP", SRC_TYPE_SIMPLE},
179 {"ACPI_ADR_SPACE_TYPE", SRC_TYPE_SIMPLE},
180 {"ACPI_AML_OPERANDS", SRC_TYPE_UNION},
181 {"ACPI_BIT_REGISTER_INFO", SRC_TYPE_STRUCT},
182 {"ACPI_BUFFER", SRC_TYPE_STRUCT},
183 {"ACPI_BUS_ATTRIBUTE", SRC_TYPE_STRUCT},
184 {"ACPI_CACHE_T", SRC_TYPE_SIMPLE},
185 {"ACPI_CMTABLE_HANDLER", SRC_TYPE_SIMPLE},
186 {"ACPI_COMMON_FACS", SRC_TYPE_STRUCT},
187 {"ACPI_COMMON_STATE", SRC_TYPE_STRUCT},
188 {"ACPI_COMMON_DESCRIPTOR", SRC_TYPE_STRUCT},
189 {"ACPI_COMPATIBLE_ID", SRC_TYPE_STRUCT},
190 {"ACPI_CONNECTION_INFO", SRC_TYPE_STRUCT},
191 {"ACPI_CONTROL_STATE", SRC_TYPE_STRUCT},
192 {"ACPI_CONVERSION_TABLE", SRC_TYPE_STRUCT},
193 {"ACPI_CPU_FLAGS", SRC_TYPE_SIMPLE},
194 {"ACPI_CREATE_FIELD_INFO", SRC_TYPE_STRUCT},
195 {"ACPI_DB_ARGUMENT_INFO", SRC_TYPE_STRUCT},
196 {"ACPI_DB_COMMAND_HELP", SRC_TYPE_STRUCT},
197 {"ACPI_DB_COMMAND_INFO", SRC_TYPE_STRUCT},
198 {"ACPI_DB_EXECUTE_WALK", SRC_TYPE_STRUCT},
199 {"ACPI_DB_METHOD_INFO", SRC_TYPE_STRUCT},
200 {"ACPI_DEBUG_MEM_BLOCK", SRC_TYPE_STRUCT},
201 {"ACPI_DEBUG_MEM_HEADER", SRC_TYPE_STRUCT},
202 {"ACPI_DEBUG_PRINT_INFO", SRC_TYPE_STRUCT},
203 {"ACPI_DESCRIPTOR", SRC_TYPE_UNION},
204 {"ACPI_DEVICE_INFO", SRC_TYPE_STRUCT},
205 {"ACPI_DEVICE_WALK_INFO", SRC_TYPE_STRUCT},
206 {"ACPI_DMTABLE_DATA", SRC_TYPE_STRUCT},
207 {"ACPI_DMTABLE_INFO", SRC_TYPE_STRUCT},
208 {"ACPI_DMTABLE_HANDLER", SRC_TYPE_SIMPLE},
209 {"ACPI_EVALUATE_INFO", SRC_TYPE_STRUCT},
210 {"ACPI_EVENT_HANDLER", SRC_TYPE_SIMPLE},
211 {"ACPI_EVENT_STATUS", SRC_TYPE_SIMPLE},
212 {"ACPI_EVENT_TYPE", SRC_TYPE_SIMPLE},
213 {"ACPI_EXCEPTION_HANDLER", SRC_TYPE_SIMPLE},
214 {"ACPI_EXCEPTION_INFO", SRC_TYPE_STRUCT},
215 {"ACPI_EXDUMP_INFO", SRC_TYPE_STRUCT},
216 {"ACPI_EXECUTE_OP", SRC_TYPE_SIMPLE},
217 {"ACPI_EXECUTE_TYPE", SRC_TYPE_SIMPLE},
218 {"ACPI_EXTERNAL_LIST", SRC_TYPE_STRUCT},
219 {"ACPI_EXTERNAL_FILE", SRC_TYPE_STRUCT},
220 {"ACPI_FADT_INFO", SRC_TYPE_STRUCT},
221 {"ACPI_FADT_PM_INFO", SRC_TYPE_STRUCT},
222 {"ACPI_FIELD_INFO", SRC_TYPE_STRUCT},
223 {"ACPI_FIND_CONTEXT", SRC_TYPE_STRUCT},
224 {"ACPI_FIXED_EVENT_HANDLER", SRC_TYPE_STRUCT},
225 {"ACPI_FIXED_EVENT_INFO", SRC_TYPE_STRUCT},
226 {"ACPI_GBL_EVENT_HANDLER", SRC_TYPE_SIMPLE},
227 {"ACPI_GENERIC_ADDRESS", SRC_TYPE_STRUCT},
228 {"ACPI_GENERIC_STATE", SRC_TYPE_UNION},
229 {"ACPI_GET_DEVICES_INFO", SRC_TYPE_STRUCT},
230 {"ACPI_GLOBAL_NOTIFY_HANDLER", SRC_TYPE_STRUCT},
231 {"ACPI_GPE_BLOCK_INFO", SRC_TYPE_STRUCT},
232 {"ACPI_GPE_CALLBACK", SRC_TYPE_SIMPLE},
233 {"ACPI_GPE_DEVICE_INFO", SRC_TYPE_STRUCT},
234 {"ACPI_GPE_EVENT_INFO", SRC_TYPE_STRUCT},
235 {"ACPI_GPE_HANDLER", SRC_TYPE_SIMPLE},
236 {"ACPI_GPE_HANDLER_INFO", SRC_TYPE_STRUCT},
237 {"ACPI_GPE_INDEX_INFO", SRC_TYPE_STRUCT},
238 {"ACPI_GPE_NOTIFY_INFO", SRC_TYPE_STRUCT},
239 {"ACPI_GPE_REGISTER_INFO", SRC_TYPE_STRUCT},
240 {"ACPI_GPE_WALK_INFO", SRC_TYPE_STRUCT},
241 {"ACPI_GPE_XRUPT_INFO", SRC_TYPE_STRUCT},
242 {"ACPI_HANDLE", SRC_TYPE_SIMPLE},
243 {"ACPI_HANDLER_INFO", SRC_TYPE_STRUCT},
244 {"ACPI_INIT_HANDLER", SRC_TYPE_SIMPLE},
245 {"ACPI_INTERFACE_HANDLER", SRC_TYPE_SIMPLE},
246 {"ACPI_IDENTIFIER_TABLE", SRC_TYPE_STRUCT},
247 {"ACPI_INIT_WALK_INFO", SRC_TYPE_STRUCT},
248 {"ACPI_INTEGER", SRC_TYPE_SIMPLE},
249 {"ACPI_INTEGER_OVERLAY", SRC_TYPE_STRUCT},
250 {"ACPI_INTEGRITY_INFO", SRC_TYPE_STRUCT},
251 {"ACPI_INTERFACE_INFO", SRC_TYPE_STRUCT},
252 {"ACPI_INTERNAL_METHOD", SRC_TYPE_SIMPLE},
253 {"ACPI_INTERPRETER_MODE", SRC_TYPE_SIMPLE},
254 {"ACPI_IO_ADDRESS", SRC_TYPE_SIMPLE},
255 {"ACPI_IO_ATTRIBUTE", SRC_TYPE_STRUCT},
256 {"ACPI_MEM_SPACE_CONTEXT", SRC_TYPE_STRUCT},
257 {"ACPI_MEMORY_ATTRIBUTE", SRC_TYPE_STRUCT},
258 {"ACPI_MEMORY_LIST", SRC_TYPE_STRUCT},
259 {"ACPI_MTMR_ENTRY", SRC_TYPE_STRUCT},
260 {"ACPI_MUTEX", SRC_TYPE_SIMPLE},
261 {"ACPI_MUTEX_HANDLE", SRC_TYPE_SIMPLE},
262 {"ACPI_MUTEX_INFO", SRC_TYPE_STRUCT},
263 {"ACPI_NAME", SRC_TYPE_SIMPLE},
264 {"ACPI_NAME_INFO", SRC_TYPE_STRUCT},
265 {"ACPI_NAME_UNION", SRC_TYPE_UNION},
266 {"ACPI_NAMESPACE_NODE", SRC_TYPE_STRUCT},
267 {"ACPI_NAMESTRING_INFO", SRC_TYPE_STRUCT},
268 {"ACPI_NATIVE_INT", SRC_TYPE_SIMPLE},
269 {"ACPI_NATIVE_UINT", SRC_TYPE_SIMPLE},
270 {"ACPI_NOTIFY_HANDLER", SRC_TYPE_SIMPLE},
271 {"ACPI_NOTIFY_INFO", SRC_TYPE_STRUCT},
272 {"ACPI_NS_SEARCH_DATA", SRC_TYPE_STRUCT},
273 {"ACPI_OBJ_INFO_HEADER", SRC_TYPE_STRUCT},
274 {"ACPI_OBJECT", SRC_TYPE_UNION},
275 {"ACPI_OBJECT_ADDR_HANDLER", SRC_TYPE_STRUCT},
276 {"ACPI_OBJECT_BANK_FIELD", SRC_TYPE_STRUCT},
277 {"ACPI_OBJECT_BUFFER", SRC_TYPE_STRUCT},
278 {"ACPI_OBJECT_BUFFER_FIELD", SRC_TYPE_STRUCT},
279 {"ACPI_OBJECT_CACHE_LIST", SRC_TYPE_STRUCT},
280 {"ACPI_OBJECT_COMMON", SRC_TYPE_STRUCT},
281 {"ACPI_OBJECT_CONVERTER", SRC_TYPE_SIMPLE},
282 {"ACPI_OBJECT_DATA", SRC_TYPE_STRUCT},
283 {"ACPI_OBJECT_DEVICE", SRC_TYPE_STRUCT},
284 {"ACPI_OBJECT_EVENT", SRC_TYPE_STRUCT},
285 {"ACPI_OBJECT_EXTRA", SRC_TYPE_STRUCT},
286 {"ACPI_OBJECT_FIELD_COMMON", SRC_TYPE_STRUCT},
287 {"ACPI_OBJECT_HANDLER", SRC_TYPE_SIMPLE},
288 {"ACPI_OBJECT_INDEX_FIELD", SRC_TYPE_STRUCT},
289 {"ACPI_OBJECT_INTEGER", SRC_TYPE_STRUCT},
290 {"ACPI_OBJECT_LIST", SRC_TYPE_STRUCT},
291 {"ACPI_OBJECT_METHOD", SRC_TYPE_STRUCT},
292 {"ACPI_OBJECT_MUTEX", SRC_TYPE_STRUCT},
293 {"ACPI_OBJECT_NOTIFY_COMMON", SRC_TYPE_STRUCT},
294 {"ACPI_OBJECT_NOTIFY_HANDLER", SRC_TYPE_STRUCT},
295 {"ACPI_OBJECT_PACKAGE", SRC_TYPE_STRUCT},
296 {"ACPI_OBJECT_POWER_RESOURCE", SRC_TYPE_STRUCT},
297 {"ACPI_OBJECT_PROCESSOR", SRC_TYPE_STRUCT},
298 {"ACPI_OBJECT_REFERENCE", SRC_TYPE_STRUCT},
299 {"ACPI_OBJECT_REGION", SRC_TYPE_STRUCT},
300 {"ACPI_OBJECT_REGION_FIELD", SRC_TYPE_STRUCT},
301 {"ACPI_OBJECT_STRING", SRC_TYPE_STRUCT},
302 {"ACPI_OBJECT_THERMAL_ZONE", SRC_TYPE_STRUCT},
303 {"ACPI_OBJECT_TYPE", SRC_TYPE_SIMPLE},
304 {"ACPI_OBJECT_TYPE8", SRC_TYPE_SIMPLE},
305 {"ACPI_OP_WALK_INFO", SRC_TYPE_STRUCT},
306 {"ACPI_OPCODE_INFO", SRC_TYPE_STRUCT},
307 {"ACPI_OPERAND_OBJECT", SRC_TYPE_UNION},
308 {"ACPI_OSD_HANDLER", SRC_TYPE_SIMPLE},
309 {"ACPI_OSD_EXEC_CALLBACK", SRC_TYPE_SIMPLE},
310 {"ACPI_OWNER_ID", SRC_TYPE_SIMPLE},
311 {"ACPI_PACKAGE_INFO", SRC_TYPE_STRUCT},
312 {"ACPI_PACKAGE_INFO2", SRC_TYPE_STRUCT},
313 {"ACPI_PACKAGE_INFO3", SRC_TYPE_STRUCT},
314 {"ACPI_PARSE_DOWNWARDS", SRC_TYPE_SIMPLE},
315 {"ACPI_PARSE_OBJ_ASL", SRC_TYPE_STRUCT},
316 {"ACPI_PARSE_OBJ_COMMON", SRC_TYPE_STRUCT},
317 {"ACPI_PARSE_OBJ_NAMED", SRC_TYPE_STRUCT},
318 {"ACPI_PARSE_OBJECT", SRC_TYPE_UNION},
319 {"ACPI_PARSE_STATE", SRC_TYPE_STRUCT},
320 {"ACPI_PARSE_UPWARDS", SRC_TYPE_SIMPLE},
321 {"ACPI_PARSE_VALUE", SRC_TYPE_UNION},
322 {"ACPI_PCI_DEVICE", SRC_TYPE_STRUCT},
323 {"ACPI_PCI_ID", SRC_TYPE_STRUCT},
324 {"ACPI_PCI_ROUTING_TABLE", SRC_TYPE_STRUCT},
325 {"ACPI_PHYSICAL_ADDRESS", SRC_TYPE_SIMPLE},
326 {"ACPI_PKG_CALLBACK", SRC_TYPE_SIMPLE},
327 {"ACPI_PKG_INFO", SRC_TYPE_STRUCT},
328 {"ACPI_PKG_STATE", SRC_TYPE_STRUCT},
329 {"ACPI_PMTT_HEADER", SRC_TYPE_STRUCT},
330 {"ACPI_PNP_DEVICE_ID", SRC_TYPE_STRUCT},
331 {"ACPI_PNP_DEVICE_ID_LIST", SRC_TYPE_STRUCT},
332 {"ACPI_POINTER", SRC_TYPE_STRUCT},
333 {"ACPI_POINTERS", SRC_TYPE_UNION},
334 {"ACPI_PORT_INFO", SRC_TYPE_STRUCT},
335 {"ACPI_PREDEFINED_DATA", SRC_TYPE_STRUCT},
336 {"ACPI_PREDEFINED_INFO", SRC_TYPE_UNION},
337 {"ACPI_PREDEFINED_NAMES", SRC_TYPE_STRUCT},
338 {"ACPI_PSCOPE_STATE", SRC_TYPE_STRUCT},
339 {"ACPI_RASF_PARAMETER_BLOCK", SRC_TYPE_STRUCT},
340 {"ACPI_RASF_PATROL_SCRUB_PARAMETER", SRC_TYPE_STRUCT},
341 {"ACPI_RASF_SHARED_MEMORY", SRC_TYPE_STRUCT},
342 {"ACPI_REPAIR_FUNCTION", SRC_TYPE_SIMPLE},
343 {"ACPI_REPAIR_INFO", SRC_TYPE_STRUCT},
344 {"ACPI_RESOURCE", SRC_TYPE_STRUCT},
345 {"ACPI_RESOURCE_HANDLER", SRC_TYPE_SIMPLE},
346 {"ACPI_RESOURCE_ADDRESS", SRC_TYPE_STRUCT},
347 {"ACPI_RESOURCE_ADDRESS16", SRC_TYPE_STRUCT},
348 {"ACPI_RESOURCE_ADDRESS32", SRC_TYPE_STRUCT},
349 {"ACPI_RESOURCE_ADDRESS64", SRC_TYPE_STRUCT},
350 {"ACPI_RESOURCE_COMMON_SERIALBUS", SRC_TYPE_STRUCT},
351 {"ACPI_RESOURCE_EXTENDED_ADDRESS64", SRC_TYPE_STRUCT},
352 {"ACPI_RESOURCE_ATTRIBUTE", SRC_TYPE_UNION},
353 {"ACPI_RESOURCE_DATA", SRC_TYPE_UNION},
354 {"ACPI_RESOURCE_DMA", SRC_TYPE_STRUCT},
355 {"ACPI_RESOURCE_END_TAG", SRC_TYPE_STRUCT},
356 {"ACPI_RESOURCE_EXTENDED_IRQ", SRC_TYPE_STRUCT},
357 {"ACPI_RESOURCE_FIXED_DMA", SRC_TYPE_STRUCT},
358 {"ACPI_RESOURCE_FIXED_IO", SRC_TYPE_STRUCT},
359 {"ACPI_RESOURCE_FIXED_MEMORY32", SRC_TYPE_STRUCT},
360 {"ACPI_RESOURCE_GENERIC_REGISTER", SRC_TYPE_STRUCT},
361 {"ACPI_RESOURCE_GPIO", SRC_TYPE_STRUCT},
362 {"ACPI_RESOURCE_I2C_SERIALBUS", SRC_TYPE_STRUCT},
363 {"ACPI_RESOURCE_INFO", SRC_TYPE_STRUCT},
364 {"ACPI_RESOURCE_IO", SRC_TYPE_STRUCT},
365 {"ACPI_RESOURCE_IRQ", SRC_TYPE_STRUCT},
366 {"ACPI_RESOURCE_MEMORY24", SRC_TYPE_STRUCT},
367 {"ACPI_RESOURCE_MEMORY32", SRC_TYPE_STRUCT},
368 {"ACPI_RESOURCE_SOURCE", SRC_TYPE_STRUCT},
369 {"ACPI_RESOURCE_SPI_SERIALBUS", SRC_TYPE_STRUCT},
370 {"ACPI_RESOURCE_START_DEPENDENT", SRC_TYPE_STRUCT},
371 {"ACPI_RESOURCE_TAG", SRC_TYPE_STRUCT},
372 {"ACPI_RESOURCE_TYPE", SRC_TYPE_SIMPLE},
373 {"ACPI_RESOURCE_UART_SERIALBUS", SRC_TYPE_STRUCT},
374 {"ACPI_RESOURCE_VENDOR", SRC_TYPE_STRUCT},
375 {"ACPI_RESOURCE_VENDOR_TYPED", SRC_TYPE_STRUCT},
376 {"ACPI_RESULT_VALUES", SRC_TYPE_STRUCT},
377 {"ACPI_ROUND_UP_TO_32_BIT", SRC_TYPE_SIMPLE},
378 {"ACPI_RSCONVERT_INFO", SRC_TYPE_STRUCT},
379 {"ACPI_RSDUMP_INFO", SRC_TYPE_STRUCT},
380 {"ACPI_RW_LOCK", SRC_TYPE_STRUCT},
381 {"ACPI_S3PT_HEADER", SRC_TYPE_STRUCT},
382 {"ACPI_SCI_HANDLER", SRC_TYPE_SIMPLE},
383 {"ACPI_SCI_HANDLER_INFO", SRC_TYPE_STRUCT},
384 {"ACPI_SCOPE_STATE", SRC_TYPE_STRUCT},
385 {"ACPI_SEMAPHORE", SRC_TYPE_SIMPLE},
386 {"ACPI_SIGNAL_FATAL_INFO", SRC_TYPE_STRUCT},
387 {"ACPI_SIMPLE_REPAIR_INFO", SRC_TYPE_STRUCT},
388 {"ACPI_SIZE", SRC_TYPE_SIMPLE},
389 {"ACPI_SLEEP_FUNCTION", SRC_TYPE_SIMPLE},
390 {"ACPI_SLEEP_FUNCTIONS", SRC_TYPE_STRUCT},
391 {"ACPI_SPINLOCK", SRC_TYPE_SIMPLE},
392 {"ACPI_STATISTICS", SRC_TYPE_STRUCT},
393 {"ACPI_STATUS", SRC_TYPE_SIMPLE},
394 {"ACPI_STRING", SRC_TYPE_SIMPLE},
395 {"ACPI_STRING_TABLE", SRC_TYPE_STRUCT},
396 {"ACPI_SUBTABLE_HEADER", SRC_TYPE_STRUCT},
397 {"ACPI_SYSTEM_INFO", SRC_TYPE_STRUCT},
398 {"ACPI_TABLE_DESC", SRC_TYPE_STRUCT},
399 {"ACPI_TABLE_HANDLER", SRC_TYPE_SIMPLE},
400 {"ACPI_TABLE_HEADER", SRC_TYPE_STRUCT},
401 {"ACPI_TABLE_INFO", SRC_TYPE_STRUCT},
402 {"ACPI_TABLE_LIST", SRC_TYPE_STRUCT},
403 {"ACPI_TABLE_MTMR", SRC_TYPE_STRUCT},
404 {"ACPI_TABLE_SUPPORT", SRC_TYPE_STRUCT},
405 {"ACPI_TABLE_TYPE", SRC_TYPE_SIMPLE},
406 {"ACPI_TABLE_VRTC", SRC_TYPE_STRUCT},
407 {"ACPI_TAG_INFO", SRC_TYPE_STRUCT},
408 {"ACPI_THREAD_ID", SRC_TYPE_SIMPLE},
409 {"ACPI_THREAD_STATE", SRC_TYPE_STRUCT},
410 {"ACPI_TYPED_IDENTIFIER_TABLE", SRC_TYPE_STRUCT},
411 {"ACPI_UINTPTR_T", SRC_TYPE_SIMPLE},
412 {"ACPI_UPDATE_STATE", SRC_TYPE_STRUCT},
413 {"ACPI_UUID", SRC_TYPE_STRUCT},
414 {"ACPI_VENDOR_UUID", SRC_TYPE_STRUCT},
415 {"ACPI_VENDOR_WALK_INFO", SRC_TYPE_STRUCT},
416 {"ACPI_VRTC_ENTRY", SRC_TYPE_STRUCT},
417 {"ACPI_WALK_AML_CALLBACK", SRC_TYPE_SIMPLE},
418 {"ACPI_WALK_CALLBACK", SRC_TYPE_SIMPLE},
419 {"ACPI_WALK_RESOURCE_CALLBACK", SRC_TYPE_SIMPLE},
420 {"ACPI_WALK_INFO", SRC_TYPE_STRUCT},
421 {"ACPI_WALK_STATE", SRC_TYPE_STRUCT},
422 {"ACPI_WHEA_HEADER", SRC_TYPE_STRUCT},
424 /* Buffers related to predefined ACPI names (_PLD, etc.) */
426 {"ACPI_FDE_INFO", SRC_TYPE_STRUCT},
427 {"ACPI_GRT_INFO", SRC_TYPE_STRUCT},
428 {"ACPI_GTM_INFO", SRC_TYPE_STRUCT},
429 {"ACPI_PLD_INFO", SRC_TYPE_STRUCT},
431 /* Resources */
433 {"ACPI_RS_LENGTH", SRC_TYPE_SIMPLE},
434 {"ACPI_RSDESC_SIZE", SRC_TYPE_SIMPLE},
436 {"AML_RESOURCE", SRC_TYPE_UNION},
437 {"AML_RESOURCE_ADDRESS", SRC_TYPE_STRUCT},
438 {"AML_RESOURCE_ADDRESS16", SRC_TYPE_STRUCT},
439 {"AML_RESOURCE_ADDRESS32", SRC_TYPE_STRUCT},
440 {"AML_RESOURCE_ADDRESS64", SRC_TYPE_STRUCT},
441 {"AML_RESOURCE_COMMON_SERIALBUS", SRC_TYPE_STRUCT},
442 {"AML_RESOURCE_DMA", SRC_TYPE_STRUCT},
443 {"AML_RESOURCE_END_DEPENDENT", SRC_TYPE_STRUCT},
444 {"AML_RESOURCE_END_TAG", SRC_TYPE_STRUCT},
445 {"AML_RESOURCE_EXTENDED_ADDRESS64", SRC_TYPE_STRUCT},
446 {"AML_RESOURCE_EXTENDED_IRQ", SRC_TYPE_STRUCT},
447 {"AML_RESOURCE_FIXED_DMA", SRC_TYPE_STRUCT},
448 {"AML_RESOURCE_FIXED_IO", SRC_TYPE_STRUCT},
449 {"AML_RESOURCE_FIXED_MEMORY32", SRC_TYPE_STRUCT},
450 {"AML_RESOURCE_GENERIC_REGISTER", SRC_TYPE_STRUCT},
451 {"AML_RESOURCE_GPIO", SRC_TYPE_STRUCT},
452 {"AML_RESOURCE_IO", SRC_TYPE_STRUCT},
453 {"AML_RESOURCE_I2C_SERIALBUS", SRC_TYPE_STRUCT},
454 {"AML_RESOURCE_IRQ", SRC_TYPE_STRUCT},
455 {"AML_RESOURCE_IRQ_NOFLAGS", SRC_TYPE_STRUCT},
456 {"AML_RESOURCE_LARGE_HEADER", SRC_TYPE_STRUCT},
457 {"AML_RESOURCE_MEMORY24", SRC_TYPE_STRUCT},
458 {"AML_RESOURCE_MEMORY32", SRC_TYPE_STRUCT},
459 {"AML_RESOURCE_SMALL_HEADER", SRC_TYPE_STRUCT},
460 {"AML_RESOURCE_SPI_SERIALBUS", SRC_TYPE_STRUCT},
461 {"AML_RESOURCE_START_DEPENDENT", SRC_TYPE_STRUCT},
462 {"AML_RESOURCE_START_DEPENDENT_NOPRIO", SRC_TYPE_STRUCT},
463 {"AML_RESOURCE_UART_SERIALBUS", SRC_TYPE_STRUCT},
464 {"AML_RESOURCE_VENDOR_LARGE", SRC_TYPE_STRUCT},
465 {"AML_RESOURCE_VENDOR_SMALL", SRC_TYPE_STRUCT},
467 {"APIC_HEADER", SRC_TYPE_STRUCT},
468 {"AE_DEBUG_REGIONS", SRC_TYPE_STRUCT},
469 {"AE_REGION", SRC_TYPE_STRUCT},
470 {"AE_TABLE_DESC", SRC_TYPE_STRUCT},
471 {"ASL_ANALYSIS_WALK_INFO", SRC_TYPE_STRUCT},
472 {"ASL_ERROR_MSG", SRC_TYPE_STRUCT},
473 {"ASL_EVENT_INFO", SRC_TYPE_STRUCT},
474 {"ASL_FILE_INFO", SRC_TYPE_STRUCT},
475 {"ASL_FILE_STATUS", SRC_TYPE_STRUCT},
476 {"ASL_INCLUDE_DIR", SRC_TYPE_STRUCT},
477 {"ASL_LISTING_NODE", SRC_TYPE_STRUCT},
478 {"ASL_MAPPING_ENTRY", SRC_TYPE_STRUCT},
479 {"ASL_METHOD_INFO", SRC_TYPE_STRUCT},
480 {"ASL_RESERVED_INFO", SRC_TYPE_STRUCT},
481 {"ASL_RESOURCE_NODE", SRC_TYPE_STRUCT},
482 {"ASL_WALK_CALLBACK", SRC_TYPE_SIMPLE},
483 {"UINT64_OVERLAY", SRC_TYPE_UNION},
484 {"UINT64_STRUCT", SRC_TYPE_STRUCT},
487 * Acpi table definition names.
489 {"ACPI_TABLE_ASF", SRC_TYPE_STRUCT},
490 {"ACPI_TABLE_BERT", SRC_TYPE_STRUCT},
491 {"ACPI_TABLE_BGRT", SRC_TYPE_STRUCT},
492 {"ACPI_TABLE_BOOT", SRC_TYPE_STRUCT},
493 {"ACPI_TABLE_CPEP", SRC_TYPE_STRUCT},
494 {"ACPI_TABLE_CSRT", SRC_TYPE_STRUCT},
495 {"ACPI_TABLE_DBG2", SRC_TYPE_STRUCT},
496 {"ACPI_TABLE_DBGP", SRC_TYPE_STRUCT},
497 {"ACPI_TABLE_DMAR", SRC_TYPE_STRUCT},
498 {"ACPI_TABLE_DRTM", SRC_TYPE_STRUCT},
499 {"ACPI_TABLE_ECDT", SRC_TYPE_STRUCT},
500 {"ACPI_TABLE_EINJ", SRC_TYPE_STRUCT},
501 {"ACPI_TABLE_ERST", SRC_TYPE_STRUCT},
502 {"ACPI_TABLE_FACS", SRC_TYPE_STRUCT},
503 {"ACPI_TABLE_FADT", SRC_TYPE_STRUCT},
504 {"ACPI_TABLE_FPDT", SRC_TYPE_STRUCT},
505 {"ACPI_TABLE_HEST", SRC_TYPE_STRUCT},
506 {"ACPI_TABLE_HPET", SRC_TYPE_STRUCT},
507 {"ACPI_TABLE_IBFT", SRC_TYPE_STRUCT},
508 {"ACPI_TABLE_IVRS", SRC_TYPE_STRUCT},
509 {"ACPI_TABLE_MADT", SRC_TYPE_STRUCT},
510 {"ACPI_TABLE_MCFG", SRC_TYPE_STRUCT},
511 {"ACPI_TABLE_MCHI", SRC_TYPE_STRUCT},
512 {"ACPI_TABLE_MPST", SRC_TYPE_STRUCT},
513 {"ACPI_TABLE_MSCT", SRC_TYPE_STRUCT},
514 {"ACPI_TABLE_PCCT", SRC_TYPE_STRUCT},
515 {"ACPI_TABLE_RSDP", SRC_TYPE_STRUCT},
516 {"ACPI_TABLE_RSDT", SRC_TYPE_STRUCT},
517 {"ACPI_TABLE_MCHI", SRC_TYPE_STRUCT},
518 {"ACPI_TABLE_S3PT", SRC_TYPE_STRUCT},
519 {"ACPI_TABLE_SBST", SRC_TYPE_STRUCT},
520 {"ACPI_TABLE_SLIC", SRC_TYPE_STRUCT},
521 {"ACPI_TABLE_SLIT", SRC_TYPE_STRUCT},
522 {"ACPI_TABLE_SPCR", SRC_TYPE_STRUCT},
523 {"ACPI_TABLE_SPMI", SRC_TYPE_STRUCT},
524 {"ACPI_TABLE_SRAT", SRC_TYPE_STRUCT},
525 {"ACPI_TABLE_TCPA", SRC_TYPE_STRUCT},
526 {"ACPI_TABLE_TPM2", SRC_TYPE_STRUCT},
527 {"ACPI_TABLE_UEFI", SRC_TYPE_STRUCT},
528 {"ACPI_TABLE_WAET", SRC_TYPE_STRUCT},
529 {"ACPI_TABLE_WDAT", SRC_TYPE_STRUCT},
530 {"ACPI_TABLE_WDDT", SRC_TYPE_STRUCT},
531 {"ACPI_TABLE_WDRT", SRC_TYPE_STRUCT},
532 {"ACPI_TABLE_XSDT", SRC_TYPE_STRUCT},
534 {"ACPI_ASF_ADDRESS", SRC_TYPE_STRUCT},
535 {"ACPI_ASF_ALERT", SRC_TYPE_STRUCT},
536 {"ACPI_ASF_ALERT_DATA", SRC_TYPE_STRUCT},
537 {"ACPI_ASF_CONTROL_DATA", SRC_TYPE_STRUCT},
538 {"ACPI_ASF_HEADER", SRC_TYPE_STRUCT},
539 {"ACPI_ASF_INFO", SRC_TYPE_STRUCT},
540 {"ACPI_ASF_REMOTE", SRC_TYPE_STRUCT},
541 {"ACPI_ASF_RMCP", SRC_TYPE_STRUCT},
542 {"ACPI_BERT_REGION", SRC_TYPE_STRUCT},
543 {"ACPI_CPEP_POLLING", SRC_TYPE_STRUCT},
544 {"ACPI_CSRT_GROUP", SRC_TYPE_STRUCT},
545 {"ACPI_CSRT_DESCRIPTOR", SRC_TYPE_STRUCT},
546 {"ACPI_CSRT_SHARED_INFO", SRC_TYPE_STRUCT},
547 {"ACPI_DBG2_DEVICE", SRC_TYPE_STRUCT},
548 {"ACPI_DMAR_HEADER", SRC_TYPE_STRUCT},
549 {"ACPI_DMAR_DEVICE_SCOPE", SRC_TYPE_STRUCT},
550 {"ACPI_DMAR_ATSR", SRC_TYPE_STRUCT},
551 {"ACPI_DMAR_RHSA", SRC_TYPE_STRUCT},
552 {"ACPI_DMAR_HARDWARE_UNIT", SRC_TYPE_STRUCT},
553 {"ACPI_DMAR_RESERVED_MEMORY", SRC_TYPE_STRUCT},
554 {"ACPI_EINJ_ENTRY", SRC_TYPE_STRUCT},
555 {"ACPI_EINJ_TRIGGER", SRC_TYPE_STRUCT},
556 {"ACPI_FPDT_HEADER", SRC_TYPE_STRUCT},
557 {"ACPI_FPDT_BOOT", SRC_TYPE_STRUCT},
558 {"ACPI_FPDT_S3PT_PTR", SRC_TYPE_STRUCT},
559 {"ACPI_ERST_ENTRY", SRC_TYPE_STRUCT},
560 {"ACPI_ERST_INFO", SRC_TYPE_STRUCT},
561 {"ACPI_HEST_AER_COMMON", SRC_TYPE_STRUCT},
562 {"ACPI_HEST_HEADER", SRC_TYPE_STRUCT},
563 {"ACPI_HEST_NOTIFY", SRC_TYPE_STRUCT},
564 {"ACPI_HEST_IA_ERROR_BANK", SRC_TYPE_STRUCT},
565 {"ACPI_HEST_IA_MACHINE_CHECK", SRC_TYPE_STRUCT},
566 {"ACPI_HEST_IA_CORRECTED", SRC_TYPE_STRUCT},
567 {"ACPI_HEST_IA_NMI", SRC_TYPE_STRUCT},
568 {"ACPI_HEST_AER_ROOT", SRC_TYPE_STRUCT},
569 {"ACPI_HEST_AER", SRC_TYPE_STRUCT},
570 {"ACPI_HEST_AER_BRIDGE", SRC_TYPE_STRUCT},
571 {"ACPI_HEST_GENERIC", SRC_TYPE_STRUCT},
572 {"ACPI_HEST_GENERIC_STATUS", SRC_TYPE_STRUCT},
573 {"ACPI_HEST_GENERIC_DATA", SRC_TYPE_STRUCT},
574 {"ACPI_IBFT_HEADER", SRC_TYPE_STRUCT},
575 {"ACPI_IBFT_CONTROL", SRC_TYPE_STRUCT},
576 {"ACPI_IBFT_INITIATOR", SRC_TYPE_STRUCT},
577 {"ACPI_IBFT_NIC", SRC_TYPE_STRUCT},
578 {"ACPI_IBFT_TARGET", SRC_TYPE_STRUCT},
579 {"ACPI_IVRS_HEADER", SRC_TYPE_STRUCT},
580 {"ACPI_IVRS_HARDWARE", SRC_TYPE_STRUCT},
581 {"ACPI_IVRS_DE_HEADER", SRC_TYPE_STRUCT},
582 {"ACPI_IVRS_DEVICE4", SRC_TYPE_STRUCT},
583 {"ACPI_IVRS_DEVICE8A", SRC_TYPE_STRUCT},
584 {"ACPI_IVRS_DEVICE8B", SRC_TYPE_STRUCT},
585 {"ACPI_IVRS_DEVICE8C", SRC_TYPE_STRUCT},
586 {"ACPI_IVRS_MEMORY", SRC_TYPE_STRUCT},
587 {"ACPI_MADT_ADDRESS_OVERRIDE", SRC_TYPE_STRUCT},
588 {"ACPI_MADT_HEADER", SRC_TYPE_STRUCT},
589 {"ACPI_MADT_IO_APIC", SRC_TYPE_STRUCT},
590 {"ACPI_MADT_IO_SAPIC", SRC_TYPE_STRUCT},
591 {"ACPI_MADT_LOCAL_APIC", SRC_TYPE_STRUCT},
592 {"ACPI_MADT_LOCAL_APIC_NMI", SRC_TYPE_STRUCT},
593 {"ACPI_MADT_LOCAL_APIC_OVERRIDE", SRC_TYPE_STRUCT},
594 {"ACPI_MADT_LOCAL_SAPIC", SRC_TYPE_STRUCT},
595 {"ACPI_MADT_LOCAL_X2APIC", SRC_TYPE_STRUCT},
596 {"ACPI_MADT_LOCAL_X2APIC_NMI", SRC_TYPE_STRUCT},
597 {"ACPI_MADT_GENERIC_DISTRIBUTOR", SRC_TYPE_STRUCT},
598 {"ACPI_MADT_GENERIC_INTERRUPT", SRC_TYPE_STRUCT},
599 {"ACPI_MADT_INTERRUPT_OVERRIDE", SRC_TYPE_STRUCT},
600 {"ACPI_MADT_INTERRUPT_SOURCE", SRC_TYPE_STRUCT},
601 {"ACPI_MADT_NMI_SOURCE", SRC_TYPE_STRUCT},
602 {"ACPI_MADT_PROCESSOR_APIC", SRC_TYPE_STRUCT},
603 {"ACPI_MPST_COMPONENT", SRC_TYPE_STRUCT},
604 {"ACPI_MPST_DATA_HDR", SRC_TYPE_STRUCT},
605 {"ACPI_MPST_POWER_DATA", SRC_TYPE_STRUCT},
606 {"ACPI_MPST_POWER_NODE", SRC_TYPE_STRUCT},
607 {"ACPI_MPST_POWER_STATE", SRC_TYPE_STRUCT},
608 {"ACPI_MCFG_ALLOCATION", SRC_TYPE_STRUCT},
609 {"ACPI_MSCT_PROXIMITY", SRC_TYPE_STRUCT},
610 {"ACPI_PCCT_SUBSPACE", SRC_TYPE_STRUCT},
611 {"ACPI_RSDP_COMMON", SRC_TYPE_STRUCT},
612 {"ACPI_RSDP_EXTENSION", SRC_TYPE_STRUCT},
613 {"ACPI_S3PT_RESUME", SRC_TYPE_STRUCT},
614 {"ACPI_S3PT_SUSPEND", SRC_TYPE_STRUCT},
615 {"ACPI_SLIC_HEADER", SRC_TYPE_STRUCT},
616 {"ACPI_SLIC_KEY", SRC_TYPE_STRUCT},
617 {"ACPI_SLIC_MARKER", SRC_TYPE_STRUCT},
618 {"ACPI_SRAT_CPU_AFFINITY", SRC_TYPE_STRUCT},
619 {"ACPI_SRAT_HEADER", SRC_TYPE_STRUCT},
620 {"ACPI_SRAT_MEM_AFFINITY", SRC_TYPE_STRUCT},
621 {"ACPI_SRAT_X2APIC_CPU_AFFINITY", SRC_TYPE_STRUCT},
622 {"ACPI_TPM2_CONTROL", SRC_TYPE_STRUCT},
623 {"ACPI_WDAT_ENTRY", SRC_TYPE_STRUCT},
625 /* Data Table compiler */
627 {"DT_FIELD", SRC_TYPE_STRUCT},
628 {"DT_SUBTABLE", SRC_TYPE_STRUCT},
629 {"DT_WALK_CALLBACK", SRC_TYPE_SIMPLE},
631 /* iASL preprocessor */
633 {"PR_DEFINE_INFO", SRC_TYPE_STRUCT},
634 {"PR_DIRECTIVE_INFO", SRC_TYPE_STRUCT},
635 {"PR_FILE_NODE", SRC_TYPE_STRUCT},
636 {"PR_LINE_MAPPING", SRC_TYPE_STRUCT},
637 {"PR_MACRO_ARG", SRC_TYPE_STRUCT},
638 {"PR_OPERATOR_INFO", SRC_TYPE_STRUCT},
640 /* AcpiHelp utility */
642 {"AH_AML_OPCODE", SRC_TYPE_STRUCT},
643 {"AH_ASL_OPERATOR", SRC_TYPE_STRUCT},
644 {"AH_ASL_KEYWORD", SRC_TYPE_STRUCT},
645 {"AH_PREDEFINED_NAME", SRC_TYPE_STRUCT},
647 /* AcpiXtract utility */
649 {"AX_TABLE_INFO", SRC_TYPE_STRUCT},
651 {NULL, 0}
655 ACPI_IDENTIFIER_TABLE LinuxAddStruct[] = {
656 {"acpi_namespace_node"},
657 {"acpi_parse_object"},
658 {"acpi_table_desc"},
659 {"acpi_walk_state"},
660 {NULL}
664 ACPI_IDENTIFIER_TABLE LinuxEliminateMacros[] = {
666 {"ACPI_GET_ADDRESS"},
667 {"ACPI_VALID_ADDRESS"},
668 {NULL}
672 ACPI_IDENTIFIER_TABLE LinuxEliminateLines_C[] = {
674 {"#define __"},
675 {NULL}
679 ACPI_IDENTIFIER_TABLE LinuxEliminateLines_H[] = {
681 {NULL}
685 ACPI_IDENTIFIER_TABLE LinuxConditionalIdentifiers[] = {
687 /* {"ACPI_USE_STANDARD_HEADERS"}, */
688 {"WIN32"},
689 {"_MSC_VER"},
690 {NULL}
694 ACPI_STRING_TABLE LinuxSpecialStrings[] = {
696 /* Include file paths */
698 {"\"acpi.h\"", "<acpi/acpi.h>", REPLACE_WHOLE_WORD},
699 {"\"acpiosxf.h\"", "<acpi/acpiosxf.h>", REPLACE_WHOLE_WORD},
700 {"\"acpixf.h\"", "<acpi/acpixf.h>", REPLACE_WHOLE_WORD},
701 {"\"acbuffer.h\"", "<acpi/acbuffer.h>", REPLACE_WHOLE_WORD},
702 {"\"acconfig.h\"", "<acpi/acconfig.h>", REPLACE_WHOLE_WORD},
703 {"\"acexcep.h\"", "<acpi/acexcep.h>", REPLACE_WHOLE_WORD},
704 {"\"acnames.h\"", "<acpi/acnames.h>", REPLACE_WHOLE_WORD},
705 {"\"acoutput.h\"", "<acpi/acoutput.h>", REPLACE_WHOLE_WORD},
706 {"\"acrestyp.h\"", "<acpi/acrestyp.h>", REPLACE_WHOLE_WORD},
707 {"\"actbl.h\"", "<acpi/actbl.h>", REPLACE_WHOLE_WORD},
708 {"\"actbl1.h\"", "<acpi/actbl1.h>", REPLACE_WHOLE_WORD},
709 {"\"actbl2.h\"", "<acpi/actbl2.h>", REPLACE_WHOLE_WORD},
710 {"\"actbl3.h\"", "<acpi/actbl3.h>", REPLACE_WHOLE_WORD},
711 {"\"actypes.h\"", "<acpi/actypes.h>", REPLACE_WHOLE_WORD},
712 {"\"platform/acenv.h\"", "<acpi/platform/acenv.h>", REPLACE_WHOLE_WORD},
713 {"\"acgcc.h\"", "<acpi/platform/acgcc.h>", REPLACE_WHOLE_WORD},
714 {"\"aclinux.h\"", "<acpi/platform/aclinux.h>", REPLACE_WHOLE_WORD},
716 {NULL, NULL, 0}
720 ACPI_IDENTIFIER_TABLE LinuxSpecialMacros[] = {
722 {"ACPI_EXPORT_SYMBOL"},
723 {"ACPI_EXPORT_SYMBOL_INIT"},
724 {"ACPI_HW_DEPENDENT_RETURN_OK"},
725 {"ACPI_HW_DEPENDENT_RETURN_STATUS"},
726 {"ACPI_HW_DEPENDENT_RETURN_VOID"},
727 {NULL}
731 ACPI_CONVERSION_TABLE LinuxConversionTable = {
733 DualLicenseHeader,
734 FLG_NO_CARRIAGE_RETURNS | FLG_LOWERCASE_DIRNAMES,
736 AcpiIdentifiers,
738 /* C source files */
740 LinuxDataTypes,
741 LinuxEliminateLines_C,
742 NULL,
743 LinuxEliminateMacros,
744 AcpiIdentifiers,
745 NULL,
746 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
747 CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_BRACES_ON_SAME_LINE |
748 CVT_MIXED_CASE_TO_UNDERSCORES | CVT_LOWER_CASE_IDENTIFIERS |
749 CVT_REMOVE_DEBUG_MACROS | CVT_TRIM_WHITESPACE |
750 CVT_REMOVE_EMPTY_BLOCKS | CVT_SPACES_TO_TABS8),
752 /* C header files */
754 LinuxDataTypes,
755 LinuxEliminateLines_H,
756 LinuxConditionalIdentifiers,
757 NULL,
758 AcpiIdentifiers,
759 NULL,
760 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
761 CVT_TRIM_LINES | CVT_MIXED_CASE_TO_UNDERSCORES |
762 CVT_LOWER_CASE_IDENTIFIERS | CVT_TRIM_WHITESPACE |
763 CVT_REMOVE_EMPTY_BLOCKS| CVT_REDUCE_TYPEDEFS | CVT_SPACES_TO_TABS8),
767 /******************************************************************************
769 * Code cleanup translation tables
771 ******************************************************************************/
773 ACPI_CONVERSION_TABLE CleanupConversionTable = {
775 NULL,
776 FLG_DEFAULT_FLAGS,
777 NULL,
778 /* C source files */
780 NULL,
781 NULL,
782 NULL,
783 NULL,
784 NULL,
785 NULL,
786 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
787 CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
789 /* C header files */
791 NULL,
792 NULL,
793 NULL,
794 NULL,
795 NULL,
796 NULL,
797 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
798 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
802 ACPI_CONVERSION_TABLE StatsConversionTable = {
804 NULL,
805 FLG_NO_FILE_OUTPUT,
806 NULL,
808 /* C source files */
810 NULL,
811 NULL,
812 NULL,
813 NULL,
814 NULL,
815 NULL,
816 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
817 CVT_COUNT_SHORTMULTILINE_COMMENTS),
819 /* C header files */
821 NULL,
822 NULL,
823 NULL,
824 NULL,
825 NULL,
826 NULL,
827 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
828 CVT_COUNT_SHORTMULTILINE_COMMENTS),
832 /******************************************************************************
834 * Dual License injection translation table
836 ******************************************************************************/
838 ACPI_CONVERSION_TABLE LicenseConversionTable = {
840 DualLicenseHeader,
841 FLG_DEFAULT_FLAGS,
842 NULL,
844 /* C source files */
846 NULL,
847 NULL,
848 NULL,
849 NULL,
850 NULL,
851 NULL,
852 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
853 CVT_COUNT_SHORTMULTILINE_COMMENTS),
855 /* C header files */
857 NULL,
858 NULL,
859 NULL,
860 NULL,
861 NULL,
862 NULL,
863 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
864 CVT_COUNT_SHORTMULTILINE_COMMENTS),
868 /******************************************************************************
870 * Customizable translation tables
872 ******************************************************************************/
874 ACPI_STRING_TABLE CustomReplacements[] = {
877 {"(c) 1999 - 2012", "(c) 1999 - 2013", REPLACE_WHOLE_WORD}, /* Main ACPICA source */
878 {"(c) 2006 - 2012", "(c) 2006 - 2013", REPLACE_WHOLE_WORD}, /* Test suites */
880 #if 0
881 {"SUPPORT, ASSISTANCE", "SUPPORT, ASSISTANCE", REPLACE_WHOLE_WORD}, /* Fix intel header */
883 {"(ACPI_INTEGER)", "(UINT64)", REPLACE_WHOLE_WORD},
884 {"ACPI_INTEGER ", "UINT64 ", REPLACE_WHOLE_WORD},
885 {"ACPI_INTEGER", "UINT64", REPLACE_WHOLE_WORD},
886 {"ACPI_INTEGER_MAX", "ACPI_UINT64_MAX", REPLACE_WHOLE_WORD},
887 {"#include \"acpi.h\"", "#include \"acpi.h\"\n#include \"accommon.h\"", REPLACE_SUBSTRINGS},
888 {"AcpiTbSumTable", "AcpiTbSumTable", REPLACE_WHOLE_WORD},
889 {"ACPI_SIG_BOOT", "ACPI_SIG_BOOT", REPLACE_WHOLE_WORD},
890 {"ACPI_SIG_DBGP", "ACPI_SIG_DBGP", REPLACE_WHOLE_WORD},
891 {"ACPI_SIG_DSDT", "ACPI_SIG_DSDT", REPLACE_WHOLE_WORD},
892 {"ACPI_SIG_ECDT", "ACPI_SIG_ECDT", REPLACE_WHOLE_WORD},
893 {"ACPI_SIG_FACS", "ACPI_SIG_FACS", REPLACE_WHOLE_WORD},
894 {"ACPI_SIG_FADT", "ACPI_SIG_FADT", REPLACE_WHOLE_WORD},
895 {"ACPI_SIG_HPET", "ACPI_SIG_HPET", REPLACE_WHOLE_WORD},
896 {"ACPI_SIG_MADT", "ACPI_SIG_MADT", REPLACE_WHOLE_WORD},
897 {"ACPI_SIG_MCFG", "ACPI_SIG_MCFG", REPLACE_WHOLE_WORD},
898 {"ACPI_SIG_PSDT", "ACPI_SIG_PSDT", REPLACE_WHOLE_WORD},
899 {"ACPI_NAME_RSDP", "ACPI_NAME_RSDP", REPLACE_WHOLE_WORD},
900 {"ACPI_SIG_RSDP", "ACPI_SIG_RSDP", REPLACE_WHOLE_WORD},
901 {"ACPI_SIG_RSDT", "ACPI_SIG_RSDT", REPLACE_WHOLE_WORD},
902 {"ACPI_SIG_SBST", "ACPI_SIG_SBST", REPLACE_WHOLE_WORD},
903 {"ACPI_SIG_SLIT", "ACPI_SIG_SLIT", REPLACE_WHOLE_WORD},
904 {"ACPI_SIG_SPCR", "ACPI_SIG_SPCR", REPLACE_WHOLE_WORD},
905 {"ACPI_SIG_SPIC", "ACPI_SIG_SPIC", REPLACE_WHOLE_WORD},
906 {"ACPI_SIG_SPMI", "ACPI_SIG_SPMI", REPLACE_WHOLE_WORD},
907 {"ACPI_SIG_SRAT", "ACPI_SIG_SRAT", REPLACE_WHOLE_WORD},
908 {"ACPI_SIG_SSDT", "ACPI_SIG_SSDT", REPLACE_WHOLE_WORD},
909 {"ACPI_SIG_TCPA", "ACPI_SIG_TCPA", REPLACE_WHOLE_WORD},
910 {"ACPI_SIG_WDRT", "ACPI_SIG_WDRT", REPLACE_WHOLE_WORD},
911 {"ACPI_SIG_XSDT", "ACPI_SIG_XSDT", REPLACE_WHOLE_WORD},
913 {"ACPI_ALLOCATE_ZEROED", "ACPI_ALLOCATE_ZEROED", REPLACE_WHOLE_WORD},
914 {"ACPI_ALLOCATE", "ACPI_ALLOCATE", REPLACE_WHOLE_WORD},
915 {"ACPI_FREE", "ACPI_FREE", REPLACE_WHOLE_WORD},
917 "ACPI_NATIVE_UINT", "ACPI_NATIVE_UINT", REPLACE_WHOLE_WORD,
918 "ACPI_NATIVE_UINT *", "ACPI_NATIVE_UINT *", REPLACE_WHOLE_WORD,
919 "ACPI_NATIVE_UINT", "ACPI_NATIVE_UINT", REPLACE_WHOLE_WORD,
920 "ACPI_NATIVE_INT", "ACPI_NATIVE_INT", REPLACE_WHOLE_WORD,
921 "ACPI_NATIVE_INT *", "ACPI_NATIVE_INT *", REPLACE_WHOLE_WORD,
922 "ACPI_NATIVE_INT", "ACPI_NATIVE_INT", REPLACE_WHOLE_WORD,
923 #endif
925 {NULL, NULL, 0}
929 ACPI_CONVERSION_TABLE CustomConversionTable = {
931 NULL,
932 FLG_DEFAULT_FLAGS,
933 NULL,
935 /* C source files */
937 CustomReplacements,
938 LinuxEliminateLines_H,
939 NULL,
940 NULL,
941 NULL,
942 NULL,
943 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
944 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
946 /* C header files */
948 CustomReplacements,
949 LinuxEliminateLines_H,
950 NULL,
951 NULL,
952 NULL,
953 NULL,
954 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
955 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
959 /******************************************************************************
961 * Indentation result fixup table
963 ******************************************************************************/
965 ACPI_CONVERSION_TABLE IndentConversionTable = {
967 NULL,
968 FLG_NO_CARRIAGE_RETURNS,
970 NULL,
972 /* C source files */
974 LinuxSpecialStrings,
975 NULL,
976 NULL,
977 NULL,
978 NULL,
979 LinuxSpecialMacros,
980 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
981 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
983 /* C header files */
985 LinuxSpecialStrings,
986 NULL,
987 NULL,
988 NULL,
989 NULL,
990 LinuxSpecialMacros,
991 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
992 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),