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
↓ 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  
↓ 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);
↓ 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 (
↓ 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 (
↓ 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
↓ 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
↓ 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