Print this page
update to acpica-unix2-20140114
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 - 2014, 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  
      167 +void
      168 +AcpiDbExecuteTest (
      169 +    char                    *TypeArg);
      170 +
      171 +
 150  172  /*
      173 + * dbconvert - miscellaneous conversion routines
      174 + */
      175 +ACPI_STATUS
      176 +AcpiDbHexCharToValue (
      177 +    int                     HexChar,
      178 +    UINT8                   *ReturnValue);
      179 +
      180 +ACPI_STATUS
      181 +AcpiDbConvertToPackage (
      182 +    char                    *String,
      183 +    ACPI_OBJECT             *Object);
      184 +
      185 +ACPI_STATUS
      186 +AcpiDbConvertToObject (
      187 +    ACPI_OBJECT_TYPE        Type,
      188 +    char                    *String,
      189 +    ACPI_OBJECT             *Object);
      190 +
      191 +UINT8 *
      192 +AcpiDbEncodePldBuffer (
      193 +    ACPI_PLD_INFO           *PldInfo);
      194 +
      195 +void
      196 +AcpiDbDumpPldBuffer (
      197 +    ACPI_OBJECT             *ObjDesc);
      198 +
      199 +
      200 +/*
 151  201   * dbmethod - control method commands
 152  202   */
 153  203  void
 154  204  AcpiDbSetMethodBreakpoint (
 155  205      char                    *Location,
 156  206      ACPI_WALK_STATE         *WalkState,
 157  207      ACPI_PARSE_OBJECT       *Op);
 158  208  
 159  209  void
 160  210  AcpiDbSetMethodCallBreakpoint (
↓ open down ↓ 25 lines elided ↑ open up ↑
 186  236  void
 187  237  AcpiDbSetScope (
 188  238      char                    *Name);
 189  239  
 190  240  void
 191  241  AcpiDbDumpNamespace (
 192  242      char                    *StartArg,
 193  243      char                    *DepthArg);
 194  244  
 195  245  void
      246 +AcpiDbDumpNamespacePaths (
      247 +    void);
      248 +
      249 +void
 196  250  AcpiDbDumpNamespaceByOwner (
 197  251      char                    *OwnerArg,
 198  252      char                    *DepthArg);
 199  253  
 200  254  ACPI_STATUS
 201  255  AcpiDbFindNameInNamespace (
 202  256      char                    *NameArg);
 203  257  
 204  258  void
 205  259  AcpiDbCheckPredefinedNames (
↓ open down ↓ 73 lines elided ↑ open up ↑
 279  333      char                    **Args,
 280  334      ACPI_OBJECT_TYPE        *Types,
 281  335      UINT32                  Flags);
 282  336  
 283  337  void
 284  338  AcpiDbCreateExecutionThreads (
 285  339      char                    *NumThreadsArg,
 286  340      char                    *NumLoopsArg,
 287  341      char                    *MethodNameArg);
 288  342  
      343 +void
      344 +AcpiDbDeleteObjects (
      345 +    UINT32                  Count,
      346 +    ACPI_OBJECT             *Objects);
      347 +
 289  348  #ifdef ACPI_DBG_TRACK_ALLOCATIONS
 290  349  UINT32
 291  350  AcpiDbGetCacheInfo (
 292  351      ACPI_MEMORY_LIST        *Cache);
 293  352  #endif
 294  353  
 295  354  
 296  355  /*
 297  356   * dbfileio - Debugger file I/O commands
 298  357   */
 299  358  ACPI_OBJECT_TYPE
 300  359  AcpiDbMatchArgument (
 301  360      char                    *UserArgument,
 302      -    ARGUMENT_INFO           *Arguments);
      361 +    ACPI_DB_ARGUMENT_INFO   *Arguments);
 303  362  
 304  363  void
 305  364  AcpiDbCloseDebugFile (
 306  365      void);
 307  366  
 308  367  void
 309  368  AcpiDbOpenDebugFile (
 310  369      char                    *Name);
 311  370  
 312  371  ACPI_STATUS
↓ open down ↓ 19 lines elided ↑ open up ↑
 332  391      char                    *CommandLine);
 333  392  
 334  393  void
 335  394  AcpiDbDisplayHistory (
 336  395      void);
 337  396  
 338  397  char *
 339  398  AcpiDbGetFromHistory (
 340  399      char                    *CommandNumArg);
 341  400  
      401 +char *
      402 +AcpiDbGetHistoryByIndex (
      403 +    UINT32                  CommanddNum);
 342  404  
      405 +
 343  406  /*
 344  407   * dbinput - user front-end to the AML debugger
 345  408   */
 346  409  ACPI_STATUS
 347  410  AcpiDbCommandDispatch (
 348  411      char                    *InputBuffer,
 349  412      ACPI_WALK_STATE         *WalkState,
 350  413      ACPI_PARSE_OBJECT       *Op);
 351  414  
 352  415  void ACPI_SYSTEM_XFACE
↓ open down ↓ 39 lines elided ↑ open up ↑
 392  455  
 393  456  void
 394  457  AcpiDbPrepNamestring (
 395  458      char                    *Name);
 396  459  
 397  460  ACPI_NAMESPACE_NODE *
 398  461  AcpiDbLocalNsLookup (
 399  462      char                    *Name);
 400  463  
 401  464  void
 402      -AcpiDbUInt32ToHexString (
      465 +AcpiDbUint32ToHexString (
 403  466      UINT32                  Value,
 404  467      char                    *Buffer);
 405  468  
 406  469  #endif  /* __ACDEBUG_H__ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX