xref: /freebsd/sys/contrib/dev/acpica/include/acdisasm.h (revision 4f52dfbb8d6c4d446500c5b097e3806ec219fbd4)
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 - 2018, 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        AcpiDmTableInfoGtdt0[];
413 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdt0a[];
414 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGtdt1[];
415 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHeader[];
416 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest[];
417 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest0[];
418 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest1[];
419 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest2[];
420 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest6[];
421 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest7[];
422 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest8[];
423 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest9[];
424 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest10[];
425 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHest11[];
426 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHestNotify[];
427 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHestBank[];
428 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHpet[];
429 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoLpitHdr[];
430 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoLpit0[];
431 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoLpit1[];
432 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat[];
433 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat0[];
434 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1[];
435 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1a[];
436 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1b[];
437 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat1c[];
438 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat2[];
439 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmat2a[];
440 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoHmatHdr[];
441 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort[];
442 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort0[];
443 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort0a[];
444 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort1[];
445 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort1a[];
446 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort2[];
447 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3[];
448 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3a[];
449 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3b[];
450 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort3c[];
451 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIort4[];
452 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortAcc[];
453 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortHdr[];
454 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortMap[];
455 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIortPad[];
456 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs[];
457 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs0[];
458 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs1[];
459 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs4[];
460 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs8a[];
461 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs8b[];
462 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrs8c[];
463 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoIvrsHdr[];
464 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt[];
465 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt0[];
466 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt1[];
467 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt2[];
468 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt3[];
469 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt4[];
470 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt5[];
471 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt6[];
472 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt7[];
473 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt8[];
474 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt9[];
475 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt10[];
476 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt11[];
477 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt12[];
478 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt13[];
479 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt14[];
480 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadt15[];
481 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMadtHdr[];
482 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMcfg[];
483 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMcfg0[];
484 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMchi[];
485 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst[];
486 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst0[];
487 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst0A[];
488 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst0B[];
489 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst1[];
490 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMpst2[];
491 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMsct[];
492 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMsct0[];
493 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMtmr[];
494 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoMtmr0[];
495 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit[];
496 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfitHdr[];
497 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit0[];
498 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit1[];
499 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit2[];
500 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit2a[];
501 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit3[];
502 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit3a[];
503 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit4[];
504 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit5[];
505 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit6[];
506 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit6a[];
507 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoNfit7[];
508 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPdtt[];
509 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt[];
510 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt0[];
511 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt1[];
512 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt1a[];
513 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmtt2[];
514 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPmttHdr[];
515 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct[];
516 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcctHdr[];
517 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct0[];
518 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct1[];
519 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct2[];
520 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct3[];
521 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPcct4[];
522 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPdtt0[];
523 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt0[];
524 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt0a[];
525 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt1[];
526 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPptt2[];
527 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoPpttHdr[];
528 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoRasf[];
529 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoRsdp1[];
530 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoRsdp2[];
531 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3pt[];
532 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3ptHdr[];
533 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3pt0[];
534 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoS3pt1[];
535 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSbst[];
536 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdei[];
537 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev[];
538 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdevHdr[];
539 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev0[];
540 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev0a[];
541 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev1[];
542 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev1a[];
543 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSdev1b[];
544 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSlic[];
545 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSlit[];
546 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSpcr[];
547 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSpmi[];
548 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat[];
549 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSratHdr[];
550 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat0[];
551 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat1[];
552 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat2[];
553 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat3[];
554 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoSrat4[];
555 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoStao[];
556 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoStaoStr[];
557 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTcpaHdr[];
558 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTcpaClient[];
559 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTcpaServer[];
560 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm2[];
561 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm2a[];
562 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoTpm211[];
563 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoUefi[];
564 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoVrtc[];
565 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoVrtc0[];
566 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWaet[];
567 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWdat[];
568 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWdat0[];
569 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWddt[];
570 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWdrt[];
571 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWpbt[];
572 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWpbt0[];
573 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoWsmt[];
574 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoXenv[];
575 
576 extern ACPI_DMTABLE_INFO        AcpiDmTableInfoGeneric[][2];
577 
578 /*
579  * dmtable and ahtable
580  */
581 extern const ACPI_DMTABLE_DATA  AcpiDmTableData[];
582 extern const AH_TABLE           Gbl_AcpiSupportedTables[];
583 
584 UINT8
585 AcpiDmGenerateChecksum (
586     void                    *Table,
587     UINT32                  Length,
588     UINT8                   OriginalChecksum);
589 
590 const ACPI_DMTABLE_DATA *
591 AcpiDmGetTableData (
592     char                    *Signature);
593 
594 void
595 AcpiDmDumpDataTable (
596     ACPI_TABLE_HEADER       *Table);
597 
598 ACPI_STATUS
599 AcpiDmDumpTable (
600     UINT32                  TableLength,
601     UINT32                  TableOffset,
602     void                    *Table,
603     UINT32                  SubtableLength,
604     ACPI_DMTABLE_INFO        *Info);
605 
606 void
607 AcpiDmLineHeader (
608     UINT32                  Offset,
609     UINT32                  ByteLength,
610     char                    *Name);
611 
612 void
613 AcpiDmLineHeader2 (
614     UINT32                  Offset,
615     UINT32                  ByteLength,
616     char                    *Name,
617     UINT32                  Value);
618 
619 
620 /*
621  * dmtbdump
622  */
623 void
624 AcpiDmDumpBuffer (
625     void                    *Table,
626     UINT32                  BufferOffset,
627     UINT32                  Length,
628     UINT32                  AbsoluteOffset,
629     char                    *Header);
630 
631 void
632 AcpiDmDumpUnicode (
633     void                    *Table,
634     UINT32                  BufferOffset,
635     UINT32                  ByteLength);
636 
637 void
638 AcpiDmDumpAsf (
639     ACPI_TABLE_HEADER       *Table);
640 
641 void
642 AcpiDmDumpCpep (
643     ACPI_TABLE_HEADER       *Table);
644 
645 void
646 AcpiDmDumpCsrt (
647     ACPI_TABLE_HEADER       *Table);
648 
649 void
650 AcpiDmDumpDbg2 (
651     ACPI_TABLE_HEADER       *Table);
652 
653 void
654 AcpiDmDumpDmar (
655     ACPI_TABLE_HEADER       *Table);
656 
657 void
658 AcpiDmDumpDrtm (
659     ACPI_TABLE_HEADER       *Table);
660 
661 void
662 AcpiDmDumpEinj (
663     ACPI_TABLE_HEADER       *Table);
664 
665 void
666 AcpiDmDumpErst (
667     ACPI_TABLE_HEADER       *Table);
668 
669 void
670 AcpiDmDumpFadt (
671     ACPI_TABLE_HEADER       *Table);
672 
673 void
674 AcpiDmDumpFpdt (
675     ACPI_TABLE_HEADER       *Table);
676 
677 void
678 AcpiDmDumpGtdt (
679     ACPI_TABLE_HEADER       *Table);
680 
681 void
682 AcpiDmDumpHest (
683     ACPI_TABLE_HEADER       *Table);
684 
685 void
686 AcpiDmDumpHmat (
687     ACPI_TABLE_HEADER       *Table);
688 
689 void
690 AcpiDmDumpIort (
691     ACPI_TABLE_HEADER       *Table);
692 
693 void
694 AcpiDmDumpIvrs (
695     ACPI_TABLE_HEADER       *Table);
696 
697 void
698 AcpiDmDumpLpit (
699     ACPI_TABLE_HEADER       *Table);
700 
701 void
702 AcpiDmDumpMadt (
703     ACPI_TABLE_HEADER       *Table);
704 
705 void
706 AcpiDmDumpMcfg (
707     ACPI_TABLE_HEADER       *Table);
708 
709 void
710 AcpiDmDumpMpst (
711     ACPI_TABLE_HEADER       *Table);
712 
713 void
714 AcpiDmDumpMsct (
715     ACPI_TABLE_HEADER       *Table);
716 
717 void
718 AcpiDmDumpMtmr (
719     ACPI_TABLE_HEADER       *Table);
720 
721 void
722 AcpiDmDumpNfit (
723     ACPI_TABLE_HEADER       *Table);
724 
725 void
726 AcpiDmDumpPcct (
727     ACPI_TABLE_HEADER       *Table);
728 
729 void
730 AcpiDmDumpPdtt (
731     ACPI_TABLE_HEADER       *Table);
732 
733 void
734 AcpiDmDumpPmtt (
735     ACPI_TABLE_HEADER       *Table);
736 
737 void
738 AcpiDmDumpPptt (
739     ACPI_TABLE_HEADER       *Table);
740 
741 UINT32
742 AcpiDmDumpRsdp (
743     ACPI_TABLE_HEADER       *Table);
744 
745 void
746 AcpiDmDumpRsdt (
747     ACPI_TABLE_HEADER       *Table);
748 
749 UINT32
750 AcpiDmDumpS3pt (
751     ACPI_TABLE_HEADER       *Table);
752 
753 void
754 AcpiDmDumpSdev (
755     ACPI_TABLE_HEADER       *Table);
756 
757 void
758 AcpiDmDumpSlic (
759     ACPI_TABLE_HEADER       *Table);
760 
761 void
762 AcpiDmDumpSlit (
763     ACPI_TABLE_HEADER       *Table);
764 
765 void
766 AcpiDmDumpSrat (
767     ACPI_TABLE_HEADER       *Table);
768 
769 void
770 AcpiDmDumpStao (
771     ACPI_TABLE_HEADER       *Table);
772 
773 void
774 AcpiDmDumpTcpa (
775     ACPI_TABLE_HEADER       *Table);
776 
777 void
778 AcpiDmDumpTpm2 (
779     ACPI_TABLE_HEADER       *Table);
780 
781 void
782 AcpiDmDumpVrtc (
783     ACPI_TABLE_HEADER       *Table);
784 
785 void
786 AcpiDmDumpWdat (
787     ACPI_TABLE_HEADER       *Table);
788 
789 void
790 AcpiDmDumpWpbt (
791     ACPI_TABLE_HEADER       *Table);
792 
793 void
794 AcpiDmDumpXsdt (
795     ACPI_TABLE_HEADER       *Table);
796 
797 
798 /*
799  * dmwalk
800  */
801 void
802 AcpiDmDisassemble (
803     ACPI_WALK_STATE         *WalkState,
804     ACPI_PARSE_OBJECT       *Origin,
805     UINT32                  NumOpcodes);
806 
807 void
808 AcpiDmWalkParseTree (
809     ACPI_PARSE_OBJECT       *Op,
810     ASL_WALK_CALLBACK       DescendingCallback,
811     ASL_WALK_CALLBACK       AscendingCallback,
812     void                    *Context);
813 
814 
815 /*
816  * dmopcode
817  */
818 void
819 AcpiDmDisassembleOneOp (
820     ACPI_WALK_STATE         *WalkState,
821     ACPI_OP_WALK_INFO       *Info,
822     ACPI_PARSE_OBJECT       *Op);
823 
824 UINT32
825 AcpiDmListType (
826     ACPI_PARSE_OBJECT       *Op);
827 
828 void
829 AcpiDmMethodFlags (
830     ACPI_PARSE_OBJECT       *Op);
831 
832 void
833 AcpiDmDisplayTargetPathname (
834     ACPI_PARSE_OBJECT       *Op);
835 
836 void
837 AcpiDmNotifyDescription (
838     ACPI_PARSE_OBJECT       *Op);
839 
840 void
841 AcpiDmPredefinedDescription (
842     ACPI_PARSE_OBJECT       *Op);
843 
844 void
845 AcpiDmFieldPredefinedDescription (
846     ACPI_PARSE_OBJECT       *Op);
847 
848 void
849 AcpiDmFieldFlags (
850     ACPI_PARSE_OBJECT       *Op);
851 
852 void
853 AcpiDmAddressSpace (
854     UINT8                   SpaceId);
855 
856 void
857 AcpiDmRegionFlags (
858     ACPI_PARSE_OBJECT       *Op);
859 
860 void
861 AcpiDmMatchOp (
862     ACPI_PARSE_OBJECT       *Op);
863 
864 
865 /*
866  * dmnames
867  */
868 UINT32
869 AcpiDmDumpName (
870     UINT32                  Name);
871 
872 ACPI_STATUS
873 AcpiPsDisplayObjectPathname (
874     ACPI_WALK_STATE         *WalkState,
875     ACPI_PARSE_OBJECT       *Op);
876 
877 void
878 AcpiDmNamestring (
879     char                    *Name);
880 
881 
882 /*
883  * dmbuffer
884  */
885 void
886 AcpiDmDisasmByteList (
887     UINT32                  Level,
888     UINT8                   *ByteData,
889     UINT32                  ByteCount);
890 
891 void
892 AcpiDmByteList (
893     ACPI_OP_WALK_INFO       *Info,
894     ACPI_PARSE_OBJECT       *Op);
895 
896 void
897 AcpiDmCheckForHardwareId (
898     ACPI_PARSE_OBJECT       *Op);
899 
900 void
901 AcpiDmDecompressEisaId (
902     UINT32                  EncodedId);
903 
904 BOOLEAN
905 AcpiDmIsUuidBuffer (
906     ACPI_PARSE_OBJECT       *Op);
907 
908 BOOLEAN
909 AcpiDmIsUnicodeBuffer (
910     ACPI_PARSE_OBJECT       *Op);
911 
912 BOOLEAN
913 AcpiDmIsStringBuffer (
914     ACPI_PARSE_OBJECT       *Op);
915 
916 BOOLEAN
917 AcpiDmIsPldBuffer (
918     ACPI_PARSE_OBJECT       *Op);
919 
920 
921 /*
922  * dmdeferred
923  */
924 ACPI_STATUS
925 AcpiDmParseDeferredOps (
926     ACPI_PARSE_OBJECT       *Root);
927 
928 
929 /*
930  * dmextern
931  */
932 ACPI_STATUS
933 AcpiDmAddToExternalFileList (
934     char                    *PathList);
935 
936 void
937 AcpiDmClearExternalFileList (
938     void);
939 
940 void
941 AcpiDmAddOpToExternalList (
942     ACPI_PARSE_OBJECT       *Op,
943     char                    *Path,
944     UINT8                   Type,
945     UINT32                  Value,
946     UINT16                  Flags);
947 
948 void
949 AcpiDmCreateSubobjectForExternal (
950     UINT8                   Type,
951     ACPI_NAMESPACE_NODE     **Node,
952     UINT32                  Value);
953 
954 void
955 AcpiDmAddNodeToExternalList (
956     ACPI_NAMESPACE_NODE     *Node,
957     UINT8                   Type,
958     UINT32                  Value,
959     UINT16                  Flags);
960 
961 void
962 AcpiDmAddExternalListToNamespace (
963     void);
964 
965 void
966 AcpiDmAddOneExternalToNamespace (
967     char                    *Path,
968     UINT8                   Type,
969     UINT32                  Value);
970 
971 UINT32
972 AcpiDmGetUnresolvedExternalMethodCount (
973     void);
974 
975 void
976 AcpiDmClearExternalList (
977     void);
978 
979 void
980 AcpiDmEmitExternals (
981     void);
982 
983 void
984 AcpiDmEmitExternal (
985     ACPI_PARSE_OBJECT       *NameOp,
986     ACPI_PARSE_OBJECT       *TypeOp);
987 
988 void
989 AcpiDmUnresolvedWarning (
990     UINT8                   Type);
991 
992 void
993 AcpiDmGetExternalsFromFile (
994     void);
995 
996 void
997 AcpiDmMarkExternalConflict (
998     ACPI_NAMESPACE_NODE     *Node);
999 
1000 
1001 /*
1002  * dmresrc
1003  */
1004 void
1005 AcpiDmDumpInteger8 (
1006     UINT8                   Value,
1007     const char              *Name);
1008 
1009 void
1010 AcpiDmDumpInteger16 (
1011     UINT16                  Value,
1012     const char              *Name);
1013 
1014 void
1015 AcpiDmDumpInteger32 (
1016     UINT32                  Value,
1017     const char              *Name);
1018 
1019 void
1020 AcpiDmDumpInteger64 (
1021     UINT64                  Value,
1022     const char              *Name);
1023 
1024 void
1025 AcpiDmResourceTemplate (
1026     ACPI_OP_WALK_INFO       *Info,
1027     ACPI_PARSE_OBJECT       *Op,
1028     UINT8                   *ByteData,
1029     UINT32                  ByteCount);
1030 
1031 ACPI_STATUS
1032 AcpiDmIsResourceTemplate (
1033     ACPI_WALK_STATE         *WalkState,
1034     ACPI_PARSE_OBJECT       *Op);
1035 
1036 void
1037 AcpiDmBitList (
1038     UINT16                  Mask);
1039 
1040 void
1041 AcpiDmDescriptorName (
1042     void);
1043 
1044 
1045 /*
1046  * dmresrcl
1047  */
1048 void
1049 AcpiDmWordDescriptor (
1050     ACPI_OP_WALK_INFO       *Info,
1051     AML_RESOURCE            *Resource,
1052     UINT32                  Length,
1053     UINT32                  Level);
1054 
1055 void
1056 AcpiDmDwordDescriptor (
1057     ACPI_OP_WALK_INFO       *Info,
1058     AML_RESOURCE            *Resource,
1059     UINT32                  Length,
1060     UINT32                  Level);
1061 
1062 void
1063 AcpiDmExtendedDescriptor (
1064     ACPI_OP_WALK_INFO       *Info,
1065     AML_RESOURCE            *Resource,
1066     UINT32                  Length,
1067     UINT32                  Level);
1068 
1069 void
1070 AcpiDmQwordDescriptor (
1071     ACPI_OP_WALK_INFO       *Info,
1072     AML_RESOURCE            *Resource,
1073     UINT32                  Length,
1074     UINT32                  Level);
1075 
1076 void
1077 AcpiDmMemory24Descriptor (
1078     ACPI_OP_WALK_INFO       *Info,
1079     AML_RESOURCE            *Resource,
1080     UINT32                  Length,
1081     UINT32                  Level);
1082 
1083 void
1084 AcpiDmMemory32Descriptor (
1085     ACPI_OP_WALK_INFO       *Info,
1086     AML_RESOURCE            *Resource,
1087     UINT32                  Length,
1088     UINT32                  Level);
1089 
1090 void
1091 AcpiDmFixedMemory32Descriptor (
1092     ACPI_OP_WALK_INFO       *Info,
1093     AML_RESOURCE            *Resource,
1094     UINT32                  Length,
1095     UINT32                  Level);
1096 
1097 void
1098 AcpiDmGenericRegisterDescriptor (
1099     ACPI_OP_WALK_INFO       *Info,
1100     AML_RESOURCE            *Resource,
1101     UINT32                  Length,
1102     UINT32                  Level);
1103 
1104 void
1105 AcpiDmInterruptDescriptor (
1106     ACPI_OP_WALK_INFO       *Info,
1107     AML_RESOURCE            *Resource,
1108     UINT32                  Length,
1109     UINT32                  Level);
1110 
1111 void
1112 AcpiDmVendorLargeDescriptor (
1113     ACPI_OP_WALK_INFO       *Info,
1114     AML_RESOURCE            *Resource,
1115     UINT32                  Length,
1116     UINT32                  Level);
1117 
1118 void
1119 AcpiDmGpioDescriptor (
1120     ACPI_OP_WALK_INFO       *Info,
1121     AML_RESOURCE            *Resource,
1122     UINT32                  Length,
1123     UINT32                  Level);
1124 
1125 void
1126 AcpiDmPinFunctionDescriptor (
1127     ACPI_OP_WALK_INFO       *Info,
1128     AML_RESOURCE            *Resource,
1129     UINT32                  Length,
1130     UINT32                  Level);
1131 
1132 void
1133 AcpiDmPinConfigDescriptor (
1134     ACPI_OP_WALK_INFO       *Info,
1135     AML_RESOURCE            *Resource,
1136     UINT32                  Length,
1137     UINT32                  Level);
1138 
1139 void
1140 AcpiDmPinGroupDescriptor (
1141     ACPI_OP_WALK_INFO       *Info,
1142     AML_RESOURCE            *Resource,
1143     UINT32                  Length,
1144     UINT32                  Level);
1145 
1146 void
1147 AcpiDmPinGroupFunctionDescriptor (
1148     ACPI_OP_WALK_INFO       *Info,
1149     AML_RESOURCE            *Resource,
1150     UINT32                  Length,
1151     UINT32                  Level);
1152 
1153 void
1154 AcpiDmPinGroupConfigDescriptor (
1155     ACPI_OP_WALK_INFO       *Info,
1156     AML_RESOURCE            *Resource,
1157     UINT32                  Length,
1158     UINT32                  Level);
1159 
1160 void
1161 AcpiDmSerialBusDescriptor (
1162     ACPI_OP_WALK_INFO       *Info,
1163     AML_RESOURCE            *Resource,
1164     UINT32                  Length,
1165     UINT32                  Level);
1166 
1167 void
1168 AcpiDmVendorCommon (
1169     const char              *Name,
1170     UINT8                   *ByteData,
1171     UINT32                  Length,
1172     UINT32                  Level);
1173 
1174 
1175 /*
1176  * dmresrcs
1177  */
1178 void
1179 AcpiDmIrqDescriptor (
1180     ACPI_OP_WALK_INFO       *Info,
1181     AML_RESOURCE            *Resource,
1182     UINT32                  Length,
1183     UINT32                  Level);
1184 
1185 void
1186 AcpiDmDmaDescriptor (
1187     ACPI_OP_WALK_INFO       *Info,
1188     AML_RESOURCE            *Resource,
1189     UINT32                  Length,
1190     UINT32                  Level);
1191 
1192 void
1193 AcpiDmFixedDmaDescriptor (
1194     ACPI_OP_WALK_INFO       *Info,
1195     AML_RESOURCE            *Resource,
1196     UINT32                  Length,
1197     UINT32                  Level);
1198 
1199 void
1200 AcpiDmIoDescriptor (
1201     ACPI_OP_WALK_INFO       *Info,
1202     AML_RESOURCE            *Resource,
1203     UINT32                  Length,
1204     UINT32                  Level);
1205 
1206 void
1207 AcpiDmFixedIoDescriptor (
1208     ACPI_OP_WALK_INFO       *Info,
1209     AML_RESOURCE            *Resource,
1210     UINT32                  Length,
1211     UINT32                  Level);
1212 
1213 void
1214 AcpiDmStartDependentDescriptor (
1215     ACPI_OP_WALK_INFO       *Info,
1216     AML_RESOURCE            *Resource,
1217     UINT32                  Length,
1218     UINT32                  Level);
1219 
1220 void
1221 AcpiDmEndDependentDescriptor (
1222     ACPI_OP_WALK_INFO       *Info,
1223     AML_RESOURCE            *Resource,
1224     UINT32                  Length,
1225     UINT32                  Level);
1226 
1227 void
1228 AcpiDmVendorSmallDescriptor (
1229     ACPI_OP_WALK_INFO       *Info,
1230     AML_RESOURCE            *Resource,
1231     UINT32                  Length,
1232     UINT32                  Level);
1233 
1234 
1235 /*
1236  * dmutils
1237  */
1238 void
1239 AcpiDmDecodeAttribute (
1240     UINT8                   Attribute);
1241 
1242 void
1243 AcpiDmIndent (
1244     UINT32                  Level);
1245 
1246 BOOLEAN
1247 AcpiDmCommaIfListMember (
1248     ACPI_PARSE_OBJECT       *Op);
1249 
1250 void
1251 AcpiDmCommaIfFieldMember (
1252     ACPI_PARSE_OBJECT       *Op);
1253 
1254 
1255 /*
1256  * dmrestag
1257  */
1258 void
1259 AcpiDmFindResources (
1260     ACPI_PARSE_OBJECT       *Root);
1261 
1262 void
1263 AcpiDmCheckResourceReference (
1264     ACPI_PARSE_OBJECT       *Op,
1265     ACPI_WALK_STATE         *WalkState);
1266 
1267 
1268 /*
1269  * dmcstyle
1270  */
1271 BOOLEAN
1272 AcpiDmCheckForSymbolicOpcode (
1273     ACPI_PARSE_OBJECT       *Op,
1274     ACPI_OP_WALK_INFO       *Info);
1275 
1276 void
1277 AcpiDmCloseOperator (
1278     ACPI_PARSE_OBJECT       *Op);
1279 
1280 
1281 /*
1282  * dmtables
1283  */
1284 ACPI_STATUS
1285 AcpiDmProcessSwitch (
1286     ACPI_PARSE_OBJECT       *Op);
1287 
1288 void
1289 AcpiDmClearTempList(
1290     void);
1291 
1292 /*
1293  * dmtables
1294  */
1295 void
1296 AdDisassemblerHeader (
1297     char                    *Filename,
1298     UINT8                   TableType);
1299 
1300 #define ACPI_IS_AML_TABLE   0
1301 #define ACPI_IS_DATA_TABLE  1
1302 
1303 
1304 /*
1305  * adisasm
1306  */
1307 ACPI_STATUS
1308 AdAmlDisassemble (
1309     BOOLEAN                 OutToFile,
1310     char                    *Filename,
1311     char                    *Prefix,
1312     char                    **OutFilename);
1313 
1314 ACPI_STATUS
1315 AdGetLocalTables (
1316     void);
1317 
1318 ACPI_STATUS
1319 AdParseTable (
1320     ACPI_TABLE_HEADER       *Table,
1321     ACPI_OWNER_ID           *OwnerId,
1322     BOOLEAN                 LoadTable,
1323     BOOLEAN                 External);
1324 
1325 ACPI_STATUS
1326 AdDisplayTables (
1327     char                    *Filename,
1328     ACPI_TABLE_HEADER       *Table);
1329 
1330 ACPI_STATUS
1331 AdDisplayStatistics (
1332     void);
1333 
1334 
1335 /*
1336  * dmwalk
1337  */
1338 UINT32
1339 AcpiDmBlockType (
1340     ACPI_PARSE_OBJECT       *Op);
1341 
1342 
1343 #endif  /* __ACDISASM_H__ */
1344