acdebug.h revision 26f3cdf03f1adcc98f6d3d99843ee71e9229a8c0
/******************************************************************************
*
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2011, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer,
* without modification.
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
* substantially similar to the "NO WARRANTY" disclaimer below
* ("Disclaimer") and any redistribution must be conditioned upon
* including a substantially similar Disclaimer requirement for further
* binary redistribution.
* 3. Neither the names of the above-listed copyright holders nor the names
* of any contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*
* NO WARRANTY
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*/
#ifndef __ACDEBUG_H__
#define __ACDEBUG_H__
typedef struct CommandInfo
{
char *Name; /* Command Name */
} COMMAND_INFO;
typedef struct ArgumentInfo
{
char *Name; /* Argument Name */
typedef struct acpi_execute_walk
{
#define EX_NO_SINGLE_STEP 1
#define EX_SINGLE_STEP 2
/*
* dbxface - external debugger interfaces
*/
void);
void
void);
/*
* dbcmds - debug commands and output routines
*/
char *InString);
void
char *TableArg);
void
char *TableArg,
char *InstanceArg);
void
char *Name,
void
char *ActionArg,
char *InterfaceNameArg);
char *ObjectArg);
void
void);
void
char *ObjectArg);
void
void);
void
void);
void
char *GpeArg,
char *BlockArg);
/*
* dbmethod - control method commands
*/
void
char *Location,
void
void
char *TypeArg,
char *IndexArg,
char *ValueArg);
char *Name);
void
char *Statements,
void
char *CountArg);
/*
* dbnames - namespace commands
*/
void
char *Name);
void
char *StartArg,
char *DepthArg);
void
char *OwnerArg,
char *DepthArg);
char *NameArg);
void
void);
char *ObjTypeArg,
char *DisplayCountArg);
void
void);
void
char *ObjectArg);
void
void);
/*
* dbdisply - debug display commands
*/
void
void
char *Target,
char *OutputType);
void
char *DisplayCountArg);
void
void);
void
void);
void
void);
void
void);
void
char *ObjectArg);
void
/*
* dbexec - debugger control method execution
*/
void
char *Name,
char **Args,
void
char *NumThreadsArg,
char *NumLoopsArg,
char *MethodNameArg);
#ifdef ACPI_DBG_TRACK_ALLOCATIONS
#endif
/*
* dbfileio - Debugger file I/O commands
*/
char *UserArgument,
void
void);
void
char *Name);
char *Filename);
char *Filename,
char *Filename,
/*
* dbhistry - debugger HISTORY command
*/
void
char *CommandLine);
void
void);
char *
char *CommandNumArg);
/*
* dbinput - user front-end to the AML debugger
*/
char *InputBuffer,
void ACPI_SYSTEM_XFACE
void *Context);
char Prompt,
char *
char *String,
char **Next,
/*
* dbstats - Generation and display of ACPI table statistics
*/
void
char *TypeArg);
/*
* dbutils - AML debugger utilities
*/
void
void
void
char *Name);
char *Name);
void
char *Buffer);
#endif /* __ACDEBUG_H__ */