acdisasm.h revision 1.14 1 1.1 jruoho /******************************************************************************
2 1.1 jruoho *
3 1.1 jruoho * Name: acdisasm.h - AML disassembler
4 1.1 jruoho *
5 1.1 jruoho *****************************************************************************/
6 1.1 jruoho
7 1.3 jruoho /*
8 1.12 christos * Copyright (C) 2000 - 2017, Intel Corp.
9 1.1 jruoho * All rights reserved.
10 1.1 jruoho *
11 1.3 jruoho * Redistribution and use in source and binary forms, with or without
12 1.3 jruoho * modification, are permitted provided that the following conditions
13 1.3 jruoho * are met:
14 1.3 jruoho * 1. Redistributions of source code must retain the above copyright
15 1.3 jruoho * notice, this list of conditions, and the following disclaimer,
16 1.3 jruoho * without modification.
17 1.3 jruoho * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 1.3 jruoho * substantially similar to the "NO WARRANTY" disclaimer below
19 1.3 jruoho * ("Disclaimer") and any redistribution must be conditioned upon
20 1.3 jruoho * including a substantially similar Disclaimer requirement for further
21 1.3 jruoho * binary redistribution.
22 1.3 jruoho * 3. Neither the names of the above-listed copyright holders nor the names
23 1.3 jruoho * of any contributors may be used to endorse or promote products derived
24 1.3 jruoho * from this software without specific prior written permission.
25 1.3 jruoho *
26 1.3 jruoho * Alternatively, this software may be distributed under the terms of the
27 1.3 jruoho * GNU General Public License ("GPL") version 2 as published by the Free
28 1.3 jruoho * Software Foundation.
29 1.3 jruoho *
30 1.3 jruoho * NO WARRANTY
31 1.3 jruoho * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 1.3 jruoho * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 1.3 jruoho * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 1.3 jruoho * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 1.3 jruoho * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 1.3 jruoho * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 1.3 jruoho * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 1.3 jruoho * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 1.3 jruoho * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 1.3 jruoho * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 1.3 jruoho * POSSIBILITY OF SUCH DAMAGES.
42 1.3 jruoho */
43 1.1 jruoho
44 1.1 jruoho #ifndef __ACDISASM_H__
45 1.1 jruoho #define __ACDISASM_H__
46 1.1 jruoho
47 1.1 jruoho #include "amlresrc.h"
48 1.1 jruoho
49 1.1 jruoho
50 1.1 jruoho #define BLOCK_NONE 0
51 1.1 jruoho #define BLOCK_PAREN 1
52 1.1 jruoho #define BLOCK_BRACE 2
53 1.1 jruoho #define BLOCK_COMMA_LIST 4
54 1.2 jruoho #define ACPI_DEFAULT_RESNAME *(const UINT32 *) "__RD"
55 1.1 jruoho
56 1.3 jruoho /*
57 1.3 jruoho * Raw table data header. Used by disassembler and data table compiler.
58 1.3 jruoho * Do not change.
59 1.3 jruoho */
60 1.3 jruoho #define ACPI_RAW_TABLE_DATA_HEADER "Raw Table Data"
61 1.3 jruoho
62 1.1 jruoho
63 1.8 christos typedef struct acpi_dmtable_info
64 1.1 jruoho {
65 1.1 jruoho UINT8 Opcode;
66 1.5 christos UINT16 Offset;
67 1.1 jruoho char *Name;
68 1.1 jruoho UINT8 Flags;
69 1.1 jruoho
70 1.1 jruoho } ACPI_DMTABLE_INFO;
71 1.1 jruoho
72 1.5 christos /* Values for Flags field above */
73 1.5 christos
74 1.1 jruoho #define DT_LENGTH 0x01 /* Field is a subtable length */
75 1.1 jruoho #define DT_FLAG 0x02 /* Field is a flag value */
76 1.1 jruoho #define DT_NON_ZERO 0x04 /* Field must be non-zero */
77 1.5 christos #define DT_OPTIONAL 0x08 /* Field is optional */
78 1.5 christos #define DT_DESCRIBES_OPTIONAL 0x10 /* Field describes an optional field (length, etc.) */
79 1.5 christos #define DT_COUNT 0x20 /* Currently not used */
80 1.1 jruoho
81 1.1 jruoho /*
82 1.1 jruoho * Values for Opcode above.
83 1.5 christos * Note: 0-7 must not change, they are used as a flag shift value. Other
84 1.5 christos * than those, new values can be added wherever appropriate.
85 1.1 jruoho */
86 1.5 christos typedef enum
87 1.5 christos {
88 1.5 christos /* Simple Data Types */
89 1.5 christos
90 1.5 christos ACPI_DMT_FLAG0 = 0,
91 1.5 christos ACPI_DMT_FLAG1 = 1,
92 1.5 christos ACPI_DMT_FLAG2 = 2,
93 1.5 christos ACPI_DMT_FLAG3 = 3,
94 1.5 christos ACPI_DMT_FLAG4 = 4,
95 1.5 christos ACPI_DMT_FLAG5 = 5,
96 1.5 christos ACPI_DMT_FLAG6 = 6,
97 1.5 christos ACPI_DMT_FLAG7 = 7,
98 1.5 christos ACPI_DMT_FLAGS0,
99 1.5 christos ACPI_DMT_FLAGS1,
100 1.5 christos ACPI_DMT_FLAGS2,
101 1.5 christos ACPI_DMT_FLAGS4,
102 1.14 christos ACPI_DMT_FLAGS4_0,
103 1.14 christos ACPI_DMT_FLAGS4_4,
104 1.14 christos ACPI_DMT_FLAGS4_8,
105 1.14 christos ACPI_DMT_FLAGS4_12,
106 1.14 christos ACPI_DMT_FLAGS16_16,
107 1.5 christos ACPI_DMT_UINT8,
108 1.5 christos ACPI_DMT_UINT16,
109 1.5 christos ACPI_DMT_UINT24,
110 1.5 christos ACPI_DMT_UINT32,
111 1.5 christos ACPI_DMT_UINT40,
112 1.5 christos ACPI_DMT_UINT48,
113 1.5 christos ACPI_DMT_UINT56,
114 1.5 christos ACPI_DMT_UINT64,
115 1.5 christos ACPI_DMT_BUF7,
116 1.5 christos ACPI_DMT_BUF10,
117 1.11 christos ACPI_DMT_BUF12,
118 1.5 christos ACPI_DMT_BUF16,
119 1.5 christos ACPI_DMT_BUF128,
120 1.5 christos ACPI_DMT_SIG,
121 1.5 christos ACPI_DMT_STRING,
122 1.5 christos ACPI_DMT_NAME4,
123 1.5 christos ACPI_DMT_NAME6,
124 1.5 christos ACPI_DMT_NAME8,
125 1.5 christos
126 1.5 christos /* Types that are decoded to strings and miscellaneous */
127 1.5 christos
128 1.5 christos ACPI_DMT_ACCWIDTH,
129 1.5 christos ACPI_DMT_CHKSUM,
130 1.5 christos ACPI_DMT_GAS,
131 1.5 christos ACPI_DMT_SPACEID,
132 1.5 christos ACPI_DMT_UNICODE,
133 1.5 christos ACPI_DMT_UUID,
134 1.5 christos
135 1.5 christos /* Types used only for the Data Table Compiler */
136 1.5 christos
137 1.5 christos ACPI_DMT_BUFFER,
138 1.7 christos ACPI_DMT_RAW_BUFFER, /* Large, multiple line buffer */
139 1.5 christos ACPI_DMT_DEVICE_PATH,
140 1.5 christos ACPI_DMT_LABEL,
141 1.5 christos ACPI_DMT_PCI_PATH,
142 1.5 christos
143 1.5 christos /* Types that are specific to particular ACPI tables */
144 1.5 christos
145 1.5 christos ACPI_DMT_ASF,
146 1.5 christos ACPI_DMT_DMAR,
147 1.6 christos ACPI_DMT_DMAR_SCOPE,
148 1.5 christos ACPI_DMT_EINJACT,
149 1.5 christos ACPI_DMT_EINJINST,
150 1.5 christos ACPI_DMT_ERSTACT,
151 1.5 christos ACPI_DMT_ERSTINST,
152 1.5 christos ACPI_DMT_FADTPM,
153 1.6 christos ACPI_DMT_GTDT,
154 1.5 christos ACPI_DMT_HEST,
155 1.5 christos ACPI_DMT_HESTNTFY,
156 1.5 christos ACPI_DMT_HESTNTYP,
157 1.14 christos ACPI_DMT_HMAT,
158 1.8 christos ACPI_DMT_IORTMEM,
159 1.5 christos ACPI_DMT_IVRS,
160 1.6 christos ACPI_DMT_LPIT,
161 1.5 christos ACPI_DMT_MADT,
162 1.8 christos ACPI_DMT_NFIT,
163 1.5 christos ACPI_DMT_PCCT,
164 1.5 christos ACPI_DMT_PMTT,
165 1.14 christos ACPI_DMT_PPTT,
166 1.14 christos ACPI_DMT_SDEI,
167 1.5 christos ACPI_DMT_SLIC,
168 1.5 christos ACPI_DMT_SRAT,
169 1.5 christos
170 1.5 christos /* Special opcodes */
171 1.5 christos
172 1.5 christos ACPI_DMT_EXTRA_TEXT,
173 1.5 christos ACPI_DMT_EXIT
174 1.5 christos
175 1.5 christos } ACPI_ENTRY_TYPES;
176 1.1 jruoho
177 1.1 jruoho typedef
178 1.1 jruoho void (*ACPI_DMTABLE_HANDLER) (
179 1.1 jruoho ACPI_TABLE_HEADER *Table);
180 1.1 jruoho
181 1.1 jruoho typedef
182 1.1 jruoho ACPI_STATUS (*ACPI_CMTABLE_HANDLER) (
183 1.1 jruoho void **PFieldList);
184 1.1 jruoho
185 1.1 jruoho typedef struct acpi_dmtable_data
186 1.1 jruoho {
187 1.1 jruoho char *Signature;
188 1.1 jruoho ACPI_DMTABLE_INFO *TableInfo;
189 1.1 jruoho ACPI_DMTABLE_HANDLER TableHandler;
190 1.1 jruoho ACPI_CMTABLE_HANDLER CmTableHandler;
191 1.3 jruoho const unsigned char *Template;
192 1.1 jruoho
193 1.1 jruoho } ACPI_DMTABLE_DATA;
194 1.1 jruoho
195 1.1 jruoho
196 1.1 jruoho typedef struct acpi_op_walk_info
197 1.1 jruoho {
198 1.9 christos ACPI_WALK_STATE *WalkState;
199 1.9 christos ACPI_PARSE_OBJECT *MappingOp;
200 1.9 christos UINT8 *PreviousAml;
201 1.9 christos UINT8 *StartAml;
202 1.1 jruoho UINT32 Level;
203 1.1 jruoho UINT32 LastLevel;
204 1.1 jruoho UINT32 Count;
205 1.1 jruoho UINT32 BitOffset;
206 1.1 jruoho UINT32 Flags;
207 1.9 christos UINT32 AmlOffset;
208 1.1 jruoho
209 1.1 jruoho } ACPI_OP_WALK_INFO;
210 1.1 jruoho
211 1.1 jruoho /*
212 1.1 jruoho * TBD - another copy of this is in asltypes.h, fix
213 1.1 jruoho */
214 1.1 jruoho #ifndef ASL_WALK_CALLBACK_DEFINED
215 1.1 jruoho typedef
216 1.1 jruoho ACPI_STATUS (*ASL_WALK_CALLBACK) (
217 1.1 jruoho ACPI_PARSE_OBJECT *Op,
218 1.1 jruoho UINT32 Level,
219 1.1 jruoho void *Context);
220 1.1 jruoho #define ASL_WALK_CALLBACK_DEFINED
221 1.1 jruoho #endif
222 1.1 jruoho
223 1.5 christos typedef
224 1.5 christos void (*ACPI_RESOURCE_HANDLER) (
225 1.6 christos ACPI_OP_WALK_INFO *Info,
226 1.5 christos AML_RESOURCE *Resource,
227 1.5 christos UINT32 Length,
228 1.5 christos UINT32 Level);
229 1.1 jruoho
230 1.1 jruoho typedef struct acpi_resource_tag
231 1.1 jruoho {
232 1.1 jruoho UINT32 BitIndex;
233 1.1 jruoho char *Tag;
234 1.1 jruoho
235 1.1 jruoho } ACPI_RESOURCE_TAG;
236 1.1 jruoho
237 1.1 jruoho /* Strings used for decoding flags to ASL keywords */
238 1.1 jruoho
239 1.1 jruoho extern const char *AcpiGbl_WordDecode[];
240 1.1 jruoho extern const char *AcpiGbl_IrqDecode[];
241 1.1 jruoho extern const char *AcpiGbl_LockRule[];
242 1.1 jruoho extern const char *AcpiGbl_AccessTypes[];
243 1.1 jruoho extern const char *AcpiGbl_UpdateRules[];
244 1.1 jruoho extern const char *AcpiGbl_MatchOps[];
245 1.1 jruoho
246 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf0[];
247 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1[];
248 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf1a[];
249 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2[];
250 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf2a[];
251 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf3[];
252 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsf4[];
253 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoAsfHdr[];
254 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoBoot[];
255 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoBert[];
256 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoBgrt[];
257 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep[];
258 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoCpep0[];
259 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt0[];
260 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt1[];
261 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2[];
262 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoCsrt2a[];
263 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2[];
264 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Device[];
265 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Addr[];
266 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Size[];
267 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2Name[];
268 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbg2OemData[];
269 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDbgp[];
270 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar[];
271 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarHdr[];
272 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmarScope[];
273 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar0[];
274 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar1[];
275 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar2[];
276 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar3[];
277 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDmar4[];
278 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm[];
279 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0[];
280 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm0a[];
281 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1[];
282 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm1a[];
283 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoDrtm2[];
284 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoEcdt[];
285 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj[];
286 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoEinj0[];
287 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst[];
288 1.3 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoErst0[];
289 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoFacs[];
290 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt1[];
291 1.12 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt2[];
292 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt3[];
293 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt5[];
294 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoFadt6[];
295 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt[];
296 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdtHdr[];
297 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt0[];
298 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoFpdt1[];
299 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoGas[];
300 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt[];
301 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdtHdr[];
302 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0[];
303 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt0a[];
304 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoGtdt1[];
305 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHeader[];
306 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest[];
307 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest0[];
308 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest1[];
309 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest2[];
310 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest6[];
311 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest7[];
312 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest8[];
313 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest9[];
314 1.10 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest10[];
315 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHest11[];
316 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestNotify[];
317 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHestBank[];
318 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoHpet[];
319 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpitHdr[];
320 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit0[];
321 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoLpit1[];
322 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat[];
323 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat0[];
324 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1[];
325 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1a[];
326 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1b[];
327 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat1c[];
328 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2[];
329 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmat2a[];
330 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoHmatHdr[];
331 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort[];
332 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0[];
333 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort0a[];
334 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1[];
335 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort1a[];
336 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort2[];
337 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3[];
338 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3a[];
339 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3b[];
340 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort3c[];
341 1.10 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIort4[];
342 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortAcc[];
343 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortHdr[];
344 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortMap[];
345 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoIortPad[];
346 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs[];
347 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs0[];
348 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs1[];
349 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs4[];
350 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8a[];
351 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8b[];
352 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrs8c[];
353 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoIvrsHdr[];
354 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt[];
355 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt0[];
356 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt1[];
357 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt2[];
358 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt3[];
359 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt4[];
360 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt5[];
361 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt6[];
362 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt7[];
363 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt8[];
364 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt9[];
365 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt10[];
366 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt11[];
367 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt12[];
368 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt13[];
369 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt14[];
370 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadt15[];
371 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMadtHdr[];
372 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg[];
373 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMcfg0[];
374 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMchi[];
375 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst[];
376 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0[];
377 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0A[];
378 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst0B[];
379 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst1[];
380 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMpst2[];
381 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct[];
382 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoMsct0[];
383 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMtmr[];
384 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoMtmr0[];
385 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit[];
386 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfitHdr[];
387 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit0[];
388 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit1[];
389 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2[];
390 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit2a[];
391 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3[];
392 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit3a[];
393 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit4[];
394 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit5[];
395 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6[];
396 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoNfit6a[];
397 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt[];
398 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt0[];
399 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt1[];
400 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt1a[];
401 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmtt2[];
402 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPmttHdr[];
403 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct[];
404 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcctHdr[];
405 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct0[];
406 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct1[];
407 1.10 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct2[];
408 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct3[];
409 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPcct4[];
410 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0[];
411 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt0a[];
412 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt1[];
413 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPptt2[];
414 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoPpttHdr[];
415 1.11 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoRasf[];
416 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp1[];
417 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoRsdp2[];
418 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt[];
419 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3ptHdr[];
420 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt0[];
421 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoS3pt1[];
422 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSbst[];
423 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoSdei[];
424 1.7 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlic[];
425 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSlit[];
426 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpcr[];
427 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSpmi[];
428 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat[];
429 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSratHdr[];
430 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat0[];
431 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat1[];
432 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat2[];
433 1.6 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat3[];
434 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoSrat4[];
435 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoStao[];
436 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoStaoStr[];
437 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaHdr[];
438 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaClient[];
439 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoTcpaServer[];
440 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoTpm2[];
441 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoUefi[];
442 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoVrtc[];
443 1.5 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoVrtc0[];
444 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoWaet[];
445 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat[];
446 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdat0[];
447 1.3 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoWddt[];
448 1.1 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoWdrt[];
449 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt[];
450 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoWpbt0[];
451 1.14 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoWsmt[];
452 1.8 christos extern ACPI_DMTABLE_INFO AcpiDmTableInfoXenv[];
453 1.1 jruoho
454 1.3 jruoho extern ACPI_DMTABLE_INFO AcpiDmTableInfoGeneric[][2];
455 1.3 jruoho
456 1.1 jruoho /*
457 1.8 christos * dmtable and ahtable
458 1.1 jruoho */
459 1.8 christos extern const ACPI_DMTABLE_DATA AcpiDmTableData[];
460 1.12 christos extern const AH_TABLE Gbl_AcpiSupportedTables[];
461 1.3 jruoho
462 1.3 jruoho UINT8
463 1.3 jruoho AcpiDmGenerateChecksum (
464 1.3 jruoho void *Table,
465 1.3 jruoho UINT32 Length,
466 1.3 jruoho UINT8 OriginalChecksum);
467 1.1 jruoho
468 1.8 christos const ACPI_DMTABLE_DATA *
469 1.1 jruoho AcpiDmGetTableData (
470 1.1 jruoho char *Signature);
471 1.1 jruoho
472 1.1 jruoho void
473 1.1 jruoho AcpiDmDumpDataTable (
474 1.1 jruoho ACPI_TABLE_HEADER *Table);
475 1.1 jruoho
476 1.1 jruoho ACPI_STATUS
477 1.1 jruoho AcpiDmDumpTable (
478 1.1 jruoho UINT32 TableLength,
479 1.1 jruoho UINT32 TableOffset,
480 1.1 jruoho void *Table,
481 1.1 jruoho UINT32 SubTableLength,
482 1.1 jruoho ACPI_DMTABLE_INFO *Info);
483 1.1 jruoho
484 1.1 jruoho void
485 1.1 jruoho AcpiDmLineHeader (
486 1.1 jruoho UINT32 Offset,
487 1.1 jruoho UINT32 ByteLength,
488 1.1 jruoho char *Name);
489 1.1 jruoho
490 1.1 jruoho void
491 1.1 jruoho AcpiDmLineHeader2 (
492 1.1 jruoho UINT32 Offset,
493 1.1 jruoho UINT32 ByteLength,
494 1.1 jruoho char *Name,
495 1.1 jruoho UINT32 Value);
496 1.1 jruoho
497 1.1 jruoho
498 1.1 jruoho /*
499 1.1 jruoho * dmtbdump
500 1.1 jruoho */
501 1.1 jruoho void
502 1.7 christos AcpiDmDumpBuffer (
503 1.7 christos void *Table,
504 1.7 christos UINT32 BufferOffset,
505 1.7 christos UINT32 Length,
506 1.7 christos UINT32 AbsoluteOffset,
507 1.8 christos char *Header);
508 1.8 christos
509 1.8 christos void
510 1.8 christos AcpiDmDumpUnicode (
511 1.8 christos void *Table,
512 1.8 christos UINT32 BufferOffset,
513 1.8 christos UINT32 ByteLength);
514 1.7 christos
515 1.7 christos void
516 1.1 jruoho AcpiDmDumpAsf (
517 1.1 jruoho ACPI_TABLE_HEADER *Table);
518 1.1 jruoho
519 1.1 jruoho void
520 1.1 jruoho AcpiDmDumpCpep (
521 1.1 jruoho ACPI_TABLE_HEADER *Table);
522 1.1 jruoho
523 1.1 jruoho void
524 1.5 christos AcpiDmDumpCsrt (
525 1.5 christos ACPI_TABLE_HEADER *Table);
526 1.5 christos
527 1.5 christos void
528 1.5 christos AcpiDmDumpDbg2 (
529 1.5 christos ACPI_TABLE_HEADER *Table);
530 1.5 christos
531 1.5 christos void
532 1.1 jruoho AcpiDmDumpDmar (
533 1.1 jruoho ACPI_TABLE_HEADER *Table);
534 1.1 jruoho
535 1.1 jruoho void
536 1.8 christos AcpiDmDumpDrtm (
537 1.8 christos ACPI_TABLE_HEADER *Table);
538 1.8 christos
539 1.8 christos void
540 1.1 jruoho AcpiDmDumpEinj (
541 1.1 jruoho ACPI_TABLE_HEADER *Table);
542 1.1 jruoho
543 1.1 jruoho void
544 1.1 jruoho AcpiDmDumpErst (
545 1.1 jruoho ACPI_TABLE_HEADER *Table);
546 1.1 jruoho
547 1.1 jruoho void
548 1.1 jruoho AcpiDmDumpFadt (
549 1.1 jruoho ACPI_TABLE_HEADER *Table);
550 1.1 jruoho
551 1.1 jruoho void
552 1.5 christos AcpiDmDumpFpdt (
553 1.5 christos ACPI_TABLE_HEADER *Table);
554 1.5 christos
555 1.5 christos void
556 1.6 christos AcpiDmDumpGtdt (
557 1.6 christos ACPI_TABLE_HEADER *Table);
558 1.6 christos
559 1.6 christos void
560 1.1 jruoho AcpiDmDumpHest (
561 1.1 jruoho ACPI_TABLE_HEADER *Table);
562 1.1 jruoho
563 1.1 jruoho void
564 1.14 christos AcpiDmDumpHmat (
565 1.14 christos ACPI_TABLE_HEADER *Table);
566 1.14 christos
567 1.14 christos void
568 1.8 christos AcpiDmDumpIort (
569 1.8 christos ACPI_TABLE_HEADER *Table);
570 1.8 christos
571 1.8 christos void
572 1.1 jruoho AcpiDmDumpIvrs (
573 1.1 jruoho ACPI_TABLE_HEADER *Table);
574 1.1 jruoho
575 1.1 jruoho void
576 1.6 christos AcpiDmDumpLpit (
577 1.6 christos ACPI_TABLE_HEADER *Table);
578 1.6 christos
579 1.6 christos void
580 1.5 christos AcpiDmDumpMadt (
581 1.5 christos ACPI_TABLE_HEADER *Table);
582 1.5 christos
583 1.5 christos void
584 1.1 jruoho AcpiDmDumpMcfg (
585 1.1 jruoho ACPI_TABLE_HEADER *Table);
586 1.1 jruoho
587 1.1 jruoho void
588 1.5 christos AcpiDmDumpMpst (
589 1.1 jruoho ACPI_TABLE_HEADER *Table);
590 1.1 jruoho
591 1.1 jruoho void
592 1.1 jruoho AcpiDmDumpMsct (
593 1.1 jruoho ACPI_TABLE_HEADER *Table);
594 1.1 jruoho
595 1.5 christos void
596 1.5 christos AcpiDmDumpMtmr (
597 1.5 christos ACPI_TABLE_HEADER *Table);
598 1.5 christos
599 1.5 christos void
600 1.8 christos AcpiDmDumpNfit (
601 1.8 christos ACPI_TABLE_HEADER *Table);
602 1.8 christos
603 1.8 christos void
604 1.5 christos AcpiDmDumpPcct (
605 1.5 christos ACPI_TABLE_HEADER *Table);
606 1.5 christos
607 1.5 christos void
608 1.5 christos AcpiDmDumpPmtt (
609 1.5 christos ACPI_TABLE_HEADER *Table);
610 1.5 christos
611 1.14 christos void
612 1.14 christos AcpiDmDumpPptt (
613 1.14 christos ACPI_TABLE_HEADER *Table);
614 1.14 christos
615 1.1 jruoho UINT32
616 1.1 jruoho AcpiDmDumpRsdp (
617 1.1 jruoho ACPI_TABLE_HEADER *Table);
618 1.1 jruoho
619 1.1 jruoho void
620 1.1 jruoho AcpiDmDumpRsdt (
621 1.1 jruoho ACPI_TABLE_HEADER *Table);
622 1.1 jruoho
623 1.5 christos UINT32
624 1.5 christos AcpiDmDumpS3pt (
625 1.5 christos ACPI_TABLE_HEADER *Table);
626 1.5 christos
627 1.1 jruoho void
628 1.4 jruoho AcpiDmDumpSlic (
629 1.4 jruoho ACPI_TABLE_HEADER *Table);
630 1.4 jruoho
631 1.4 jruoho void
632 1.1 jruoho AcpiDmDumpSlit (
633 1.1 jruoho ACPI_TABLE_HEADER *Table);
634 1.1 jruoho
635 1.1 jruoho void
636 1.1 jruoho AcpiDmDumpSrat (
637 1.1 jruoho ACPI_TABLE_HEADER *Table);
638 1.1 jruoho
639 1.1 jruoho void
640 1.8 christos AcpiDmDumpStao (
641 1.8 christos ACPI_TABLE_HEADER *Table);
642 1.8 christos
643 1.8 christos void
644 1.8 christos AcpiDmDumpTcpa (
645 1.8 christos ACPI_TABLE_HEADER *Table);
646 1.8 christos
647 1.8 christos void
648 1.5 christos AcpiDmDumpVrtc (
649 1.5 christos ACPI_TABLE_HEADER *Table);
650 1.5 christos
651 1.5 christos void
652 1.1 jruoho AcpiDmDumpWdat (
653 1.1 jruoho ACPI_TABLE_HEADER *Table);
654 1.1 jruoho
655 1.1 jruoho void
656 1.8 christos AcpiDmDumpWpbt (
657 1.8 christos ACPI_TABLE_HEADER *Table);
658 1.8 christos
659 1.8 christos void
660 1.1 jruoho AcpiDmDumpXsdt (
661 1.1 jruoho ACPI_TABLE_HEADER *Table);
662 1.1 jruoho
663 1.1 jruoho
664 1.1 jruoho /*
665 1.1 jruoho * dmwalk
666 1.1 jruoho */
667 1.1 jruoho void
668 1.1 jruoho AcpiDmDisassemble (
669 1.1 jruoho ACPI_WALK_STATE *WalkState,
670 1.1 jruoho ACPI_PARSE_OBJECT *Origin,
671 1.1 jruoho UINT32 NumOpcodes);
672 1.1 jruoho
673 1.1 jruoho void
674 1.1 jruoho AcpiDmWalkParseTree (
675 1.1 jruoho ACPI_PARSE_OBJECT *Op,
676 1.1 jruoho ASL_WALK_CALLBACK DescendingCallback,
677 1.1 jruoho ASL_WALK_CALLBACK AscendingCallback,
678 1.1 jruoho void *Context);
679 1.1 jruoho
680 1.1 jruoho
681 1.1 jruoho /*
682 1.1 jruoho * dmopcode
683 1.1 jruoho */
684 1.1 jruoho void
685 1.1 jruoho AcpiDmDisassembleOneOp (
686 1.1 jruoho ACPI_WALK_STATE *WalkState,
687 1.1 jruoho ACPI_OP_WALK_INFO *Info,
688 1.1 jruoho ACPI_PARSE_OBJECT *Op);
689 1.1 jruoho
690 1.1 jruoho UINT32
691 1.1 jruoho AcpiDmListType (
692 1.1 jruoho ACPI_PARSE_OBJECT *Op);
693 1.1 jruoho
694 1.1 jruoho void
695 1.1 jruoho AcpiDmMethodFlags (
696 1.1 jruoho ACPI_PARSE_OBJECT *Op);
697 1.1 jruoho
698 1.1 jruoho void
699 1.6 christos AcpiDmDisplayTargetPathname (
700 1.6 christos ACPI_PARSE_OBJECT *Op);
701 1.6 christos
702 1.6 christos void
703 1.6 christos AcpiDmNotifyDescription (
704 1.6 christos ACPI_PARSE_OBJECT *Op);
705 1.6 christos
706 1.6 christos void
707 1.5 christos AcpiDmPredefinedDescription (
708 1.5 christos ACPI_PARSE_OBJECT *Op);
709 1.5 christos
710 1.5 christos void
711 1.5 christos AcpiDmFieldPredefinedDescription (
712 1.5 christos ACPI_PARSE_OBJECT *Op);
713 1.5 christos
714 1.5 christos void
715 1.1 jruoho AcpiDmFieldFlags (
716 1.1 jruoho ACPI_PARSE_OBJECT *Op);
717 1.1 jruoho
718 1.1 jruoho void
719 1.1 jruoho AcpiDmAddressSpace (
720 1.1 jruoho UINT8 SpaceId);
721 1.1 jruoho
722 1.1 jruoho void
723 1.1 jruoho AcpiDmRegionFlags (
724 1.1 jruoho ACPI_PARSE_OBJECT *Op);
725 1.1 jruoho
726 1.1 jruoho void
727 1.1 jruoho AcpiDmMatchOp (
728 1.1 jruoho ACPI_PARSE_OBJECT *Op);
729 1.1 jruoho
730 1.1 jruoho
731 1.1 jruoho /*
732 1.1 jruoho * dmnames
733 1.1 jruoho */
734 1.1 jruoho UINT32
735 1.1 jruoho AcpiDmDumpName (
736 1.1 jruoho UINT32 Name);
737 1.1 jruoho
738 1.1 jruoho ACPI_STATUS
739 1.1 jruoho AcpiPsDisplayObjectPathname (
740 1.1 jruoho ACPI_WALK_STATE *WalkState,
741 1.1 jruoho ACPI_PARSE_OBJECT *Op);
742 1.1 jruoho
743 1.1 jruoho void
744 1.1 jruoho AcpiDmNamestring (
745 1.1 jruoho char *Name);
746 1.1 jruoho
747 1.1 jruoho
748 1.1 jruoho /*
749 1.1 jruoho * dmbuffer
750 1.1 jruoho */
751 1.1 jruoho void
752 1.1 jruoho AcpiDmDisasmByteList (
753 1.1 jruoho UINT32 Level,
754 1.1 jruoho UINT8 *ByteData,
755 1.1 jruoho UINT32 ByteCount);
756 1.1 jruoho
757 1.1 jruoho void
758 1.1 jruoho AcpiDmByteList (
759 1.1 jruoho ACPI_OP_WALK_INFO *Info,
760 1.1 jruoho ACPI_PARSE_OBJECT *Op);
761 1.1 jruoho
762 1.1 jruoho void
763 1.6 christos AcpiDmCheckForHardwareId (
764 1.1 jruoho ACPI_PARSE_OBJECT *Op);
765 1.1 jruoho
766 1.1 jruoho void
767 1.6 christos AcpiDmDecompressEisaId (
768 1.1 jruoho UINT32 EncodedId);
769 1.1 jruoho
770 1.1 jruoho BOOLEAN
771 1.6 christos AcpiDmIsUuidBuffer (
772 1.6 christos ACPI_PARSE_OBJECT *Op);
773 1.6 christos
774 1.6 christos BOOLEAN
775 1.1 jruoho AcpiDmIsUnicodeBuffer (
776 1.1 jruoho ACPI_PARSE_OBJECT *Op);
777 1.1 jruoho
778 1.1 jruoho BOOLEAN
779 1.1 jruoho AcpiDmIsStringBuffer (
780 1.1 jruoho ACPI_PARSE_OBJECT *Op);
781 1.1 jruoho
782 1.5 christos BOOLEAN
783 1.5 christos AcpiDmIsPldBuffer (
784 1.5 christos ACPI_PARSE_OBJECT *Op);
785 1.5 christos
786 1.5 christos
787 1.5 christos /*
788 1.5 christos * dmdeferred
789 1.5 christos */
790 1.5 christos ACPI_STATUS
791 1.5 christos AcpiDmParseDeferredOps (
792 1.5 christos ACPI_PARSE_OBJECT *Root);
793 1.5 christos
794 1.1 jruoho
795 1.1 jruoho /*
796 1.1 jruoho * dmextern
797 1.1 jruoho */
798 1.3 jruoho ACPI_STATUS
799 1.3 jruoho AcpiDmAddToExternalFileList (
800 1.3 jruoho char *PathList);
801 1.3 jruoho
802 1.3 jruoho void
803 1.3 jruoho AcpiDmClearExternalFileList (
804 1.3 jruoho void);
805 1.3 jruoho
806 1.1 jruoho void
807 1.5 christos AcpiDmAddOpToExternalList (
808 1.1 jruoho ACPI_PARSE_OBJECT *Op,
809 1.1 jruoho char *Path,
810 1.1 jruoho UINT8 Type,
811 1.5 christos UINT32 Value,
812 1.5 christos UINT16 Flags);
813 1.5 christos
814 1.5 christos void
815 1.14 christos AcpiDmCreateSubobjectForExternal (
816 1.14 christos UINT8 Type,
817 1.14 christos ACPI_NAMESPACE_NODE **Node,
818 1.14 christos UINT32 Value);
819 1.14 christos
820 1.14 christos void
821 1.5 christos AcpiDmAddNodeToExternalList (
822 1.5 christos ACPI_NAMESPACE_NODE *Node,
823 1.5 christos UINT8 Type,
824 1.5 christos UINT32 Value,
825 1.5 christos UINT16 Flags);
826 1.1 jruoho
827 1.1 jruoho void
828 1.14 christos AcpiDmAddExternalListToNamespace (
829 1.1 jruoho void);
830 1.1 jruoho
831 1.14 christos void
832 1.14 christos AcpiDmAddOneExternalToNamespace (
833 1.14 christos char *Path,
834 1.14 christos UINT8 Type,
835 1.14 christos UINT32 Value);
836 1.14 christos
837 1.1 jruoho UINT32
838 1.14 christos AcpiDmGetUnresolvedExternalMethodCount (
839 1.1 jruoho void);
840 1.1 jruoho
841 1.1 jruoho void
842 1.1 jruoho AcpiDmClearExternalList (
843 1.1 jruoho void);
844 1.1 jruoho
845 1.1 jruoho void
846 1.1 jruoho AcpiDmEmitExternals (
847 1.1 jruoho void);
848 1.1 jruoho
849 1.5 christos void
850 1.13 christos AcpiDmEmitExternal (
851 1.13 christos ACPI_PARSE_OBJECT *NameOp,
852 1.13 christos ACPI_PARSE_OBJECT *TypeOp);
853 1.13 christos
854 1.13 christos void
855 1.5 christos AcpiDmUnresolvedWarning (
856 1.5 christos UINT8 Type);
857 1.5 christos
858 1.5 christos void
859 1.5 christos AcpiDmGetExternalsFromFile (
860 1.5 christos void);
861 1.1 jruoho
862 1.14 christos void
863 1.14 christos AcpiDmMarkExternalConflict (
864 1.14 christos ACPI_NAMESPACE_NODE *Node);
865 1.14 christos
866 1.14 christos
867 1.1 jruoho /*
868 1.1 jruoho * dmresrc
869 1.1 jruoho */
870 1.1 jruoho void
871 1.1 jruoho AcpiDmDumpInteger8 (
872 1.1 jruoho UINT8 Value,
873 1.2 jruoho const char *Name);
874 1.1 jruoho
875 1.1 jruoho void
876 1.1 jruoho AcpiDmDumpInteger16 (
877 1.1 jruoho UINT16 Value,
878 1.2 jruoho const char *Name);
879 1.1 jruoho
880 1.1 jruoho void
881 1.1 jruoho AcpiDmDumpInteger32 (
882 1.1 jruoho UINT32 Value,
883 1.2 jruoho const char *Name);
884 1.1 jruoho
885 1.1 jruoho void
886 1.1 jruoho AcpiDmDumpInteger64 (
887 1.1 jruoho UINT64 Value,
888 1.2 jruoho const char *Name);
889 1.1 jruoho
890 1.1 jruoho void
891 1.1 jruoho AcpiDmResourceTemplate (
892 1.1 jruoho ACPI_OP_WALK_INFO *Info,
893 1.1 jruoho ACPI_PARSE_OBJECT *Op,
894 1.1 jruoho UINT8 *ByteData,
895 1.1 jruoho UINT32 ByteCount);
896 1.1 jruoho
897 1.1 jruoho ACPI_STATUS
898 1.1 jruoho AcpiDmIsResourceTemplate (
899 1.5 christos ACPI_WALK_STATE *WalkState,
900 1.1 jruoho ACPI_PARSE_OBJECT *Op);
901 1.1 jruoho
902 1.1 jruoho void
903 1.1 jruoho AcpiDmBitList (
904 1.1 jruoho UINT16 Mask);
905 1.1 jruoho
906 1.1 jruoho void
907 1.1 jruoho AcpiDmDescriptorName (
908 1.1 jruoho void);
909 1.1 jruoho
910 1.1 jruoho
911 1.1 jruoho /*
912 1.1 jruoho * dmresrcl
913 1.1 jruoho */
914 1.1 jruoho void
915 1.1 jruoho AcpiDmWordDescriptor (
916 1.6 christos ACPI_OP_WALK_INFO *Info,
917 1.1 jruoho AML_RESOURCE *Resource,
918 1.1 jruoho UINT32 Length,
919 1.1 jruoho UINT32 Level);
920 1.1 jruoho
921 1.1 jruoho void
922 1.1 jruoho AcpiDmDwordDescriptor (
923 1.6 christos ACPI_OP_WALK_INFO *Info,
924 1.1 jruoho AML_RESOURCE *Resource,
925 1.1 jruoho UINT32 Length,
926 1.1 jruoho UINT32 Level);
927 1.1 jruoho
928 1.1 jruoho void
929 1.1 jruoho AcpiDmExtendedDescriptor (
930 1.6 christos ACPI_OP_WALK_INFO *Info,
931 1.1 jruoho AML_RESOURCE *Resource,
932 1.1 jruoho UINT32 Length,
933 1.1 jruoho UINT32 Level);
934 1.1 jruoho
935 1.1 jruoho void
936 1.1 jruoho AcpiDmQwordDescriptor (
937 1.6 christos ACPI_OP_WALK_INFO *Info,
938 1.1 jruoho AML_RESOURCE *Resource,
939 1.1 jruoho UINT32 Length,
940 1.1 jruoho UINT32 Level);
941 1.1 jruoho
942 1.1 jruoho void
943 1.1 jruoho AcpiDmMemory24Descriptor (
944 1.6 christos ACPI_OP_WALK_INFO *Info,
945 1.1 jruoho AML_RESOURCE *Resource,
946 1.1 jruoho UINT32 Length,
947 1.1 jruoho UINT32 Level);
948 1.1 jruoho
949 1.1 jruoho void
950 1.1 jruoho AcpiDmMemory32Descriptor (
951 1.6 christos ACPI_OP_WALK_INFO *Info,
952 1.1 jruoho AML_RESOURCE *Resource,
953 1.1 jruoho UINT32 Length,
954 1.1 jruoho UINT32 Level);
955 1.1 jruoho
956 1.1 jruoho void
957 1.1 jruoho AcpiDmFixedMemory32Descriptor (
958 1.6 christos ACPI_OP_WALK_INFO *Info,
959 1.1 jruoho AML_RESOURCE *Resource,
960 1.1 jruoho UINT32 Length,
961 1.1 jruoho UINT32 Level);
962 1.1 jruoho
963 1.1 jruoho void
964 1.1 jruoho AcpiDmGenericRegisterDescriptor (
965 1.6 christos ACPI_OP_WALK_INFO *Info,
966 1.1 jruoho AML_RESOURCE *Resource,
967 1.1 jruoho UINT32 Length,
968 1.1 jruoho UINT32 Level);
969 1.1 jruoho
970 1.1 jruoho void
971 1.1 jruoho AcpiDmInterruptDescriptor (
972 1.6 christos ACPI_OP_WALK_INFO *Info,
973 1.1 jruoho AML_RESOURCE *Resource,
974 1.1 jruoho UINT32 Length,
975 1.1 jruoho UINT32 Level);
976 1.1 jruoho
977 1.1 jruoho void
978 1.1 jruoho AcpiDmVendorLargeDescriptor (
979 1.6 christos ACPI_OP_WALK_INFO *Info,
980 1.1 jruoho AML_RESOURCE *Resource,
981 1.1 jruoho UINT32 Length,
982 1.1 jruoho UINT32 Level);
983 1.1 jruoho
984 1.1 jruoho void
985 1.5 christos AcpiDmGpioDescriptor (
986 1.6 christos ACPI_OP_WALK_INFO *Info,
987 1.5 christos AML_RESOURCE *Resource,
988 1.5 christos UINT32 Length,
989 1.5 christos UINT32 Level);
990 1.5 christos
991 1.5 christos void
992 1.14 christos AcpiDmPinFunctionDescriptor (
993 1.14 christos ACPI_OP_WALK_INFO *Info,
994 1.14 christos AML_RESOURCE *Resource,
995 1.14 christos UINT32 Length,
996 1.14 christos UINT32 Level);
997 1.14 christos
998 1.14 christos void
999 1.14 christos AcpiDmPinConfigDescriptor (
1000 1.14 christos ACPI_OP_WALK_INFO *Info,
1001 1.14 christos AML_RESOURCE *Resource,
1002 1.14 christos UINT32 Length,
1003 1.14 christos UINT32 Level);
1004 1.14 christos
1005 1.14 christos void
1006 1.14 christos AcpiDmPinGroupDescriptor (
1007 1.14 christos ACPI_OP_WALK_INFO *Info,
1008 1.14 christos AML_RESOURCE *Resource,
1009 1.14 christos UINT32 Length,
1010 1.14 christos UINT32 Level);
1011 1.14 christos
1012 1.14 christos void
1013 1.14 christos AcpiDmPinGroupFunctionDescriptor (
1014 1.14 christos ACPI_OP_WALK_INFO *Info,
1015 1.14 christos AML_RESOURCE *Resource,
1016 1.14 christos UINT32 Length,
1017 1.14 christos UINT32 Level);
1018 1.14 christos
1019 1.14 christos void
1020 1.14 christos AcpiDmPinGroupConfigDescriptor (
1021 1.14 christos ACPI_OP_WALK_INFO *Info,
1022 1.14 christos AML_RESOURCE *Resource,
1023 1.14 christos UINT32 Length,
1024 1.14 christos UINT32 Level);
1025 1.14 christos
1026 1.14 christos void
1027 1.5 christos AcpiDmSerialBusDescriptor (
1028 1.6 christos ACPI_OP_WALK_INFO *Info,
1029 1.5 christos AML_RESOURCE *Resource,
1030 1.5 christos UINT32 Length,
1031 1.5 christos UINT32 Level);
1032 1.5 christos
1033 1.5 christos void
1034 1.1 jruoho AcpiDmVendorCommon (
1035 1.2 jruoho const char *Name,
1036 1.1 jruoho UINT8 *ByteData,
1037 1.1 jruoho UINT32 Length,
1038 1.1 jruoho UINT32 Level);
1039 1.1 jruoho
1040 1.1 jruoho
1041 1.1 jruoho /*
1042 1.1 jruoho * dmresrcs
1043 1.1 jruoho */
1044 1.1 jruoho void
1045 1.1 jruoho AcpiDmIrqDescriptor (
1046 1.6 christos ACPI_OP_WALK_INFO *Info,
1047 1.1 jruoho AML_RESOURCE *Resource,
1048 1.1 jruoho UINT32 Length,
1049 1.1 jruoho UINT32 Level);
1050 1.1 jruoho
1051 1.1 jruoho void
1052 1.1 jruoho AcpiDmDmaDescriptor (
1053 1.6 christos ACPI_OP_WALK_INFO *Info,
1054 1.1 jruoho AML_RESOURCE *Resource,
1055 1.1 jruoho UINT32 Length,
1056 1.1 jruoho UINT32 Level);
1057 1.1 jruoho
1058 1.1 jruoho void
1059 1.5 christos AcpiDmFixedDmaDescriptor (
1060 1.6 christos ACPI_OP_WALK_INFO *Info,
1061 1.5 christos AML_RESOURCE *Resource,
1062 1.5 christos UINT32 Length,
1063 1.5 christos UINT32 Level);
1064 1.5 christos
1065 1.5 christos void
1066 1.1 jruoho AcpiDmIoDescriptor (
1067 1.6 christos ACPI_OP_WALK_INFO *Info,
1068 1.1 jruoho AML_RESOURCE *Resource,
1069 1.1 jruoho UINT32 Length,
1070 1.1 jruoho UINT32 Level);
1071 1.1 jruoho
1072 1.1 jruoho void
1073 1.1 jruoho AcpiDmFixedIoDescriptor (
1074 1.6 christos ACPI_OP_WALK_INFO *Info,
1075 1.1 jruoho AML_RESOURCE *Resource,
1076 1.1 jruoho UINT32 Length,
1077 1.1 jruoho UINT32 Level);
1078 1.1 jruoho
1079 1.1 jruoho void
1080 1.1 jruoho AcpiDmStartDependentDescriptor (
1081 1.6 christos ACPI_OP_WALK_INFO *Info,
1082 1.1 jruoho AML_RESOURCE *Resource,
1083 1.1 jruoho UINT32 Length,
1084 1.1 jruoho UINT32 Level);
1085 1.1 jruoho
1086 1.1 jruoho void
1087 1.1 jruoho AcpiDmEndDependentDescriptor (
1088 1.6 christos ACPI_OP_WALK_INFO *Info,
1089 1.1 jruoho AML_RESOURCE *Resource,
1090 1.1 jruoho UINT32 Length,
1091 1.1 jruoho UINT32 Level);
1092 1.1 jruoho
1093 1.1 jruoho void
1094 1.1 jruoho AcpiDmVendorSmallDescriptor (
1095 1.6 christos ACPI_OP_WALK_INFO *Info,
1096 1.1 jruoho AML_RESOURCE *Resource,
1097 1.1 jruoho UINT32 Length,
1098 1.1 jruoho UINT32 Level);
1099 1.1 jruoho
1100 1.1 jruoho
1101 1.1 jruoho /*
1102 1.1 jruoho * dmutils
1103 1.1 jruoho */
1104 1.1 jruoho void
1105 1.1 jruoho AcpiDmDecodeAttribute (
1106 1.1 jruoho UINT8 Attribute);
1107 1.1 jruoho
1108 1.1 jruoho void
1109 1.1 jruoho AcpiDmIndent (
1110 1.1 jruoho UINT32 Level);
1111 1.1 jruoho
1112 1.1 jruoho BOOLEAN
1113 1.1 jruoho AcpiDmCommaIfListMember (
1114 1.1 jruoho ACPI_PARSE_OBJECT *Op);
1115 1.1 jruoho
1116 1.1 jruoho void
1117 1.1 jruoho AcpiDmCommaIfFieldMember (
1118 1.1 jruoho ACPI_PARSE_OBJECT *Op);
1119 1.1 jruoho
1120 1.1 jruoho
1121 1.1 jruoho /*
1122 1.1 jruoho * dmrestag
1123 1.1 jruoho */
1124 1.1 jruoho void
1125 1.1 jruoho AcpiDmFindResources (
1126 1.1 jruoho ACPI_PARSE_OBJECT *Root);
1127 1.1 jruoho
1128 1.1 jruoho void
1129 1.1 jruoho AcpiDmCheckResourceReference (
1130 1.1 jruoho ACPI_PARSE_OBJECT *Op,
1131 1.1 jruoho ACPI_WALK_STATE *WalkState);
1132 1.1 jruoho
1133 1.3 jruoho
1134 1.3 jruoho /*
1135 1.7 christos * dmcstyle
1136 1.7 christos */
1137 1.7 christos BOOLEAN
1138 1.7 christos AcpiDmCheckForSymbolicOpcode (
1139 1.7 christos ACPI_PARSE_OBJECT *Op,
1140 1.7 christos ACPI_OP_WALK_INFO *Info);
1141 1.7 christos
1142 1.7 christos void
1143 1.7 christos AcpiDmCloseOperator (
1144 1.7 christos ACPI_PARSE_OBJECT *Op);
1145 1.7 christos
1146 1.7 christos
1147 1.7 christos /*
1148 1.9 christos * dmtables
1149 1.3 jruoho */
1150 1.14 christos ACPI_STATUS
1151 1.14 christos AcpiDmProcessSwitch (
1152 1.14 christos ACPI_PARSE_OBJECT *Op);
1153 1.14 christos
1154 1.14 christos void
1155 1.14 christos AcpiDmClearTempList(
1156 1.14 christos void);
1157 1.14 christos
1158 1.14 christos /*
1159 1.14 christos * dmtables
1160 1.14 christos */
1161 1.3 jruoho void
1162 1.3 jruoho AdDisassemblerHeader (
1163 1.7 christos char *Filename,
1164 1.7 christos UINT8 TableType);
1165 1.3 jruoho
1166 1.7 christos #define ACPI_IS_AML_TABLE 0
1167 1.7 christos #define ACPI_IS_DATA_TABLE 1
1168 1.3 jruoho
1169 1.9 christos
1170 1.9 christos /*
1171 1.9 christos * adisasm
1172 1.9 christos */
1173 1.9 christos ACPI_STATUS
1174 1.9 christos AdAmlDisassemble (
1175 1.9 christos BOOLEAN OutToFile,
1176 1.9 christos char *Filename,
1177 1.9 christos char *Prefix,
1178 1.9 christos char **OutFilename);
1179 1.9 christos
1180 1.9 christos ACPI_STATUS
1181 1.9 christos AdGetLocalTables (
1182 1.9 christos void);
1183 1.9 christos
1184 1.9 christos ACPI_STATUS
1185 1.9 christos AdParseTable (
1186 1.9 christos ACPI_TABLE_HEADER *Table,
1187 1.9 christos ACPI_OWNER_ID *OwnerId,
1188 1.9 christos BOOLEAN LoadTable,
1189 1.9 christos BOOLEAN External);
1190 1.9 christos
1191 1.9 christos ACPI_STATUS
1192 1.9 christos AdDisplayTables (
1193 1.9 christos char *Filename,
1194 1.9 christos ACPI_TABLE_HEADER *Table);
1195 1.9 christos
1196 1.9 christos ACPI_STATUS
1197 1.9 christos AdDisplayStatistics (
1198 1.9 christos void);
1199 1.9 christos
1200 1.13 christos
1201 1.13 christos /*
1202 1.13 christos * dmwalk
1203 1.13 christos */
1204 1.13 christos UINT32
1205 1.13 christos AcpiDmBlockType (
1206 1.13 christos ACPI_PARSE_OBJECT *Op);
1207 1.13 christos
1208 1.13 christos
1209 1.1 jruoho #endif /* __ACDISASM_H__ */
1210