1a9f12690SJung-uk Kim /****************************************************************************** 2a9f12690SJung-uk Kim * 3a9f12690SJung-uk Kim * Name: acdebug.h - ACPI/AML debugger 4a9f12690SJung-uk Kim * 5a9f12690SJung-uk Kim *****************************************************************************/ 6a9f12690SJung-uk Kim 7a9f12690SJung-uk Kim /****************************************************************************** 8a9f12690SJung-uk Kim * 9a9f12690SJung-uk Kim * 1. Copyright Notice 10a9f12690SJung-uk Kim * 119a179dd8SJung-uk Kim * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. 12a9f12690SJung-uk Kim * All rights reserved. 13a9f12690SJung-uk Kim * 14a9f12690SJung-uk Kim * 2. License 15a9f12690SJung-uk Kim * 16a9f12690SJung-uk Kim * 2.1. This is your license from Intel Corp. under its intellectual property 17a9f12690SJung-uk Kim * rights. You may have additional license terms from the party that provided 18a9f12690SJung-uk Kim * you this software, covering your right to use that party's intellectual 19a9f12690SJung-uk Kim * property rights. 20a9f12690SJung-uk Kim * 21a9f12690SJung-uk Kim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 22a9f12690SJung-uk Kim * copy of the source code appearing in this file ("Covered Code") an 23a9f12690SJung-uk Kim * irrevocable, perpetual, worldwide license under Intel's copyrights in the 24a9f12690SJung-uk Kim * base code distributed originally by Intel ("Original Intel Code") to copy, 25a9f12690SJung-uk Kim * make derivatives, distribute, use and display any portion of the Covered 26a9f12690SJung-uk Kim * Code in any form, with the right to sublicense such rights; and 27a9f12690SJung-uk Kim * 28a9f12690SJung-uk Kim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 29a9f12690SJung-uk Kim * license (with the right to sublicense), under only those claims of Intel 30a9f12690SJung-uk Kim * patents that are infringed by the Original Intel Code, to make, use, sell, 31a9f12690SJung-uk Kim * offer to sell, and import the Covered Code and derivative works thereof 32a9f12690SJung-uk Kim * solely to the minimum extent necessary to exercise the above copyright 33a9f12690SJung-uk Kim * license, and in no event shall the patent license extend to any additions 34a9f12690SJung-uk Kim * to or modifications of the Original Intel Code. No other license or right 35a9f12690SJung-uk Kim * is granted directly or by implication, estoppel or otherwise; 36a9f12690SJung-uk Kim * 37a9f12690SJung-uk Kim * The above copyright and patent license is granted only if the following 38a9f12690SJung-uk Kim * conditions are met: 39a9f12690SJung-uk Kim * 40a9f12690SJung-uk Kim * 3. Conditions 41a9f12690SJung-uk Kim * 42a9f12690SJung-uk Kim * 3.1. Redistribution of Source with Rights to Further Distribute Source. 43a9f12690SJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 44a9f12690SJung-uk Kim * Code or modification with rights to further distribute source must include 45a9f12690SJung-uk Kim * the above Copyright Notice, the above License, this list of Conditions, 46a9f12690SJung-uk Kim * and the following Disclaimer and Export Compliance provision. In addition, 47a9f12690SJung-uk Kim * Licensee must cause all Covered Code to which Licensee contributes to 48a9f12690SJung-uk Kim * contain a file documenting the changes Licensee made to create that Covered 49a9f12690SJung-uk Kim * Code and the date of any change. Licensee must include in that file the 50a9f12690SJung-uk Kim * documentation of any changes made by any predecessor Licensee. Licensee 51a9f12690SJung-uk Kim * must include a prominent statement that the modification is derived, 52a9f12690SJung-uk Kim * directly or indirectly, from Original Intel Code. 53a9f12690SJung-uk Kim * 54a9f12690SJung-uk Kim * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 55a9f12690SJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 56a9f12690SJung-uk Kim * Code or modification without rights to further distribute source must 57a9f12690SJung-uk Kim * include the following Disclaimer and Export Compliance provision in the 58a9f12690SJung-uk Kim * documentation and/or other materials provided with distribution. In 59a9f12690SJung-uk Kim * addition, Licensee may not authorize further sublicense of source of any 60a9f12690SJung-uk Kim * portion of the Covered Code, and must include terms to the effect that the 61a9f12690SJung-uk Kim * license from Licensee to its licensee is limited to the intellectual 62a9f12690SJung-uk Kim * property embodied in the software Licensee provides to its licensee, and 63a9f12690SJung-uk Kim * not to intellectual property embodied in modifications its licensee may 64a9f12690SJung-uk Kim * make. 65a9f12690SJung-uk Kim * 66a9f12690SJung-uk Kim * 3.3. Redistribution of Executable. Redistribution in executable form of any 67a9f12690SJung-uk Kim * substantial portion of the Covered Code or modification must reproduce the 68a9f12690SJung-uk Kim * above Copyright Notice, and the following Disclaimer and Export Compliance 69a9f12690SJung-uk Kim * provision in the documentation and/or other materials provided with the 70a9f12690SJung-uk Kim * distribution. 71a9f12690SJung-uk Kim * 72a9f12690SJung-uk Kim * 3.4. Intel retains all right, title, and interest in and to the Original 73a9f12690SJung-uk Kim * Intel Code. 74a9f12690SJung-uk Kim * 75a9f12690SJung-uk Kim * 3.5. Neither the name Intel nor any other trademark owned or controlled by 76a9f12690SJung-uk Kim * Intel shall be used in advertising or otherwise to promote the sale, use or 77a9f12690SJung-uk Kim * other dealings in products derived from or relating to the Covered Code 78a9f12690SJung-uk Kim * without prior written authorization from Intel. 79a9f12690SJung-uk Kim * 80a9f12690SJung-uk Kim * 4. Disclaimer and Export Compliance 81a9f12690SJung-uk Kim * 82a9f12690SJung-uk Kim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 83a9f12690SJung-uk Kim * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 84a9f12690SJung-uk Kim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 85a9f12690SJung-uk Kim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 86a9f12690SJung-uk Kim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 87a9f12690SJung-uk Kim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 88a9f12690SJung-uk Kim * PARTICULAR PURPOSE. 89a9f12690SJung-uk Kim * 90a9f12690SJung-uk Kim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 91a9f12690SJung-uk Kim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 92a9f12690SJung-uk Kim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 93a9f12690SJung-uk Kim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 94a9f12690SJung-uk Kim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 95a9f12690SJung-uk Kim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 96a9f12690SJung-uk Kim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 97a9f12690SJung-uk Kim * LIMITED REMEDY. 98a9f12690SJung-uk Kim * 99a9f12690SJung-uk Kim * 4.3. Licensee shall not export, either directly or indirectly, any of this 100a9f12690SJung-uk Kim * software or system incorporating such software without first obtaining any 101a9f12690SJung-uk Kim * required license or other approval from the U. S. Department of Commerce or 102a9f12690SJung-uk Kim * any other agency or department of the United States Government. In the 103a9f12690SJung-uk Kim * event Licensee exports any such software from the United States or 104a9f12690SJung-uk Kim * re-exports any such software from a foreign destination, Licensee shall 105a9f12690SJung-uk Kim * ensure that the distribution and export/re-export of the software is in 106a9f12690SJung-uk Kim * compliance with all laws, regulations, orders, or other restrictions of the 107a9f12690SJung-uk Kim * U.S. Export Administration Regulations. Licensee agrees that neither it nor 108a9f12690SJung-uk Kim * any of its subsidiaries will export/re-export any technical data, process, 109a9f12690SJung-uk Kim * software, or service, directly or indirectly, to any country for which the 110a9f12690SJung-uk Kim * United States government or any agency thereof requires an export license, 111a9f12690SJung-uk Kim * other governmental approval, or letter of assurance, without first obtaining 112a9f12690SJung-uk Kim * such license, approval or letter. 113a9f12690SJung-uk Kim * 114a9f12690SJung-uk Kim *****************************************************************************/ 115a9f12690SJung-uk Kim 116a9f12690SJung-uk Kim #ifndef __ACDEBUG_H__ 117a9f12690SJung-uk Kim #define __ACDEBUG_H__ 118a9f12690SJung-uk Kim 119a9f12690SJung-uk Kim 120*5a77b11bSJung-uk Kim #define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ 121a9f12690SJung-uk Kim 122a9f12690SJung-uk Kim typedef struct CommandInfo 123a9f12690SJung-uk Kim { 124a9f12690SJung-uk Kim char *Name; /* Command Name */ 125a9f12690SJung-uk Kim UINT8 MinArgs; /* Minimum arguments required */ 126a9f12690SJung-uk Kim 127a9f12690SJung-uk Kim } COMMAND_INFO; 128a9f12690SJung-uk Kim 129a9f12690SJung-uk Kim typedef struct ArgumentInfo 130a9f12690SJung-uk Kim { 131a9f12690SJung-uk Kim char *Name; /* Argument Name */ 132a9f12690SJung-uk Kim 133a9f12690SJung-uk Kim } ARGUMENT_INFO; 134a9f12690SJung-uk Kim 135f556842eSJung-uk Kim typedef struct acpi_execute_walk 136f556842eSJung-uk Kim { 137f556842eSJung-uk Kim UINT32 Count; 138f556842eSJung-uk Kim UINT32 MaxCount; 139f556842eSJung-uk Kim 140f556842eSJung-uk Kim } ACPI_EXECUTE_WALK; 141f556842eSJung-uk Kim 142a9f12690SJung-uk Kim 143a9f12690SJung-uk Kim #define PARAM_LIST(pl) pl 144a9f12690SJung-uk Kim #define DBTEST_OUTPUT_LEVEL(lvl) if (AcpiGbl_DbOpt_verbose) 145a9f12690SJung-uk Kim #define VERBOSE_PRINT(fp) DBTEST_OUTPUT_LEVEL(lvl) {\ 146a9f12690SJung-uk Kim AcpiOsPrintf PARAM_LIST(fp);} 147a9f12690SJung-uk Kim 148a9f12690SJung-uk Kim #define EX_NO_SINGLE_STEP 1 149a9f12690SJung-uk Kim #define EX_SINGLE_STEP 2 150a9f12690SJung-uk Kim 151a9f12690SJung-uk Kim 152a9f12690SJung-uk Kim /* 153a9f12690SJung-uk Kim * dbxface - external debugger interfaces 154a9f12690SJung-uk Kim */ 155a9f12690SJung-uk Kim ACPI_STATUS 156a9f12690SJung-uk Kim AcpiDbInitialize ( 157a9f12690SJung-uk Kim void); 158a9f12690SJung-uk Kim 159a9f12690SJung-uk Kim void 160a9f12690SJung-uk Kim AcpiDbTerminate ( 161a9f12690SJung-uk Kim void); 162a9f12690SJung-uk Kim 163a9f12690SJung-uk Kim ACPI_STATUS 164a9f12690SJung-uk Kim AcpiDbSingleStep ( 165a9f12690SJung-uk Kim ACPI_WALK_STATE *WalkState, 166a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op, 167a9f12690SJung-uk Kim UINT32 OpType); 168a9f12690SJung-uk Kim 169a9f12690SJung-uk Kim 170a9f12690SJung-uk Kim /* 171a9f12690SJung-uk Kim * dbcmds - debug commands and output routines 172a9f12690SJung-uk Kim */ 173a9f12690SJung-uk Kim ACPI_STATUS 174a9f12690SJung-uk Kim AcpiDbDisassembleMethod ( 175a9f12690SJung-uk Kim char *Name); 176a9f12690SJung-uk Kim 177a9f12690SJung-uk Kim void 178a9f12690SJung-uk Kim AcpiDbDisplayTableInfo ( 179a9f12690SJung-uk Kim char *TableArg); 180a9f12690SJung-uk Kim 181a9f12690SJung-uk Kim void 182a9f12690SJung-uk Kim AcpiDbUnloadAcpiTable ( 183a9f12690SJung-uk Kim char *TableArg, 184a9f12690SJung-uk Kim char *InstanceArg); 185a9f12690SJung-uk Kim 186a9f12690SJung-uk Kim void 187a9f12690SJung-uk Kim AcpiDbSetMethodBreakpoint ( 188a9f12690SJung-uk Kim char *Location, 189a9f12690SJung-uk Kim ACPI_WALK_STATE *WalkState, 190a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 191a9f12690SJung-uk Kim 192a9f12690SJung-uk Kim void 193a9f12690SJung-uk Kim AcpiDbSetMethodCallBreakpoint ( 194a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 195a9f12690SJung-uk Kim 196a9f12690SJung-uk Kim void 197a9f12690SJung-uk Kim AcpiDbGetBusInfo ( 198a9f12690SJung-uk Kim void); 199a9f12690SJung-uk Kim 200a9f12690SJung-uk Kim void 201a9f12690SJung-uk Kim AcpiDbDisassembleAml ( 202a9f12690SJung-uk Kim char *Statements, 203a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 204a9f12690SJung-uk Kim 205a9f12690SJung-uk Kim void 206a9f12690SJung-uk Kim AcpiDbDumpNamespace ( 207a9f12690SJung-uk Kim char *StartArg, 208a9f12690SJung-uk Kim char *DepthArg); 209a9f12690SJung-uk Kim 210a9f12690SJung-uk Kim void 211a9f12690SJung-uk Kim AcpiDbDumpNamespaceByOwner ( 212a9f12690SJung-uk Kim char *OwnerArg, 213a9f12690SJung-uk Kim char *DepthArg); 214a9f12690SJung-uk Kim 215a9f12690SJung-uk Kim void 216a9f12690SJung-uk Kim AcpiDbSendNotify ( 217a9f12690SJung-uk Kim char *Name, 218a9f12690SJung-uk Kim UINT32 Value); 219a9f12690SJung-uk Kim 220a9f12690SJung-uk Kim void 221a9f12690SJung-uk Kim AcpiDbSetMethodData ( 222a9f12690SJung-uk Kim char *TypeArg, 223a9f12690SJung-uk Kim char *IndexArg, 224a9f12690SJung-uk Kim char *ValueArg); 225a9f12690SJung-uk Kim 226a9f12690SJung-uk Kim ACPI_STATUS 227a9f12690SJung-uk Kim AcpiDbDisplayObjects ( 228a9f12690SJung-uk Kim char *ObjTypeArg, 229a9f12690SJung-uk Kim char *DisplayCountArg); 230a9f12690SJung-uk Kim 231709fac06SJung-uk Kim void 232709fac06SJung-uk Kim AcpiDbDisplayInterfaces ( 233709fac06SJung-uk Kim char *ActionArg, 234709fac06SJung-uk Kim char *InterfaceNameArg); 235709fac06SJung-uk Kim 236a9f12690SJung-uk Kim ACPI_STATUS 237a9f12690SJung-uk Kim AcpiDbFindNameInNamespace ( 238a9f12690SJung-uk Kim char *NameArg); 239a9f12690SJung-uk Kim 240a9f12690SJung-uk Kim void 241a9f12690SJung-uk Kim AcpiDbSetScope ( 242a9f12690SJung-uk Kim char *Name); 243a9f12690SJung-uk Kim 244a9f12690SJung-uk Kim ACPI_STATUS 245a9f12690SJung-uk Kim AcpiDbSleep ( 246a9f12690SJung-uk Kim char *ObjectArg); 247a9f12690SJung-uk Kim 248a9f12690SJung-uk Kim void 249a9f12690SJung-uk Kim AcpiDbFindReferences ( 250a9f12690SJung-uk Kim char *ObjectArg); 251a9f12690SJung-uk Kim 252a9f12690SJung-uk Kim void 253a9f12690SJung-uk Kim AcpiDbDisplayLocks ( 254a9f12690SJung-uk Kim void); 255a9f12690SJung-uk Kim 256a9f12690SJung-uk Kim void 257a9f12690SJung-uk Kim AcpiDbDisplayResources ( 258a9f12690SJung-uk Kim char *ObjectArg); 259a9f12690SJung-uk Kim 260a9f12690SJung-uk Kim void 261a9f12690SJung-uk Kim AcpiDbDisplayGpes ( 262a9f12690SJung-uk Kim void); 263a9f12690SJung-uk Kim 264a9f12690SJung-uk Kim void 265a9f12690SJung-uk Kim AcpiDbCheckIntegrity ( 266a9f12690SJung-uk Kim void); 267a9f12690SJung-uk Kim 268a9f12690SJung-uk Kim void 269a9f12690SJung-uk Kim AcpiDbGenerateGpe ( 270a9f12690SJung-uk Kim char *GpeArg, 271a9f12690SJung-uk Kim char *BlockArg); 272a9f12690SJung-uk Kim 273a9f12690SJung-uk Kim void 274a9f12690SJung-uk Kim AcpiDbCheckPredefinedNames ( 275a9f12690SJung-uk Kim void); 276a9f12690SJung-uk Kim 277a9f12690SJung-uk Kim void 278a9f12690SJung-uk Kim AcpiDbBatchExecute ( 279f556842eSJung-uk Kim char *CountArg); 280a9f12690SJung-uk Kim 281a9f12690SJung-uk Kim /* 282a9f12690SJung-uk Kim * dbdisply - debug display commands 283a9f12690SJung-uk Kim */ 284a9f12690SJung-uk Kim void 285a9f12690SJung-uk Kim AcpiDbDisplayMethodInfo ( 286a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 287a9f12690SJung-uk Kim 288a9f12690SJung-uk Kim void 289a9f12690SJung-uk Kim AcpiDbDecodeAndDisplayObject ( 290a9f12690SJung-uk Kim char *Target, 291a9f12690SJung-uk Kim char *OutputType); 292a9f12690SJung-uk Kim 293a9f12690SJung-uk Kim void 294a9f12690SJung-uk Kim AcpiDbDisplayResultObject ( 295a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *ObjDesc, 296a9f12690SJung-uk Kim ACPI_WALK_STATE *WalkState); 297a9f12690SJung-uk Kim 298a9f12690SJung-uk Kim ACPI_STATUS 299a9f12690SJung-uk Kim AcpiDbDisplayAllMethods ( 300a9f12690SJung-uk Kim char *DisplayCountArg); 301a9f12690SJung-uk Kim 302a9f12690SJung-uk Kim void 303a9f12690SJung-uk Kim AcpiDbDisplayArguments ( 304a9f12690SJung-uk Kim void); 305a9f12690SJung-uk Kim 306a9f12690SJung-uk Kim void 307a9f12690SJung-uk Kim AcpiDbDisplayLocals ( 308a9f12690SJung-uk Kim void); 309a9f12690SJung-uk Kim 310a9f12690SJung-uk Kim void 311a9f12690SJung-uk Kim AcpiDbDisplayResults ( 312a9f12690SJung-uk Kim void); 313a9f12690SJung-uk Kim 314a9f12690SJung-uk Kim void 315a9f12690SJung-uk Kim AcpiDbDisplayCallingTree ( 316a9f12690SJung-uk Kim void); 317a9f12690SJung-uk Kim 318a9f12690SJung-uk Kim void 319a9f12690SJung-uk Kim AcpiDbDisplayObjectType ( 320a9f12690SJung-uk Kim char *ObjectArg); 321a9f12690SJung-uk Kim 322a9f12690SJung-uk Kim void 323a9f12690SJung-uk Kim AcpiDbDisplayArgumentObject ( 324a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *ObjDesc, 325a9f12690SJung-uk Kim ACPI_WALK_STATE *WalkState); 326a9f12690SJung-uk Kim 327d6dd1baeSJung-uk Kim 328a9f12690SJung-uk Kim /* 329a9f12690SJung-uk Kim * dbexec - debugger control method execution 330a9f12690SJung-uk Kim */ 331a9f12690SJung-uk Kim void 332a9f12690SJung-uk Kim AcpiDbExecute ( 333a9f12690SJung-uk Kim char *Name, 334a9f12690SJung-uk Kim char **Args, 335a9f12690SJung-uk Kim UINT32 Flags); 336a9f12690SJung-uk Kim 337a9f12690SJung-uk Kim void 338a9f12690SJung-uk Kim AcpiDbCreateExecutionThreads ( 339a9f12690SJung-uk Kim char *NumThreadsArg, 340a9f12690SJung-uk Kim char *NumLoopsArg, 341a9f12690SJung-uk Kim char *MethodNameArg); 342a9f12690SJung-uk Kim 343a9f12690SJung-uk Kim #ifdef ACPI_DBG_TRACK_ALLOCATIONS 344a9f12690SJung-uk Kim UINT32 345a9f12690SJung-uk Kim AcpiDbGetCacheInfo ( 346a9f12690SJung-uk Kim ACPI_MEMORY_LIST *Cache); 347a9f12690SJung-uk Kim #endif 348a9f12690SJung-uk Kim 349a9f12690SJung-uk Kim 350a9f12690SJung-uk Kim /* 351a9f12690SJung-uk Kim * dbfileio - Debugger file I/O commands 352a9f12690SJung-uk Kim */ 353a9f12690SJung-uk Kim ACPI_OBJECT_TYPE 354a9f12690SJung-uk Kim AcpiDbMatchArgument ( 355a9f12690SJung-uk Kim char *UserArgument, 356a9f12690SJung-uk Kim ARGUMENT_INFO *Arguments); 357a9f12690SJung-uk Kim 358a9f12690SJung-uk Kim void 359a9f12690SJung-uk Kim AcpiDbCloseDebugFile ( 360a9f12690SJung-uk Kim void); 361a9f12690SJung-uk Kim 362a9f12690SJung-uk Kim void 363a9f12690SJung-uk Kim AcpiDbOpenDebugFile ( 364a9f12690SJung-uk Kim char *Name); 365a9f12690SJung-uk Kim 366a9f12690SJung-uk Kim ACPI_STATUS 367a9f12690SJung-uk Kim AcpiDbLoadAcpiTable ( 368a9f12690SJung-uk Kim char *Filename); 369a9f12690SJung-uk Kim 370a9f12690SJung-uk Kim ACPI_STATUS 371a9f12690SJung-uk Kim AcpiDbGetTableFromFile ( 372a9f12690SJung-uk Kim char *Filename, 373a9f12690SJung-uk Kim ACPI_TABLE_HEADER **Table); 374a9f12690SJung-uk Kim 375a9f12690SJung-uk Kim ACPI_STATUS 376a9f12690SJung-uk Kim AcpiDbReadTableFromFile ( 377a9f12690SJung-uk Kim char *Filename, 378a9f12690SJung-uk Kim ACPI_TABLE_HEADER **Table); 379a9f12690SJung-uk Kim 380a9f12690SJung-uk Kim 381a9f12690SJung-uk Kim /* 382a9f12690SJung-uk Kim * dbhistry - debugger HISTORY command 383a9f12690SJung-uk Kim */ 384a9f12690SJung-uk Kim void 385a9f12690SJung-uk Kim AcpiDbAddToHistory ( 386a9f12690SJung-uk Kim char *CommandLine); 387a9f12690SJung-uk Kim 388a9f12690SJung-uk Kim void 389a9f12690SJung-uk Kim AcpiDbDisplayHistory ( 390a9f12690SJung-uk Kim void); 391a9f12690SJung-uk Kim 392a9f12690SJung-uk Kim char * 393a9f12690SJung-uk Kim AcpiDbGetFromHistory ( 394a9f12690SJung-uk Kim char *CommandNumArg); 395a9f12690SJung-uk Kim 396a9f12690SJung-uk Kim 397a9f12690SJung-uk Kim /* 398a9f12690SJung-uk Kim * dbinput - user front-end to the AML debugger 399a9f12690SJung-uk Kim */ 400a9f12690SJung-uk Kim ACPI_STATUS 401a9f12690SJung-uk Kim AcpiDbCommandDispatch ( 402a9f12690SJung-uk Kim char *InputBuffer, 403a9f12690SJung-uk Kim ACPI_WALK_STATE *WalkState, 404a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 405a9f12690SJung-uk Kim 406a9f12690SJung-uk Kim void ACPI_SYSTEM_XFACE 407a9f12690SJung-uk Kim AcpiDbExecuteThread ( 408a9f12690SJung-uk Kim void *Context); 409a9f12690SJung-uk Kim 410a9f12690SJung-uk Kim ACPI_STATUS 411a9f12690SJung-uk Kim AcpiDbUserCommands ( 412a9f12690SJung-uk Kim char Prompt, 413a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 414a9f12690SJung-uk Kim 415a9f12690SJung-uk Kim 416a9f12690SJung-uk Kim /* 417a9f12690SJung-uk Kim * dbstats - Generation and display of ACPI table statistics 418a9f12690SJung-uk Kim */ 419a9f12690SJung-uk Kim void 420a9f12690SJung-uk Kim AcpiDbGenerateStatistics ( 421a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Root, 422a9f12690SJung-uk Kim BOOLEAN IsMethod); 423a9f12690SJung-uk Kim 424a9f12690SJung-uk Kim ACPI_STATUS 425a9f12690SJung-uk Kim AcpiDbDisplayStatistics ( 426a9f12690SJung-uk Kim char *TypeArg); 427a9f12690SJung-uk Kim 428a9f12690SJung-uk Kim 429a9f12690SJung-uk Kim /* 430a9f12690SJung-uk Kim * dbutils - AML debugger utilities 431a9f12690SJung-uk Kim */ 432a9f12690SJung-uk Kim void 433a9f12690SJung-uk Kim AcpiDbSetOutputDestination ( 434a9f12690SJung-uk Kim UINT32 Where); 435a9f12690SJung-uk Kim 436a9f12690SJung-uk Kim void 437a9f12690SJung-uk Kim AcpiDbDumpExternalObject ( 438a9f12690SJung-uk Kim ACPI_OBJECT *ObjDesc, 439a9f12690SJung-uk Kim UINT32 Level); 440a9f12690SJung-uk Kim 441a9f12690SJung-uk Kim void 442a9f12690SJung-uk Kim AcpiDbPrepNamestring ( 443a9f12690SJung-uk Kim char *Name); 444a9f12690SJung-uk Kim 445a9f12690SJung-uk Kim ACPI_NAMESPACE_NODE * 446a9f12690SJung-uk Kim AcpiDbLocalNsLookup ( 447a9f12690SJung-uk Kim char *Name); 448a9f12690SJung-uk Kim 449a9f12690SJung-uk Kim void 450a9f12690SJung-uk Kim AcpiDbUInt32ToHexString ( 451a9f12690SJung-uk Kim UINT32 Value, 452a9f12690SJung-uk Kim char *Buffer); 453a9f12690SJung-uk Kim 454a9f12690SJung-uk Kim #endif /* __ACDEBUG_H__ */ 455