Sync usage with man page.
[netbsd-mini2440.git] / sys / external / intel-public / acpica / dist / tools / acpisrc / astable.c
blob6003fffc29e00589615293920d4416451eb5a98f
2 /******************************************************************************
4 * Module Name: astable - Tables used for source conversion
6 *****************************************************************************/
8 /******************************************************************************
10 * 1. Copyright Notice
12 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
13 * All rights reserved.
15 * 2. License
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights. You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
20 * property rights.
22 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23 * copy of the source code appearing in this file ("Covered Code") an
24 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25 * base code distributed originally by Intel ("Original Intel Code") to copy,
26 * make derivatives, distribute, use and display any portion of the Covered
27 * Code in any form, with the right to sublicense such rights; and
29 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30 * license (with the right to sublicense), under only those claims of Intel
31 * patents that are infringed by the Original Intel Code, to make, use, sell,
32 * offer to sell, and import the Covered Code and derivative works thereof
33 * solely to the minimum extent necessary to exercise the above copyright
34 * license, and in no event shall the patent license extend to any additions
35 * to or modifications of the Original Intel Code. No other license or right
36 * is granted directly or by implication, estoppel or otherwise;
38 * The above copyright and patent license is granted only if the following
39 * conditions are met:
41 * 3. Conditions
43 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44 * Redistribution of source code of any substantial portion of the Covered
45 * Code or modification with rights to further distribute source must include
46 * the above Copyright Notice, the above License, this list of Conditions,
47 * and the following Disclaimer and Export Compliance provision. In addition,
48 * Licensee must cause all Covered Code to which Licensee contributes to
49 * contain a file documenting the changes Licensee made to create that Covered
50 * Code and the date of any change. Licensee must include in that file the
51 * documentation of any changes made by any predecessor Licensee. Licensee
52 * must include a prominent statement that the modification is derived,
53 * directly or indirectly, from Original Intel Code.
55 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56 * Redistribution of source code of any substantial portion of the Covered
57 * Code or modification without rights to further distribute source must
58 * include the following Disclaimer and Export Compliance provision in the
59 * documentation and/or other materials provided with distribution. In
60 * addition, Licensee may not authorize further sublicense of source of any
61 * portion of the Covered Code, and must include terms to the effect that the
62 * license from Licensee to its licensee is limited to the intellectual
63 * property embodied in the software Licensee provides to its licensee, and
64 * not to intellectual property embodied in modifications its licensee may
65 * make.
67 * 3.3. Redistribution of Executable. Redistribution in executable form of any
68 * substantial portion of the Covered Code or modification must reproduce the
69 * above Copyright Notice, and the following Disclaimer and Export Compliance
70 * provision in the documentation and/or other materials provided with the
71 * distribution.
73 * 3.4. Intel retains all right, title, and interest in and to the Original
74 * Intel Code.
76 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77 * Intel shall be used in advertising or otherwise to promote the sale, use or
78 * other dealings in products derived from or relating to the Covered Code
79 * without prior written authorization from Intel.
81 * 4. Disclaimer and Export Compliance
83 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
86 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
87 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
88 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89 * PARTICULAR PURPOSE.
91 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
97 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98 * LIMITED REMEDY.
100 * 4.3. Licensee shall not export, either directly or indirectly, any of this
101 * software or system incorporating such software without first obtaining any
102 * required license or other approval from the U. S. Department of Commerce or
103 * any other agency or department of the United States Government. In the
104 * event Licensee exports any such software from the United States or
105 * re-exports any such software from a foreign destination, Licensee shall
106 * ensure that the distribution and export/re-export of the software is in
107 * compliance with all laws, regulations, orders, or other restrictions of the
108 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109 * any of its subsidiaries will export/re-export any technical data, process,
110 * software, or service, directly or indirectly, to any country for which the
111 * United States government or any agency thereof requires an export license,
112 * other governmental approval, or letter of assurance, without first obtaining
113 * such license, approval or letter.
115 *****************************************************************************/
118 #include "acpisrc.h"
119 #include "acapps.h"
122 /******************************************************************************
124 * Standard/Common translation tables
126 ******************************************************************************/
129 ACPI_STRING_TABLE StandardDataTypes[] = {
131 /* Declarations first */
133 {"UINT32 ", "unsigned int", REPLACE_SUBSTRINGS},
134 {"UINT16 ", "unsigned short", REPLACE_SUBSTRINGS},
135 {"UINT8 ", "unsigned char", REPLACE_SUBSTRINGS},
136 {"BOOLEAN ", "unsigned char", REPLACE_SUBSTRINGS},
138 /* Now do embedded typecasts */
140 {"UINT32", "unsigned int", REPLACE_SUBSTRINGS},
141 {"UINT16", "unsigned short", REPLACE_SUBSTRINGS},
142 {"UINT8", "unsigned char", REPLACE_SUBSTRINGS},
143 {"BOOLEAN", "unsigned char", REPLACE_SUBSTRINGS},
145 {"INT32 ", "int ", REPLACE_SUBSTRINGS},
146 {"INT32", "int", REPLACE_SUBSTRINGS},
147 {"INT16", "short", REPLACE_SUBSTRINGS},
148 {"INT8", "char", REPLACE_SUBSTRINGS},
150 /* Put back anything we broke (such as anything with _INT32_ in it) */
152 {"_int_", "_INT32_", REPLACE_SUBSTRINGS},
153 {"_unsigned int_", "_UINT32_", REPLACE_SUBSTRINGS},
154 {NULL, NULL, 0}
158 /******************************************************************************
160 * Linux-specific translation tables
162 ******************************************************************************/
164 char LinuxHeader[] =
165 "/*\n"
166 " * Copyright (C) 2000 - 2009, Intel Corp.\n"
167 " * All rights reserved.\n"
168 " *\n"
169 " * Redistribution and use in source and binary forms, with or without\n"
170 " * modification, are permitted provided that the following conditions\n"
171 " * are met:\n"
172 " * 1. Redistributions of source code must retain the above copyright\n"
173 " * notice, this list of conditions, and the following disclaimer,\n"
174 " * without modification.\n"
175 " * 2. Redistributions in binary form must reproduce at minimum a disclaimer\n"
176 " * substantially similar to the \"NO WARRANTY\" disclaimer below\n"
177 " * (\"Disclaimer\") and any redistribution must be conditioned upon\n"
178 " * including a substantially similar Disclaimer requirement for further\n"
179 " * binary redistribution.\n"
180 " * 3. Neither the names of the above-listed copyright holders nor the names\n"
181 " * of any contributors may be used to endorse or promote products derived\n"
182 " * from this software without specific prior written permission.\n"
183 " *\n"
184 " * Alternatively, this software may be distributed under the terms of the\n"
185 " * GNU General Public License (\"GPL\") version 2 as published by the Free\n"
186 " * Software Foundation.\n"
187 " *\n"
188 " * NO WARRANTY\n"
189 " * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"
190 " * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n"
191 " * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR\n"
192 " * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n"
193 " * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n"
194 " * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n"
195 " * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n"
196 " * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\n"
197 " * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\n"
198 " * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n"
199 " * POSSIBILITY OF SUCH DAMAGES.\n"
200 " */\n";
202 ACPI_STRING_TABLE LinuxDataTypes[] = {
205 * Extra space is added after the type so there is room to add "struct", "union",
206 * etc. when the existing struct typedefs are eliminated.
209 /* Declarations first - ACPI types and standard C types */
211 {"INT64 ", "s64 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
212 {"UINT64 ", "u64 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
213 {"UINT32 ", "u32 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
214 {"INT32 ", "s32 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
215 {"UINT16 ", "u16 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
216 {"INT16 ", "s16 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
217 {"UINT8 ", "u8 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
218 {"BOOLEAN ", "u8 ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
219 {"char ", "char ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
220 {"void ", "void ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
221 {"char * ", "char * ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
222 {"void * ", "void * ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
223 {"int ", "int ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
224 {"FILE ", "FILE ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
225 {"size_t ", "size_t ", REPLACE_WHOLE_WORD | EXTRA_INDENT_C},
227 /* Now do embedded typecasts */
229 {"UINT64", "u64", REPLACE_WHOLE_WORD},
230 {"UINT32", "u32", REPLACE_WHOLE_WORD},
231 {"UINT16", "u16", REPLACE_WHOLE_WORD},
232 {"UINT8", "u8", REPLACE_WHOLE_WORD},
233 {"BOOLEAN", "u8", REPLACE_WHOLE_WORD},
235 {"INT64 ", "s64 ", REPLACE_WHOLE_WORD},
236 {"INT64", "s64", REPLACE_WHOLE_WORD},
237 {"INT32 ", "s32 ", REPLACE_WHOLE_WORD},
238 {"INT32", "s32", REPLACE_WHOLE_WORD},
239 {"INT16 ", "s16 ", REPLACE_WHOLE_WORD},
240 {"INT8 ", "s8 ", REPLACE_WHOLE_WORD},
241 {"INT16", "s16", REPLACE_WHOLE_WORD},
242 {"INT8", "s8", REPLACE_WHOLE_WORD},
244 {NULL, NULL, 0},
247 ACPI_TYPED_IDENTIFIER_TABLE AcpiIdentifiers[] = {
249 {"ACPI_ADR_SPACE_HANDLER", SRC_TYPE_SIMPLE},
250 {"ACPI_ADR_SPACE_SETUP", SRC_TYPE_SIMPLE},
251 {"ACPI_ADR_SPACE_TYPE", SRC_TYPE_SIMPLE},
252 {"ACPI_AML_OPERANDS", SRC_TYPE_UNION},
253 {"ACPI_BIT_REGISTER_INFO", SRC_TYPE_STRUCT},
254 {"ACPI_BUFFER", SRC_TYPE_STRUCT},
255 {"ACPI_BUS_ATTRIBUTE", SRC_TYPE_STRUCT},
256 {"ACPI_CACHE_T", SRC_TYPE_SIMPLE},
257 {"ACPI_COMMON_FACS", SRC_TYPE_STRUCT},
258 {"ACPI_COMMON_STATE", SRC_TYPE_STRUCT},
259 {"ACPI_COMMON_DESCRIPTOR", SRC_TYPE_STRUCT},
260 {"ACPI_COMPATIBLE_ID", SRC_TYPE_STRUCT},
261 {"ACPI_CONTROL_STATE", SRC_TYPE_STRUCT},
262 {"ACPI_CONVERSION_TABLE", SRC_TYPE_STRUCT},
263 {"ACPI_CPU_FLAGS", SRC_TYPE_SIMPLE},
264 {"ACPI_CREATE_FIELD_INFO", SRC_TYPE_STRUCT},
265 {"ACPI_DB_METHOD_INFO", SRC_TYPE_STRUCT},
266 {"ACPI_DEBUG_MEM_BLOCK", SRC_TYPE_STRUCT},
267 {"ACPI_DEBUG_MEM_HEADER", SRC_TYPE_STRUCT},
268 {"ACPI_DEBUG_PRINT_INFO", SRC_TYPE_STRUCT},
269 {"ACPI_DESCRIPTOR", SRC_TYPE_UNION},
270 {"ACPI_DEVICE_ID", SRC_TYPE_STRUCT},
271 {"ACPI_DEVICE_ID_LIST", SRC_TYPE_STRUCT},
272 {"ACPI_DEVICE_INFO", SRC_TYPE_STRUCT},
273 {"ACPI_DEVICE_WALK_INFO", SRC_TYPE_STRUCT},
274 {"ACPI_DMTABLE_DATA", SRC_TYPE_STRUCT},
275 {"ACPI_DMTABLE_INFO", SRC_TYPE_STRUCT},
276 {"ACPI_DMTABLE_HANDLER", SRC_TYPE_SIMPLE},
277 {"ACPI_EVALUATE_INFO", SRC_TYPE_STRUCT},
278 {"ACPI_EVENT_HANDLER", SRC_TYPE_SIMPLE},
279 {"ACPI_EVENT_STATUS", SRC_TYPE_SIMPLE},
280 {"ACPI_EVENT_TYPE", SRC_TYPE_SIMPLE},
281 {"ACPI_EXCEPTION_HANDLER", SRC_TYPE_SIMPLE},
282 {"ACPI_EXDUMP_INFO", SRC_TYPE_STRUCT},
283 {"ACPI_EXECUTE_TYPE", SRC_TYPE_SIMPLE},
284 {"ACPI_EXTERNAL_LIST", SRC_TYPE_STRUCT},
285 {"ACPI_FADT_INFO", SRC_TYPE_STRUCT},
286 {"ACPI_FADT_PM_INFO", SRC_TYPE_STRUCT},
287 {"ACPI_FIELD_INFO", SRC_TYPE_STRUCT},
288 {"ACPI_FIND_CONTEXT", SRC_TYPE_STRUCT},
289 {"ACPI_FIXED_EVENT_HANDLER", SRC_TYPE_STRUCT},
290 {"ACPI_FIXED_EVENT_INFO", SRC_TYPE_STRUCT},
291 {"ACPI_GENERIC_ADDRESS", SRC_TYPE_STRUCT},
292 {"ACPI_GENERIC_STATE", SRC_TYPE_UNION},
293 {"ACPI_GET_DEVICES_INFO", SRC_TYPE_STRUCT},
294 {"ACPI_GPE_BLOCK_INFO", SRC_TYPE_STRUCT},
295 {"ACPI_GPE_CALLBACK", SRC_TYPE_SIMPLE},
296 {"ACPI_GPE_DEVICE_INFO", SRC_TYPE_STRUCT},
297 {"ACPI_GPE_EVENT_INFO", SRC_TYPE_STRUCT},
298 {"ACPI_GPE_HANDLER", SRC_TYPE_SIMPLE},
299 {"ACPI_GPE_INDEX_INFO", SRC_TYPE_STRUCT},
300 {"ACPI_GPE_REGISTER_INFO", SRC_TYPE_STRUCT},
301 {"ACPI_GPE_WALK_INFO", SRC_TYPE_STRUCT},
302 {"ACPI_GPE_XRUPT_INFO", SRC_TYPE_STRUCT},
303 {"ACPI_HANDLE", SRC_TYPE_SIMPLE},
304 {"ACPI_HANDLER_INFO", SRC_TYPE_STRUCT},
305 {"ACPI_INIT_HANDLER", SRC_TYPE_SIMPLE},
306 {"ACPI_IDENTIFIER_TABLE", SRC_TYPE_STRUCT},
307 {"ACPI_INIT_WALK_INFO", SRC_TYPE_STRUCT},
308 {"ACPI_INTEGER", SRC_TYPE_SIMPLE},
309 {"ACPI_INTEGER_OVERLAY", SRC_TYPE_STRUCT},
310 {"ACPI_INTEGRITY_INFO", SRC_TYPE_STRUCT},
311 {"ACPI_INTERFACE_INFO", SRC_TYPE_STRUCT},
312 {"ACPI_INTERNAL_RSDT", SRC_TYPE_STRUCT},
313 {"ACPI_INTERPRETER_MODE", SRC_TYPE_SIMPLE},
314 {"ACPI_IO_ADDRESS", SRC_TYPE_SIMPLE},
315 {"ACPI_IO_ATTRIBUTE", SRC_TYPE_STRUCT},
316 {"ACPI_MEM_SPACE_CONTEXT", SRC_TYPE_STRUCT},
317 {"ACPI_MEMORY_ATTRIBUTE", SRC_TYPE_STRUCT},
318 {"ACPI_MEMORY_LIST", SRC_TYPE_STRUCT},
319 {"ACPI_MUTEX", SRC_TYPE_SIMPLE},
320 {"ACPI_MUTEX_HANDLE", SRC_TYPE_SIMPLE},
321 {"ACPI_MUTEX_INFO", SRC_TYPE_STRUCT},
322 {"ACPI_NAME", SRC_TYPE_SIMPLE},
323 {"ACPI_NAME_INFO", SRC_TYPE_STRUCT},
324 {"ACPI_NAME_UNION", SRC_TYPE_UNION},
325 {"ACPI_NAMESPACE_NODE", SRC_TYPE_STRUCT},
326 {"ACPI_NAMESTRING_INFO", SRC_TYPE_STRUCT},
327 {"ACPI_NATIVE_INT", SRC_TYPE_SIMPLE},
328 {"ACPI_NATIVE_UINT", SRC_TYPE_SIMPLE},
329 {"ACPI_NOTIFY_HANDLER", SRC_TYPE_SIMPLE},
330 {"ACPI_NOTIFY_INFO", SRC_TYPE_STRUCT},
331 {"ACPI_NS_SEARCH_DATA", SRC_TYPE_STRUCT},
332 {"ACPI_OBJ_INFO_HEADER", SRC_TYPE_STRUCT},
333 {"ACPI_OBJECT", SRC_TYPE_UNION},
334 {"ACPI_OBJECT_ADDR_HANDLER", SRC_TYPE_STRUCT},
335 {"ACPI_OBJECT_BANK_FIELD", SRC_TYPE_STRUCT},
336 {"ACPI_OBJECT_BUFFER", SRC_TYPE_STRUCT},
337 {"ACPI_OBJECT_BUFFER_FIELD", SRC_TYPE_STRUCT},
338 {"ACPI_OBJECT_CACHE_LIST", SRC_TYPE_STRUCT},
339 {"ACPI_OBJECT_COMMON", SRC_TYPE_STRUCT},
340 {"ACPI_OBJECT_DATA", SRC_TYPE_STRUCT},
341 {"ACPI_OBJECT_DEVICE", SRC_TYPE_STRUCT},
342 {"ACPI_OBJECT_EVENT", SRC_TYPE_STRUCT},
343 {"ACPI_OBJECT_EXTRA", SRC_TYPE_STRUCT},
344 {"ACPI_OBJECT_FIELD_COMMON", SRC_TYPE_STRUCT},
345 {"ACPI_OBJECT_HANDLER", SRC_TYPE_SIMPLE},
346 {"ACPI_OBJECT_INDEX_FIELD", SRC_TYPE_STRUCT},
347 {"ACPI_OBJECT_INTEGER", SRC_TYPE_STRUCT},
348 {"ACPI_OBJECT_LIST", SRC_TYPE_STRUCT},
349 {"ACPI_OBJECT_METHOD", SRC_TYPE_STRUCT},
350 {"ACPI_OBJECT_MUTEX", SRC_TYPE_STRUCT},
351 {"ACPI_OBJECT_NOTIFY_COMMON", SRC_TYPE_STRUCT},
352 {"ACPI_OBJECT_NOTIFY_HANDLER", SRC_TYPE_STRUCT},
353 {"ACPI_OBJECT_PACKAGE", SRC_TYPE_STRUCT},
354 {"ACPI_OBJECT_POWER_RESOURCE", SRC_TYPE_STRUCT},
355 {"ACPI_OBJECT_PROCESSOR", SRC_TYPE_STRUCT},
356 {"ACPI_OBJECT_REFERENCE", SRC_TYPE_STRUCT},
357 {"ACPI_OBJECT_REGION", SRC_TYPE_STRUCT},
358 {"ACPI_OBJECT_REGION_FIELD", SRC_TYPE_STRUCT},
359 {"ACPI_OBJECT_STRING", SRC_TYPE_STRUCT},
360 {"ACPI_OBJECT_THERMAL_ZONE", SRC_TYPE_STRUCT},
361 {"ACPI_OBJECT_TYPE", SRC_TYPE_SIMPLE},
362 {"ACPI_OBJECT_TYPE8", SRC_TYPE_SIMPLE},
363 {"ACPI_OP_WALK_INFO", SRC_TYPE_STRUCT},
364 {"ACPI_OPCODE_INFO", SRC_TYPE_STRUCT},
365 {"ACPI_OPERAND_OBJECT", SRC_TYPE_UNION},
366 {"ACPI_OSD_HANDLER", SRC_TYPE_SIMPLE},
367 {"ACPI_OSD_EXEC_CALLBACK", SRC_TYPE_SIMPLE},
368 {"ACPI_OWNER_ID", SRC_TYPE_SIMPLE},
369 {"ACPI_PACKAGE_INFO", SRC_TYPE_STRUCT},
370 {"ACPI_PACKAGE_INFO2", SRC_TYPE_STRUCT},
371 {"ACPI_PACKAGE_INFO3", SRC_TYPE_STRUCT},
372 {"ACPI_PARSE_DOWNWARDS", SRC_TYPE_SIMPLE},
373 {"ACPI_PARSE_OBJ_ASL", SRC_TYPE_STRUCT},
374 {"ACPI_PARSE_OBJ_COMMON", SRC_TYPE_STRUCT},
375 {"ACPI_PARSE_OBJ_NAMED", SRC_TYPE_STRUCT},
376 {"ACPI_PARSE_OBJECT", SRC_TYPE_UNION},
377 {"ACPI_PARSE_STATE", SRC_TYPE_STRUCT},
378 {"ACPI_PARSE_UPWARDS", SRC_TYPE_SIMPLE},
379 {"ACPI_PARSE_VALUE", SRC_TYPE_UNION},
380 {"ACPI_PCI_ID", SRC_TYPE_STRUCT},
381 {"ACPI_PCI_ROUTING_TABLE", SRC_TYPE_STRUCT},
382 {"ACPI_PHYSICAL_ADDRESS", SRC_TYPE_SIMPLE},
383 {"ACPI_PKG_CALLBACK", SRC_TYPE_SIMPLE},
384 {"ACPI_PKG_INFO", SRC_TYPE_STRUCT},
385 {"ACPI_PKG_STATE", SRC_TYPE_STRUCT},
386 {"ACPI_POINTER", SRC_TYPE_STRUCT},
387 {"ACPI_POINTERS", SRC_TYPE_UNION},
388 {"ACPI_PORT_INFO", SRC_TYPE_STRUCT},
389 {"ACPI_PREDEFINED_DATA", SRC_TYPE_STRUCT},
390 {"ACPI_PREDEFINED_INFO", SRC_TYPE_UNION},
391 {"ACPI_PREDEFINED_NAMES", SRC_TYPE_STRUCT},
392 {"ACPI_PSCOPE_STATE", SRC_TYPE_STRUCT},
393 {"ACPI_RESOURCE", SRC_TYPE_STRUCT},
394 {"ACPI_RESOURCE_ADDRESS", SRC_TYPE_STRUCT},
395 {"ACPI_RESOURCE_ADDRESS16", SRC_TYPE_STRUCT},
396 {"ACPI_RESOURCE_ADDRESS32", SRC_TYPE_STRUCT},
397 {"ACPI_RESOURCE_ADDRESS64", SRC_TYPE_STRUCT},
398 {"ACPI_RESOURCE_EXTENDED_ADDRESS64", SRC_TYPE_STRUCT},
399 {"ACPI_RESOURCE_ATTRIBUTE", SRC_TYPE_UNION},
400 {"ACPI_RESOURCE_DATA", SRC_TYPE_UNION},
401 {"ACPI_RESOURCE_DMA", SRC_TYPE_STRUCT},
402 {"ACPI_RESOURCE_END_TAG", SRC_TYPE_STRUCT},
403 {"ACPI_RESOURCE_EXTENDED_IRQ", SRC_TYPE_STRUCT},
404 {"ACPI_RESOURCE_FIXED_IO", SRC_TYPE_STRUCT},
405 {"ACPI_RESOURCE_FIXED_MEMORY32", SRC_TYPE_STRUCT},
406 {"ACPI_RESOURCE_GENERIC_REGISTER", SRC_TYPE_STRUCT},
407 {"ACPI_RESOURCE_INFO", SRC_TYPE_STRUCT},
408 {"ACPI_RESOURCE_IO", SRC_TYPE_STRUCT},
409 {"ACPI_RESOURCE_IRQ", SRC_TYPE_STRUCT},
410 {"ACPI_RESOURCE_MEMORY24", SRC_TYPE_STRUCT},
411 {"ACPI_RESOURCE_MEMORY32", SRC_TYPE_STRUCT},
412 {"ACPI_RESOURCE_SOURCE", SRC_TYPE_STRUCT},
413 {"ACPI_RESOURCE_START_DEPENDENT", SRC_TYPE_STRUCT},
414 {"ACPI_RESOURCE_TAG", SRC_TYPE_STRUCT},
415 {"ACPI_RESOURCE_TYPE", SRC_TYPE_SIMPLE},
416 {"ACPI_RESOURCE_VENDOR", SRC_TYPE_STRUCT},
417 {"ACPI_RESOURCE_VENDOR_TYPED", SRC_TYPE_STRUCT},
418 {"ACPI_RESULT_VALUES", SRC_TYPE_STRUCT},
419 {"ACPI_ROUND_UP_TO_32_BIT", SRC_TYPE_SIMPLE},
420 {"ACPI_RSCONVERT_INFO", SRC_TYPE_STRUCT},
421 {"ACPI_RSDUMP_INFO", SRC_TYPE_STRUCT},
422 {"ACPI_RW_LOCK", SRC_TYPE_STRUCT},
423 {"ACPI_SCOPE_STATE", SRC_TYPE_STRUCT},
424 {"ACPI_SEMAPHORE", SRC_TYPE_SIMPLE},
425 {"ACPI_SIGNAL_FATAL_INFO", SRC_TYPE_STRUCT},
426 {"ACPI_SIZE", SRC_TYPE_SIMPLE},
427 {"ACPI_SPINLOCK", SRC_TYPE_SIMPLE},
428 {"ACPI_STATISTICS", SRC_TYPE_STRUCT},
429 {"ACPI_STATUS", SRC_TYPE_SIMPLE},
430 {"ACPI_STRING", SRC_TYPE_SIMPLE},
431 {"ACPI_STRING_TABLE", SRC_TYPE_STRUCT},
432 {"ACPI_SUBTABLE_HEADER", SRC_TYPE_STRUCT},
433 {"ACPI_SYSTEM_INFO", SRC_TYPE_STRUCT},
434 {"ACPI_TABLE_DESC", SRC_TYPE_STRUCT},
435 {"ACPI_TABLE_HANDLER", SRC_TYPE_SIMPLE},
436 {"ACPI_TABLE_HEADER", SRC_TYPE_STRUCT},
437 {"ACPI_TABLE_INFO", SRC_TYPE_STRUCT},
438 {"ACPI_TABLE_LIST", SRC_TYPE_STRUCT},
439 {"ACPI_TABLE_SUPPORT", SRC_TYPE_STRUCT},
440 {"ACPI_TABLE_TYPE", SRC_TYPE_SIMPLE},
441 {"ACPI_THREAD_ID", SRC_TYPE_SIMPLE},
442 {"ACPI_THREAD_STATE", SRC_TYPE_STRUCT},
443 {"ACPI_TYPED_IDENTIFIER_TABLE", SRC_TYPE_STRUCT},
444 {"ACPI_UINTPTR_T", SRC_TYPE_SIMPLE},
445 {"ACPI_UPDATE_STATE", SRC_TYPE_STRUCT},
446 {"ACPI_UUID", SRC_TYPE_STRUCT},
447 {"ACPI_VENDOR_UUID", SRC_TYPE_STRUCT},
448 {"ACPI_VENDOR_WALK_INFO", SRC_TYPE_STRUCT},
449 {"ACPI_WALK_AML_CALLBACK", SRC_TYPE_SIMPLE},
450 {"ACPI_WALK_CALLBACK", SRC_TYPE_SIMPLE},
451 {"ACPI_WALK_RESOURCE_CALLBACK", SRC_TYPE_SIMPLE},
452 {"ACPI_WALK_INFO", SRC_TYPE_STRUCT},
453 {"ACPI_WALK_STATE", SRC_TYPE_STRUCT},
454 {"ACPI_WHEA_HEADER", SRC_TYPE_STRUCT},
456 {"ACPI_RS_LENGTH", SRC_TYPE_SIMPLE},
457 {"ACPI_RSDESC_SIZE", SRC_TYPE_SIMPLE},
459 {"AML_RESOURCE", SRC_TYPE_UNION},
460 {"AML_RESOURCE_ADDRESS", SRC_TYPE_STRUCT},
461 {"AML_RESOURCE_ADDRESS16", SRC_TYPE_STRUCT},
462 {"AML_RESOURCE_ADDRESS32", SRC_TYPE_STRUCT},
463 {"AML_RESOURCE_ADDRESS64", SRC_TYPE_STRUCT},
464 {"AML_RESOURCE_DMA", SRC_TYPE_STRUCT},
465 {"AML_RESOURCE_END_DEPENDENT", SRC_TYPE_STRUCT},
466 {"AML_RESOURCE_END_TAG", SRC_TYPE_STRUCT},
467 {"AML_RESOURCE_EXTENDED_ADDRESS64", SRC_TYPE_STRUCT},
468 {"AML_RESOURCE_EXTENDED_IRQ", SRC_TYPE_STRUCT},
469 {"AML_RESOURCE_FIXED_IO", SRC_TYPE_STRUCT},
470 {"AML_RESOURCE_FIXED_MEMORY32", SRC_TYPE_STRUCT},
471 {"AML_RESOURCE_GENERIC_REGISTER", SRC_TYPE_STRUCT},
472 {"AML_RESOURCE_IO", SRC_TYPE_STRUCT},
473 {"AML_RESOURCE_IRQ", SRC_TYPE_STRUCT},
474 {"AML_RESOURCE_IRQ_NOFLAGS", SRC_TYPE_STRUCT},
475 {"AML_RESOURCE_LARGE_HEADER", SRC_TYPE_STRUCT},
476 {"AML_RESOURCE_MEMORY24", SRC_TYPE_STRUCT},
477 {"AML_RESOURCE_MEMORY32", SRC_TYPE_STRUCT},
478 {"AML_RESOURCE_SMALL_HEADER", SRC_TYPE_STRUCT},
479 {"AML_RESOURCE_START_DEPENDENT", SRC_TYPE_STRUCT},
480 {"AML_RESOURCE_START_DEPENDENT_NOPRIO", SRC_TYPE_STRUCT},
481 {"AML_RESOURCE_VENDOR_LARGE", SRC_TYPE_STRUCT},
482 {"AML_RESOURCE_VENDOR_SMALL", SRC_TYPE_STRUCT},
484 {"APIC_HEADER", SRC_TYPE_STRUCT},
485 {"ARGUMENT_INFO", SRC_TYPE_STRUCT},
486 {"AE_DEBUG_REGIONS", SRC_TYPE_STRUCT},
487 {"AE_REGION", SRC_TYPE_STRUCT},
488 {"ASL_ANALYSIS_WALK_INFO", SRC_TYPE_STRUCT},
489 {"ASL_ERROR_MSG", SRC_TYPE_STRUCT},
490 {"ASL_EVENT_INFO", SRC_TYPE_STRUCT},
491 {"ASL_FILE_INFO", SRC_TYPE_STRUCT},
492 {"ASL_FILE_STATUS", SRC_TYPE_STRUCT},
493 {"ASL_LISTING_NODE", SRC_TYPE_STRUCT},
494 {"ASL_MAPPING_ENTRY", SRC_TYPE_STRUCT},
495 {"ASL_METHOD_INFO", SRC_TYPE_STRUCT},
496 {"ASL_RESERVED_INFO", SRC_TYPE_STRUCT},
497 {"ASL_RESOURCE_NODE", SRC_TYPE_STRUCT},
498 {"ASL_WALK_CALLBACK", SRC_TYPE_SIMPLE},
499 {"COMMAND_INFO", SRC_TYPE_STRUCT},
500 {"UINT32_STRUCT", SRC_TYPE_STRUCT},
501 {"UINT64_OVERLAY", SRC_TYPE_UNION},
502 {"UINT64_STRUCT", SRC_TYPE_STRUCT},
505 * Acpi table definition names.
507 {"ACPI_TABLE_ASF", SRC_TYPE_STRUCT},
508 {"ACPI_TABLE_BERT", SRC_TYPE_STRUCT},
509 {"ACPI_TABLE_BOOT", SRC_TYPE_STRUCT},
510 {"ACPI_TABLE_CPEP", SRC_TYPE_STRUCT},
511 {"ACPI_TABLE_DBGP", SRC_TYPE_STRUCT},
512 {"ACPI_TABLE_DMAR", SRC_TYPE_STRUCT},
513 {"ACPI_TABLE_ECDT", SRC_TYPE_STRUCT},
514 {"ACPI_TABLE_EINJ", SRC_TYPE_STRUCT},
515 {"ACPI_TABLE_ERST", SRC_TYPE_STRUCT},
516 {"ACPI_TABLE_FACS", SRC_TYPE_STRUCT},
517 {"ACPI_TABLE_FADT", SRC_TYPE_STRUCT},
518 {"ACPI_TABLE_HEST", SRC_TYPE_STRUCT},
519 {"ACPI_TABLE_HPET", SRC_TYPE_STRUCT},
520 {"ACPI_TABLE_IBFT", SRC_TYPE_STRUCT},
521 {"ACPI_TABLE_IVRS", SRC_TYPE_STRUCT},
522 {"ACPI_TABLE_MADT", SRC_TYPE_STRUCT},
523 {"ACPI_TABLE_MCFG", SRC_TYPE_STRUCT},
524 {"ACPI_TABLE_MSCT", SRC_TYPE_STRUCT},
525 {"ACPI_TABLE_RSDP", SRC_TYPE_STRUCT},
526 {"ACPI_TABLE_RSDT", SRC_TYPE_STRUCT},
527 {"ACPI_TABLE_SBST", SRC_TYPE_STRUCT},
528 {"ACPI_TABLE_SLIT", SRC_TYPE_STRUCT},
529 {"ACPI_TABLE_SPCR", SRC_TYPE_STRUCT},
530 {"ACPI_TABLE_SPMI", SRC_TYPE_STRUCT},
531 {"ACPI_TABLE_SRAT", SRC_TYPE_STRUCT},
532 {"ACPI_TABLE_TCPA", SRC_TYPE_STRUCT},
533 {"ACPI_TABLE_UEFI", SRC_TYPE_STRUCT},
534 {"ACPI_TABLE_WAET", SRC_TYPE_STRUCT},
535 {"ACPI_TABLE_WDAT", SRC_TYPE_STRUCT},
536 {"ACPI_TABLE_WDRT", SRC_TYPE_STRUCT},
537 {"ACPI_TABLE_XSDT", SRC_TYPE_STRUCT},
539 {"ACPI_ASF_ADDRESS", SRC_TYPE_STRUCT},
540 {"ACPI_ASF_ALERT", SRC_TYPE_STRUCT},
541 {"ACPI_ASF_ALERT_DATA", SRC_TYPE_STRUCT},
542 {"ACPI_ASF_CONTROL_DATA", SRC_TYPE_STRUCT},
543 {"ACPI_ASF_HEADER", SRC_TYPE_STRUCT},
544 {"ACPI_ASF_INFO", SRC_TYPE_STRUCT},
545 {"ACPI_ASF_REMOTE", SRC_TYPE_STRUCT},
546 {"ACPI_ASF_RMCP", SRC_TYPE_STRUCT},
547 {"ACPI_BERT_REGION", SRC_TYPE_STRUCT},
548 {"ACPI_CPEP_POLLING", SRC_TYPE_STRUCT},
549 {"ACPI_DMAR_HEADER", SRC_TYPE_STRUCT},
550 {"ACPI_DMAR_DEVICE_SCOPE", SRC_TYPE_STRUCT},
551 {"ACPI_DMAR_ATSR", SRC_TYPE_STRUCT},
552 {"ACPI_DMAR_RHSA", SRC_TYPE_STRUCT},
553 {"ACPI_DMAR_HARDWARE_UNIT", SRC_TYPE_STRUCT},
554 {"ACPI_DMAR_RESERVED_MEMORY", SRC_TYPE_STRUCT},
555 {"ACPI_EINJ_ENTRY", SRC_TYPE_STRUCT},
556 {"ACPI_EINJ_TRIGGER", SRC_TYPE_STRUCT},
557 {"ACPI_ERST_ENTRY", SRC_TYPE_STRUCT},
558 {"ACPI_ERST_INFO", SRC_TYPE_STRUCT},
559 {"ACPI_HEST_AER_COMMON", SRC_TYPE_STRUCT},
560 {"ACPI_HEST_HEADER", SRC_TYPE_STRUCT},
561 {"ACPI_HEST_NOTIFY", SRC_TYPE_STRUCT},
562 {"ACPI_HEST_IA_ERROR_BANK", SRC_TYPE_STRUCT},
563 {"ACPI_HEST_IA_MACHINE_CHECK", SRC_TYPE_STRUCT},
564 {"ACPI_HEST_IA_CORRECTED", SRC_TYPE_STRUCT},
565 {"ACPI_HEST_IA_NMI", SRC_TYPE_STRUCT},
566 {"ACPI_HEST_AER_ROOT", SRC_TYPE_STRUCT},
567 {"ACPI_HEST_AER", SRC_TYPE_STRUCT},
568 {"ACPI_HEST_AER_BRIDGE", SRC_TYPE_STRUCT},
569 {"ACPI_HEST_GENERIC", SRC_TYPE_STRUCT},
570 {"ACPI_HEST_GENERIC_STATUS", SRC_TYPE_STRUCT},
571 {"ACPI_HEST_GENERIC_DATA", SRC_TYPE_STRUCT},
572 {"ACPI_IBFT_HEADER", SRC_TYPE_STRUCT},
573 {"ACPI_IBFT_CONTROL", SRC_TYPE_STRUCT},
574 {"ACPI_IBFT_INITIATOR", SRC_TYPE_STRUCT},
575 {"ACPI_IBFT_NIC", SRC_TYPE_STRUCT},
576 {"ACPI_IBFT_TARGET", SRC_TYPE_STRUCT},
577 {"ACPI_IVRS_HEADER", SRC_TYPE_STRUCT},
578 {"ACPI_IVRS_HARDWARE", SRC_TYPE_STRUCT},
579 {"ACPI_IVRS_DE_HEADER", SRC_TYPE_STRUCT},
580 {"ACPI_IVRS_DEVICE4", SRC_TYPE_STRUCT},
581 {"ACPI_IVRS_DEVICE8A", SRC_TYPE_STRUCT},
582 {"ACPI_IVRS_DEVICE8B", SRC_TYPE_STRUCT},
583 {"ACPI_IVRS_DEVICE8C", SRC_TYPE_STRUCT},
584 {"ACPI_IVRS_MEMORY", SRC_TYPE_STRUCT},
585 {"ACPI_MADT_ADDRESS_OVERRIDE", SRC_TYPE_STRUCT},
586 {"ACPI_MADT_HEADER", SRC_TYPE_STRUCT},
587 {"ACPI_MADT_IO_APIC", SRC_TYPE_STRUCT},
588 {"ACPI_MADT_IO_SAPIC", SRC_TYPE_STRUCT},
589 {"ACPI_MADT_LOCAL_APIC", SRC_TYPE_STRUCT},
590 {"ACPI_MADT_LOCAL_APIC_NMI", SRC_TYPE_STRUCT},
591 {"ACPI_MADT_LOCAL_APIC_OVERRIDE", SRC_TYPE_STRUCT},
592 {"ACPI_MADT_LOCAL_SAPIC", SRC_TYPE_STRUCT},
593 {"ACPI_MADT_LOCAL_X2APIC", SRC_TYPE_STRUCT},
594 {"ACPI_MADT_LOCAL_X2APIC_NMI", SRC_TYPE_STRUCT},
595 {"ACPI_MADT_INTERRUPT_OVERRIDE", SRC_TYPE_STRUCT},
596 {"ACPI_MADT_INTERRUPT_SOURCE", SRC_TYPE_STRUCT},
597 {"ACPI_MADT_NMI_SOURCE", SRC_TYPE_STRUCT},
598 {"ACPI_MADT_PROCESSOR_APIC", SRC_TYPE_STRUCT},
599 {"ACPI_MCFG_ALLOCATION", SRC_TYPE_STRUCT},
600 {"ACPI_MSCT_PROXIMITY", SRC_TYPE_STRUCT},
601 {"ACPI_SRAT_CPU_AFFINITY", SRC_TYPE_STRUCT},
602 {"ACPI_SRAT_HEADER", SRC_TYPE_STRUCT},
603 {"ACPI_SRAT_MEM_AFFINITY", SRC_TYPE_STRUCT},
604 {"ACPI_SRAT_X2APIC_CPU_AFFINITY", SRC_TYPE_STRUCT},
605 {"ACPI_WDAT_ENTRY", SRC_TYPE_STRUCT},
608 /* Legacy names, should be removed */
610 {"EC_BOOT_RESOURCES", SRC_TYPE_STRUCT},
611 {"HPET_TABLE", SRC_TYPE_STRUCT},
612 {"MADT_ADDRESS_OVERRIDE", SRC_TYPE_STRUCT},
613 {"MADT_INTERRUPT_OVERRIDE", SRC_TYPE_STRUCT},
614 {"MADT_INTERRUPT_SOURCE", SRC_TYPE_STRUCT},
615 {"MADT_IO_APIC", SRC_TYPE_STRUCT},
616 {"MADT_IO_SAPIC", SRC_TYPE_STRUCT},
617 {"MADT_LOCAL_APIC_NMI", SRC_TYPE_STRUCT},
618 {"MADT_LOCAL_SAPIC", SRC_TYPE_STRUCT},
619 {"MADT_NMI_SOURCE", SRC_TYPE_STRUCT},
620 {"MADT_PROCESSOR_APIC", SRC_TYPE_STRUCT},
621 {"MEMORY_AFFINITY", SRC_TYPE_STRUCT},
622 {"MULTIPLE_APIC_TABLE", SRC_TYPE_STRUCT},
623 {"SMART_BATTERY_TABLE", SRC_TYPE_STRUCT},
624 {"STATIC_RESOURCE_ALLOC", SRC_TYPE_STRUCT},
625 {"SYSTEM_RESOURCE_AFFINITY", SRC_TYPE_STRUCT},
626 {"SYSTEM_LOCALITY_INFO", SRC_TYPE_STRUCT},
627 {"FACS_DESCRIPTOR", SRC_TYPE_STRUCT},
628 {"FADT_DESCRIPTOR_REV1", SRC_TYPE_STRUCT},
629 {"FADT_DESCRIPTOR", SRC_TYPE_STRUCT},
630 {"FADT_DESCRIPTOR_REV2_MINUS", SRC_TYPE_STRUCT},
631 {"RSDP_DESCRIPTOR", SRC_TYPE_STRUCT},
632 {"RSDT_DESCRIPTOR", SRC_TYPE_STRUCT},
633 {"XSDT_DESCRIPTOR", SRC_TYPE_STRUCT},
634 {NULL, 0}
638 ACPI_IDENTIFIER_TABLE LinuxAddStruct[] = {
639 {"acpi_namespace_node"},
640 {"acpi_parse_object"},
641 {"acpi_table_desc"},
642 {"acpi_walk_state"},
643 {NULL}
647 ACPI_IDENTIFIER_TABLE LinuxEliminateMacros[] = {
649 {"ACPI_GET_ADDRESS"},
650 {"ACPI_VALID_ADDRESS"},
651 {NULL}
655 ACPI_IDENTIFIER_TABLE LinuxEliminateLines_C[] = {
657 {"#define __"},
658 {NULL}
662 ACPI_IDENTIFIER_TABLE LinuxEliminateLines_H[] = {
664 {NULL}
668 ACPI_IDENTIFIER_TABLE LinuxConditionalIdentifiers[] = {
670 /* {"ACPI_USE_STANDARD_HEADERS"}, */
671 {"WIN32"},
672 {"_MSC_VER"},
673 {NULL}
676 ACPI_CONVERSION_TABLE LinuxConversionTable = {
678 LinuxHeader,
679 FLG_NO_CARRIAGE_RETURNS | FLG_LOWERCASE_DIRNAMES,
681 AcpiIdentifiers,
683 /* C source files */
685 LinuxDataTypes,
686 LinuxEliminateLines_C,
687 NULL,
688 LinuxEliminateMacros,
689 AcpiIdentifiers,
690 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
691 CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_BRACES_ON_SAME_LINE |
692 CVT_MIXED_CASE_TO_UNDERSCORES | CVT_LOWER_CASE_IDENTIFIERS |
693 CVT_REMOVE_DEBUG_MACROS | CVT_TRIM_WHITESPACE |
694 CVT_REMOVE_EMPTY_BLOCKS | CVT_SPACES_TO_TABS8),
696 /* C header files */
698 LinuxDataTypes,
699 LinuxEliminateLines_H,
700 LinuxConditionalIdentifiers,
701 NULL,
702 AcpiIdentifiers,
703 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
704 CVT_TRIM_LINES | CVT_MIXED_CASE_TO_UNDERSCORES |
705 CVT_LOWER_CASE_IDENTIFIERS | CVT_TRIM_WHITESPACE |
706 CVT_REMOVE_EMPTY_BLOCKS| CVT_REDUCE_TYPEDEFS | CVT_SPACES_TO_TABS8),
710 /******************************************************************************
712 * Code cleanup translation tables
714 ******************************************************************************/
717 ACPI_CONVERSION_TABLE CleanupConversionTable = {
719 NULL,
720 FLG_DEFAULT_FLAGS,
721 NULL,
722 /* C source files */
724 NULL,
725 NULL,
726 NULL,
727 NULL,
728 NULL,
729 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
730 CVT_CHECK_BRACES | CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
732 /* C header files */
734 NULL,
735 NULL,
736 NULL,
737 NULL,
738 NULL,
739 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
740 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
744 ACPI_CONVERSION_TABLE StatsConversionTable = {
746 NULL,
747 FLG_NO_FILE_OUTPUT,
748 NULL,
750 /* C source files */
752 NULL,
753 NULL,
754 NULL,
755 NULL,
756 NULL,
757 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
758 CVT_COUNT_SHORTMULTILINE_COMMENTS),
760 /* C header files */
762 NULL,
763 NULL,
764 NULL,
765 NULL,
766 NULL,
767 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
768 CVT_COUNT_SHORTMULTILINE_COMMENTS),
772 /******************************************************************************
774 * Customizable translation tables
776 ******************************************************************************/
778 ACPI_STRING_TABLE CustomReplacements[] = {
781 {"(c) 1999 - 2009", "(c) 1999 - 2009", REPLACE_WHOLE_WORD},
783 #if 0
784 {"#include \"acpi.h\"", "#include \"acpi.h\"\n#include \"accommon.h\"", REPLACE_SUBSTRINGS},
785 {"(c) 1999 - 2009", "(c) 1999 - 2009", REPLACE_WHOLE_WORD},
786 {"AcpiTbSumTable", "AcpiTbSumTable", REPLACE_WHOLE_WORD},
787 {"ACPI_SIG_BOOT", "ACPI_SIG_BOOT", REPLACE_WHOLE_WORD},
788 {"ACPI_SIG_DBGP", "ACPI_SIG_DBGP", REPLACE_WHOLE_WORD},
789 {"ACPI_SIG_DSDT", "ACPI_SIG_DSDT", REPLACE_WHOLE_WORD},
790 {"ACPI_SIG_ECDT", "ACPI_SIG_ECDT", REPLACE_WHOLE_WORD},
791 {"ACPI_SIG_FACS", "ACPI_SIG_FACS", REPLACE_WHOLE_WORD},
792 {"ACPI_SIG_FADT", "ACPI_SIG_FADT", REPLACE_WHOLE_WORD},
793 {"ACPI_SIG_HPET", "ACPI_SIG_HPET", REPLACE_WHOLE_WORD},
794 {"ACPI_SIG_MADT", "ACPI_SIG_MADT", REPLACE_WHOLE_WORD},
795 {"ACPI_SIG_MCFG", "ACPI_SIG_MCFG", REPLACE_WHOLE_WORD},
796 {"ACPI_SIG_PSDT", "ACPI_SIG_PSDT", REPLACE_WHOLE_WORD},
797 {"ACPI_NAME_RSDP", "ACPI_NAME_RSDP", REPLACE_WHOLE_WORD},
798 {"ACPI_SIG_RSDP", "ACPI_SIG_RSDP", REPLACE_WHOLE_WORD},
799 {"ACPI_SIG_RSDT", "ACPI_SIG_RSDT", REPLACE_WHOLE_WORD},
800 {"ACPI_SIG_SBST", "ACPI_SIG_SBST", REPLACE_WHOLE_WORD},
801 {"ACPI_SIG_SLIT", "ACPI_SIG_SLIT", REPLACE_WHOLE_WORD},
802 {"ACPI_SIG_SPCR", "ACPI_SIG_SPCR", REPLACE_WHOLE_WORD},
803 {"ACPI_SIG_SPIC", "ACPI_SIG_SPIC", REPLACE_WHOLE_WORD},
804 {"ACPI_SIG_SPMI", "ACPI_SIG_SPMI", REPLACE_WHOLE_WORD},
805 {"ACPI_SIG_SRAT", "ACPI_SIG_SRAT", REPLACE_WHOLE_WORD},
806 {"ACPI_SIG_SSDT", "ACPI_SIG_SSDT", REPLACE_WHOLE_WORD},
807 {"ACPI_SIG_TCPA", "ACPI_SIG_TCPA", REPLACE_WHOLE_WORD},
808 {"ACPI_SIG_WDRT", "ACPI_SIG_WDRT", REPLACE_WHOLE_WORD},
809 {"ACPI_SIG_XSDT", "ACPI_SIG_XSDT", REPLACE_WHOLE_WORD},
811 {"ACPI_ALLOCATE_ZEROED", "ACPI_ALLOCATE_ZEROED", REPLACE_WHOLE_WORD},
812 {"ACPI_ALLOCATE", "ACPI_ALLOCATE", REPLACE_WHOLE_WORD},
813 {"ACPI_FREE", "ACPI_FREE", REPLACE_WHOLE_WORD},
815 "ACPI_NATIVE_UINT", "ACPI_NATIVE_UINT", REPLACE_WHOLE_WORD,
816 "ACPI_NATIVE_UINT *", "ACPI_NATIVE_UINT *", REPLACE_WHOLE_WORD,
817 "ACPI_NATIVE_UINT", "ACPI_NATIVE_UINT", REPLACE_WHOLE_WORD,
818 "ACPI_NATIVE_INT", "ACPI_NATIVE_INT", REPLACE_WHOLE_WORD,
819 "ACPI_NATIVE_INT *", "ACPI_NATIVE_INT *", REPLACE_WHOLE_WORD,
820 "ACPI_NATIVE_INT", "ACPI_NATIVE_INT", REPLACE_WHOLE_WORD,
821 #endif
823 {NULL, NULL, 0}
827 ACPI_CONVERSION_TABLE CustomConversionTable = {
829 NULL,
830 FLG_DEFAULT_FLAGS,
831 NULL,
833 /* C source files */
835 CustomReplacements,
836 LinuxEliminateLines_H,
837 NULL,
838 NULL,
839 NULL,
840 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
841 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),
843 /* C header files */
845 CustomReplacements,
846 LinuxEliminateLines_H,
847 NULL,
848 NULL,
849 NULL,
850 (CVT_COUNT_TABS | CVT_COUNT_NON_ANSI_COMMENTS | CVT_COUNT_LINES |
851 CVT_TRIM_LINES | CVT_TRIM_WHITESPACE),