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