Print this page
update to acpica-unix2-20140114
update to acpica-unix2-20130927
acpica-unix2-20130823
PANKOVs restructure
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/sys/acpi/acdebug.h
+++ new/usr/src/common/acpica/include/acdebug.h
1 1 /******************************************************************************
2 2 *
3 3 * Name: acdebug.h - ACPI/AML debugger
4 4 *
5 5 *****************************************************************************/
6 6
7 7 /*
8 - * Copyright (C) 2000 - 2011, Intel Corp.
8 + * Copyright (C) 2000 - 2014, Intel Corp.
9 9 * All rights reserved.
10 10 *
11 11 * Redistribution and use in source and binary forms, with or without
12 12 * modification, are permitted provided that the following conditions
13 13 * are met:
14 14 * 1. Redistributions of source code must retain the above copyright
15 15 * notice, this list of conditions, and the following disclaimer,
16 16 * without modification.
17 17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 18 * substantially similar to the "NO WARRANTY" disclaimer below
19 19 * ("Disclaimer") and any redistribution must be conditioned upon
20 20 * including a substantially similar Disclaimer requirement for further
21 21 * binary redistribution.
22 22 * 3. Neither the names of the above-listed copyright holders nor the names
23 23 * of any contributors may be used to endorse or promote products derived
24 24 * from this software without specific prior written permission.
25 25 *
26 26 * Alternatively, this software may be distributed under the terms of the
27 27 * GNU General Public License ("GPL") version 2 as published by the Free
28 28 * Software Foundation.
29 29 *
30 30 * NO WARRANTY
31 31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
40 40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 41 * POSSIBILITY OF SUCH DAMAGES.
42 42 */
43 43
44 44 #ifndef __ACDEBUG_H__
45 45 #define __ACDEBUG_H__
46 46
47 47
48 48 #define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */
49 49
50 -typedef struct CommandInfo
50 +typedef struct acpi_db_command_info
51 51 {
52 52 char *Name; /* Command Name */
53 53 UINT8 MinArgs; /* Minimum arguments required */
54 54
55 -} COMMAND_INFO;
55 +} ACPI_DB_COMMAND_INFO;
56 56
57 -typedef struct ArgumentInfo
57 +typedef struct acpi_db_command_help
58 58 {
59 + UINT8 LineCount; /* Number of help lines */
60 + char *Invocation; /* Command Invocation */
61 + char *Description; /* Command Description */
62 +
63 +} ACPI_DB_COMMAND_HELP;
64 +
65 +typedef struct acpi_db_argument_info
66 +{
59 67 char *Name; /* Argument Name */
60 68
61 -} ARGUMENT_INFO;
69 +} ACPI_DB_ARGUMENT_INFO;
62 70
63 -typedef struct acpi_execute_walk
71 +typedef struct acpi_db_execute_walk
64 72 {
65 73 UINT32 Count;
66 74 UINT32 MaxCount;
67 75
68 -} ACPI_EXECUTE_WALK;
76 +} ACPI_DB_EXECUTE_WALK;
69 77
70 78
71 79 #define PARAM_LIST(pl) pl
72 80 #define DBTEST_OUTPUT_LEVEL(lvl) if (AcpiGbl_DbOpt_verbose)
73 81 #define VERBOSE_PRINT(fp) DBTEST_OUTPUT_LEVEL(lvl) {\
74 82 AcpiOsPrintf PARAM_LIST(fp);}
75 83
76 84 #define EX_NO_SINGLE_STEP 1
77 85 #define EX_SINGLE_STEP 2
78 86
79 87
80 88 /*
81 89 * dbxface - external debugger interfaces
82 90 */
83 91 ACPI_STATUS
84 92 AcpiDbInitialize (
85 93 void);
86 94
87 95 void
88 96 AcpiDbTerminate (
89 97 void);
90 98
91 99 ACPI_STATUS
92 100 AcpiDbSingleStep (
93 101 ACPI_WALK_STATE *WalkState,
94 102 ACPI_PARSE_OBJECT *Op,
95 103 UINT32 OpType);
96 104
97 105
98 106 /*
99 107 * dbcmds - debug commands and output routines
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
100 108 */
101 109 ACPI_NAMESPACE_NODE *
102 110 AcpiDbConvertToNode (
103 111 char *InString);
104 112
105 113 void
106 114 AcpiDbDisplayTableInfo (
107 115 char *TableArg);
108 116
109 117 void
118 +AcpiDbDisplayTemplate (
119 + char *BufferArg);
120 +
121 +void
110 122 AcpiDbUnloadAcpiTable (
111 - char *TableArg,
112 - char *InstanceArg);
123 + char *Name);
113 124
114 125 void
115 126 AcpiDbSendNotify (
116 127 char *Name,
117 128 UINT32 Value);
118 129
119 130 void
120 131 AcpiDbDisplayInterfaces (
121 132 char *ActionArg,
122 133 char *InterfaceNameArg);
123 134
124 135 ACPI_STATUS
125 136 AcpiDbSleep (
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
126 137 char *ObjectArg);
127 138
128 139 void
129 140 AcpiDbDisplayLocks (
130 141 void);
131 142
132 143 void
133 144 AcpiDbDisplayResources (
134 145 char *ObjectArg);
135 146
147 +ACPI_HW_DEPENDENT_RETURN_VOID (
136 148 void
137 149 AcpiDbDisplayGpes (
138 - void);
150 + void))
139 151
140 152 void
141 153 AcpiDbDisplayHandlers (
142 154 void);
143 155
156 +ACPI_HW_DEPENDENT_RETURN_VOID (
144 157 void
145 158 AcpiDbGenerateGpe (
146 159 char *GpeArg,
147 - char *BlockArg);
160 + char *BlockArg))
148 161
162 +ACPI_HW_DEPENDENT_RETURN_VOID (
163 +void
164 +AcpiDbGenerateSci (
165 + void))
149 166
167 +void
168 +AcpiDbExecuteTest (
169 + char *TypeArg);
170 +
171 +
150 172 /*
173 + * dbconvert - miscellaneous conversion routines
174 + */
175 +ACPI_STATUS
176 +AcpiDbHexCharToValue (
177 + int HexChar,
178 + UINT8 *ReturnValue);
179 +
180 +ACPI_STATUS
181 +AcpiDbConvertToPackage (
182 + char *String,
183 + ACPI_OBJECT *Object);
184 +
185 +ACPI_STATUS
186 +AcpiDbConvertToObject (
187 + ACPI_OBJECT_TYPE Type,
188 + char *String,
189 + ACPI_OBJECT *Object);
190 +
191 +UINT8 *
192 +AcpiDbEncodePldBuffer (
193 + ACPI_PLD_INFO *PldInfo);
194 +
195 +void
196 +AcpiDbDumpPldBuffer (
197 + ACPI_OBJECT *ObjDesc);
198 +
199 +
200 +/*
151 201 * dbmethod - control method commands
152 202 */
153 203 void
154 204 AcpiDbSetMethodBreakpoint (
155 205 char *Location,
156 206 ACPI_WALK_STATE *WalkState,
157 207 ACPI_PARSE_OBJECT *Op);
158 208
159 209 void
160 210 AcpiDbSetMethodCallBreakpoint (
161 211 ACPI_PARSE_OBJECT *Op);
162 212
163 213 void
164 214 AcpiDbSetMethodData (
165 215 char *TypeArg,
166 216 char *IndexArg,
167 217 char *ValueArg);
168 218
169 219 ACPI_STATUS
170 220 AcpiDbDisassembleMethod (
171 221 char *Name);
172 222
173 223 void
174 224 AcpiDbDisassembleAml (
175 225 char *Statements,
176 226 ACPI_PARSE_OBJECT *Op);
177 227
178 228 void
179 229 AcpiDbBatchExecute (
180 230 char *CountArg);
181 231
182 232
183 233 /*
184 234 * dbnames - namespace commands
185 235 */
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
186 236 void
187 237 AcpiDbSetScope (
188 238 char *Name);
189 239
190 240 void
191 241 AcpiDbDumpNamespace (
192 242 char *StartArg,
193 243 char *DepthArg);
194 244
195 245 void
246 +AcpiDbDumpNamespacePaths (
247 + void);
248 +
249 +void
196 250 AcpiDbDumpNamespaceByOwner (
197 251 char *OwnerArg,
198 252 char *DepthArg);
199 253
200 254 ACPI_STATUS
201 255 AcpiDbFindNameInNamespace (
202 256 char *NameArg);
203 257
204 258 void
205 259 AcpiDbCheckPredefinedNames (
206 260 void);
207 261
208 262 ACPI_STATUS
209 263 AcpiDbDisplayObjects (
210 264 char *ObjTypeArg,
211 265 char *DisplayCountArg);
212 266
213 267 void
214 268 AcpiDbCheckIntegrity (
215 269 void);
216 270
217 271 void
218 272 AcpiDbFindReferences (
219 273 char *ObjectArg);
220 274
221 275 void
222 276 AcpiDbGetBusInfo (
223 277 void);
224 278
225 279
226 280 /*
227 281 * dbdisply - debug display commands
228 282 */
229 283 void
230 284 AcpiDbDisplayMethodInfo (
231 285 ACPI_PARSE_OBJECT *Op);
232 286
233 287 void
234 288 AcpiDbDecodeAndDisplayObject (
235 289 char *Target,
236 290 char *OutputType);
237 291
238 292 void
239 293 AcpiDbDisplayResultObject (
240 294 ACPI_OPERAND_OBJECT *ObjDesc,
241 295 ACPI_WALK_STATE *WalkState);
242 296
243 297 ACPI_STATUS
244 298 AcpiDbDisplayAllMethods (
245 299 char *DisplayCountArg);
246 300
247 301 void
248 302 AcpiDbDisplayArguments (
249 303 void);
250 304
251 305 void
252 306 AcpiDbDisplayLocals (
253 307 void);
254 308
255 309 void
256 310 AcpiDbDisplayResults (
257 311 void);
258 312
259 313 void
260 314 AcpiDbDisplayCallingTree (
261 315 void);
262 316
263 317 void
264 318 AcpiDbDisplayObjectType (
265 319 char *ObjectArg);
266 320
267 321 void
268 322 AcpiDbDisplayArgumentObject (
269 323 ACPI_OPERAND_OBJECT *ObjDesc,
270 324 ACPI_WALK_STATE *WalkState);
271 325
272 326
273 327 /*
274 328 * dbexec - debugger control method execution
275 329 */
276 330 void
277 331 AcpiDbExecute (
278 332 char *Name,
↓ open down ↓ |
73 lines elided |
↑ open up ↑ |
279 333 char **Args,
280 334 ACPI_OBJECT_TYPE *Types,
281 335 UINT32 Flags);
282 336
283 337 void
284 338 AcpiDbCreateExecutionThreads (
285 339 char *NumThreadsArg,
286 340 char *NumLoopsArg,
287 341 char *MethodNameArg);
288 342
343 +void
344 +AcpiDbDeleteObjects (
345 + UINT32 Count,
346 + ACPI_OBJECT *Objects);
347 +
289 348 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
290 349 UINT32
291 350 AcpiDbGetCacheInfo (
292 351 ACPI_MEMORY_LIST *Cache);
293 352 #endif
294 353
295 354
296 355 /*
297 356 * dbfileio - Debugger file I/O commands
298 357 */
299 358 ACPI_OBJECT_TYPE
300 359 AcpiDbMatchArgument (
301 360 char *UserArgument,
302 - ARGUMENT_INFO *Arguments);
361 + ACPI_DB_ARGUMENT_INFO *Arguments);
303 362
304 363 void
305 364 AcpiDbCloseDebugFile (
306 365 void);
307 366
308 367 void
309 368 AcpiDbOpenDebugFile (
310 369 char *Name);
311 370
312 371 ACPI_STATUS
313 372 AcpiDbLoadAcpiTable (
314 373 char *Filename);
315 374
316 375 ACPI_STATUS
317 376 AcpiDbGetTableFromFile (
318 377 char *Filename,
319 378 ACPI_TABLE_HEADER **Table);
320 379
321 380 ACPI_STATUS
322 381 AcpiDbReadTableFromFile (
323 382 char *Filename,
324 383 ACPI_TABLE_HEADER **Table);
325 384
326 385
327 386 /*
328 387 * dbhistry - debugger HISTORY command
329 388 */
330 389 void
331 390 AcpiDbAddToHistory (
↓ open down ↓ |
19 lines elided |
↑ open up ↑ |
332 391 char *CommandLine);
333 392
334 393 void
335 394 AcpiDbDisplayHistory (
336 395 void);
337 396
338 397 char *
339 398 AcpiDbGetFromHistory (
340 399 char *CommandNumArg);
341 400
401 +char *
402 +AcpiDbGetHistoryByIndex (
403 + UINT32 CommanddNum);
342 404
405 +
343 406 /*
344 407 * dbinput - user front-end to the AML debugger
345 408 */
346 409 ACPI_STATUS
347 410 AcpiDbCommandDispatch (
348 411 char *InputBuffer,
349 412 ACPI_WALK_STATE *WalkState,
350 413 ACPI_PARSE_OBJECT *Op);
351 414
352 415 void ACPI_SYSTEM_XFACE
353 416 AcpiDbExecuteThread (
354 417 void *Context);
355 418
356 419 ACPI_STATUS
357 420 AcpiDbUserCommands (
358 421 char Prompt,
359 422 ACPI_PARSE_OBJECT *Op);
360 423
361 424 char *
362 425 AcpiDbGetNextToken (
363 426 char *String,
364 427 char **Next,
365 428 ACPI_OBJECT_TYPE *ReturnType);
366 429
367 430
368 431 /*
369 432 * dbstats - Generation and display of ACPI table statistics
370 433 */
371 434 void
372 435 AcpiDbGenerateStatistics (
373 436 ACPI_PARSE_OBJECT *Root,
374 437 BOOLEAN IsMethod);
375 438
376 439 ACPI_STATUS
377 440 AcpiDbDisplayStatistics (
378 441 char *TypeArg);
379 442
380 443
381 444 /*
382 445 * dbutils - AML debugger utilities
383 446 */
384 447 void
385 448 AcpiDbSetOutputDestination (
386 449 UINT32 Where);
387 450
388 451 void
389 452 AcpiDbDumpExternalObject (
390 453 ACPI_OBJECT *ObjDesc,
391 454 UINT32 Level);
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
392 455
393 456 void
394 457 AcpiDbPrepNamestring (
395 458 char *Name);
396 459
397 460 ACPI_NAMESPACE_NODE *
398 461 AcpiDbLocalNsLookup (
399 462 char *Name);
400 463
401 464 void
402 -AcpiDbUInt32ToHexString (
465 +AcpiDbUint32ToHexString (
403 466 UINT32 Value,
404 467 char *Buffer);
405 468
406 469 #endif /* __ACDEBUG_H__ */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX