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