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