Print this page
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 - 2013, 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
150 167 /*
168 + * dbconvert - miscellaneous conversion routines
169 + */
170 +ACPI_STATUS
171 +AcpiDbHexCharToValue (
172 + int HexChar,
173 + UINT8 *ReturnValue);
174 +
175 +ACPI_STATUS
176 +AcpiDbConvertToPackage (
177 + char *String,
178 + ACPI_OBJECT *Object);
179 +
180 +ACPI_STATUS
181 +AcpiDbConvertToObject (
182 + ACPI_OBJECT_TYPE Type,
183 + char *String,
184 + ACPI_OBJECT *Object);
185 +
186 +UINT8 *
187 +AcpiDbEncodePldBuffer (
188 + ACPI_PLD_INFO *PldInfo);
189 +
190 +void
191 +AcpiDbDumpPldBuffer (
192 + ACPI_OBJECT *ObjDesc);
193 +
194 +
195 +/*
151 196 * dbmethod - control method commands
152 197 */
153 198 void
154 199 AcpiDbSetMethodBreakpoint (
155 200 char *Location,
156 201 ACPI_WALK_STATE *WalkState,
157 202 ACPI_PARSE_OBJECT *Op);
158 203
159 204 void
160 205 AcpiDbSetMethodCallBreakpoint (
161 206 ACPI_PARSE_OBJECT *Op);
162 207
163 208 void
164 209 AcpiDbSetMethodData (
165 210 char *TypeArg,
166 211 char *IndexArg,
167 212 char *ValueArg);
168 213
169 214 ACPI_STATUS
170 215 AcpiDbDisassembleMethod (
171 216 char *Name);
172 217
173 218 void
174 219 AcpiDbDisassembleAml (
175 220 char *Statements,
176 221 ACPI_PARSE_OBJECT *Op);
177 222
178 223 void
179 224 AcpiDbBatchExecute (
180 225 char *CountArg);
181 226
182 227
183 228 /*
184 229 * dbnames - namespace commands
185 230 */
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
186 231 void
187 232 AcpiDbSetScope (
188 233 char *Name);
189 234
190 235 void
191 236 AcpiDbDumpNamespace (
192 237 char *StartArg,
193 238 char *DepthArg);
194 239
195 240 void
241 +AcpiDbDumpNamespacePaths (
242 + void);
243 +
244 +void
196 245 AcpiDbDumpNamespaceByOwner (
197 246 char *OwnerArg,
198 247 char *DepthArg);
199 248
200 249 ACPI_STATUS
201 250 AcpiDbFindNameInNamespace (
202 251 char *NameArg);
203 252
204 253 void
205 254 AcpiDbCheckPredefinedNames (
206 255 void);
207 256
208 257 ACPI_STATUS
209 258 AcpiDbDisplayObjects (
210 259 char *ObjTypeArg,
211 260 char *DisplayCountArg);
212 261
213 262 void
214 263 AcpiDbCheckIntegrity (
215 264 void);
216 265
217 266 void
218 267 AcpiDbFindReferences (
219 268 char *ObjectArg);
220 269
221 270 void
222 271 AcpiDbGetBusInfo (
223 272 void);
224 273
225 274
226 275 /*
227 276 * dbdisply - debug display commands
228 277 */
229 278 void
230 279 AcpiDbDisplayMethodInfo (
231 280 ACPI_PARSE_OBJECT *Op);
232 281
233 282 void
234 283 AcpiDbDecodeAndDisplayObject (
235 284 char *Target,
236 285 char *OutputType);
237 286
238 287 void
239 288 AcpiDbDisplayResultObject (
240 289 ACPI_OPERAND_OBJECT *ObjDesc,
241 290 ACPI_WALK_STATE *WalkState);
242 291
243 292 ACPI_STATUS
244 293 AcpiDbDisplayAllMethods (
245 294 char *DisplayCountArg);
246 295
247 296 void
248 297 AcpiDbDisplayArguments (
249 298 void);
250 299
251 300 void
252 301 AcpiDbDisplayLocals (
253 302 void);
254 303
255 304 void
256 305 AcpiDbDisplayResults (
257 306 void);
258 307
259 308 void
260 309 AcpiDbDisplayCallingTree (
261 310 void);
262 311
263 312 void
264 313 AcpiDbDisplayObjectType (
265 314 char *ObjectArg);
266 315
267 316 void
268 317 AcpiDbDisplayArgumentObject (
269 318 ACPI_OPERAND_OBJECT *ObjDesc,
270 319 ACPI_WALK_STATE *WalkState);
271 320
272 321
273 322 /*
274 323 * dbexec - debugger control method execution
275 324 */
276 325 void
277 326 AcpiDbExecute (
278 327 char *Name,
↓ open down ↓ |
73 lines elided |
↑ open up ↑ |
279 328 char **Args,
280 329 ACPI_OBJECT_TYPE *Types,
281 330 UINT32 Flags);
282 331
283 332 void
284 333 AcpiDbCreateExecutionThreads (
285 334 char *NumThreadsArg,
286 335 char *NumLoopsArg,
287 336 char *MethodNameArg);
288 337
338 +void
339 +AcpiDbDeleteObjects (
340 + UINT32 Count,
341 + ACPI_OBJECT *Objects);
342 +
289 343 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
290 344 UINT32
291 345 AcpiDbGetCacheInfo (
292 346 ACPI_MEMORY_LIST *Cache);
293 347 #endif
294 348
295 349
296 350 /*
297 351 * dbfileio - Debugger file I/O commands
298 352 */
299 353 ACPI_OBJECT_TYPE
300 354 AcpiDbMatchArgument (
301 355 char *UserArgument,
302 - ARGUMENT_INFO *Arguments);
356 + ACPI_DB_ARGUMENT_INFO *Arguments);
303 357
304 358 void
305 359 AcpiDbCloseDebugFile (
306 360 void);
307 361
308 362 void
309 363 AcpiDbOpenDebugFile (
310 364 char *Name);
311 365
312 366 ACPI_STATUS
313 367 AcpiDbLoadAcpiTable (
314 368 char *Filename);
315 369
316 370 ACPI_STATUS
317 371 AcpiDbGetTableFromFile (
318 372 char *Filename,
319 373 ACPI_TABLE_HEADER **Table);
320 374
321 375 ACPI_STATUS
322 376 AcpiDbReadTableFromFile (
323 377 char *Filename,
324 378 ACPI_TABLE_HEADER **Table);
325 379
326 380
327 381 /*
328 382 * dbhistry - debugger HISTORY command
329 383 */
330 384 void
331 385 AcpiDbAddToHistory (
↓ open down ↓ |
19 lines elided |
↑ open up ↑ |
332 386 char *CommandLine);
333 387
334 388 void
335 389 AcpiDbDisplayHistory (
336 390 void);
337 391
338 392 char *
339 393 AcpiDbGetFromHistory (
340 394 char *CommandNumArg);
341 395
396 +char *
397 +AcpiDbGetHistoryByIndex (
398 + UINT32 CommanddNum);
342 399
400 +
343 401 /*
344 402 * dbinput - user front-end to the AML debugger
345 403 */
346 404 ACPI_STATUS
347 405 AcpiDbCommandDispatch (
348 406 char *InputBuffer,
349 407 ACPI_WALK_STATE *WalkState,
350 408 ACPI_PARSE_OBJECT *Op);
351 409
352 410 void ACPI_SYSTEM_XFACE
353 411 AcpiDbExecuteThread (
354 412 void *Context);
355 413
356 414 ACPI_STATUS
357 415 AcpiDbUserCommands (
358 416 char Prompt,
359 417 ACPI_PARSE_OBJECT *Op);
360 418
361 419 char *
362 420 AcpiDbGetNextToken (
363 421 char *String,
364 422 char **Next,
365 423 ACPI_OBJECT_TYPE *ReturnType);
366 424
367 425
368 426 /*
369 427 * dbstats - Generation and display of ACPI table statistics
370 428 */
371 429 void
372 430 AcpiDbGenerateStatistics (
373 431 ACPI_PARSE_OBJECT *Root,
374 432 BOOLEAN IsMethod);
375 433
376 434 ACPI_STATUS
377 435 AcpiDbDisplayStatistics (
378 436 char *TypeArg);
379 437
380 438
381 439 /*
382 440 * dbutils - AML debugger utilities
383 441 */
384 442 void
385 443 AcpiDbSetOutputDestination (
386 444 UINT32 Where);
387 445
388 446 void
389 447 AcpiDbDumpExternalObject (
390 448 ACPI_OBJECT *ObjDesc,
391 449 UINT32 Level);
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
392 450
393 451 void
394 452 AcpiDbPrepNamestring (
395 453 char *Name);
396 454
397 455 ACPI_NAMESPACE_NODE *
398 456 AcpiDbLocalNsLookup (
399 457 char *Name);
400 458
401 459 void
402 -AcpiDbUInt32ToHexString (
460 +AcpiDbUint32ToHexString (
403 461 UINT32 Value,
404 462 char *Buffer);
405 463
406 464 #endif /* __ACDEBUG_H__ */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX