Print this page
update to acpica-unix2-20140114
acpica-unix2-20130823
PANKOVs restructure

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/sys/acpi/acopcode.h
          +++ new/usr/src/common/acpica/include/acopcode.h
   1    1  /******************************************************************************
   2    2   *
   3    3   * Name: acopcode.h - AML opcode information for the AML parser and interpreter
   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 ↓ 28 lines elided ↑ open up ↑
  47   47  #define MAX_EXTENDED_OPCODE         0x88
  48   48  #define NUM_EXTENDED_OPCODE         (MAX_EXTENDED_OPCODE + 1)
  49   49  #define MAX_INTERNAL_OPCODE
  50   50  #define NUM_INTERNAL_OPCODE         (MAX_INTERNAL_OPCODE + 1)
  51   51  
  52   52  /* Used for non-assigned opcodes */
  53   53  
  54   54  #define _UNK                        0x6B
  55   55  
  56   56  /*
  57      - * Reserved ASCII characters.  Do not use any of these for
       57 + * Reserved ASCII characters. Do not use any of these for
  58   58   * internal opcodes, since they are used to differentiate
  59   59   * name strings from AML opcodes
  60   60   */
  61   61  #define _ASC                        0x6C
  62   62  #define _NAM                        0x6C
  63   63  #define _PFX                        0x6D
  64   64  
  65   65  
  66   66  /*
  67      - * All AML opcodes and the parse-time arguments for each.  Used by the AML
       67 + * All AML opcodes and the parse-time arguments for each. Used by the AML
  68   68   * parser  Each list is compressed into a 32-bit number and stored in the
  69   69   * master opcode table (in psopcode.c).
  70   70   */
  71   71  #define ARGP_ACCESSFIELD_OP             ARGP_LIST1 (ARGP_NAMESTRING)
  72   72  #define ARGP_ACQUIRE_OP                 ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_WORDDATA)
  73   73  #define ARGP_ADD_OP                     ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
  74   74  #define ARGP_ALIAS_OP                   ARGP_LIST2 (ARGP_NAMESTRING, ARGP_NAME)
  75   75  #define ARGP_ARG0                       ARG_NONE
  76   76  #define ARGP_ARG1                       ARG_NONE
  77   77  #define ARGP_ARG2                       ARG_NONE
↓ open down ↓ 9 lines elided ↑ open up ↑
  87   87  #define ARGP_BIT_OR_OP                  ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
  88   88  #define ARGP_BIT_XOR_OP                 ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
  89   89  #define ARGP_BREAK_OP                   ARG_NONE
  90   90  #define ARGP_BREAK_POINT_OP             ARG_NONE
  91   91  #define ARGP_BUFFER_OP                  ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_BYTELIST)
  92   92  #define ARGP_BYTE_OP                    ARGP_LIST1 (ARGP_BYTEDATA)
  93   93  #define ARGP_BYTELIST_OP                ARGP_LIST1 (ARGP_NAMESTRING)
  94   94  #define ARGP_CONCAT_OP                  ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
  95   95  #define ARGP_CONCAT_RES_OP              ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
  96   96  #define ARGP_COND_REF_OF_OP             ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_SUPERNAME)
       97 +#define ARGP_CONNECTFIELD_OP            ARGP_LIST1 (ARGP_NAMESTRING)
  97   98  #define ARGP_CONTINUE_OP                ARG_NONE
  98   99  #define ARGP_COPY_OP                    ARGP_LIST2 (ARGP_TERMARG,    ARGP_SIMPLENAME)
  99  100  #define ARGP_CREATE_BIT_FIELD_OP        ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
 100  101  #define ARGP_CREATE_BYTE_FIELD_OP       ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
 101  102  #define ARGP_CREATE_DWORD_FIELD_OP      ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
 102  103  #define ARGP_CREATE_FIELD_OP            ARGP_LIST4 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TERMARG,   ARGP_NAME)
 103  104  #define ARGP_CREATE_QWORD_FIELD_OP      ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
 104  105  #define ARGP_CREATE_WORD_FIELD_OP       ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
 105  106  #define ARGP_DATA_REGION_OP             ARGP_LIST4 (ARGP_NAME,       ARGP_TERMARG,       ARGP_TERMARG,   ARGP_TERMARG)
 106  107  #define ARGP_DEBUG_OP                   ARG_NONE
↓ open down ↓ 51 lines elided ↑ open up ↑
 158  159  #define ARGP_PROCESSOR_OP               ARGP_LIST6 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_BYTEDATA,  ARGP_DWORDDATA, ARGP_BYTEDATA,  ARGP_OBJLIST)
 159  160  #define ARGP_QWORD_OP                   ARGP_LIST1 (ARGP_QWORDDATA)
 160  161  #define ARGP_REF_OF_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
 161  162  #define ARGP_REGION_OP                  ARGP_LIST4 (ARGP_NAME,       ARGP_BYTEDATA,      ARGP_TERMARG,   ARGP_TERMARG)
 162  163  #define ARGP_RELEASE_OP                 ARGP_LIST1 (ARGP_SUPERNAME)
 163  164  #define ARGP_RESERVEDFIELD_OP           ARGP_LIST1 (ARGP_NAMESTRING)
 164  165  #define ARGP_RESET_OP                   ARGP_LIST1 (ARGP_SUPERNAME)
 165  166  #define ARGP_RETURN_OP                  ARGP_LIST1 (ARGP_TERMARG)
 166  167  #define ARGP_REVISION_OP                ARG_NONE
 167  168  #define ARGP_SCOPE_OP                   ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_TERMLIST)
      169 +#define ARGP_SERIALFIELD_OP             ARGP_LIST1 (ARGP_NAMESTRING)
 168  170  #define ARGP_SHIFT_LEFT_OP              ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
 169  171  #define ARGP_SHIFT_RIGHT_OP             ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
 170  172  #define ARGP_SIGNAL_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
 171  173  #define ARGP_SIZE_OF_OP                 ARGP_LIST1 (ARGP_SUPERNAME)
 172  174  #define ARGP_SLEEP_OP                   ARGP_LIST1 (ARGP_TERMARG)
 173  175  #define ARGP_STALL_OP                   ARGP_LIST1 (ARGP_TERMARG)
 174  176  #define ARGP_STATICSTRING_OP            ARGP_LIST1 (ARGP_NAMESTRING)
 175  177  #define ARGP_STORE_OP                   ARGP_LIST2 (ARGP_TERMARG,    ARGP_SUPERNAME)
 176  178  #define ARGP_STRING_OP                  ARGP_LIST1 (ARGP_CHARLIST)
 177  179  #define ARGP_SUBTRACT_OP                ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
↓ open down ↓ 8 lines elided ↑ open up ↑
 186  188  #define ARGP_TYPE_OP                    ARGP_LIST1 (ARGP_SUPERNAME)
 187  189  #define ARGP_UNLOAD_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
 188  190  #define ARGP_VAR_PACKAGE_OP             ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_DATAOBJLIST)
 189  191  #define ARGP_WAIT_OP                    ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_TERMARG)
 190  192  #define ARGP_WHILE_OP                   ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_TERMLIST)
 191  193  #define ARGP_WORD_OP                    ARGP_LIST1 (ARGP_WORDDATA)
 192  194  #define ARGP_ZERO_OP                    ARG_NONE
 193  195  
 194  196  
 195  197  /*
 196      - * All AML opcodes and the runtime arguments for each.  Used by the AML
      198 + * All AML opcodes and the runtime arguments for each. Used by the AML
 197  199   * interpreter  Each list is compressed into a 32-bit number and stored
 198  200   * in the master opcode table (in psopcode.c).
 199  201   *
 200  202   * (Used by PrepOperands procedure and the ASL Compiler)
 201  203   */
 202  204  #define ARGI_ACCESSFIELD_OP             ARGI_INVALID_OPCODE
 203  205  #define ARGI_ACQUIRE_OP                 ARGI_LIST2 (ARGI_MUTEX,      ARGI_INTEGER)
 204  206  #define ARGI_ADD_OP                     ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
 205  207  #define ARGI_ALIAS_OP                   ARGI_INVALID_OPCODE
 206  208  #define ARGI_ARG0                       ARG_NONE
↓ open down ↓ 11 lines elided ↑ open up ↑
 218  220  #define ARGI_BIT_OR_OP                  ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
 219  221  #define ARGI_BIT_XOR_OP                 ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
 220  222  #define ARGI_BREAK_OP                   ARG_NONE
 221  223  #define ARGI_BREAK_POINT_OP             ARG_NONE
 222  224  #define ARGI_BUFFER_OP                  ARGI_LIST1 (ARGI_INTEGER)
 223  225  #define ARGI_BYTE_OP                    ARGI_INVALID_OPCODE
 224  226  #define ARGI_BYTELIST_OP                ARGI_INVALID_OPCODE
 225  227  #define ARGI_CONCAT_OP                  ARGI_LIST3 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA,   ARGI_TARGETREF)
 226  228  #define ARGI_CONCAT_RES_OP              ARGI_LIST3 (ARGI_BUFFER,     ARGI_BUFFER,        ARGI_TARGETREF)
 227  229  #define ARGI_COND_REF_OF_OP             ARGI_LIST2 (ARGI_OBJECT_REF, ARGI_TARGETREF)
      230 +#define ARGI_CONNECTFIELD_OP            ARGI_INVALID_OPCODE
 228  231  #define ARGI_CONTINUE_OP                ARGI_INVALID_OPCODE
 229  232  #define ARGI_COPY_OP                    ARGI_LIST2 (ARGI_ANYTYPE,    ARGI_SIMPLE_TARGET)
 230  233  #define ARGI_CREATE_BIT_FIELD_OP        ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
 231  234  #define ARGI_CREATE_BYTE_FIELD_OP       ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
 232  235  #define ARGI_CREATE_DWORD_FIELD_OP      ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
 233  236  #define ARGI_CREATE_FIELD_OP            ARGI_LIST4 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_INTEGER,      ARGI_REFERENCE)
 234  237  #define ARGI_CREATE_QWORD_FIELD_OP      ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
 235  238  #define ARGI_CREATE_WORD_FIELD_OP       ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
 236  239  #define ARGI_DATA_REGION_OP             ARGI_LIST3 (ARGI_STRING,     ARGI_STRING,        ARGI_STRING)
 237  240  #define ARGI_DEBUG_OP                   ARG_NONE
↓ open down ↓ 51 lines elided ↑ open up ↑
 289  292  #define ARGI_PROCESSOR_OP               ARGI_INVALID_OPCODE
 290  293  #define ARGI_QWORD_OP                   ARGI_INVALID_OPCODE
 291  294  #define ARGI_REF_OF_OP                  ARGI_LIST1 (ARGI_OBJECT_REF)
 292  295  #define ARGI_REGION_OP                  ARGI_LIST2 (ARGI_INTEGER,    ARGI_INTEGER)
 293  296  #define ARGI_RELEASE_OP                 ARGI_LIST1 (ARGI_MUTEX)
 294  297  #define ARGI_RESERVEDFIELD_OP           ARGI_INVALID_OPCODE
 295  298  #define ARGI_RESET_OP                   ARGI_LIST1 (ARGI_EVENT)
 296  299  #define ARGI_RETURN_OP                  ARGI_INVALID_OPCODE
 297  300  #define ARGI_REVISION_OP                ARG_NONE
 298  301  #define ARGI_SCOPE_OP                   ARGI_INVALID_OPCODE
      302 +#define ARGI_SERIALFIELD_OP             ARGI_INVALID_OPCODE
 299  303  #define ARGI_SHIFT_LEFT_OP              ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
 300  304  #define ARGI_SHIFT_RIGHT_OP             ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
 301  305  #define ARGI_SIGNAL_OP                  ARGI_LIST1 (ARGI_EVENT)
 302  306  #define ARGI_SIZE_OF_OP                 ARGI_LIST1 (ARGI_DATAOBJECT)
 303  307  #define ARGI_SLEEP_OP                   ARGI_LIST1 (ARGI_INTEGER)
 304  308  #define ARGI_STALL_OP                   ARGI_LIST1 (ARGI_INTEGER)
 305  309  #define ARGI_STATICSTRING_OP            ARGI_INVALID_OPCODE
 306  310  #define ARGI_STORE_OP                   ARGI_LIST2 (ARGI_DATAREFOBJ, ARGI_TARGETREF)
 307  311  #define ARGI_STRING_OP                  ARGI_INVALID_OPCODE
 308  312  #define ARGI_SUBTRACT_OP                ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
↓ open down ↓ 17 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX