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