1a9f12690SJung-uk Kim /****************************************************************************** 2a9f12690SJung-uk Kim * 3a9f12690SJung-uk Kim * Name: acdebug.h - ACPI/AML debugger 4a9f12690SJung-uk Kim * 5a9f12690SJung-uk Kim *****************************************************************************/ 6a9f12690SJung-uk Kim 70d84335fSJung-uk Kim /****************************************************************************** 80d84335fSJung-uk Kim * 90d84335fSJung-uk Kim * 1. Copyright Notice 100d84335fSJung-uk Kim * 11*58308fadSJung-uk Kim * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp. 12a9f12690SJung-uk Kim * All rights reserved. 13a9f12690SJung-uk Kim * 140d84335fSJung-uk Kim * 2. License 150d84335fSJung-uk Kim * 160d84335fSJung-uk Kim * 2.1. This is your license from Intel Corp. under its intellectual property 170d84335fSJung-uk Kim * rights. You may have additional license terms from the party that provided 180d84335fSJung-uk Kim * you this software, covering your right to use that party's intellectual 190d84335fSJung-uk Kim * property rights. 200d84335fSJung-uk Kim * 210d84335fSJung-uk Kim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 220d84335fSJung-uk Kim * copy of the source code appearing in this file ("Covered Code") an 230d84335fSJung-uk Kim * irrevocable, perpetual, worldwide license under Intel's copyrights in the 240d84335fSJung-uk Kim * base code distributed originally by Intel ("Original Intel Code") to copy, 250d84335fSJung-uk Kim * make derivatives, distribute, use and display any portion of the Covered 260d84335fSJung-uk Kim * Code in any form, with the right to sublicense such rights; and 270d84335fSJung-uk Kim * 280d84335fSJung-uk Kim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 290d84335fSJung-uk Kim * license (with the right to sublicense), under only those claims of Intel 300d84335fSJung-uk Kim * patents that are infringed by the Original Intel Code, to make, use, sell, 310d84335fSJung-uk Kim * offer to sell, and import the Covered Code and derivative works thereof 320d84335fSJung-uk Kim * solely to the minimum extent necessary to exercise the above copyright 330d84335fSJung-uk Kim * license, and in no event shall the patent license extend to any additions 340d84335fSJung-uk Kim * to or modifications of the Original Intel Code. No other license or right 350d84335fSJung-uk Kim * is granted directly or by implication, estoppel or otherwise; 360d84335fSJung-uk Kim * 370d84335fSJung-uk Kim * The above copyright and patent license is granted only if the following 380d84335fSJung-uk Kim * conditions are met: 390d84335fSJung-uk Kim * 400d84335fSJung-uk Kim * 3. Conditions 410d84335fSJung-uk Kim * 420d84335fSJung-uk Kim * 3.1. Redistribution of Source with Rights to Further Distribute Source. 430d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 440d84335fSJung-uk Kim * Code or modification with rights to further distribute source must include 450d84335fSJung-uk Kim * the above Copyright Notice, the above License, this list of Conditions, 460d84335fSJung-uk Kim * and the following Disclaimer and Export Compliance provision. In addition, 470d84335fSJung-uk Kim * Licensee must cause all Covered Code to which Licensee contributes to 480d84335fSJung-uk Kim * contain a file documenting the changes Licensee made to create that Covered 490d84335fSJung-uk Kim * Code and the date of any change. Licensee must include in that file the 500d84335fSJung-uk Kim * documentation of any changes made by any predecessor Licensee. Licensee 510d84335fSJung-uk Kim * must include a prominent statement that the modification is derived, 520d84335fSJung-uk Kim * directly or indirectly, from Original Intel Code. 530d84335fSJung-uk Kim * 540d84335fSJung-uk Kim * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 550d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 560d84335fSJung-uk Kim * Code or modification without rights to further distribute source must 570d84335fSJung-uk Kim * include the following Disclaimer and Export Compliance provision in the 580d84335fSJung-uk Kim * documentation and/or other materials provided with distribution. In 590d84335fSJung-uk Kim * addition, Licensee may not authorize further sublicense of source of any 600d84335fSJung-uk Kim * portion of the Covered Code, and must include terms to the effect that the 610d84335fSJung-uk Kim * license from Licensee to its licensee is limited to the intellectual 620d84335fSJung-uk Kim * property embodied in the software Licensee provides to its licensee, and 630d84335fSJung-uk Kim * not to intellectual property embodied in modifications its licensee may 640d84335fSJung-uk Kim * make. 650d84335fSJung-uk Kim * 660d84335fSJung-uk Kim * 3.3. Redistribution of Executable. Redistribution in executable form of any 670d84335fSJung-uk Kim * substantial portion of the Covered Code or modification must reproduce the 680d84335fSJung-uk Kim * above Copyright Notice, and the following Disclaimer and Export Compliance 690d84335fSJung-uk Kim * provision in the documentation and/or other materials provided with the 700d84335fSJung-uk Kim * distribution. 710d84335fSJung-uk Kim * 720d84335fSJung-uk Kim * 3.4. Intel retains all right, title, and interest in and to the Original 730d84335fSJung-uk Kim * Intel Code. 740d84335fSJung-uk Kim * 750d84335fSJung-uk Kim * 3.5. Neither the name Intel nor any other trademark owned or controlled by 760d84335fSJung-uk Kim * Intel shall be used in advertising or otherwise to promote the sale, use or 770d84335fSJung-uk Kim * other dealings in products derived from or relating to the Covered Code 780d84335fSJung-uk Kim * without prior written authorization from Intel. 790d84335fSJung-uk Kim * 800d84335fSJung-uk Kim * 4. Disclaimer and Export Compliance 810d84335fSJung-uk Kim * 820d84335fSJung-uk Kim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 830d84335fSJung-uk Kim * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 840d84335fSJung-uk Kim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 850d84335fSJung-uk Kim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 860d84335fSJung-uk Kim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 870d84335fSJung-uk Kim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 880d84335fSJung-uk Kim * PARTICULAR PURPOSE. 890d84335fSJung-uk Kim * 900d84335fSJung-uk Kim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 910d84335fSJung-uk Kim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 920d84335fSJung-uk Kim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 930d84335fSJung-uk Kim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 940d84335fSJung-uk Kim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 950d84335fSJung-uk Kim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 960d84335fSJung-uk Kim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 970d84335fSJung-uk Kim * LIMITED REMEDY. 980d84335fSJung-uk Kim * 990d84335fSJung-uk Kim * 4.3. Licensee shall not export, either directly or indirectly, any of this 1000d84335fSJung-uk Kim * software or system incorporating such software without first obtaining any 1010d84335fSJung-uk Kim * required license or other approval from the U. S. Department of Commerce or 1020d84335fSJung-uk Kim * any other agency or department of the United States Government. In the 1030d84335fSJung-uk Kim * event Licensee exports any such software from the United States or 1040d84335fSJung-uk Kim * re-exports any such software from a foreign destination, Licensee shall 1050d84335fSJung-uk Kim * ensure that the distribution and export/re-export of the software is in 1060d84335fSJung-uk Kim * compliance with all laws, regulations, orders, or other restrictions of the 1070d84335fSJung-uk Kim * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1080d84335fSJung-uk Kim * any of its subsidiaries will export/re-export any technical data, process, 1090d84335fSJung-uk Kim * software, or service, directly or indirectly, to any country for which the 1100d84335fSJung-uk Kim * United States government or any agency thereof requires an export license, 1110d84335fSJung-uk Kim * other governmental approval, or letter of assurance, without first obtaining 1120d84335fSJung-uk Kim * such license, approval or letter. 1130d84335fSJung-uk Kim * 1140d84335fSJung-uk Kim ***************************************************************************** 1150d84335fSJung-uk Kim * 1160d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 1170d84335fSJung-uk Kim * following license: 1180d84335fSJung-uk Kim * 119d244b227SJung-uk Kim * Redistribution and use in source and binary forms, with or without 120d244b227SJung-uk Kim * modification, are permitted provided that the following conditions 121d244b227SJung-uk Kim * are met: 122d244b227SJung-uk Kim * 1. Redistributions of source code must retain the above copyright 123d244b227SJung-uk Kim * notice, this list of conditions, and the following disclaimer, 124d244b227SJung-uk Kim * without modification. 125d244b227SJung-uk Kim * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126d244b227SJung-uk Kim * substantially similar to the "NO WARRANTY" disclaimer below 127d244b227SJung-uk Kim * ("Disclaimer") and any redistribution must be conditioned upon 128d244b227SJung-uk Kim * including a substantially similar Disclaimer requirement for further 129d244b227SJung-uk Kim * binary redistribution. 130d244b227SJung-uk Kim * 3. Neither the names of the above-listed copyright holders nor the names 131d244b227SJung-uk Kim * of any contributors may be used to endorse or promote products derived 132d244b227SJung-uk Kim * from this software without specific prior written permission. 133a9f12690SJung-uk Kim * 1340d84335fSJung-uk Kim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1350d84335fSJung-uk Kim * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1360d84335fSJung-uk Kim * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1370d84335fSJung-uk Kim * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1380d84335fSJung-uk Kim * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1390d84335fSJung-uk Kim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1400d84335fSJung-uk Kim * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1410d84335fSJung-uk Kim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1420d84335fSJung-uk Kim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1430d84335fSJung-uk Kim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1440d84335fSJung-uk Kim * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1450d84335fSJung-uk Kim * 1460d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 147d244b227SJung-uk Kim * GNU General Public License ("GPL") version 2 as published by the Free 148d244b227SJung-uk Kim * Software Foundation. 149a9f12690SJung-uk Kim * 1500d84335fSJung-uk Kim *****************************************************************************/ 151a9f12690SJung-uk Kim 152a9f12690SJung-uk Kim #ifndef __ACDEBUG_H__ 153a9f12690SJung-uk Kim #define __ACDEBUG_H__ 154a9f12690SJung-uk Kim 15570e6ab8fSJung-uk Kim /* The debugger is used in conjunction with the disassembler most of time */ 15670e6ab8fSJung-uk Kim 15770e6ab8fSJung-uk Kim #ifdef ACPI_DISASSEMBLER 15870e6ab8fSJung-uk Kim #include <contrib/dev/acpica/include/acdisasm.h> 15970e6ab8fSJung-uk Kim #endif 16070e6ab8fSJung-uk Kim 161a9f12690SJung-uk Kim 1625a77b11bSJung-uk Kim #define ACPI_DEBUG_BUFFER_SIZE 0x4000 /* 16K buffer for return objects */ 163cd6518c7SJung-uk Kim #define ACPI_DEBUG_LENGTH_FORMAT " (%.4X bits, %.3X bytes)" 164a9f12690SJung-uk Kim 165042ff955SJung-uk Kim typedef struct acpi_db_command_info 166a9f12690SJung-uk Kim { 167f8146b88SJung-uk Kim const char *Name; /* Command Name */ 168a9f12690SJung-uk Kim UINT8 MinArgs; /* Minimum arguments required */ 169a9f12690SJung-uk Kim 170042ff955SJung-uk Kim } ACPI_DB_COMMAND_INFO; 171a9f12690SJung-uk Kim 172042ff955SJung-uk Kim typedef struct acpi_db_command_help 173042ff955SJung-uk Kim { 174042ff955SJung-uk Kim UINT8 LineCount; /* Number of help lines */ 175042ff955SJung-uk Kim char *Invocation; /* Command Invocation */ 176042ff955SJung-uk Kim char *Description; /* Command Description */ 177042ff955SJung-uk Kim 178042ff955SJung-uk Kim } ACPI_DB_COMMAND_HELP; 179042ff955SJung-uk Kim 180042ff955SJung-uk Kim typedef struct acpi_db_argument_info 181a9f12690SJung-uk Kim { 182f8146b88SJung-uk Kim const char *Name; /* Argument Name */ 183a9f12690SJung-uk Kim 184042ff955SJung-uk Kim } ACPI_DB_ARGUMENT_INFO; 185a9f12690SJung-uk Kim 186042ff955SJung-uk Kim typedef struct acpi_db_execute_walk 187f556842eSJung-uk Kim { 188f556842eSJung-uk Kim UINT32 Count; 189f556842eSJung-uk Kim UINT32 MaxCount; 190*58308fadSJung-uk Kim char NameSeg[ACPI_NAMESEG_SIZE + 1] ACPI_NONSTRING; 191f556842eSJung-uk Kim 192042ff955SJung-uk Kim } ACPI_DB_EXECUTE_WALK; 193f556842eSJung-uk Kim 194a9f12690SJung-uk Kim 195a9f12690SJung-uk Kim #define PARAM_LIST(pl) pl 196a9f12690SJung-uk Kim 197a9f12690SJung-uk Kim #define EX_NO_SINGLE_STEP 1 198a9f12690SJung-uk Kim #define EX_SINGLE_STEP 2 199f15e9afbSJung-uk Kim #define EX_ALL 4 200a9f12690SJung-uk Kim 201a9f12690SJung-uk Kim 202a9f12690SJung-uk Kim /* 203a9f12690SJung-uk Kim * dbxface - external debugger interfaces 204a9f12690SJung-uk Kim */ 205f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_OK ( 206a9f12690SJung-uk Kim ACPI_STATUS 207a9f12690SJung-uk Kim AcpiDbSingleStep ( 208a9f12690SJung-uk Kim ACPI_WALK_STATE *WalkState, 209a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op, 210f8146b88SJung-uk Kim UINT32 OpType)) 211f8146b88SJung-uk Kim 212f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_VOID ( 213f8146b88SJung-uk Kim void 214f8146b88SJung-uk Kim AcpiDbSignalBreakPoint ( 215f8146b88SJung-uk Kim ACPI_WALK_STATE *WalkState)) 216a9f12690SJung-uk Kim 217a9f12690SJung-uk Kim 218a9f12690SJung-uk Kim /* 219a9f12690SJung-uk Kim * dbcmds - debug commands and output routines 220a9f12690SJung-uk Kim */ 2210b94ba42SJung-uk Kim ACPI_NAMESPACE_NODE * 2220b94ba42SJung-uk Kim AcpiDbConvertToNode ( 2230b94ba42SJung-uk Kim char *InString); 224a9f12690SJung-uk Kim 225a9f12690SJung-uk Kim void 226a9f12690SJung-uk Kim AcpiDbDisplayTableInfo ( 227a9f12690SJung-uk Kim char *TableArg); 228a9f12690SJung-uk Kim 229a9f12690SJung-uk Kim void 2303f0275a0SJung-uk Kim AcpiDbDisplayTemplate ( 2313f0275a0SJung-uk Kim char *BufferArg); 2323f0275a0SJung-uk Kim 2333f0275a0SJung-uk Kim void 234a9f12690SJung-uk Kim AcpiDbUnloadAcpiTable ( 235e8241eabSJung-uk Kim char *Name); 236a9f12690SJung-uk Kim 237a9f12690SJung-uk Kim void 238a9f12690SJung-uk Kim AcpiDbSendNotify ( 239a9f12690SJung-uk Kim char *Name, 240a9f12690SJung-uk Kim UINT32 Value); 241a9f12690SJung-uk Kim 242a9f12690SJung-uk Kim void 243709fac06SJung-uk Kim AcpiDbDisplayInterfaces ( 244709fac06SJung-uk Kim char *ActionArg, 245709fac06SJung-uk Kim char *InterfaceNameArg); 246709fac06SJung-uk Kim 247a9f12690SJung-uk Kim ACPI_STATUS 248a9f12690SJung-uk Kim AcpiDbSleep ( 249a9f12690SJung-uk Kim char *ObjectArg); 250a9f12690SJung-uk Kim 251a9f12690SJung-uk Kim void 252fe0f0bbbSJung-uk Kim AcpiDbTrace ( 253fe0f0bbbSJung-uk Kim char *EnableArg, 254fe0f0bbbSJung-uk Kim char *MethodArg, 255fe0f0bbbSJung-uk Kim char *OnceArg); 256fe0f0bbbSJung-uk Kim 257fe0f0bbbSJung-uk Kim void 258a9f12690SJung-uk Kim AcpiDbDisplayLocks ( 259a9f12690SJung-uk Kim void); 260a9f12690SJung-uk Kim 261a9f12690SJung-uk Kim void 262a9f12690SJung-uk Kim AcpiDbDisplayResources ( 263a9f12690SJung-uk Kim char *ObjectArg); 264a9f12690SJung-uk Kim 265a159c266SJung-uk Kim ACPI_HW_DEPENDENT_RETURN_VOID ( 266a9f12690SJung-uk Kim void 267a9f12690SJung-uk Kim AcpiDbDisplayGpes ( 268a159c266SJung-uk Kim void)) 269a9f12690SJung-uk Kim 270a9f12690SJung-uk Kim void 2710b94ba42SJung-uk Kim AcpiDbDisplayHandlers ( 272a9f12690SJung-uk Kim void); 273a9f12690SJung-uk Kim 274a159c266SJung-uk Kim ACPI_HW_DEPENDENT_RETURN_VOID ( 275a9f12690SJung-uk Kim void 276a9f12690SJung-uk Kim AcpiDbGenerateGpe ( 277a9f12690SJung-uk Kim char *GpeArg, 278a159c266SJung-uk Kim char *BlockArg)) 279a9f12690SJung-uk Kim 28079c6d946SJung-uk Kim ACPI_HW_DEPENDENT_RETURN_VOID ( 28179c6d946SJung-uk Kim void 28279c6d946SJung-uk Kim AcpiDbGenerateSci ( 28379c6d946SJung-uk Kim void)) 2840b94ba42SJung-uk Kim 285313a0c13SJung-uk Kim void 286313a0c13SJung-uk Kim AcpiDbExecuteTest ( 287313a0c13SJung-uk Kim char *TypeArg); 288313a0c13SJung-uk Kim 289313a0c13SJung-uk Kim 2900b94ba42SJung-uk Kim /* 291efcc2a30SJung-uk Kim * dbconvert - miscellaneous conversion routines 292efcc2a30SJung-uk Kim */ 293efcc2a30SJung-uk Kim ACPI_STATUS 294efcc2a30SJung-uk Kim AcpiDbHexCharToValue ( 295efcc2a30SJung-uk Kim int HexChar, 296efcc2a30SJung-uk Kim UINT8 *ReturnValue); 297efcc2a30SJung-uk Kim 298efcc2a30SJung-uk Kim ACPI_STATUS 299efcc2a30SJung-uk Kim AcpiDbConvertToPackage ( 300efcc2a30SJung-uk Kim char *String, 301efcc2a30SJung-uk Kim ACPI_OBJECT *Object); 302efcc2a30SJung-uk Kim 303efcc2a30SJung-uk Kim ACPI_STATUS 304efcc2a30SJung-uk Kim AcpiDbConvertToObject ( 305efcc2a30SJung-uk Kim ACPI_OBJECT_TYPE Type, 306efcc2a30SJung-uk Kim char *String, 307efcc2a30SJung-uk Kim ACPI_OBJECT *Object); 308efcc2a30SJung-uk Kim 309efcc2a30SJung-uk Kim UINT8 * 310efcc2a30SJung-uk Kim AcpiDbEncodePldBuffer ( 311efcc2a30SJung-uk Kim ACPI_PLD_INFO *PldInfo); 312efcc2a30SJung-uk Kim 313efcc2a30SJung-uk Kim void 314efcc2a30SJung-uk Kim AcpiDbDumpPldBuffer ( 315efcc2a30SJung-uk Kim ACPI_OBJECT *ObjDesc); 316efcc2a30SJung-uk Kim 317efcc2a30SJung-uk Kim 318efcc2a30SJung-uk Kim /* 3190b94ba42SJung-uk Kim * dbmethod - control method commands 3200b94ba42SJung-uk Kim */ 321a9f12690SJung-uk Kim void 3220b94ba42SJung-uk Kim AcpiDbSetMethodBreakpoint ( 3230b94ba42SJung-uk Kim char *Location, 3240b94ba42SJung-uk Kim ACPI_WALK_STATE *WalkState, 3250b94ba42SJung-uk Kim ACPI_PARSE_OBJECT *Op); 3260b94ba42SJung-uk Kim 3270b94ba42SJung-uk Kim void 3280b94ba42SJung-uk Kim AcpiDbSetMethodCallBreakpoint ( 3290b94ba42SJung-uk Kim ACPI_PARSE_OBJECT *Op); 3300b94ba42SJung-uk Kim 3310b94ba42SJung-uk Kim void 3320b94ba42SJung-uk Kim AcpiDbSetMethodData ( 3330b94ba42SJung-uk Kim char *TypeArg, 3340b94ba42SJung-uk Kim char *IndexArg, 3350b94ba42SJung-uk Kim char *ValueArg); 3360b94ba42SJung-uk Kim 3370b94ba42SJung-uk Kim ACPI_STATUS 3380b94ba42SJung-uk Kim AcpiDbDisassembleMethod ( 3390b94ba42SJung-uk Kim char *Name); 3400b94ba42SJung-uk Kim 3410b94ba42SJung-uk Kim void 3420b94ba42SJung-uk Kim AcpiDbDisassembleAml ( 3430b94ba42SJung-uk Kim char *Statements, 3440b94ba42SJung-uk Kim ACPI_PARSE_OBJECT *Op); 345a9f12690SJung-uk Kim 346a9f12690SJung-uk Kim void 347493deb39SJung-uk Kim AcpiDbEvaluatePredefinedNames ( 348493deb39SJung-uk Kim void); 349a9f12690SJung-uk Kim 350f15e9afbSJung-uk Kim void 351f15e9afbSJung-uk Kim AcpiDbEvaluateAll ( 352f15e9afbSJung-uk Kim char *NameSeg); 353f15e9afbSJung-uk Kim 3540b94ba42SJung-uk Kim 3550b94ba42SJung-uk Kim /* 3560b94ba42SJung-uk Kim * dbnames - namespace commands 3570b94ba42SJung-uk Kim */ 3580b94ba42SJung-uk Kim void 3590b94ba42SJung-uk Kim AcpiDbSetScope ( 3600b94ba42SJung-uk Kim char *Name); 3610b94ba42SJung-uk Kim 3620b94ba42SJung-uk Kim void 3630b94ba42SJung-uk Kim AcpiDbDumpNamespace ( 3640b94ba42SJung-uk Kim char *StartArg, 3650b94ba42SJung-uk Kim char *DepthArg); 3660b94ba42SJung-uk Kim 3670b94ba42SJung-uk Kim void 36879c6d946SJung-uk Kim AcpiDbDumpNamespacePaths ( 36979c6d946SJung-uk Kim void); 37079c6d946SJung-uk Kim 37179c6d946SJung-uk Kim void 3720b94ba42SJung-uk Kim AcpiDbDumpNamespaceByOwner ( 3730b94ba42SJung-uk Kim char *OwnerArg, 3740b94ba42SJung-uk Kim char *DepthArg); 3750b94ba42SJung-uk Kim 3760b94ba42SJung-uk Kim ACPI_STATUS 3770b94ba42SJung-uk Kim AcpiDbFindNameInNamespace ( 3780b94ba42SJung-uk Kim char *NameArg); 3790b94ba42SJung-uk Kim 3800b94ba42SJung-uk Kim void 3810b94ba42SJung-uk Kim AcpiDbCheckPredefinedNames ( 3820b94ba42SJung-uk Kim void); 3830b94ba42SJung-uk Kim 3840b94ba42SJung-uk Kim ACPI_STATUS 3850b94ba42SJung-uk Kim AcpiDbDisplayObjects ( 3860b94ba42SJung-uk Kim char *ObjTypeArg, 3870b94ba42SJung-uk Kim char *DisplayCountArg); 3880b94ba42SJung-uk Kim 3890b94ba42SJung-uk Kim void 3900b94ba42SJung-uk Kim AcpiDbCheckIntegrity ( 3910b94ba42SJung-uk Kim void); 3920b94ba42SJung-uk Kim 3930b94ba42SJung-uk Kim void 3940b94ba42SJung-uk Kim AcpiDbFindReferences ( 3950b94ba42SJung-uk Kim char *ObjectArg); 3960b94ba42SJung-uk Kim 3970b94ba42SJung-uk Kim void 3980b94ba42SJung-uk Kim AcpiDbGetBusInfo ( 3990b94ba42SJung-uk Kim void); 4000b94ba42SJung-uk Kim 401a009b7dcSJung-uk Kim ACPI_STATUS 402a009b7dcSJung-uk Kim AcpiDbDisplayFields ( 403a009b7dcSJung-uk Kim UINT32 AddressSpaceId); 404a009b7dcSJung-uk Kim 4050b94ba42SJung-uk Kim 406a9f12690SJung-uk Kim /* 407a9f12690SJung-uk Kim * dbdisply - debug display commands 408a9f12690SJung-uk Kim */ 409a9f12690SJung-uk Kim void 410a9f12690SJung-uk Kim AcpiDbDisplayMethodInfo ( 411a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 412a9f12690SJung-uk Kim 413a9f12690SJung-uk Kim void 414a9f12690SJung-uk Kim AcpiDbDecodeAndDisplayObject ( 415a9f12690SJung-uk Kim char *Target, 416a9f12690SJung-uk Kim char *OutputType); 417a9f12690SJung-uk Kim 418f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_VOID ( 419a9f12690SJung-uk Kim void 420a9f12690SJung-uk Kim AcpiDbDisplayResultObject ( 421a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *ObjDesc, 422f8146b88SJung-uk Kim ACPI_WALK_STATE *WalkState)) 423a9f12690SJung-uk Kim 424a9f12690SJung-uk Kim ACPI_STATUS 425a9f12690SJung-uk Kim AcpiDbDisplayAllMethods ( 426a9f12690SJung-uk Kim char *DisplayCountArg); 427a9f12690SJung-uk Kim 428a9f12690SJung-uk Kim void 429a9f12690SJung-uk Kim AcpiDbDisplayArguments ( 430a9f12690SJung-uk Kim void); 431a9f12690SJung-uk Kim 432a9f12690SJung-uk Kim void 433a9f12690SJung-uk Kim AcpiDbDisplayLocals ( 434a9f12690SJung-uk Kim void); 435a9f12690SJung-uk Kim 436a9f12690SJung-uk Kim void 437a9f12690SJung-uk Kim AcpiDbDisplayResults ( 438a9f12690SJung-uk Kim void); 439a9f12690SJung-uk Kim 440a9f12690SJung-uk Kim void 441a9f12690SJung-uk Kim AcpiDbDisplayCallingTree ( 442a9f12690SJung-uk Kim void); 443a9f12690SJung-uk Kim 444a9f12690SJung-uk Kim void 445a9f12690SJung-uk Kim AcpiDbDisplayObjectType ( 446a9f12690SJung-uk Kim char *ObjectArg); 447a9f12690SJung-uk Kim 448f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_VOID ( 449a9f12690SJung-uk Kim void 450a9f12690SJung-uk Kim AcpiDbDisplayArgumentObject ( 451a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *ObjDesc, 452f8146b88SJung-uk Kim ACPI_WALK_STATE *WalkState)) 453a9f12690SJung-uk Kim 454d6dd1baeSJung-uk Kim 455a9f12690SJung-uk Kim /* 456a9f12690SJung-uk Kim * dbexec - debugger control method execution 457a9f12690SJung-uk Kim */ 458a9f12690SJung-uk Kim void 459a9f12690SJung-uk Kim AcpiDbExecute ( 460a9f12690SJung-uk Kim char *Name, 461a9f12690SJung-uk Kim char **Args, 46242e58c03SJung-uk Kim ACPI_OBJECT_TYPE *Types, 463a9f12690SJung-uk Kim UINT32 Flags); 464a9f12690SJung-uk Kim 465a9f12690SJung-uk Kim void 466b7b7e711SJung-uk Kim AcpiDbCreateExecutionThread ( 467b7b7e711SJung-uk Kim char *MethodNameArg, 468b7b7e711SJung-uk Kim char **Arguments, 469b7b7e711SJung-uk Kim ACPI_OBJECT_TYPE *Types); 470b7b7e711SJung-uk Kim 471b7b7e711SJung-uk Kim void 472a9f12690SJung-uk Kim AcpiDbCreateExecutionThreads ( 473a9f12690SJung-uk Kim char *NumThreadsArg, 474a9f12690SJung-uk Kim char *NumLoopsArg, 475a9f12690SJung-uk Kim char *MethodNameArg); 476a9f12690SJung-uk Kim 477efcc2a30SJung-uk Kim void 478efcc2a30SJung-uk Kim AcpiDbDeleteObjects ( 479efcc2a30SJung-uk Kim UINT32 Count, 480efcc2a30SJung-uk Kim ACPI_OBJECT *Objects); 481efcc2a30SJung-uk Kim 482a9f12690SJung-uk Kim #ifdef ACPI_DBG_TRACK_ALLOCATIONS 483a9f12690SJung-uk Kim UINT32 484a9f12690SJung-uk Kim AcpiDbGetCacheInfo ( 485a9f12690SJung-uk Kim ACPI_MEMORY_LIST *Cache); 486a9f12690SJung-uk Kim #endif 487a9f12690SJung-uk Kim 488a9f12690SJung-uk Kim 489a9f12690SJung-uk Kim /* 490a9f12690SJung-uk Kim * dbfileio - Debugger file I/O commands 491a9f12690SJung-uk Kim */ 492a9f12690SJung-uk Kim ACPI_OBJECT_TYPE 493a9f12690SJung-uk Kim AcpiDbMatchArgument ( 494a9f12690SJung-uk Kim char *UserArgument, 495042ff955SJung-uk Kim ACPI_DB_ARGUMENT_INFO *Arguments); 496a9f12690SJung-uk Kim 497a9f12690SJung-uk Kim void 498a9f12690SJung-uk Kim AcpiDbCloseDebugFile ( 499a9f12690SJung-uk Kim void); 500a9f12690SJung-uk Kim 501a9f12690SJung-uk Kim void 502a9f12690SJung-uk Kim AcpiDbOpenDebugFile ( 503a9f12690SJung-uk Kim char *Name); 504a9f12690SJung-uk Kim 505a9f12690SJung-uk Kim ACPI_STATUS 506a9f12690SJung-uk Kim AcpiDbLoadAcpiTable ( 507a9f12690SJung-uk Kim char *Filename); 508a9f12690SJung-uk Kim 509a9f12690SJung-uk Kim ACPI_STATUS 510f8146b88SJung-uk Kim AcpiDbLoadTables ( 511f8146b88SJung-uk Kim ACPI_NEW_TABLE_DESC *ListHead); 512a9f12690SJung-uk Kim 513a9f12690SJung-uk Kim 514a9f12690SJung-uk Kim /* 515a9f12690SJung-uk Kim * dbhistry - debugger HISTORY command 516a9f12690SJung-uk Kim */ 517a9f12690SJung-uk Kim void 518a9f12690SJung-uk Kim AcpiDbAddToHistory ( 519a9f12690SJung-uk Kim char *CommandLine); 520a9f12690SJung-uk Kim 521a9f12690SJung-uk Kim void 522a9f12690SJung-uk Kim AcpiDbDisplayHistory ( 523a9f12690SJung-uk Kim void); 524a9f12690SJung-uk Kim 525a9f12690SJung-uk Kim char * 526a9f12690SJung-uk Kim AcpiDbGetFromHistory ( 527a9f12690SJung-uk Kim char *CommandNumArg); 528a9f12690SJung-uk Kim 529313a0c13SJung-uk Kim char * 530313a0c13SJung-uk Kim AcpiDbGetHistoryByIndex ( 531313a0c13SJung-uk Kim UINT32 CommanddNum); 532313a0c13SJung-uk Kim 533a9f12690SJung-uk Kim 534a9f12690SJung-uk Kim /* 535a9f12690SJung-uk Kim * dbinput - user front-end to the AML debugger 536a9f12690SJung-uk Kim */ 537a9f12690SJung-uk Kim ACPI_STATUS 538a9f12690SJung-uk Kim AcpiDbCommandDispatch ( 539a9f12690SJung-uk Kim char *InputBuffer, 540a9f12690SJung-uk Kim ACPI_WALK_STATE *WalkState, 541a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op); 542a9f12690SJung-uk Kim 543a9f12690SJung-uk Kim void ACPI_SYSTEM_XFACE 544a9f12690SJung-uk Kim AcpiDbExecuteThread ( 545a9f12690SJung-uk Kim void *Context); 546a9f12690SJung-uk Kim 547a9f12690SJung-uk Kim ACPI_STATUS 548a9f12690SJung-uk Kim AcpiDbUserCommands ( 54928482948SJung-uk Kim void); 550a9f12690SJung-uk Kim 55142e58c03SJung-uk Kim char * 55242e58c03SJung-uk Kim AcpiDbGetNextToken ( 55342e58c03SJung-uk Kim char *String, 55442e58c03SJung-uk Kim char **Next, 55542e58c03SJung-uk Kim ACPI_OBJECT_TYPE *ReturnType); 55642e58c03SJung-uk Kim 557a9f12690SJung-uk Kim 558a9f12690SJung-uk Kim /* 559fe0f0bbbSJung-uk Kim * dbobject 560fe0f0bbbSJung-uk Kim */ 561fe0f0bbbSJung-uk Kim void 562fe0f0bbbSJung-uk Kim AcpiDbDecodeInternalObject ( 563fe0f0bbbSJung-uk Kim ACPI_OPERAND_OBJECT *ObjDesc); 564fe0f0bbbSJung-uk Kim 565fe0f0bbbSJung-uk Kim void 566fe0f0bbbSJung-uk Kim AcpiDbDisplayInternalObject ( 567fe0f0bbbSJung-uk Kim ACPI_OPERAND_OBJECT *ObjDesc, 568fe0f0bbbSJung-uk Kim ACPI_WALK_STATE *WalkState); 569fe0f0bbbSJung-uk Kim 570fe0f0bbbSJung-uk Kim void 571fe0f0bbbSJung-uk Kim AcpiDbDecodeArguments ( 572fe0f0bbbSJung-uk Kim ACPI_WALK_STATE *WalkState); 573fe0f0bbbSJung-uk Kim 574fe0f0bbbSJung-uk Kim void 575fe0f0bbbSJung-uk Kim AcpiDbDecodeLocals ( 576fe0f0bbbSJung-uk Kim ACPI_WALK_STATE *WalkState); 577fe0f0bbbSJung-uk Kim 578fe0f0bbbSJung-uk Kim void 579fe0f0bbbSJung-uk Kim AcpiDbDumpMethodInfo ( 580fe0f0bbbSJung-uk Kim ACPI_STATUS Status, 581fe0f0bbbSJung-uk Kim ACPI_WALK_STATE *WalkState); 582fe0f0bbbSJung-uk Kim 583fe0f0bbbSJung-uk Kim 584fe0f0bbbSJung-uk Kim /* 585a9f12690SJung-uk Kim * dbstats - Generation and display of ACPI table statistics 586a9f12690SJung-uk Kim */ 587a9f12690SJung-uk Kim void 588a9f12690SJung-uk Kim AcpiDbGenerateStatistics ( 589a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Root, 590a9f12690SJung-uk Kim BOOLEAN IsMethod); 591a9f12690SJung-uk Kim 592a9f12690SJung-uk Kim ACPI_STATUS 593a9f12690SJung-uk Kim AcpiDbDisplayStatistics ( 594a9f12690SJung-uk Kim char *TypeArg); 595a9f12690SJung-uk Kim 596a9f12690SJung-uk Kim 597a9f12690SJung-uk Kim /* 598a9f12690SJung-uk Kim * dbutils - AML debugger utilities 599a9f12690SJung-uk Kim */ 600a9f12690SJung-uk Kim void 601a9f12690SJung-uk Kim AcpiDbSetOutputDestination ( 602a9f12690SJung-uk Kim UINT32 Where); 603a9f12690SJung-uk Kim 604a9f12690SJung-uk Kim void 605a9f12690SJung-uk Kim AcpiDbDumpExternalObject ( 606a9f12690SJung-uk Kim ACPI_OBJECT *ObjDesc, 607a9f12690SJung-uk Kim UINT32 Level); 608a9f12690SJung-uk Kim 609a9f12690SJung-uk Kim void 610a9f12690SJung-uk Kim AcpiDbPrepNamestring ( 611a9f12690SJung-uk Kim char *Name); 612a9f12690SJung-uk Kim 613a9f12690SJung-uk Kim ACPI_NAMESPACE_NODE * 614a9f12690SJung-uk Kim AcpiDbLocalNsLookup ( 615a9f12690SJung-uk Kim char *Name); 616a9f12690SJung-uk Kim 617a9f12690SJung-uk Kim void 618f38b0f21SJung-uk Kim AcpiDbUint32ToHexString ( 619a9f12690SJung-uk Kim UINT32 Value, 620a9f12690SJung-uk Kim char *Buffer); 621a9f12690SJung-uk Kim 62207c64d74SJung-uk Kim void 62307c64d74SJung-uk Kim AcpiDbGenerateInterrupt ( 62407c64d74SJung-uk Kim char *GsivArg); 62507c64d74SJung-uk Kim 626a9f12690SJung-uk Kim #endif /* __ACDEBUG_H__ */ 627