xref: /freebsd/sys/contrib/dev/acpica/include/acdisasm.h (revision 5ffd83dbcc34f10e07f6d3e968ae6365869615f4)
1 /******************************************************************************
2  *
3  * Name: acdisasm.h - AML disassembler
4  *
5  *****************************************************************************/
6 
7 /******************************************************************************
8  *
9  * 1. Copyright Notice
10  *
11  * Some or all of this work - Copyright (c) 1999 - 2020, 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 #ifndef __ACDISASM_H__
153 #define __ACDISASM_H__
154 
155 #include <contrib/dev/acpica/include/amlresrc.h>
156 
157 
158 #define BLOCK_NONE              0
159 #define BLOCK_PAREN             1
160 #define BLOCK_BRACE             2
161 #define BLOCK_COMMA_LIST        4
162 #define ACPI_DEFAULT_RESNAME    *(UINT32 *) "__RD"
163 
164 /*
165  * Raw table data header. Used by disassembler and data table compiler.
166  * Do not change.
167  */
168 #define ACPI_RAW_TABLE_DATA_HEADER      "Raw Table Data"
169 
170 
171 typedef struct acpi_dmtable_info
172 {
173     UINT8                       Opcode;
174     UINT16                      Offset;
175     char                        *Name;
176     UINT8                       Flags;
177 
178 } ACPI_DMTABLE_INFO;
179 
180 /* Values for Flags field above */
181 
182 #define DT_LENGTH                       0x01    /* Field is a subtable length */
183 #define DT_FLAG                         0x02    /* Field is a flag value */
184 #define DT_NON_ZERO                     0x04    /* Field must be non-zero */
185 #define DT_OPTIONAL                     0x08    /* Field is optional */
186 #define DT_DESCRIBES_OPTIONAL           0x10    /* Field describes an optional field (length, etc.) */
187 #define DT_COUNT                        0x20    /* Currently not used */
188 
189 /*
190  * Values for Opcode above.
191  * Note: 0-7 must not change, they are used as a flag shift value. Other
192  * than those, new values can be added wherever appropriate.
193  */
194 typedef enum
195 {
196     /* Simple Data Types */
197 
198     ACPI_DMT_FLAG0          = 0,
199     ACPI_DMT_FLAG1          = 1,
200     ACPI_DMT_FLAG2          = 2,
201     ACPI_DMT_FLAG3          = 3,
202     ACPI_DMT_FLAG4          = 4,
203     ACPI_DMT_FLAG5          = 5,
204     ACPI_DMT_FLAG6          = 6,
205     ACPI_DMT_FLAG7          = 7,
206     ACPI_DMT_FLAGS0,
207     ACPI_DMT_FLAGS1,
208     ACPI_DMT_FLAGS2,
209     ACPI_DMT_FLAGS4,
210     ACPI_DMT_FLAGS4_0,
211     ACPI_DMT_FLAGS4_4,
212     ACPI_DMT_FLAGS4_8,
213     ACPI_DMT_FLAGS4_12,
214     ACPI_DMT_FLAGS16_16,
215     ACPI_DMT_UINT8,
216     ACPI_DMT_UINT16,
217     ACPI_DMT_UINT24,
218     ACPI_DMT_UINT32,
219     ACPI_DMT_UINT40,
220     ACPI_DMT_UINT48,
221     ACPI_DMT_UINT56,
222     ACPI_DMT_UINT64,
223     ACPI_DMT_BUF7,
224     ACPI_DMT_BUF10,
225     ACPI_DMT_BUF12,
226     ACPI_DMT_BUF16,
227     ACPI_DMT_BUF128,
228     ACPI_DMT_SIG,
229     ACPI_DMT_STRING,
230     ACPI_DMT_NAME4,
231     ACPI_DMT_NAME6,
232     ACPI_DMT_NAME8,
233 
234     /* Types that are decoded to strings and miscellaneous */
235 
236     ACPI_DMT_ACCWIDTH,
237     ACPI_DMT_CHKSUM,
238     ACPI_DMT_GAS,
239     ACPI_DMT_SPACEID,
240     ACPI_DMT_UNICODE,
241     ACPI_DMT_UUID,
242 
243     /* Types used only for the Data Table Compiler */
244 
245     ACPI_DMT_BUFFER,
246     ACPI_DMT_RAW_BUFFER,  /* Large, multiple line buffer */
247     ACPI_DMT_DEVICE_PATH,
248     ACPI_DMT_LABEL,
249     ACPI_DMT_PCI_PATH,
250 
251     /* Types that are specific to particular ACPI tables */
252 
253     ACPI_DMT_ASF,
254     ACPI_DMT_DMAR,
255     ACPI_DMT_DMAR_SCOPE,
256     ACPI_DMT_EINJACT,
257     ACPI_DMT_EINJINST,
258     ACPI_DMT_ERSTACT,
259     ACPI_DMT_ERSTINST,
260     ACPI_DMT_FADTPM,
261     ACPI_DMT_GTDT,
262     ACPI_DMT_HEST,
263     ACPI_DMT_HESTNTFY,
264     ACPI_DMT_HESTNTYP,
265     ACPI_DMT_HMAT,
266     ACPI_DMT_IORTMEM,
267     ACPI_DMT_IVRS,
268     ACPI_DMT_LPIT,
269     ACPI_DMT_MADT,
270     ACPI_DMT_NFIT,
271     ACPI_DMT_PCCT,
272     ACPI_DMT_PMTT,
273     ACPI_DMT_PPTT,
274     ACPI_DMT_SDEI,
275     ACPI_DMT_SDEV,
276     ACPI_DMT_SLIC,
277     ACPI_DMT_SRAT,
278     ACPI_DMT_TPM2,
279 
280     /* Special opcodes */
281 
282     ACPI_DMT_EXTRA_TEXT,
283     ACPI_DMT_EXIT
284 
285 } ACPI_ENTRY_TYPES;
286 
287 typedef
288 void (*ACPI_DMTABLE_HANDLER) (
289     ACPI_TABLE_HEADER       *Table);
290 
291 typedef
292 ACPI_STATUS (*ACPI_CMTABLE_HANDLER) (
293     void                    **PFieldList);
294 
295 typedef struct acpi_dmtable_data
296 {
297     char                    *Signature;
298     ACPI_DMTABLE_INFO       *TableInfo;
299     ACPI_DMTABLE_HANDLER    TableHandler;
300     ACPI_CMTABLE_HANDLER    CmTableHandler;
301     const unsigned char     *Template;
302 
303 } ACPI_DMTABLE_DATA;
304 
305 
306 typedef struct acpi_op_walk_info
307 {
308     ACPI_WALK_STATE         *WalkState;
309     ACPI_PARSE_OBJECT       *MappingOp;
310     UINT8                   *PreviousAml;
311     UINT8                   *StartAml;
312     UINT32                  Level;
313     UINT32                  LastLevel;
314     UINT32                  Count;
315     UINT32                  BitOffset;
316     UINT32                  Flags;
317     UINT32                  AmlOffset;
318 
319 } ACPI_OP_WALK_INFO;
320 
321 /*
322  * TBD - another copy of this is in asltypes.h, fix
323  */
324 #ifndef ASL_WALK_CALLBACK_DEFINED
325 typedef
326 ACPI_STATUS (*ASL_WALK_CALLBACK) (
327     ACPI_PARSE_OBJECT           *Op,
328     UINT32                      Level,
329     void                        *Context);
330 #define ASL_WALK_CALLBACK_DEFINED
331 #endif
332 
333 typedef
334 void (*ACPI_RESOURCE_HANDLER) (
335     ACPI_OP_WALK_INFO       *Info,
336     AML_RESOURCE            *Resource,
337     UINT32                  Length,
338     UINT32                  Level);
339 
340 typedef struct acpi_resource_tag
341 {
342     UINT32                  BitIndex;
343     char                    *Tag;
344 
345 } ACPI_RESOURCE_TAG;
346 
347 /* Strings used for decoding flags to ASL keywords */
348 
349 extern const char               *AcpiGbl_WordDecode[];
350 extern const char               *AcpiGbl_IrqDecode[];
351 extern const char               *AcpiGbl_LockRule[];
352 extern const char               *AcpiGbl_AccessTypes[];
353 extern const char               *AcpiGbl_UpdateRules[];
354 extern const char               *AcpiGbl_MatchOps[];
355 
356 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsf0[];
357 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsf1[];
358 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsf1a[];
359 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsf2[];
360 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsf2a[];
361 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsf3[];
362 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsf4[];
363 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoAsfHdr[];
364 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoBoot[];
365 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoBert[];
366 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoBgrt[];
367 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoCpep[];
368 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoCpep0[];
369 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoCsrt0[];
370 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoCsrt1[];
371 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoCsrt2[];
372 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoCsrt2a[];
373 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDbg2[];
374 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDbg2Device[];
375 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDbg2Addr[];
376 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDbg2Size[];
377 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDbg2Name[];
378 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDbg2OemData[];
379 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDbgp[];
380 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmar[];
381 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmarHdr[];
382 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmarScope[];
383 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmar0[];
384 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmar1[];
385 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmar2[];
386 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmar3[];
387 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDmar4[];
388 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDrtm[];
389 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDrtm0[];
390 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDrtm0a[];
391 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDrtm1[];
392 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDrtm1a[];
393 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoDrtm2[];
394 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoEcdt[];
395 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoEinj[];
396 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoEinj0[];
397 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoErst[];
398 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoErst0[];
399 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFacs[];
400 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFadt1[];
401 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFadt2[];
402 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFadt3[];
403 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFadt5[];
404 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFadt6[];
405 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFpdt[];
406 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFpdtHdr[];
407 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFpdt0[];
408 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoFpdt1[];
409 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGas[];
410 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdt[];
411 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdtHdr[];
412 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdtEl2[];
413 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdt0[];
414 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdt0a[];
415 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdt1[];
416 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHeader[];
417 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest[];
418 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest0[];
419 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest1[];
420 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest2[];
421 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest6[];
422 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest7[];
423 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest8[];
424 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest9[];
425 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest10[];
426 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest11[];
427 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHestNotify[];
428 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHestBank[];
429 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHpet[];
430 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoLpitHdr[];
431 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoLpit0[];
432 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoLpit1[];
433 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat[];
434 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat0[];
435 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1[];
436 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1a[];
437 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1b[];
438 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1c[];
439 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat2[];
440 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat2a[];
441 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmatHdr[];
442 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort[];
443 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort0[];
444 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort0a[];
445 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort1[];
446 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort1a[];
447 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort2[];
448 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3[];
449 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3a[];
450 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3b[];
451 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3c[];
452 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort4[];
453 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort5[];
454 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortAcc[];
455 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortHdr[];
456 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortMap[];
457 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortPad[];
458 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs[];
459 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs0[];
460 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs01[];
461 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs1[];
462 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs4[];
463 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs8a[];
464 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs8b[];
465 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs8c[];
466 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrsHdr[];
467 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt[];
468 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt0[];
469 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt1[];
470 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt2[];
471 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt3[];
472 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt4[];
473 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt5[];
474 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt6[];
475 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt7[];
476 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt8[];
477 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt9[];
478 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt10[];
479 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt11[];
480 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt12[];
481 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt13[];
482 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt14[];
483 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt15[];
484 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadtHdr[];
485 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMcfg[];
486 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMcfg0[];
487 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMchi[];
488 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst[];
489 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst0[];
490 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst0A[];
491 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst0B[];
492 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst1[];
493 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst2[];
494 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMsct[];
495 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMsct0[];
496 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMtmr[];
497 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMtmr0[];
498 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit[];
499 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfitHdr[];
500 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit0[];
501 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit1[];
502 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit2[];
503 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit2a[];
504 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit3[];
505 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit3a[];
506 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit4[];
507 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit5[];
508 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit6[];
509 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit6a[];
510 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit7[];
511 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPdtt[];
512 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt[];
513 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt0[];
514 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt1[];
515 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt1a[];
516 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt2[];
517 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmttHdr[];
518 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct[];
519 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcctHdr[];
520 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct0[];
521 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct1[];
522 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct2[];
523 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct3[];
524 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct4[];
525 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPdtt0[];
526 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt0[];
527 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt0a[];
528 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt1[];
529 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt2[];
530 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPpttHdr[];
531 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoRasf[];
532 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoRsdp1[];
533 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoRsdp2[];
534 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3pt[];
535 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3ptHdr[];
536 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3pt0[];
537 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3pt1[];
538 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSbst[];
539 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdei[];
540 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev[];
541 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdevHdr[];
542 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev0[];
543 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev0a[];
544 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev1[];
545 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev1a[];
546 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev1b[];
547 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSlic[];
548 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSlit[];
549 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSpcr[];
550 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSpmi[];
551 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat[];
552 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSratHdr[];
553 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat0[];
554 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat1[];
555 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat2[];
556 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat3[];
557 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat4[];
558 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat5[];
559 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoStao[];
560 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoStaoStr[];
561 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTcpaHdr[];
562 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTcpaClient[];
563 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTcpaServer[];
564 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm2[];
565 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm2a[];
566 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm211[];
567 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm23[];
568 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm23a[];
569 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoUefi[];
570 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoVrtc[];
571 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoVrtc0[];
572 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWaet[];
573 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWdat[];
574 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWdat0[];
575 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWddt[];
576 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWdrt[];
577 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWpbt[];
578 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWpbt0[];
579 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWsmt[];
580 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoXenv[];
581 
582 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGeneric[][2];
583 
584 /*
585  * dmtable and ahtable
586  */
587 extern const ACPI_DMTABLE_DATA  AcpiDmTableData[];
588 extern const AH_TABLE           AcpiGbl_SupportedTables[];
589 
590 UINT8
591 AcpiDmGenerateChecksum (
592     void                    *Table,
593     UINT32                  Length,
594     UINT8                   OriginalChecksum);
595 
596 const ACPI_DMTABLE_DATA *
597 AcpiDmGetTableData (
598     char                    *Signature);
599 
600 void
601 AcpiDmDumpDataTable (
602     ACPI_TABLE_HEADER       *Table);
603 
604 ACPI_STATUS
605 AcpiDmDumpTable (
606     UINT32                  TableLength,
607     UINT32                  TableOffset,
608     void                    *Table,
609     UINT32                  SubtableLength,
610     ACPI_DMTABLE_INFO        *Info);
611 
612 void
613 AcpiDmLineHeader (
614     UINT32                  Offset,
615     UINT32                  ByteLength,
616     char                    *Name);
617 
618 void
619 AcpiDmLineHeader2 (
620     UINT32                  Offset,
621     UINT32                  ByteLength,
622     char                    *Name,
623     UINT32                  Value);
624 
625 
626 /*
627  * dmtbdump
628  */
629 void
630 AcpiDmDumpBuffer (
631     void                    *Table,
632     UINT32                  BufferOffset,
633     UINT32                  Length,
634     UINT32                  AbsoluteOffset,
635     char                    *Header);
636 
637 void
638 AcpiDmDumpUnicode (
639     void                    *Table,
640     UINT32                  BufferOffset,
641     UINT32                  ByteLength);
642 
643 void
644 AcpiDmDumpAsf (
645     ACPI_TABLE_HEADER       *Table);
646 
647 void
648 AcpiDmDumpCpep (
649     ACPI_TABLE_HEADER       *Table);
650 
651 void
652 AcpiDmDumpCsrt (
653     ACPI_TABLE_HEADER       *Table);
654 
655 void
656 AcpiDmDumpDbg2 (
657     ACPI_TABLE_HEADER       *Table);
658 
659 void
660 AcpiDmDumpDmar (
661     ACPI_TABLE_HEADER       *Table);
662 
663 void
664 AcpiDmDumpDrtm (
665     ACPI_TABLE_HEADER       *Table);
666 
667 void
668 AcpiDmDumpEinj (
669     ACPI_TABLE_HEADER       *Table);
670 
671 void
672 AcpiDmDumpErst (
673     ACPI_TABLE_HEADER       *Table);
674 
675 void
676 AcpiDmDumpFadt (
677     ACPI_TABLE_HEADER       *Table);
678 
679 void
680 AcpiDmDumpFpdt (
681     ACPI_TABLE_HEADER       *Table);
682 
683 void
684 AcpiDmDumpGtdt (
685     ACPI_TABLE_HEADER       *Table);
686 
687 void
688 AcpiDmDumpHest (
689     ACPI_TABLE_HEADER       *Table);
690 
691 void
692 AcpiDmDumpHmat (
693     ACPI_TABLE_HEADER       *Table);
694 
695 void
696 AcpiDmDumpIort (
697     ACPI_TABLE_HEADER       *Table);
698 
699 void
700 AcpiDmDumpIvrs (
701     ACPI_TABLE_HEADER       *Table);
702 
703 void
704 AcpiDmDumpLpit (
705     ACPI_TABLE_HEADER       *Table);
706 
707 void
708 AcpiDmDumpMadt (
709     ACPI_TABLE_HEADER       *Table);
710 
711 void
712 AcpiDmDumpMcfg (
713     ACPI_TABLE_HEADER       *Table);
714 
715 void
716 AcpiDmDumpMpst (
717     ACPI_TABLE_HEADER       *Table);
718 
719 void
720 AcpiDmDumpMsct (
721     ACPI_TABLE_HEADER       *Table);
722 
723 void
724 AcpiDmDumpMtmr (
725     ACPI_TABLE_HEADER       *Table);
726 
727 void
728 AcpiDmDumpNfit (
729     ACPI_TABLE_HEADER       *Table);
730 
731 void
732 AcpiDmDumpPcct (
733     ACPI_TABLE_HEADER       *Table);
734 
735 void
736 AcpiDmDumpPdtt (
737     ACPI_TABLE_HEADER       *Table);
738 
739 void
740 AcpiDmDumpPmtt (
741     ACPI_TABLE_HEADER       *Table);
742 
743 void
744 AcpiDmDumpPptt (
745     ACPI_TABLE_HEADER       *Table);
746 
747 UINT32
748 AcpiDmDumpRsdp (
749     ACPI_TABLE_HEADER       *Table);
750 
751 void
752 AcpiDmDumpRsdt (
753     ACPI_TABLE_HEADER       *Table);
754 
755 UINT32
756 AcpiDmDumpS3pt (
757     ACPI_TABLE_HEADER       *Table);
758 
759 void
760 AcpiDmDumpSdev (
761     ACPI_TABLE_HEADER       *Table);
762 
763 void
764 AcpiDmDumpSlic (
765     ACPI_TABLE_HEADER       *Table);
766 
767 void
768 AcpiDmDumpSlit (
769     ACPI_TABLE_HEADER       *Table);
770 
771 void
772 AcpiDmDumpSrat (
773     ACPI_TABLE_HEADER       *Table);
774 
775 void
776 AcpiDmDumpStao (
777     ACPI_TABLE_HEADER       *Table);
778 
779 void
780 AcpiDmDumpTcpa (
781     ACPI_TABLE_HEADER       *Table);
782 
783 void
784 AcpiDmDumpTpm2 (
785     ACPI_TABLE_HEADER       *Table);
786 
787 void
788 AcpiDmDumpVrtc (
789     ACPI_TABLE_HEADER       *Table);
790 
791 void
792 AcpiDmDumpWdat (
793     ACPI_TABLE_HEADER       *Table);
794 
795 void
796 AcpiDmDumpWpbt (
797     ACPI_TABLE_HEADER       *Table);
798 
799 void
800 AcpiDmDumpXsdt (
801     ACPI_TABLE_HEADER       *Table);
802 
803 
804 /*
805  * dmwalk
806  */
807 void
808 AcpiDmDisassemble (
809     ACPI_WALK_STATE         *WalkState,
810     ACPI_PARSE_OBJECT       *Origin,
811     UINT32                  NumOpcodes);
812 
813 void
814 AcpiDmWalkParseTree (
815     ACPI_PARSE_OBJECT       *Op,
816     ASL_WALK_CALLBACK       DescendingCallback,
817     ASL_WALK_CALLBACK       AscendingCallback,
818     void                    *Context);
819 
820 
821 /*
822  * dmopcode
823  */
824 void
825 AcpiDmDisassembleOneOp (
826     ACPI_WALK_STATE         *WalkState,
827     ACPI_OP_WALK_INFO       *Info,
828     ACPI_PARSE_OBJECT       *Op);
829 
830 UINT32
831 AcpiDmListType (
832     ACPI_PARSE_OBJECT       *Op);
833 
834 void
835 AcpiDmMethodFlags (
836     ACPI_PARSE_OBJECT       *Op);
837 
838 void
839 AcpiDmDisplayTargetPathname (
840     ACPI_PARSE_OBJECT       *Op);
841 
842 void
843 AcpiDmNotifyDescription (
844     ACPI_PARSE_OBJECT       *Op);
845 
846 void
847 AcpiDmPredefinedDescription (
848     ACPI_PARSE_OBJECT       *Op);
849 
850 void
851 AcpiDmFieldPredefinedDescription (
852     ACPI_PARSE_OBJECT       *Op);
853 
854 void
855 AcpiDmFieldFlags (
856     ACPI_PARSE_OBJECT       *Op);
857 
858 void
859 AcpiDmAddressSpace (
860     UINT8                   SpaceId);
861 
862 void
863 AcpiDmRegionFlags (
864     ACPI_PARSE_OBJECT       *Op);
865 
866 void
867 AcpiDmMatchOp (
868     ACPI_PARSE_OBJECT       *Op);
869 
870 
871 /*
872  * dmnames
873  */
874 UINT32
875 AcpiDmDumpName (
876     UINT32                  Name);
877 
878 ACPI_STATUS
879 AcpiPsDisplayObjectPathname (
880     ACPI_WALK_STATE         *WalkState,
881     ACPI_PARSE_OBJECT       *Op);
882 
883 void
884 AcpiDmNamestring (
885     char                    *Name);
886 
887 
888 /*
889  * dmbuffer
890  */
891 void
892 AcpiDmDisasmByteList (
893     UINT32                  Level,
894     UINT8                   *ByteData,
895     UINT32                  ByteCount);
896 
897 void
898 AcpiDmByteList (
899     ACPI_OP_WALK_INFO       *Info,
900     ACPI_PARSE_OBJECT       *Op);
901 
902 void
903 AcpiDmCheckForHardwareId (
904     ACPI_PARSE_OBJECT       *Op);
905 
906 void
907 AcpiDmDecompressEisaId (
908     UINT32                  EncodedId);
909 
910 BOOLEAN
911 AcpiDmIsUuidBuffer (
912     ACPI_PARSE_OBJECT       *Op);
913 
914 BOOLEAN
915 AcpiDmIsUnicodeBuffer (
916     ACPI_PARSE_OBJECT       *Op);
917 
918 BOOLEAN
919 AcpiDmIsStringBuffer (
920     ACPI_PARSE_OBJECT       *Op);
921 
922 BOOLEAN
923 AcpiDmIsPldBuffer (
924     ACPI_PARSE_OBJECT       *Op);
925 
926 
927 /*
928  * dmdeferred
929  */
930 ACPI_STATUS
931 AcpiDmParseDeferredOps (
932     ACPI_PARSE_OBJECT       *Root);
933 
934 
935 /*
936  * dmextern
937  */
938 ACPI_STATUS
939 AcpiDmAddToExternalFileList (
940     char                    *PathList);
941 
942 void
943 AcpiDmClearExternalFileList (
944     void);
945 
946 void
947 AcpiDmAddOpToExternalList (
948     ACPI_PARSE_OBJECT       *Op,
949     char                    *Path,
950     UINT8                   Type,
951     UINT32                  Value,
952     UINT16                  Flags);
953 
954 void
955 AcpiDmCreateSubobjectForExternal (
956     UINT8                   Type,
957     ACPI_NAMESPACE_NODE     **Node,
958     UINT32                  Value);
959 
960 void
961 AcpiDmAddNodeToExternalList (
962     ACPI_NAMESPACE_NODE     *Node,
963     UINT8                   Type,
964     UINT32                  Value,
965     UINT16                  Flags);
966 
967 void
968 AcpiDmAddExternalListToNamespace (
969     void);
970 
971 void
972 AcpiDmAddOneExternalToNamespace (
973     char                    *Path,
974     UINT8                   Type,
975     UINT32                  Value);
976 
977 UINT32
978 AcpiDmGetUnresolvedExternalMethodCount (
979     void);
980 
981 void
982 AcpiDmClearExternalList (
983     void);
984 
985 void
986 AcpiDmEmitExternals (
987     void);
988 
989 void
990 AcpiDmEmitExternal (
991     ACPI_PARSE_OBJECT       *NameOp,
992     ACPI_PARSE_OBJECT       *TypeOp);
993 
994 void
995 AcpiDmUnresolvedWarning (
996     UINT8                   Type);
997 
998 void
999 AcpiDmGetExternalsFromFile (
1000     void);
1001 
1002 void
1003 AcpiDmMarkExternalConflict (
1004     ACPI_NAMESPACE_NODE     *Node);
1005 
1006 
1007 /*
1008  * dmresrc
1009  */
1010 void
1011 AcpiDmDumpInteger8 (
1012     UINT8                   Value,
1013     const char              *Name);
1014 
1015 void
1016 AcpiDmDumpInteger16 (
1017     UINT16                  Value,
1018     const char              *Name);
1019 
1020 void
1021 AcpiDmDumpInteger32 (
1022     UINT32                  Value,
1023     const char              *Name);
1024 
1025 void
1026 AcpiDmDumpInteger64 (
1027     UINT64                  Value,
1028     const char              *Name);
1029 
1030 void
1031 AcpiDmResourceTemplate (
1032     ACPI_OP_WALK_INFO       *Info,
1033     ACPI_PARSE_OBJECT       *Op,
1034     UINT8                   *ByteData,
1035     UINT32                  ByteCount);
1036 
1037 ACPI_STATUS
1038 AcpiDmIsResourceTemplate (
1039     ACPI_WALK_STATE         *WalkState,
1040     ACPI_PARSE_OBJECT       *Op);
1041 
1042 void
1043 AcpiDmBitList (
1044     UINT16                  Mask);
1045 
1046 void
1047 AcpiDmDescriptorName (
1048     void);
1049 
1050 
1051 /*
1052  * dmresrcl
1053  */
1054 void
1055 AcpiDmWordDescriptor (
1056     ACPI_OP_WALK_INFO       *Info,
1057     AML_RESOURCE            *Resource,
1058     UINT32                  Length,
1059     UINT32                  Level);
1060 
1061 void
1062 AcpiDmDwordDescriptor (
1063     ACPI_OP_WALK_INFO       *Info,
1064     AML_RESOURCE            *Resource,
1065     UINT32                  Length,
1066     UINT32                  Level);
1067 
1068 void
1069 AcpiDmExtendedDescriptor (
1070     ACPI_OP_WALK_INFO       *Info,
1071     AML_RESOURCE            *Resource,
1072     UINT32                  Length,
1073     UINT32                  Level);
1074 
1075 void
1076 AcpiDmQwordDescriptor (
1077     ACPI_OP_WALK_INFO       *Info,
1078     AML_RESOURCE            *Resource,
1079     UINT32                  Length,
1080     UINT32                  Level);
1081 
1082 void
1083 AcpiDmMemory24Descriptor (
1084     ACPI_OP_WALK_INFO       *Info,
1085     AML_RESOURCE            *Resource,
1086     UINT32                  Length,
1087     UINT32                  Level);
1088 
1089 void
1090 AcpiDmMemory32Descriptor (
1091     ACPI_OP_WALK_INFO       *Info,
1092     AML_RESOURCE            *Resource,
1093     UINT32                  Length,
1094     UINT32                  Level);
1095 
1096 void
1097 AcpiDmFixedMemory32Descriptor (
1098     ACPI_OP_WALK_INFO       *Info,
1099     AML_RESOURCE            *Resource,
1100     UINT32                  Length,
1101     UINT32                  Level);
1102 
1103 void
1104 AcpiDmGenericRegisterDescriptor (
1105     ACPI_OP_WALK_INFO       *Info,
1106     AML_RESOURCE            *Resource,
1107     UINT32                  Length,
1108     UINT32                  Level);
1109 
1110 void
1111 AcpiDmInterruptDescriptor (
1112     ACPI_OP_WALK_INFO       *Info,
1113     AML_RESOURCE            *Resource,
1114     UINT32                  Length,
1115     UINT32                  Level);
1116 
1117 void
1118 AcpiDmVendorLargeDescriptor (
1119     ACPI_OP_WALK_INFO       *Info,
1120     AML_RESOURCE            *Resource,
1121     UINT32                  Length,
1122     UINT32                  Level);
1123 
1124 void
1125 AcpiDmGpioDescriptor (
1126     ACPI_OP_WALK_INFO       *Info,
1127     AML_RESOURCE            *Resource,
1128     UINT32                  Length,
1129     UINT32                  Level);
1130 
1131 void
1132 AcpiDmPinFunctionDescriptor (
1133     ACPI_OP_WALK_INFO       *Info,
1134     AML_RESOURCE            *Resource,
1135     UINT32                  Length,
1136     UINT32                  Level);
1137 
1138 void
1139 AcpiDmPinConfigDescriptor (
1140     ACPI_OP_WALK_INFO       *Info,
1141     AML_RESOURCE            *Resource,
1142     UINT32                  Length,
1143     UINT32                  Level);
1144 
1145 void
1146 AcpiDmPinGroupDescriptor (
1147     ACPI_OP_WALK_INFO       *Info,
1148     AML_RESOURCE            *Resource,
1149     UINT32                  Length,
1150     UINT32                  Level);
1151 
1152 void
1153 AcpiDmPinGroupFunctionDescriptor (
1154     ACPI_OP_WALK_INFO       *Info,
1155     AML_RESOURCE            *Resource,
1156     UINT32                  Length,
1157     UINT32                  Level);
1158 
1159 void
1160 AcpiDmPinGroupConfigDescriptor (
1161     ACPI_OP_WALK_INFO       *Info,
1162     AML_RESOURCE            *Resource,
1163     UINT32                  Length,
1164     UINT32                  Level);
1165 
1166 void
1167 AcpiDmSerialBusDescriptor (
1168     ACPI_OP_WALK_INFO       *Info,
1169     AML_RESOURCE            *Resource,
1170     UINT32                  Length,
1171     UINT32                  Level);
1172 
1173 void
1174 AcpiDmVendorCommon (
1175     const char              *Name,
1176     UINT8                   *ByteData,
1177     UINT32                  Length,
1178     UINT32                  Level);
1179 
1180 
1181 /*
1182  * dmresrcs
1183  */
1184 void
1185 AcpiDmIrqDescriptor (
1186     ACPI_OP_WALK_INFO       *Info,
1187     AML_RESOURCE            *Resource,
1188     UINT32                  Length,
1189     UINT32                  Level);
1190 
1191 void
1192 AcpiDmDmaDescriptor (
1193     ACPI_OP_WALK_INFO       *Info,
1194     AML_RESOURCE            *Resource,
1195     UINT32                  Length,
1196     UINT32                  Level);
1197 
1198 void
1199 AcpiDmFixedDmaDescriptor (
1200     ACPI_OP_WALK_INFO       *Info,
1201     AML_RESOURCE            *Resource,
1202     UINT32                  Length,
1203     UINT32                  Level);
1204 
1205 void
1206 AcpiDmIoDescriptor (
1207     ACPI_OP_WALK_INFO       *Info,
1208     AML_RESOURCE            *Resource,
1209     UINT32                  Length,
1210     UINT32                  Level);
1211 
1212 void
1213 AcpiDmFixedIoDescriptor (
1214     ACPI_OP_WALK_INFO       *Info,
1215     AML_RESOURCE            *Resource,
1216     UINT32                  Length,
1217     UINT32                  Level);
1218 
1219 void
1220 AcpiDmStartDependentDescriptor (
1221     ACPI_OP_WALK_INFO       *Info,
1222     AML_RESOURCE            *Resource,
1223     UINT32                  Length,
1224     UINT32                  Level);
1225 
1226 void
1227 AcpiDmEndDependentDescriptor (
1228     ACPI_OP_WALK_INFO       *Info,
1229     AML_RESOURCE            *Resource,
1230     UINT32                  Length,
1231     UINT32                  Level);
1232 
1233 void
1234 AcpiDmVendorSmallDescriptor (
1235     ACPI_OP_WALK_INFO       *Info,
1236     AML_RESOURCE            *Resource,
1237     UINT32                  Length,
1238     UINT32                  Level);
1239 
1240 
1241 /*
1242  * dmutils
1243  */
1244 void
1245 AcpiDmDecodeAttribute (
1246     UINT8                   Attribute);
1247 
1248 void
1249 AcpiDmIndent (
1250     UINT32                  Level);
1251 
1252 BOOLEAN
1253 AcpiDmCommaIfListMember (
1254     ACPI_PARSE_OBJECT       *Op);
1255 
1256 void
1257 AcpiDmCommaIfFieldMember (
1258     ACPI_PARSE_OBJECT       *Op);
1259 
1260 
1261 /*
1262  * dmrestag
1263  */
1264 void
1265 AcpiDmFindResources (
1266     ACPI_PARSE_OBJECT       *Root);
1267 
1268 void
1269 AcpiDmCheckResourceReference (
1270     ACPI_PARSE_OBJECT       *Op,
1271     ACPI_WALK_STATE         *WalkState);
1272 
1273 
1274 /*
1275  * dmcstyle
1276  */
1277 BOOLEAN
1278 AcpiDmCheckForSymbolicOpcode (
1279     ACPI_PARSE_OBJECT       *Op,
1280     ACPI_OP_WALK_INFO       *Info);
1281 
1282 void
1283 AcpiDmCloseOperator (
1284     ACPI_PARSE_OBJECT       *Op);
1285 
1286 
1287 /*
1288  * dmtables
1289  */
1290 ACPI_STATUS
1291 AcpiDmProcessSwitch (
1292     ACPI_PARSE_OBJECT       *Op);
1293 
1294 void
1295 AcpiDmClearTempList(
1296     void);
1297 
1298 /*
1299  * dmtables
1300  */
1301 void
1302 AdDisassemblerHeader (
1303     char                    *Filename,
1304     UINT8                   TableType);
1305 
1306 #define ACPI_IS_AML_TABLE   0
1307 #define ACPI_IS_DATA_TABLE  1
1308 
1309 
1310 /*
1311  * adisasm
1312  */
1313 ACPI_STATUS
1314 AdAmlDisassemble (
1315     BOOLEAN                 OutToFile,
1316     char                    *Filename,
1317     char                    *Prefix,
1318     char                    **OutFilename);
1319 
1320 ACPI_STATUS
1321 AdGetLocalTables (
1322     void);
1323 
1324 ACPI_STATUS
1325 AdParseTable (
1326     ACPI_TABLE_HEADER       *Table,
1327     ACPI_OWNER_ID           *OwnerId,
1328     BOOLEAN                 LoadTable,
1329     BOOLEAN                 External);
1330 
1331 ACPI_STATUS
1332 AdDisplayTables (
1333     char                    *Filename,
1334     ACPI_TABLE_HEADER       *Table);
1335 
1336 ACPI_STATUS
1337 AdDisplayStatistics (
1338     void);
1339 
1340 
1341 /*
1342  * dmwalk
1343  */
1344 UINT32
1345 AcpiDmBlockType (
1346     ACPI_PARSE_OBJECT       *Op);
1347 
1348 
1349 #endif  /* __ACDISASM_H__ */
1350