xref: /titanic_52/usr/src/uts/intel/sys/acpi/acopcode.h (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
17c478bd9Sstevel@tonic-gate /******************************************************************************
27c478bd9Sstevel@tonic-gate  *
37c478bd9Sstevel@tonic-gate  * Name: acopcode.h - AML opcode information for the AML parser and interpreter
47c478bd9Sstevel@tonic-gate  *
57c478bd9Sstevel@tonic-gate  *****************************************************************************/
67c478bd9Sstevel@tonic-gate 
726f3cdf0SGordon Ross /*
8*385cc6b4SJerry Jelinek  * Copyright (C) 2000 - 2016, Intel Corp.
97c478bd9Sstevel@tonic-gate  * All rights reserved.
107c478bd9Sstevel@tonic-gate  *
1126f3cdf0SGordon Ross  * Redistribution and use in source and binary forms, with or without
1226f3cdf0SGordon Ross  * modification, are permitted provided that the following conditions
1326f3cdf0SGordon Ross  * are met:
1426f3cdf0SGordon Ross  * 1. Redistributions of source code must retain the above copyright
1526f3cdf0SGordon Ross  *    notice, this list of conditions, and the following disclaimer,
1626f3cdf0SGordon Ross  *    without modification.
1726f3cdf0SGordon Ross  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
1826f3cdf0SGordon Ross  *    substantially similar to the "NO WARRANTY" disclaimer below
1926f3cdf0SGordon Ross  *    ("Disclaimer") and any redistribution must be conditioned upon
2026f3cdf0SGordon Ross  *    including a substantially similar Disclaimer requirement for further
2126f3cdf0SGordon Ross  *    binary redistribution.
2226f3cdf0SGordon Ross  * 3. Neither the names of the above-listed copyright holders nor the names
2326f3cdf0SGordon Ross  *    of any contributors may be used to endorse or promote products derived
2426f3cdf0SGordon Ross  *    from this software without specific prior written permission.
257c478bd9Sstevel@tonic-gate  *
2626f3cdf0SGordon Ross  * Alternatively, this software may be distributed under the terms of the
2726f3cdf0SGordon Ross  * GNU General Public License ("GPL") version 2 as published by the Free
2826f3cdf0SGordon Ross  * Software Foundation.
297c478bd9Sstevel@tonic-gate  *
3026f3cdf0SGordon Ross  * NO WARRANTY
3126f3cdf0SGordon Ross  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
3226f3cdf0SGordon Ross  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3326f3cdf0SGordon Ross  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
3426f3cdf0SGordon Ross  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3526f3cdf0SGordon Ross  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3626f3cdf0SGordon Ross  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3726f3cdf0SGordon Ross  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3826f3cdf0SGordon Ross  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
3926f3cdf0SGordon Ross  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
4026f3cdf0SGordon Ross  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
4126f3cdf0SGordon Ross  * POSSIBILITY OF SUCH DAMAGES.
4226f3cdf0SGordon Ross  */
437c478bd9Sstevel@tonic-gate 
447c478bd9Sstevel@tonic-gate #ifndef __ACOPCODE_H__
457c478bd9Sstevel@tonic-gate #define __ACOPCODE_H__
467c478bd9Sstevel@tonic-gate 
477c478bd9Sstevel@tonic-gate #define MAX_EXTENDED_OPCODE         0x88
487c478bd9Sstevel@tonic-gate #define NUM_EXTENDED_OPCODE         (MAX_EXTENDED_OPCODE + 1)
497c478bd9Sstevel@tonic-gate #define MAX_INTERNAL_OPCODE
507c478bd9Sstevel@tonic-gate #define NUM_INTERNAL_OPCODE         (MAX_INTERNAL_OPCODE + 1)
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate /* Used for non-assigned opcodes */
537c478bd9Sstevel@tonic-gate 
547c478bd9Sstevel@tonic-gate #define _UNK                        0x6B
557c478bd9Sstevel@tonic-gate 
567c478bd9Sstevel@tonic-gate /*
577c478bd9Sstevel@tonic-gate  * Reserved ASCII characters. Do not use any of these for
587c478bd9Sstevel@tonic-gate  * internal opcodes, since they are used to differentiate
597c478bd9Sstevel@tonic-gate  * name strings from AML opcodes
607c478bd9Sstevel@tonic-gate  */
617c478bd9Sstevel@tonic-gate #define _ASC                        0x6C
627c478bd9Sstevel@tonic-gate #define _NAM                        0x6C
637c478bd9Sstevel@tonic-gate #define _PFX                        0x6D
647c478bd9Sstevel@tonic-gate 
657c478bd9Sstevel@tonic-gate 
667c478bd9Sstevel@tonic-gate /*
677c478bd9Sstevel@tonic-gate  * All AML opcodes and the parse-time arguments for each. Used by the AML
687c478bd9Sstevel@tonic-gate  * parser  Each list is compressed into a 32-bit number and stored in the
697c478bd9Sstevel@tonic-gate  * master opcode table (in psopcode.c).
707c478bd9Sstevel@tonic-gate  */
717c478bd9Sstevel@tonic-gate #define ARGP_ACCESSFIELD_OP             ARGP_LIST1 (ARGP_NAMESTRING)
727c478bd9Sstevel@tonic-gate #define ARGP_ACQUIRE_OP                 ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_WORDDATA)
737c478bd9Sstevel@tonic-gate #define ARGP_ADD_OP                     ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
747c478bd9Sstevel@tonic-gate #define ARGP_ALIAS_OP                   ARGP_LIST2 (ARGP_NAMESTRING, ARGP_NAME)
757c478bd9Sstevel@tonic-gate #define ARGP_ARG0                       ARG_NONE
767c478bd9Sstevel@tonic-gate #define ARGP_ARG1                       ARG_NONE
777c478bd9Sstevel@tonic-gate #define ARGP_ARG2                       ARG_NONE
787c478bd9Sstevel@tonic-gate #define ARGP_ARG3                       ARG_NONE
797c478bd9Sstevel@tonic-gate #define ARGP_ARG4                       ARG_NONE
807c478bd9Sstevel@tonic-gate #define ARGP_ARG5                       ARG_NONE
817c478bd9Sstevel@tonic-gate #define ARGP_ARG6                       ARG_NONE
827c478bd9Sstevel@tonic-gate #define ARGP_BANK_FIELD_OP              ARGP_LIST6 (ARGP_PKGLENGTH,  ARGP_NAMESTRING,    ARGP_NAMESTRING,ARGP_TERMARG,   ARGP_BYTEDATA,  ARGP_FIELDLIST)
837c478bd9Sstevel@tonic-gate #define ARGP_BIT_AND_OP                 ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
847c478bd9Sstevel@tonic-gate #define ARGP_BIT_NAND_OP                ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
857c478bd9Sstevel@tonic-gate #define ARGP_BIT_NOR_OP                 ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
867c478bd9Sstevel@tonic-gate #define ARGP_BIT_NOT_OP                 ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
877c478bd9Sstevel@tonic-gate #define ARGP_BIT_OR_OP                  ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
887c478bd9Sstevel@tonic-gate #define ARGP_BIT_XOR_OP                 ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
897c478bd9Sstevel@tonic-gate #define ARGP_BREAK_OP                   ARG_NONE
907c478bd9Sstevel@tonic-gate #define ARGP_BREAK_POINT_OP             ARG_NONE
917c478bd9Sstevel@tonic-gate #define ARGP_BUFFER_OP                  ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_BYTELIST)
927c478bd9Sstevel@tonic-gate #define ARGP_BYTE_OP                    ARGP_LIST1 (ARGP_BYTEDATA)
937c478bd9Sstevel@tonic-gate #define ARGP_BYTELIST_OP                ARGP_LIST1 (ARGP_NAMESTRING)
947c478bd9Sstevel@tonic-gate #define ARGP_CONCAT_OP                  ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
957c478bd9Sstevel@tonic-gate #define ARGP_CONCAT_RES_OP              ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
96*385cc6b4SJerry Jelinek #define ARGP_COND_REF_OF_OP             ARGP_LIST2 (ARGP_NAME_OR_REF,ARGP_TARGET)
97*385cc6b4SJerry Jelinek #define ARGP_CONNECTFIELD_OP            ARGP_LIST1 (ARGP_NAMESTRING)
987c478bd9Sstevel@tonic-gate #define ARGP_CONTINUE_OP                ARG_NONE
9927f7c583Smyers #define ARGP_COPY_OP                    ARGP_LIST2 (ARGP_TERMARG,    ARGP_SIMPLENAME)
1007c478bd9Sstevel@tonic-gate #define ARGP_CREATE_BIT_FIELD_OP        ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
1017c478bd9Sstevel@tonic-gate #define ARGP_CREATE_BYTE_FIELD_OP       ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
1027c478bd9Sstevel@tonic-gate #define ARGP_CREATE_DWORD_FIELD_OP      ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
1037c478bd9Sstevel@tonic-gate #define ARGP_CREATE_FIELD_OP            ARGP_LIST4 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TERMARG,   ARGP_NAME)
1047c478bd9Sstevel@tonic-gate #define ARGP_CREATE_QWORD_FIELD_OP      ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
1057c478bd9Sstevel@tonic-gate #define ARGP_CREATE_WORD_FIELD_OP       ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
1067c478bd9Sstevel@tonic-gate #define ARGP_DATA_REGION_OP             ARGP_LIST4 (ARGP_NAME,       ARGP_TERMARG,       ARGP_TERMARG,   ARGP_TERMARG)
1077c478bd9Sstevel@tonic-gate #define ARGP_DEBUG_OP                   ARG_NONE
1087c478bd9Sstevel@tonic-gate #define ARGP_DECREMENT_OP               ARGP_LIST1 (ARGP_SUPERNAME)
1097c478bd9Sstevel@tonic-gate #define ARGP_DEREF_OF_OP                ARGP_LIST1 (ARGP_TERMARG)
1107c478bd9Sstevel@tonic-gate #define ARGP_DEVICE_OP                  ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_OBJLIST)
1117c478bd9Sstevel@tonic-gate #define ARGP_DIVIDE_OP                  ARGP_LIST4 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET,    ARGP_TARGET)
1127c478bd9Sstevel@tonic-gate #define ARGP_DWORD_OP                   ARGP_LIST1 (ARGP_DWORDDATA)
1137c478bd9Sstevel@tonic-gate #define ARGP_ELSE_OP                    ARGP_LIST2 (ARGP_PKGLENGTH,  ARGP_TERMLIST)
1147c478bd9Sstevel@tonic-gate #define ARGP_EVENT_OP                   ARGP_LIST1 (ARGP_NAME)
115*385cc6b4SJerry Jelinek #define ARGP_EXTERNAL_OP                ARGP_LIST3 (ARGP_NAMESTRING, ARGP_BYTEDATA,      ARGP_BYTEDATA)
1167c478bd9Sstevel@tonic-gate #define ARGP_FATAL_OP                   ARGP_LIST3 (ARGP_BYTEDATA,   ARGP_DWORDDATA,     ARGP_TERMARG)
1177c478bd9Sstevel@tonic-gate #define ARGP_FIELD_OP                   ARGP_LIST4 (ARGP_PKGLENGTH,  ARGP_NAMESTRING,    ARGP_BYTEDATA,  ARGP_FIELDLIST)
1187c478bd9Sstevel@tonic-gate #define ARGP_FIND_SET_LEFT_BIT_OP       ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1197c478bd9Sstevel@tonic-gate #define ARGP_FIND_SET_RIGHT_BIT_OP      ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1207c478bd9Sstevel@tonic-gate #define ARGP_FROM_BCD_OP                ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1217c478bd9Sstevel@tonic-gate #define ARGP_IF_OP                      ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_TERMLIST)
1227c478bd9Sstevel@tonic-gate #define ARGP_INCREMENT_OP               ARGP_LIST1 (ARGP_SUPERNAME)
1237c478bd9Sstevel@tonic-gate #define ARGP_INDEX_FIELD_OP             ARGP_LIST5 (ARGP_PKGLENGTH,  ARGP_NAMESTRING,    ARGP_NAMESTRING,ARGP_BYTEDATA,  ARGP_FIELDLIST)
1247c478bd9Sstevel@tonic-gate #define ARGP_INDEX_OP                   ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
1257c478bd9Sstevel@tonic-gate #define ARGP_LAND_OP                    ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1267c478bd9Sstevel@tonic-gate #define ARGP_LEQUAL_OP                  ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1277c478bd9Sstevel@tonic-gate #define ARGP_LGREATER_OP                ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1287c478bd9Sstevel@tonic-gate #define ARGP_LGREATEREQUAL_OP           ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1297c478bd9Sstevel@tonic-gate #define ARGP_LLESS_OP                   ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1307c478bd9Sstevel@tonic-gate #define ARGP_LLESSEQUAL_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1317c478bd9Sstevel@tonic-gate #define ARGP_LNOT_OP                    ARGP_LIST1 (ARGP_TERMARG)
1327c478bd9Sstevel@tonic-gate #define ARGP_LNOTEQUAL_OP               ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1337c478bd9Sstevel@tonic-gate #define ARGP_LOAD_OP                    ARGP_LIST2 (ARGP_NAMESTRING, ARGP_SUPERNAME)
1347c478bd9Sstevel@tonic-gate #define ARGP_LOAD_TABLE_OP              ARGP_LIST6 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TERMARG,   ARGP_TERMARG,  ARGP_TERMARG,   ARGP_TERMARG)
1357c478bd9Sstevel@tonic-gate #define ARGP_LOCAL0                     ARG_NONE
1367c478bd9Sstevel@tonic-gate #define ARGP_LOCAL1                     ARG_NONE
1377c478bd9Sstevel@tonic-gate #define ARGP_LOCAL2                     ARG_NONE
1387c478bd9Sstevel@tonic-gate #define ARGP_LOCAL3                     ARG_NONE
1397c478bd9Sstevel@tonic-gate #define ARGP_LOCAL4                     ARG_NONE
1407c478bd9Sstevel@tonic-gate #define ARGP_LOCAL5                     ARG_NONE
1417c478bd9Sstevel@tonic-gate #define ARGP_LOCAL6                     ARG_NONE
1427c478bd9Sstevel@tonic-gate #define ARGP_LOCAL7                     ARG_NONE
1437c478bd9Sstevel@tonic-gate #define ARGP_LOR_OP                     ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
1447c478bd9Sstevel@tonic-gate #define ARGP_MATCH_OP                   ARGP_LIST6 (ARGP_TERMARG,    ARGP_BYTEDATA,      ARGP_TERMARG,   ARGP_BYTEDATA,  ARGP_TERMARG,   ARGP_TERMARG)
1457c478bd9Sstevel@tonic-gate #define ARGP_METHOD_OP                  ARGP_LIST4 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_BYTEDATA,  ARGP_TERMLIST)
1467c478bd9Sstevel@tonic-gate #define ARGP_METHODCALL_OP              ARGP_LIST1 (ARGP_NAMESTRING)
1477c478bd9Sstevel@tonic-gate #define ARGP_MID_OP                     ARGP_LIST4 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TERMARG,   ARGP_TARGET)
1487c478bd9Sstevel@tonic-gate #define ARGP_MOD_OP                     ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
1497c478bd9Sstevel@tonic-gate #define ARGP_MULTIPLY_OP                ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
1507c478bd9Sstevel@tonic-gate #define ARGP_MUTEX_OP                   ARGP_LIST2 (ARGP_NAME,       ARGP_BYTEDATA)
1517c478bd9Sstevel@tonic-gate #define ARGP_NAME_OP                    ARGP_LIST2 (ARGP_NAME,       ARGP_DATAOBJ)
1527c478bd9Sstevel@tonic-gate #define ARGP_NAMEDFIELD_OP              ARGP_LIST1 (ARGP_NAMESTRING)
1537c478bd9Sstevel@tonic-gate #define ARGP_NAMEPATH_OP                ARGP_LIST1 (ARGP_NAMESTRING)
1547c478bd9Sstevel@tonic-gate #define ARGP_NOOP_OP                    ARG_NONE
1557c478bd9Sstevel@tonic-gate #define ARGP_NOTIFY_OP                  ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_TERMARG)
156*385cc6b4SJerry Jelinek #define ARGP_OBJECT_TYPE_OP             ARGP_LIST1 (ARGP_NAME_OR_REF)
1577c478bd9Sstevel@tonic-gate #define ARGP_ONE_OP                     ARG_NONE
1587c478bd9Sstevel@tonic-gate #define ARGP_ONES_OP                    ARG_NONE
1597c478bd9Sstevel@tonic-gate #define ARGP_PACKAGE_OP                 ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_BYTEDATA,      ARGP_DATAOBJLIST)
1607c478bd9Sstevel@tonic-gate #define ARGP_POWER_RES_OP               ARGP_LIST5 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_BYTEDATA,  ARGP_WORDDATA,  ARGP_OBJLIST)
1617c478bd9Sstevel@tonic-gate #define ARGP_PROCESSOR_OP               ARGP_LIST6 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_BYTEDATA,  ARGP_DWORDDATA, ARGP_BYTEDATA,  ARGP_OBJLIST)
1627c478bd9Sstevel@tonic-gate #define ARGP_QWORD_OP                   ARGP_LIST1 (ARGP_QWORDDATA)
163*385cc6b4SJerry Jelinek #define ARGP_REF_OF_OP                  ARGP_LIST1 (ARGP_NAME_OR_REF)
1647c478bd9Sstevel@tonic-gate #define ARGP_REGION_OP                  ARGP_LIST4 (ARGP_NAME,       ARGP_BYTEDATA,      ARGP_TERMARG,   ARGP_TERMARG)
1657c478bd9Sstevel@tonic-gate #define ARGP_RELEASE_OP                 ARGP_LIST1 (ARGP_SUPERNAME)
1667c478bd9Sstevel@tonic-gate #define ARGP_RESERVEDFIELD_OP           ARGP_LIST1 (ARGP_NAMESTRING)
1677c478bd9Sstevel@tonic-gate #define ARGP_RESET_OP                   ARGP_LIST1 (ARGP_SUPERNAME)
1687c478bd9Sstevel@tonic-gate #define ARGP_RETURN_OP                  ARGP_LIST1 (ARGP_TERMARG)
1697c478bd9Sstevel@tonic-gate #define ARGP_REVISION_OP                ARG_NONE
1707c478bd9Sstevel@tonic-gate #define ARGP_SCOPE_OP                   ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_TERMLIST)
171*385cc6b4SJerry Jelinek #define ARGP_SERIALFIELD_OP             ARGP_LIST1 (ARGP_NAMESTRING)
1727c478bd9Sstevel@tonic-gate #define ARGP_SHIFT_LEFT_OP              ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
1737c478bd9Sstevel@tonic-gate #define ARGP_SHIFT_RIGHT_OP             ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
1747c478bd9Sstevel@tonic-gate #define ARGP_SIGNAL_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
1757c478bd9Sstevel@tonic-gate #define ARGP_SIZE_OF_OP                 ARGP_LIST1 (ARGP_SUPERNAME)
1767c478bd9Sstevel@tonic-gate #define ARGP_SLEEP_OP                   ARGP_LIST1 (ARGP_TERMARG)
1777c478bd9Sstevel@tonic-gate #define ARGP_STALL_OP                   ARGP_LIST1 (ARGP_TERMARG)
1787c478bd9Sstevel@tonic-gate #define ARGP_STATICSTRING_OP            ARGP_LIST1 (ARGP_NAMESTRING)
1797c478bd9Sstevel@tonic-gate #define ARGP_STORE_OP                   ARGP_LIST2 (ARGP_TERMARG,    ARGP_SUPERNAME)
1807c478bd9Sstevel@tonic-gate #define ARGP_STRING_OP                  ARGP_LIST1 (ARGP_CHARLIST)
1817c478bd9Sstevel@tonic-gate #define ARGP_SUBTRACT_OP                ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
1827c478bd9Sstevel@tonic-gate #define ARGP_THERMAL_ZONE_OP            ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_OBJLIST)
1837c478bd9Sstevel@tonic-gate #define ARGP_TIMER_OP                   ARG_NONE
1847c478bd9Sstevel@tonic-gate #define ARGP_TO_BCD_OP                  ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1857c478bd9Sstevel@tonic-gate #define ARGP_TO_BUFFER_OP               ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1867c478bd9Sstevel@tonic-gate #define ARGP_TO_DEC_STR_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1877c478bd9Sstevel@tonic-gate #define ARGP_TO_HEX_STR_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1887c478bd9Sstevel@tonic-gate #define ARGP_TO_INTEGER_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
1897c478bd9Sstevel@tonic-gate #define ARGP_TO_STRING_OP               ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
1907c478bd9Sstevel@tonic-gate #define ARGP_UNLOAD_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
1917c478bd9Sstevel@tonic-gate #define ARGP_VAR_PACKAGE_OP             ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_DATAOBJLIST)
1927c478bd9Sstevel@tonic-gate #define ARGP_WAIT_OP                    ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_TERMARG)
1937c478bd9Sstevel@tonic-gate #define ARGP_WHILE_OP                   ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_TERMLIST)
1947c478bd9Sstevel@tonic-gate #define ARGP_WORD_OP                    ARGP_LIST1 (ARGP_WORDDATA)
1957c478bd9Sstevel@tonic-gate #define ARGP_ZERO_OP                    ARG_NONE
1967c478bd9Sstevel@tonic-gate 
1977c478bd9Sstevel@tonic-gate 
1987c478bd9Sstevel@tonic-gate /*
1997c478bd9Sstevel@tonic-gate  * All AML opcodes and the runtime arguments for each. Used by the AML
2007c478bd9Sstevel@tonic-gate  * interpreter  Each list is compressed into a 32-bit number and stored
2017c478bd9Sstevel@tonic-gate  * in the master opcode table (in psopcode.c).
2027c478bd9Sstevel@tonic-gate  *
2037c478bd9Sstevel@tonic-gate  * (Used by PrepOperands procedure and the ASL Compiler)
2047c478bd9Sstevel@tonic-gate  */
2057c478bd9Sstevel@tonic-gate #define ARGI_ACCESSFIELD_OP             ARGI_INVALID_OPCODE
2067c478bd9Sstevel@tonic-gate #define ARGI_ACQUIRE_OP                 ARGI_LIST2 (ARGI_MUTEX,      ARGI_INTEGER)
2077c478bd9Sstevel@tonic-gate #define ARGI_ADD_OP                     ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2087c478bd9Sstevel@tonic-gate #define ARGI_ALIAS_OP                   ARGI_INVALID_OPCODE
2097c478bd9Sstevel@tonic-gate #define ARGI_ARG0                       ARG_NONE
2107c478bd9Sstevel@tonic-gate #define ARGI_ARG1                       ARG_NONE
2117c478bd9Sstevel@tonic-gate #define ARGI_ARG2                       ARG_NONE
2127c478bd9Sstevel@tonic-gate #define ARGI_ARG3                       ARG_NONE
2137c478bd9Sstevel@tonic-gate #define ARGI_ARG4                       ARG_NONE
2147c478bd9Sstevel@tonic-gate #define ARGI_ARG5                       ARG_NONE
2157c478bd9Sstevel@tonic-gate #define ARGI_ARG6                       ARG_NONE
216*385cc6b4SJerry Jelinek #define ARGI_BANK_FIELD_OP              ARGI_LIST1 (ARGI_INTEGER)
2177c478bd9Sstevel@tonic-gate #define ARGI_BIT_AND_OP                 ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2187c478bd9Sstevel@tonic-gate #define ARGI_BIT_NAND_OP                ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2197c478bd9Sstevel@tonic-gate #define ARGI_BIT_NOR_OP                 ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2207c478bd9Sstevel@tonic-gate #define ARGI_BIT_NOT_OP                 ARGI_LIST2 (ARGI_INTEGER,    ARGI_TARGETREF)
2217c478bd9Sstevel@tonic-gate #define ARGI_BIT_OR_OP                  ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2227c478bd9Sstevel@tonic-gate #define ARGI_BIT_XOR_OP                 ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2237c478bd9Sstevel@tonic-gate #define ARGI_BREAK_OP                   ARG_NONE
2247c478bd9Sstevel@tonic-gate #define ARGI_BREAK_POINT_OP             ARG_NONE
2257c478bd9Sstevel@tonic-gate #define ARGI_BUFFER_OP                  ARGI_LIST1 (ARGI_INTEGER)
2267c478bd9Sstevel@tonic-gate #define ARGI_BYTE_OP                    ARGI_INVALID_OPCODE
2277c478bd9Sstevel@tonic-gate #define ARGI_BYTELIST_OP                ARGI_INVALID_OPCODE
228*385cc6b4SJerry Jelinek #define ARGI_CONCAT_OP                  ARGI_LIST3 (ARGI_ANYTYPE,    ARGI_ANYTYPE,       ARGI_TARGETREF)
2297c478bd9Sstevel@tonic-gate #define ARGI_CONCAT_RES_OP              ARGI_LIST3 (ARGI_BUFFER,     ARGI_BUFFER,        ARGI_TARGETREF)
2307c478bd9Sstevel@tonic-gate #define ARGI_COND_REF_OF_OP             ARGI_LIST2 (ARGI_OBJECT_REF, ARGI_TARGETREF)
231*385cc6b4SJerry Jelinek #define ARGI_CONNECTFIELD_OP            ARGI_INVALID_OPCODE
2327c478bd9Sstevel@tonic-gate #define ARGI_CONTINUE_OP                ARGI_INVALID_OPCODE
2337c478bd9Sstevel@tonic-gate #define ARGI_COPY_OP                    ARGI_LIST2 (ARGI_ANYTYPE,    ARGI_SIMPLE_TARGET)
2347c478bd9Sstevel@tonic-gate #define ARGI_CREATE_BIT_FIELD_OP        ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
2357c478bd9Sstevel@tonic-gate #define ARGI_CREATE_BYTE_FIELD_OP       ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
2367c478bd9Sstevel@tonic-gate #define ARGI_CREATE_DWORD_FIELD_OP      ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
2377c478bd9Sstevel@tonic-gate #define ARGI_CREATE_FIELD_OP            ARGI_LIST4 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_INTEGER,      ARGI_REFERENCE)
2387c478bd9Sstevel@tonic-gate #define ARGI_CREATE_QWORD_FIELD_OP      ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
2397c478bd9Sstevel@tonic-gate #define ARGI_CREATE_WORD_FIELD_OP       ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
2407c478bd9Sstevel@tonic-gate #define ARGI_DATA_REGION_OP             ARGI_LIST3 (ARGI_STRING,     ARGI_STRING,        ARGI_STRING)
2417c478bd9Sstevel@tonic-gate #define ARGI_DEBUG_OP                   ARG_NONE
242db2bae30SDana Myers #define ARGI_DECREMENT_OP               ARGI_LIST1 (ARGI_TARGETREF)
2437c478bd9Sstevel@tonic-gate #define ARGI_DEREF_OF_OP                ARGI_LIST1 (ARGI_REF_OR_STRING)
2447c478bd9Sstevel@tonic-gate #define ARGI_DEVICE_OP                  ARGI_INVALID_OPCODE
2457c478bd9Sstevel@tonic-gate #define ARGI_DIVIDE_OP                  ARGI_LIST4 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF,    ARGI_TARGETREF)
2467c478bd9Sstevel@tonic-gate #define ARGI_DWORD_OP                   ARGI_INVALID_OPCODE
2477c478bd9Sstevel@tonic-gate #define ARGI_ELSE_OP                    ARGI_INVALID_OPCODE
2487c478bd9Sstevel@tonic-gate #define ARGI_EVENT_OP                   ARGI_INVALID_OPCODE
249*385cc6b4SJerry Jelinek #define ARGI_EXTERNAL_OP                ARGI_LIST3 (ARGI_STRING,     ARGI_INTEGER,       ARGI_INTEGER)
2507c478bd9Sstevel@tonic-gate #define ARGI_FATAL_OP                   ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_INTEGER)
2517c478bd9Sstevel@tonic-gate #define ARGI_FIELD_OP                   ARGI_INVALID_OPCODE
2527c478bd9Sstevel@tonic-gate #define ARGI_FIND_SET_LEFT_BIT_OP       ARGI_LIST2 (ARGI_INTEGER,    ARGI_TARGETREF)
2537c478bd9Sstevel@tonic-gate #define ARGI_FIND_SET_RIGHT_BIT_OP      ARGI_LIST2 (ARGI_INTEGER,    ARGI_TARGETREF)
254450d6964Smyers #define ARGI_FROM_BCD_OP                ARGI_LIST2 (ARGI_INTEGER,    ARGI_FIXED_TARGET)
2557c478bd9Sstevel@tonic-gate #define ARGI_IF_OP                      ARGI_INVALID_OPCODE
256db2bae30SDana Myers #define ARGI_INCREMENT_OP               ARGI_LIST1 (ARGI_TARGETREF)
2577c478bd9Sstevel@tonic-gate #define ARGI_INDEX_FIELD_OP             ARGI_INVALID_OPCODE
2587c478bd9Sstevel@tonic-gate #define ARGI_INDEX_OP                   ARGI_LIST3 (ARGI_COMPLEXOBJ, ARGI_INTEGER,       ARGI_TARGETREF)
2597c478bd9Sstevel@tonic-gate #define ARGI_LAND_OP                    ARGI_LIST2 (ARGI_INTEGER,    ARGI_INTEGER)
2607c478bd9Sstevel@tonic-gate #define ARGI_LEQUAL_OP                  ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA)
2617c478bd9Sstevel@tonic-gate #define ARGI_LGREATER_OP                ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA)
2627c478bd9Sstevel@tonic-gate #define ARGI_LGREATEREQUAL_OP           ARGI_INVALID_OPCODE
2637c478bd9Sstevel@tonic-gate #define ARGI_LLESS_OP                   ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA)
2647c478bd9Sstevel@tonic-gate #define ARGI_LLESSEQUAL_OP              ARGI_INVALID_OPCODE
2657c478bd9Sstevel@tonic-gate #define ARGI_LNOT_OP                    ARGI_LIST1 (ARGI_INTEGER)
2667c478bd9Sstevel@tonic-gate #define ARGI_LNOTEQUAL_OP               ARGI_INVALID_OPCODE
267db2bae30SDana Myers #define ARGI_LOAD_OP                    ARGI_LIST2 (ARGI_REGION_OR_BUFFER,ARGI_TARGETREF)
2687c478bd9Sstevel@tonic-gate #define ARGI_LOAD_TABLE_OP              ARGI_LIST6 (ARGI_STRING,     ARGI_STRING,        ARGI_STRING,       ARGI_STRING,    ARGI_STRING, ARGI_ANYTYPE)
2697c478bd9Sstevel@tonic-gate #define ARGI_LOCAL0                     ARG_NONE
2707c478bd9Sstevel@tonic-gate #define ARGI_LOCAL1                     ARG_NONE
2717c478bd9Sstevel@tonic-gate #define ARGI_LOCAL2                     ARG_NONE
2727c478bd9Sstevel@tonic-gate #define ARGI_LOCAL3                     ARG_NONE
2737c478bd9Sstevel@tonic-gate #define ARGI_LOCAL4                     ARG_NONE
2747c478bd9Sstevel@tonic-gate #define ARGI_LOCAL5                     ARG_NONE
2757c478bd9Sstevel@tonic-gate #define ARGI_LOCAL6                     ARG_NONE
2767c478bd9Sstevel@tonic-gate #define ARGI_LOCAL7                     ARG_NONE
2777c478bd9Sstevel@tonic-gate #define ARGI_LOR_OP                     ARGI_LIST2 (ARGI_INTEGER,    ARGI_INTEGER)
2787c478bd9Sstevel@tonic-gate #define ARGI_MATCH_OP                   ARGI_LIST6 (ARGI_PACKAGE,    ARGI_INTEGER,   ARGI_COMPUTEDATA,      ARGI_INTEGER,ARGI_COMPUTEDATA,ARGI_INTEGER)
2797c478bd9Sstevel@tonic-gate #define ARGI_METHOD_OP                  ARGI_INVALID_OPCODE
2807c478bd9Sstevel@tonic-gate #define ARGI_METHODCALL_OP              ARGI_INVALID_OPCODE
2817c478bd9Sstevel@tonic-gate #define ARGI_MID_OP                     ARGI_LIST4 (ARGI_BUFFER_OR_STRING,ARGI_INTEGER,  ARGI_INTEGER,      ARGI_TARGETREF)
2827c478bd9Sstevel@tonic-gate #define ARGI_MOD_OP                     ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2837c478bd9Sstevel@tonic-gate #define ARGI_MULTIPLY_OP                ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
2847c478bd9Sstevel@tonic-gate #define ARGI_MUTEX_OP                   ARGI_INVALID_OPCODE
2857c478bd9Sstevel@tonic-gate #define ARGI_NAME_OP                    ARGI_INVALID_OPCODE
2867c478bd9Sstevel@tonic-gate #define ARGI_NAMEDFIELD_OP              ARGI_INVALID_OPCODE
2877c478bd9Sstevel@tonic-gate #define ARGI_NAMEPATH_OP                ARGI_INVALID_OPCODE
2887c478bd9Sstevel@tonic-gate #define ARGI_NOOP_OP                    ARG_NONE
2897c478bd9Sstevel@tonic-gate #define ARGI_NOTIFY_OP                  ARGI_LIST2 (ARGI_DEVICE_REF, ARGI_INTEGER)
290*385cc6b4SJerry Jelinek #define ARGI_OBJECT_TYPE_OP             ARGI_LIST1 (ARGI_ANYTYPE)
2917c478bd9Sstevel@tonic-gate #define ARGI_ONE_OP                     ARG_NONE
2927c478bd9Sstevel@tonic-gate #define ARGI_ONES_OP                    ARG_NONE
2937c478bd9Sstevel@tonic-gate #define ARGI_PACKAGE_OP                 ARGI_LIST1 (ARGI_INTEGER)
2947c478bd9Sstevel@tonic-gate #define ARGI_POWER_RES_OP               ARGI_INVALID_OPCODE
2957c478bd9Sstevel@tonic-gate #define ARGI_PROCESSOR_OP               ARGI_INVALID_OPCODE
2967c478bd9Sstevel@tonic-gate #define ARGI_QWORD_OP                   ARGI_INVALID_OPCODE
2977c478bd9Sstevel@tonic-gate #define ARGI_REF_OF_OP                  ARGI_LIST1 (ARGI_OBJECT_REF)
2987c478bd9Sstevel@tonic-gate #define ARGI_REGION_OP                  ARGI_LIST2 (ARGI_INTEGER,    ARGI_INTEGER)
2997c478bd9Sstevel@tonic-gate #define ARGI_RELEASE_OP                 ARGI_LIST1 (ARGI_MUTEX)
3007c478bd9Sstevel@tonic-gate #define ARGI_RESERVEDFIELD_OP           ARGI_INVALID_OPCODE
3017c478bd9Sstevel@tonic-gate #define ARGI_RESET_OP                   ARGI_LIST1 (ARGI_EVENT)
3027c478bd9Sstevel@tonic-gate #define ARGI_RETURN_OP                  ARGI_INVALID_OPCODE
3037c478bd9Sstevel@tonic-gate #define ARGI_REVISION_OP                ARG_NONE
3047c478bd9Sstevel@tonic-gate #define ARGI_SCOPE_OP                   ARGI_INVALID_OPCODE
305*385cc6b4SJerry Jelinek #define ARGI_SERIALFIELD_OP             ARGI_INVALID_OPCODE
3067c478bd9Sstevel@tonic-gate #define ARGI_SHIFT_LEFT_OP              ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
3077c478bd9Sstevel@tonic-gate #define ARGI_SHIFT_RIGHT_OP             ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
3087c478bd9Sstevel@tonic-gate #define ARGI_SIGNAL_OP                  ARGI_LIST1 (ARGI_EVENT)
3097c478bd9Sstevel@tonic-gate #define ARGI_SIZE_OF_OP                 ARGI_LIST1 (ARGI_DATAOBJECT)
3107c478bd9Sstevel@tonic-gate #define ARGI_SLEEP_OP                   ARGI_LIST1 (ARGI_INTEGER)
3117c478bd9Sstevel@tonic-gate #define ARGI_STALL_OP                   ARGI_LIST1 (ARGI_INTEGER)
3127c478bd9Sstevel@tonic-gate #define ARGI_STATICSTRING_OP            ARGI_INVALID_OPCODE
313*385cc6b4SJerry Jelinek #define ARGI_STORE_OP                   ARGI_LIST2 (ARGI_DATAREFOBJ, ARGI_STORE_TARGET)
3147c478bd9Sstevel@tonic-gate #define ARGI_STRING_OP                  ARGI_INVALID_OPCODE
3157c478bd9Sstevel@tonic-gate #define ARGI_SUBTRACT_OP                ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
3167c478bd9Sstevel@tonic-gate #define ARGI_THERMAL_ZONE_OP            ARGI_INVALID_OPCODE
3177c478bd9Sstevel@tonic-gate #define ARGI_TIMER_OP                   ARG_NONE
3187c478bd9Sstevel@tonic-gate #define ARGI_TO_BCD_OP                  ARGI_LIST2 (ARGI_INTEGER,    ARGI_FIXED_TARGET)
3197c478bd9Sstevel@tonic-gate #define ARGI_TO_BUFFER_OP               ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
3207c478bd9Sstevel@tonic-gate #define ARGI_TO_DEC_STR_OP              ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
3217c478bd9Sstevel@tonic-gate #define ARGI_TO_HEX_STR_OP              ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
3227c478bd9Sstevel@tonic-gate #define ARGI_TO_INTEGER_OP              ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
3237c478bd9Sstevel@tonic-gate #define ARGI_TO_STRING_OP               ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_FIXED_TARGET)
3247c478bd9Sstevel@tonic-gate #define ARGI_UNLOAD_OP                  ARGI_LIST1 (ARGI_DDBHANDLE)
3257c478bd9Sstevel@tonic-gate #define ARGI_VAR_PACKAGE_OP             ARGI_LIST1 (ARGI_INTEGER)
3267c478bd9Sstevel@tonic-gate #define ARGI_WAIT_OP                    ARGI_LIST2 (ARGI_EVENT,      ARGI_INTEGER)
3277c478bd9Sstevel@tonic-gate #define ARGI_WHILE_OP                   ARGI_INVALID_OPCODE
3287c478bd9Sstevel@tonic-gate #define ARGI_WORD_OP                    ARGI_INVALID_OPCODE
3297c478bd9Sstevel@tonic-gate #define ARGI_ZERO_OP                    ARG_NONE
3307c478bd9Sstevel@tonic-gate 
3317c478bd9Sstevel@tonic-gate #endif /* __ACOPCODE_H__ */
332