xref: /freebsd/sys/contrib/dev/acpica/include/acdebug.h (revision a009b7dcabdc27aa3fdde1f2c6dd08d4fe5a3170)
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  *
11e5e1f58aSJung-uk Kim  * Some or all of this work - Copyright (c) 1999 - 2019, 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;
190f556842eSJung-uk Kim 
191042ff955SJung-uk Kim } ACPI_DB_EXECUTE_WALK;
192f556842eSJung-uk Kim 
193a9f12690SJung-uk Kim 
194a9f12690SJung-uk Kim #define PARAM_LIST(pl)                  pl
195a9f12690SJung-uk Kim 
196a9f12690SJung-uk Kim #define EX_NO_SINGLE_STEP               1
197a9f12690SJung-uk Kim #define EX_SINGLE_STEP                  2
198a9f12690SJung-uk Kim 
199a9f12690SJung-uk Kim 
200a9f12690SJung-uk Kim /*
201a9f12690SJung-uk Kim  * dbxface - external debugger interfaces
202a9f12690SJung-uk Kim  */
203f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_OK (
204a9f12690SJung-uk Kim ACPI_STATUS
205a9f12690SJung-uk Kim AcpiDbSingleStep (
206a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
207a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
208f8146b88SJung-uk Kim     UINT32                  OpType))
209f8146b88SJung-uk Kim 
210f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_VOID (
211f8146b88SJung-uk Kim void
212f8146b88SJung-uk Kim AcpiDbSignalBreakPoint (
213f8146b88SJung-uk Kim     ACPI_WALK_STATE         *WalkState))
214a9f12690SJung-uk Kim 
215a9f12690SJung-uk Kim 
216a9f12690SJung-uk Kim /*
217a9f12690SJung-uk Kim  * dbcmds - debug commands and output routines
218a9f12690SJung-uk Kim  */
2190b94ba42SJung-uk Kim ACPI_NAMESPACE_NODE *
2200b94ba42SJung-uk Kim AcpiDbConvertToNode (
2210b94ba42SJung-uk Kim     char                    *InString);
222a9f12690SJung-uk Kim 
223a9f12690SJung-uk Kim void
224a9f12690SJung-uk Kim AcpiDbDisplayTableInfo (
225a9f12690SJung-uk Kim     char                    *TableArg);
226a9f12690SJung-uk Kim 
227a9f12690SJung-uk Kim void
2283f0275a0SJung-uk Kim AcpiDbDisplayTemplate (
2293f0275a0SJung-uk Kim     char                    *BufferArg);
2303f0275a0SJung-uk Kim 
2313f0275a0SJung-uk Kim void
232a9f12690SJung-uk Kim AcpiDbUnloadAcpiTable (
233e8241eabSJung-uk Kim     char                    *Name);
234a9f12690SJung-uk Kim 
235a9f12690SJung-uk Kim void
236a9f12690SJung-uk Kim AcpiDbSendNotify (
237a9f12690SJung-uk Kim     char                    *Name,
238a9f12690SJung-uk Kim     UINT32                  Value);
239a9f12690SJung-uk Kim 
240a9f12690SJung-uk Kim void
241709fac06SJung-uk Kim AcpiDbDisplayInterfaces (
242709fac06SJung-uk Kim     char                    *ActionArg,
243709fac06SJung-uk Kim     char                    *InterfaceNameArg);
244709fac06SJung-uk Kim 
245a9f12690SJung-uk Kim ACPI_STATUS
246a9f12690SJung-uk Kim AcpiDbSleep (
247a9f12690SJung-uk Kim     char                    *ObjectArg);
248a9f12690SJung-uk Kim 
249a9f12690SJung-uk Kim void
250fe0f0bbbSJung-uk Kim AcpiDbTrace (
251fe0f0bbbSJung-uk Kim     char                    *EnableArg,
252fe0f0bbbSJung-uk Kim     char                    *MethodArg,
253fe0f0bbbSJung-uk Kim     char                    *OnceArg);
254fe0f0bbbSJung-uk Kim 
255fe0f0bbbSJung-uk Kim void
256a9f12690SJung-uk Kim AcpiDbDisplayLocks (
257a9f12690SJung-uk Kim     void);
258a9f12690SJung-uk Kim 
259a9f12690SJung-uk Kim void
260a9f12690SJung-uk Kim AcpiDbDisplayResources (
261a9f12690SJung-uk Kim     char                    *ObjectArg);
262a9f12690SJung-uk Kim 
263a159c266SJung-uk Kim ACPI_HW_DEPENDENT_RETURN_VOID (
264a9f12690SJung-uk Kim void
265a9f12690SJung-uk Kim AcpiDbDisplayGpes (
266a159c266SJung-uk Kim     void))
267a9f12690SJung-uk Kim 
268a9f12690SJung-uk Kim void
2690b94ba42SJung-uk Kim AcpiDbDisplayHandlers (
270a9f12690SJung-uk Kim     void);
271a9f12690SJung-uk Kim 
272a159c266SJung-uk Kim ACPI_HW_DEPENDENT_RETURN_VOID (
273a9f12690SJung-uk Kim void
274a9f12690SJung-uk Kim AcpiDbGenerateGpe (
275a9f12690SJung-uk Kim     char                    *GpeArg,
276a159c266SJung-uk Kim     char                    *BlockArg))
277a9f12690SJung-uk Kim 
27879c6d946SJung-uk Kim ACPI_HW_DEPENDENT_RETURN_VOID (
27979c6d946SJung-uk Kim void
28079c6d946SJung-uk Kim AcpiDbGenerateSci (
28179c6d946SJung-uk Kim     void))
2820b94ba42SJung-uk Kim 
283313a0c13SJung-uk Kim void
284313a0c13SJung-uk Kim AcpiDbExecuteTest (
285313a0c13SJung-uk Kim     char                    *TypeArg);
286313a0c13SJung-uk Kim 
287313a0c13SJung-uk Kim 
2880b94ba42SJung-uk Kim /*
289efcc2a30SJung-uk Kim  * dbconvert - miscellaneous conversion routines
290efcc2a30SJung-uk Kim  */
291efcc2a30SJung-uk Kim ACPI_STATUS
292efcc2a30SJung-uk Kim AcpiDbHexCharToValue (
293efcc2a30SJung-uk Kim     int                     HexChar,
294efcc2a30SJung-uk Kim     UINT8                   *ReturnValue);
295efcc2a30SJung-uk Kim 
296efcc2a30SJung-uk Kim ACPI_STATUS
297efcc2a30SJung-uk Kim AcpiDbConvertToPackage (
298efcc2a30SJung-uk Kim     char                    *String,
299efcc2a30SJung-uk Kim     ACPI_OBJECT             *Object);
300efcc2a30SJung-uk Kim 
301efcc2a30SJung-uk Kim ACPI_STATUS
302efcc2a30SJung-uk Kim AcpiDbConvertToObject (
303efcc2a30SJung-uk Kim     ACPI_OBJECT_TYPE        Type,
304efcc2a30SJung-uk Kim     char                    *String,
305efcc2a30SJung-uk Kim     ACPI_OBJECT             *Object);
306efcc2a30SJung-uk Kim 
307efcc2a30SJung-uk Kim UINT8 *
308efcc2a30SJung-uk Kim AcpiDbEncodePldBuffer (
309efcc2a30SJung-uk Kim     ACPI_PLD_INFO           *PldInfo);
310efcc2a30SJung-uk Kim 
311efcc2a30SJung-uk Kim void
312efcc2a30SJung-uk Kim AcpiDbDumpPldBuffer (
313efcc2a30SJung-uk Kim     ACPI_OBJECT             *ObjDesc);
314efcc2a30SJung-uk Kim 
315efcc2a30SJung-uk Kim 
316efcc2a30SJung-uk Kim /*
3170b94ba42SJung-uk Kim  * dbmethod - control method commands
3180b94ba42SJung-uk Kim  */
319a9f12690SJung-uk Kim void
3200b94ba42SJung-uk Kim AcpiDbSetMethodBreakpoint (
3210b94ba42SJung-uk Kim     char                    *Location,
3220b94ba42SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
3230b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
3240b94ba42SJung-uk Kim 
3250b94ba42SJung-uk Kim void
3260b94ba42SJung-uk Kim AcpiDbSetMethodCallBreakpoint (
3270b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
3280b94ba42SJung-uk Kim 
3290b94ba42SJung-uk Kim void
3300b94ba42SJung-uk Kim AcpiDbSetMethodData (
3310b94ba42SJung-uk Kim     char                    *TypeArg,
3320b94ba42SJung-uk Kim     char                    *IndexArg,
3330b94ba42SJung-uk Kim     char                    *ValueArg);
3340b94ba42SJung-uk Kim 
3350b94ba42SJung-uk Kim ACPI_STATUS
3360b94ba42SJung-uk Kim AcpiDbDisassembleMethod (
3370b94ba42SJung-uk Kim     char                    *Name);
3380b94ba42SJung-uk Kim 
3390b94ba42SJung-uk Kim void
3400b94ba42SJung-uk Kim AcpiDbDisassembleAml (
3410b94ba42SJung-uk Kim     char                    *Statements,
3420b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
343a9f12690SJung-uk Kim 
344a9f12690SJung-uk Kim void
345493deb39SJung-uk Kim AcpiDbEvaluatePredefinedNames (
346493deb39SJung-uk Kim     void);
347a9f12690SJung-uk Kim 
3480b94ba42SJung-uk Kim 
3490b94ba42SJung-uk Kim /*
3500b94ba42SJung-uk Kim  * dbnames - namespace commands
3510b94ba42SJung-uk Kim  */
3520b94ba42SJung-uk Kim void
3530b94ba42SJung-uk Kim AcpiDbSetScope (
3540b94ba42SJung-uk Kim     char                    *Name);
3550b94ba42SJung-uk Kim 
3560b94ba42SJung-uk Kim void
3570b94ba42SJung-uk Kim AcpiDbDumpNamespace (
3580b94ba42SJung-uk Kim     char                    *StartArg,
3590b94ba42SJung-uk Kim     char                    *DepthArg);
3600b94ba42SJung-uk Kim 
3610b94ba42SJung-uk Kim void
36279c6d946SJung-uk Kim AcpiDbDumpNamespacePaths (
36379c6d946SJung-uk Kim     void);
36479c6d946SJung-uk Kim 
36579c6d946SJung-uk Kim void
3660b94ba42SJung-uk Kim AcpiDbDumpNamespaceByOwner (
3670b94ba42SJung-uk Kim     char                    *OwnerArg,
3680b94ba42SJung-uk Kim     char                    *DepthArg);
3690b94ba42SJung-uk Kim 
3700b94ba42SJung-uk Kim ACPI_STATUS
3710b94ba42SJung-uk Kim AcpiDbFindNameInNamespace (
3720b94ba42SJung-uk Kim     char                    *NameArg);
3730b94ba42SJung-uk Kim 
3740b94ba42SJung-uk Kim void
3750b94ba42SJung-uk Kim AcpiDbCheckPredefinedNames (
3760b94ba42SJung-uk Kim     void);
3770b94ba42SJung-uk Kim 
3780b94ba42SJung-uk Kim ACPI_STATUS
3790b94ba42SJung-uk Kim AcpiDbDisplayObjects (
3800b94ba42SJung-uk Kim     char                    *ObjTypeArg,
3810b94ba42SJung-uk Kim     char                    *DisplayCountArg);
3820b94ba42SJung-uk Kim 
3830b94ba42SJung-uk Kim void
3840b94ba42SJung-uk Kim AcpiDbCheckIntegrity (
3850b94ba42SJung-uk Kim     void);
3860b94ba42SJung-uk Kim 
3870b94ba42SJung-uk Kim void
3880b94ba42SJung-uk Kim AcpiDbFindReferences (
3890b94ba42SJung-uk Kim     char                    *ObjectArg);
3900b94ba42SJung-uk Kim 
3910b94ba42SJung-uk Kim void
3920b94ba42SJung-uk Kim AcpiDbGetBusInfo (
3930b94ba42SJung-uk Kim     void);
3940b94ba42SJung-uk Kim 
395*a009b7dcSJung-uk Kim ACPI_STATUS
396*a009b7dcSJung-uk Kim AcpiDbDisplayFields (
397*a009b7dcSJung-uk Kim     UINT32                  AddressSpaceId);
398*a009b7dcSJung-uk Kim 
3990b94ba42SJung-uk Kim 
400a9f12690SJung-uk Kim /*
401a9f12690SJung-uk Kim  * dbdisply - debug display commands
402a9f12690SJung-uk Kim  */
403a9f12690SJung-uk Kim void
404a9f12690SJung-uk Kim AcpiDbDisplayMethodInfo (
405a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
406a9f12690SJung-uk Kim 
407a9f12690SJung-uk Kim void
408a9f12690SJung-uk Kim AcpiDbDecodeAndDisplayObject (
409a9f12690SJung-uk Kim     char                    *Target,
410a9f12690SJung-uk Kim     char                    *OutputType);
411a9f12690SJung-uk Kim 
412f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_VOID (
413a9f12690SJung-uk Kim void
414a9f12690SJung-uk Kim AcpiDbDisplayResultObject (
415a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc,
416f8146b88SJung-uk Kim     ACPI_WALK_STATE         *WalkState))
417a9f12690SJung-uk Kim 
418a9f12690SJung-uk Kim ACPI_STATUS
419a9f12690SJung-uk Kim AcpiDbDisplayAllMethods (
420a9f12690SJung-uk Kim     char                    *DisplayCountArg);
421a9f12690SJung-uk Kim 
422a9f12690SJung-uk Kim void
423a9f12690SJung-uk Kim AcpiDbDisplayArguments (
424a9f12690SJung-uk Kim     void);
425a9f12690SJung-uk Kim 
426a9f12690SJung-uk Kim void
427a9f12690SJung-uk Kim AcpiDbDisplayLocals (
428a9f12690SJung-uk Kim     void);
429a9f12690SJung-uk Kim 
430a9f12690SJung-uk Kim void
431a9f12690SJung-uk Kim AcpiDbDisplayResults (
432a9f12690SJung-uk Kim     void);
433a9f12690SJung-uk Kim 
434a9f12690SJung-uk Kim void
435a9f12690SJung-uk Kim AcpiDbDisplayCallingTree (
436a9f12690SJung-uk Kim     void);
437a9f12690SJung-uk Kim 
438a9f12690SJung-uk Kim void
439a9f12690SJung-uk Kim AcpiDbDisplayObjectType (
440a9f12690SJung-uk Kim     char                    *ObjectArg);
441a9f12690SJung-uk Kim 
442f8146b88SJung-uk Kim ACPI_DBR_DEPENDENT_RETURN_VOID (
443a9f12690SJung-uk Kim void
444a9f12690SJung-uk Kim AcpiDbDisplayArgumentObject (
445a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc,
446f8146b88SJung-uk Kim     ACPI_WALK_STATE         *WalkState))
447a9f12690SJung-uk Kim 
448d6dd1baeSJung-uk Kim 
449a9f12690SJung-uk Kim /*
450a9f12690SJung-uk Kim  * dbexec - debugger control method execution
451a9f12690SJung-uk Kim  */
452a9f12690SJung-uk Kim void
453a9f12690SJung-uk Kim AcpiDbExecute (
454a9f12690SJung-uk Kim     char                    *Name,
455a9f12690SJung-uk Kim     char                    **Args,
45642e58c03SJung-uk Kim     ACPI_OBJECT_TYPE        *Types,
457a9f12690SJung-uk Kim     UINT32                  Flags);
458a9f12690SJung-uk Kim 
459a9f12690SJung-uk Kim void
460b7b7e711SJung-uk Kim AcpiDbCreateExecutionThread (
461b7b7e711SJung-uk Kim     char                    *MethodNameArg,
462b7b7e711SJung-uk Kim     char                    **Arguments,
463b7b7e711SJung-uk Kim     ACPI_OBJECT_TYPE        *Types);
464b7b7e711SJung-uk Kim 
465b7b7e711SJung-uk Kim void
466a9f12690SJung-uk Kim AcpiDbCreateExecutionThreads (
467a9f12690SJung-uk Kim     char                    *NumThreadsArg,
468a9f12690SJung-uk Kim     char                    *NumLoopsArg,
469a9f12690SJung-uk Kim     char                    *MethodNameArg);
470a9f12690SJung-uk Kim 
471efcc2a30SJung-uk Kim void
472efcc2a30SJung-uk Kim AcpiDbDeleteObjects (
473efcc2a30SJung-uk Kim     UINT32                  Count,
474efcc2a30SJung-uk Kim     ACPI_OBJECT             *Objects);
475efcc2a30SJung-uk Kim 
476a9f12690SJung-uk Kim #ifdef ACPI_DBG_TRACK_ALLOCATIONS
477a9f12690SJung-uk Kim UINT32
478a9f12690SJung-uk Kim AcpiDbGetCacheInfo (
479a9f12690SJung-uk Kim     ACPI_MEMORY_LIST        *Cache);
480a9f12690SJung-uk Kim #endif
481a9f12690SJung-uk Kim 
482a9f12690SJung-uk Kim 
483a9f12690SJung-uk Kim /*
484a9f12690SJung-uk Kim  * dbfileio - Debugger file I/O commands
485a9f12690SJung-uk Kim  */
486a9f12690SJung-uk Kim ACPI_OBJECT_TYPE
487a9f12690SJung-uk Kim AcpiDbMatchArgument (
488a9f12690SJung-uk Kim     char                    *UserArgument,
489042ff955SJung-uk Kim     ACPI_DB_ARGUMENT_INFO   *Arguments);
490a9f12690SJung-uk Kim 
491a9f12690SJung-uk Kim void
492a9f12690SJung-uk Kim AcpiDbCloseDebugFile (
493a9f12690SJung-uk Kim     void);
494a9f12690SJung-uk Kim 
495a9f12690SJung-uk Kim void
496a9f12690SJung-uk Kim AcpiDbOpenDebugFile (
497a9f12690SJung-uk Kim     char                    *Name);
498a9f12690SJung-uk Kim 
499a9f12690SJung-uk Kim ACPI_STATUS
500a9f12690SJung-uk Kim AcpiDbLoadAcpiTable (
501a9f12690SJung-uk Kim     char                    *Filename);
502a9f12690SJung-uk Kim 
503a9f12690SJung-uk Kim ACPI_STATUS
504f8146b88SJung-uk Kim AcpiDbLoadTables (
505f8146b88SJung-uk Kim     ACPI_NEW_TABLE_DESC     *ListHead);
506a9f12690SJung-uk Kim 
507a9f12690SJung-uk Kim 
508a9f12690SJung-uk Kim /*
509a9f12690SJung-uk Kim  * dbhistry - debugger HISTORY command
510a9f12690SJung-uk Kim  */
511a9f12690SJung-uk Kim void
512a9f12690SJung-uk Kim AcpiDbAddToHistory (
513a9f12690SJung-uk Kim     char                    *CommandLine);
514a9f12690SJung-uk Kim 
515a9f12690SJung-uk Kim void
516a9f12690SJung-uk Kim AcpiDbDisplayHistory (
517a9f12690SJung-uk Kim     void);
518a9f12690SJung-uk Kim 
519a9f12690SJung-uk Kim char *
520a9f12690SJung-uk Kim AcpiDbGetFromHistory (
521a9f12690SJung-uk Kim     char                    *CommandNumArg);
522a9f12690SJung-uk Kim 
523313a0c13SJung-uk Kim char *
524313a0c13SJung-uk Kim AcpiDbGetHistoryByIndex (
525313a0c13SJung-uk Kim     UINT32                  CommanddNum);
526313a0c13SJung-uk Kim 
527a9f12690SJung-uk Kim 
528a9f12690SJung-uk Kim /*
529a9f12690SJung-uk Kim  * dbinput - user front-end to the AML debugger
530a9f12690SJung-uk Kim  */
531a9f12690SJung-uk Kim ACPI_STATUS
532a9f12690SJung-uk Kim AcpiDbCommandDispatch (
533a9f12690SJung-uk Kim     char                    *InputBuffer,
534a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
535a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
536a9f12690SJung-uk Kim 
537a9f12690SJung-uk Kim void ACPI_SYSTEM_XFACE
538a9f12690SJung-uk Kim AcpiDbExecuteThread (
539a9f12690SJung-uk Kim     void                    *Context);
540a9f12690SJung-uk Kim 
541a9f12690SJung-uk Kim ACPI_STATUS
542a9f12690SJung-uk Kim AcpiDbUserCommands (
54328482948SJung-uk Kim     void);
544a9f12690SJung-uk Kim 
54542e58c03SJung-uk Kim char *
54642e58c03SJung-uk Kim AcpiDbGetNextToken (
54742e58c03SJung-uk Kim     char                    *String,
54842e58c03SJung-uk Kim     char                    **Next,
54942e58c03SJung-uk Kim     ACPI_OBJECT_TYPE        *ReturnType);
55042e58c03SJung-uk Kim 
551a9f12690SJung-uk Kim 
552a9f12690SJung-uk Kim /*
553fe0f0bbbSJung-uk Kim  * dbobject
554fe0f0bbbSJung-uk Kim  */
555fe0f0bbbSJung-uk Kim void
556fe0f0bbbSJung-uk Kim AcpiDbDecodeInternalObject (
557fe0f0bbbSJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
558fe0f0bbbSJung-uk Kim 
559fe0f0bbbSJung-uk Kim void
560fe0f0bbbSJung-uk Kim AcpiDbDisplayInternalObject (
561fe0f0bbbSJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc,
562fe0f0bbbSJung-uk Kim     ACPI_WALK_STATE         *WalkState);
563fe0f0bbbSJung-uk Kim 
564fe0f0bbbSJung-uk Kim void
565fe0f0bbbSJung-uk Kim AcpiDbDecodeArguments (
566fe0f0bbbSJung-uk Kim     ACPI_WALK_STATE         *WalkState);
567fe0f0bbbSJung-uk Kim 
568fe0f0bbbSJung-uk Kim void
569fe0f0bbbSJung-uk Kim AcpiDbDecodeLocals (
570fe0f0bbbSJung-uk Kim     ACPI_WALK_STATE         *WalkState);
571fe0f0bbbSJung-uk Kim 
572fe0f0bbbSJung-uk Kim void
573fe0f0bbbSJung-uk Kim AcpiDbDumpMethodInfo (
574fe0f0bbbSJung-uk Kim     ACPI_STATUS             Status,
575fe0f0bbbSJung-uk Kim     ACPI_WALK_STATE         *WalkState);
576fe0f0bbbSJung-uk Kim 
577fe0f0bbbSJung-uk Kim 
578fe0f0bbbSJung-uk Kim /*
579a9f12690SJung-uk Kim  * dbstats - Generation and display of ACPI table statistics
580a9f12690SJung-uk Kim  */
581a9f12690SJung-uk Kim void
582a9f12690SJung-uk Kim AcpiDbGenerateStatistics (
583a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Root,
584a9f12690SJung-uk Kim     BOOLEAN                 IsMethod);
585a9f12690SJung-uk Kim 
586a9f12690SJung-uk Kim ACPI_STATUS
587a9f12690SJung-uk Kim AcpiDbDisplayStatistics (
588a9f12690SJung-uk Kim     char                    *TypeArg);
589a9f12690SJung-uk Kim 
590a9f12690SJung-uk Kim 
591a9f12690SJung-uk Kim /*
592a9f12690SJung-uk Kim  * dbutils - AML debugger utilities
593a9f12690SJung-uk Kim  */
594a9f12690SJung-uk Kim void
595a9f12690SJung-uk Kim AcpiDbSetOutputDestination (
596a9f12690SJung-uk Kim     UINT32                  Where);
597a9f12690SJung-uk Kim 
598a9f12690SJung-uk Kim void
599a9f12690SJung-uk Kim AcpiDbDumpExternalObject (
600a9f12690SJung-uk Kim     ACPI_OBJECT             *ObjDesc,
601a9f12690SJung-uk Kim     UINT32                  Level);
602a9f12690SJung-uk Kim 
603a9f12690SJung-uk Kim void
604a9f12690SJung-uk Kim AcpiDbPrepNamestring (
605a9f12690SJung-uk Kim     char                    *Name);
606a9f12690SJung-uk Kim 
607a9f12690SJung-uk Kim ACPI_NAMESPACE_NODE *
608a9f12690SJung-uk Kim AcpiDbLocalNsLookup (
609a9f12690SJung-uk Kim     char                    *Name);
610a9f12690SJung-uk Kim 
611a9f12690SJung-uk Kim void
612f38b0f21SJung-uk Kim AcpiDbUint32ToHexString (
613a9f12690SJung-uk Kim     UINT32                  Value,
614a9f12690SJung-uk Kim     char                    *Buffer);
615a9f12690SJung-uk Kim 
616a9f12690SJung-uk Kim #endif  /* __ACDEBUG_H__ */
617