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