1e2f7a777SLen Brown /****************************************************************************** 2e2f7a777SLen Brown * 3e2f7a777SLen Brown * Name: acopcode.h - AML opcode information for the AML parser and interpreter 4e2f7a777SLen Brown * 5e2f7a777SLen Brown *****************************************************************************/ 6e2f7a777SLen Brown 7e2f7a777SLen Brown /* 8c8100dc4SBob Moore * Copyright (C) 2000 - 2016, Intel Corp. 9e2f7a777SLen Brown * All rights reserved. 10e2f7a777SLen Brown * 11e2f7a777SLen Brown * Redistribution and use in source and binary forms, with or without 12e2f7a777SLen Brown * modification, are permitted provided that the following conditions 13e2f7a777SLen Brown * are met: 14e2f7a777SLen Brown * 1. Redistributions of source code must retain the above copyright 15e2f7a777SLen Brown * notice, this list of conditions, and the following disclaimer, 16e2f7a777SLen Brown * without modification. 17e2f7a777SLen Brown * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18e2f7a777SLen Brown * substantially similar to the "NO WARRANTY" disclaimer below 19e2f7a777SLen Brown * ("Disclaimer") and any redistribution must be conditioned upon 20e2f7a777SLen Brown * including a substantially similar Disclaimer requirement for further 21e2f7a777SLen Brown * binary redistribution. 22e2f7a777SLen Brown * 3. Neither the names of the above-listed copyright holders nor the names 23e2f7a777SLen Brown * of any contributors may be used to endorse or promote products derived 24e2f7a777SLen Brown * from this software without specific prior written permission. 25e2f7a777SLen Brown * 26e2f7a777SLen Brown * Alternatively, this software may be distributed under the terms of the 27e2f7a777SLen Brown * GNU General Public License ("GPL") version 2 as published by the Free 28e2f7a777SLen Brown * Software Foundation. 29e2f7a777SLen Brown * 30e2f7a777SLen Brown * NO WARRANTY 31e2f7a777SLen Brown * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32e2f7a777SLen Brown * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33e2f7a777SLen Brown * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34e2f7a777SLen Brown * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35e2f7a777SLen Brown * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36e2f7a777SLen Brown * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37e2f7a777SLen Brown * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38e2f7a777SLen Brown * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39e2f7a777SLen Brown * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40e2f7a777SLen Brown * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41e2f7a777SLen Brown * POSSIBILITY OF SUCH DAMAGES. 42e2f7a777SLen Brown */ 43e2f7a777SLen Brown 44e2f7a777SLen Brown #ifndef __ACOPCODE_H__ 45e2f7a777SLen Brown #define __ACOPCODE_H__ 46e2f7a777SLen Brown 47e2f7a777SLen Brown #define MAX_EXTENDED_OPCODE 0x88 48e2f7a777SLen Brown #define NUM_EXTENDED_OPCODE (MAX_EXTENDED_OPCODE + 1) 49e2f7a777SLen Brown #define MAX_INTERNAL_OPCODE 50e2f7a777SLen Brown #define NUM_INTERNAL_OPCODE (MAX_INTERNAL_OPCODE + 1) 51e2f7a777SLen Brown 52e2f7a777SLen Brown /* Used for non-assigned opcodes */ 53e2f7a777SLen Brown 54e2f7a777SLen Brown #define _UNK 0x6B 55e2f7a777SLen Brown 56e2f7a777SLen Brown /* 57e2f7a777SLen Brown * Reserved ASCII characters. Do not use any of these for 58e2f7a777SLen Brown * internal opcodes, since they are used to differentiate 59e2f7a777SLen Brown * name strings from AML opcodes 60e2f7a777SLen Brown */ 61e2f7a777SLen Brown #define _ASC 0x6C 62e2f7a777SLen Brown #define _NAM 0x6C 63e2f7a777SLen Brown #define _PFX 0x6D 64e2f7a777SLen Brown 65e2f7a777SLen Brown /* 66e2f7a777SLen Brown * All AML opcodes and the parse-time arguments for each. Used by the AML 67e2f7a777SLen Brown * parser Each list is compressed into a 32-bit number and stored in the 68e2f7a777SLen Brown * master opcode table (in psopcode.c). 69e2f7a777SLen Brown */ 70e2f7a777SLen Brown #define ARGP_ACCESSFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 71e2f7a777SLen Brown #define ARGP_ACQUIRE_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_WORDDATA) 72e2f7a777SLen Brown #define ARGP_ADD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 73e2f7a777SLen Brown #define ARGP_ALIAS_OP ARGP_LIST2 (ARGP_NAMESTRING, ARGP_NAME) 74e2f7a777SLen Brown #define ARGP_ARG0 ARG_NONE 75e2f7a777SLen Brown #define ARGP_ARG1 ARG_NONE 76e2f7a777SLen Brown #define ARGP_ARG2 ARG_NONE 77e2f7a777SLen Brown #define ARGP_ARG3 ARG_NONE 78e2f7a777SLen Brown #define ARGP_ARG4 ARG_NONE 79e2f7a777SLen Brown #define ARGP_ARG5 ARG_NONE 80e2f7a777SLen Brown #define ARGP_ARG6 ARG_NONE 81e2f7a777SLen Brown #define ARGP_BANK_FIELD_OP ARGP_LIST6 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_NAMESTRING,ARGP_TERMARG, ARGP_BYTEDATA, ARGP_FIELDLIST) 82e2f7a777SLen Brown #define ARGP_BIT_AND_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 83e2f7a777SLen Brown #define ARGP_BIT_NAND_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 84e2f7a777SLen Brown #define ARGP_BIT_NOR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 85e2f7a777SLen Brown #define ARGP_BIT_NOT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 86e2f7a777SLen Brown #define ARGP_BIT_OR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 87e2f7a777SLen Brown #define ARGP_BIT_XOR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 88e2f7a777SLen Brown #define ARGP_BREAK_OP ARG_NONE 89e2f7a777SLen Brown #define ARGP_BREAK_POINT_OP ARG_NONE 90e2f7a777SLen Brown #define ARGP_BUFFER_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_BYTELIST) 91e2f7a777SLen Brown #define ARGP_BYTE_OP ARGP_LIST1 (ARGP_BYTEDATA) 92e2f7a777SLen Brown #define ARGP_BYTELIST_OP ARGP_LIST1 (ARGP_NAMESTRING) 93e2f7a777SLen Brown #define ARGP_CONCAT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 94e2f7a777SLen Brown #define ARGP_CONCAT_RES_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 953c5d3d25SBob Moore #define ARGP_COND_REF_OF_OP ARGP_LIST2 (ARGP_NAME_OR_REF,ARGP_TARGET) 969ce81784SBob Moore #define ARGP_CONNECTFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 97e2f7a777SLen Brown #define ARGP_CONTINUE_OP ARG_NONE 98e2f7a777SLen Brown #define ARGP_COPY_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_SIMPLENAME) 99e2f7a777SLen Brown #define ARGP_CREATE_BIT_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 100e2f7a777SLen Brown #define ARGP_CREATE_BYTE_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 101e2f7a777SLen Brown #define ARGP_CREATE_DWORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 102e2f7a777SLen Brown #define ARGP_CREATE_FIELD_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 103e2f7a777SLen Brown #define ARGP_CREATE_QWORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 104e2f7a777SLen Brown #define ARGP_CREATE_WORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 105e2f7a777SLen Brown #define ARGP_DATA_REGION_OP ARGP_LIST4 (ARGP_NAME, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG) 106e2f7a777SLen Brown #define ARGP_DEBUG_OP ARG_NONE 107e2f7a777SLen Brown #define ARGP_DECREMENT_OP ARGP_LIST1 (ARGP_SUPERNAME) 108e2f7a777SLen Brown #define ARGP_DEREF_OF_OP ARGP_LIST1 (ARGP_TERMARG) 109e2f7a777SLen Brown #define ARGP_DEVICE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_OBJLIST) 110e2f7a777SLen Brown #define ARGP_DIVIDE_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET, ARGP_TARGET) 111e2f7a777SLen Brown #define ARGP_DWORD_OP ARGP_LIST1 (ARGP_DWORDDATA) 112e2f7a777SLen Brown #define ARGP_ELSE_OP ARGP_LIST2 (ARGP_PKGLENGTH, ARGP_TERMLIST) 113e2f7a777SLen Brown #define ARGP_EVENT_OP ARGP_LIST1 (ARGP_NAME) 11456a3d5e7SBob Moore #define ARGP_EXTERNAL_OP ARGP_LIST3 (ARGP_NAMESTRING, ARGP_BYTEDATA, ARGP_BYTEDATA) 115e2f7a777SLen Brown #define ARGP_FATAL_OP ARGP_LIST3 (ARGP_BYTEDATA, ARGP_DWORDDATA, ARGP_TERMARG) 116e2f7a777SLen Brown #define ARGP_FIELD_OP ARGP_LIST4 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_BYTEDATA, ARGP_FIELDLIST) 117e2f7a777SLen Brown #define ARGP_FIND_SET_LEFT_BIT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 118e2f7a777SLen Brown #define ARGP_FIND_SET_RIGHT_BIT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 119e2f7a777SLen Brown #define ARGP_FROM_BCD_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 120e2f7a777SLen Brown #define ARGP_IF_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_TERMLIST) 121e2f7a777SLen Brown #define ARGP_INCREMENT_OP ARGP_LIST1 (ARGP_SUPERNAME) 122e2f7a777SLen Brown #define ARGP_INDEX_FIELD_OP ARGP_LIST5 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_NAMESTRING,ARGP_BYTEDATA, ARGP_FIELDLIST) 123e2f7a777SLen Brown #define ARGP_INDEX_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 124e2f7a777SLen Brown #define ARGP_LAND_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 125e2f7a777SLen Brown #define ARGP_LEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 126e2f7a777SLen Brown #define ARGP_LGREATER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 127e2f7a777SLen Brown #define ARGP_LGREATEREQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 128e2f7a777SLen Brown #define ARGP_LLESS_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 129e2f7a777SLen Brown #define ARGP_LLESSEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 130e2f7a777SLen Brown #define ARGP_LNOT_OP ARGP_LIST1 (ARGP_TERMARG) 131e2f7a777SLen Brown #define ARGP_LNOTEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 132e2f7a777SLen Brown #define ARGP_LOAD_OP ARGP_LIST2 (ARGP_NAMESTRING, ARGP_SUPERNAME) 133e2f7a777SLen Brown #define ARGP_LOAD_TABLE_OP ARGP_LIST6 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG) 134e2f7a777SLen Brown #define ARGP_LOCAL0 ARG_NONE 135e2f7a777SLen Brown #define ARGP_LOCAL1 ARG_NONE 136e2f7a777SLen Brown #define ARGP_LOCAL2 ARG_NONE 137e2f7a777SLen Brown #define ARGP_LOCAL3 ARG_NONE 138e2f7a777SLen Brown #define ARGP_LOCAL4 ARG_NONE 139e2f7a777SLen Brown #define ARGP_LOCAL5 ARG_NONE 140e2f7a777SLen Brown #define ARGP_LOCAL6 ARG_NONE 141e2f7a777SLen Brown #define ARGP_LOCAL7 ARG_NONE 142e2f7a777SLen Brown #define ARGP_LOR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 143e2f7a777SLen Brown #define ARGP_MATCH_OP ARGP_LIST6 (ARGP_TERMARG, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_TERMARG) 144e2f7a777SLen Brown #define ARGP_METHOD_OP ARGP_LIST4 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_TERMLIST) 145e2f7a777SLen Brown #define ARGP_METHODCALL_OP ARGP_LIST1 (ARGP_NAMESTRING) 146e2f7a777SLen Brown #define ARGP_MID_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 147e2f7a777SLen Brown #define ARGP_MOD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 148e2f7a777SLen Brown #define ARGP_MULTIPLY_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 149e2f7a777SLen Brown #define ARGP_MUTEX_OP ARGP_LIST2 (ARGP_NAME, ARGP_BYTEDATA) 150e2f7a777SLen Brown #define ARGP_NAME_OP ARGP_LIST2 (ARGP_NAME, ARGP_DATAOBJ) 151e2f7a777SLen Brown #define ARGP_NAMEDFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 152e2f7a777SLen Brown #define ARGP_NAMEPATH_OP ARGP_LIST1 (ARGP_NAMESTRING) 153e2f7a777SLen Brown #define ARGP_NOOP_OP ARG_NONE 154e2f7a777SLen Brown #define ARGP_NOTIFY_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_TERMARG) 155f70008d3SBob Moore #define ARGP_OBJECT_TYPE_OP ARGP_LIST1 (ARGP_NAME_OR_REF) 156e2f7a777SLen Brown #define ARGP_ONE_OP ARG_NONE 157e2f7a777SLen Brown #define ARGP_ONES_OP ARG_NONE 158e2f7a777SLen Brown #define ARGP_PACKAGE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_BYTEDATA, ARGP_DATAOBJLIST) 159e2f7a777SLen Brown #define ARGP_POWER_RES_OP ARGP_LIST5 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_WORDDATA, ARGP_OBJLIST) 160e2f7a777SLen Brown #define ARGP_PROCESSOR_OP ARGP_LIST6 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_DWORDDATA, ARGP_BYTEDATA, ARGP_OBJLIST) 161e2f7a777SLen Brown #define ARGP_QWORD_OP ARGP_LIST1 (ARGP_QWORDDATA) 1623c5d3d25SBob Moore #define ARGP_REF_OF_OP ARGP_LIST1 (ARGP_NAME_OR_REF) 163e2f7a777SLen Brown #define ARGP_REGION_OP ARGP_LIST4 (ARGP_NAME, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_TERMARG) 164e2f7a777SLen Brown #define ARGP_RELEASE_OP ARGP_LIST1 (ARGP_SUPERNAME) 165e2f7a777SLen Brown #define ARGP_RESERVEDFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 166e2f7a777SLen Brown #define ARGP_RESET_OP ARGP_LIST1 (ARGP_SUPERNAME) 167e2f7a777SLen Brown #define ARGP_RETURN_OP ARGP_LIST1 (ARGP_TERMARG) 168e2f7a777SLen Brown #define ARGP_REVISION_OP ARG_NONE 169e2f7a777SLen Brown #define ARGP_SCOPE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_TERMLIST) 1709ce81784SBob Moore #define ARGP_SERIALFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 171e2f7a777SLen Brown #define ARGP_SHIFT_LEFT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 172e2f7a777SLen Brown #define ARGP_SHIFT_RIGHT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 173e2f7a777SLen Brown #define ARGP_SIGNAL_OP ARGP_LIST1 (ARGP_SUPERNAME) 174e2f7a777SLen Brown #define ARGP_SIZE_OF_OP ARGP_LIST1 (ARGP_SUPERNAME) 175e2f7a777SLen Brown #define ARGP_SLEEP_OP ARGP_LIST1 (ARGP_TERMARG) 176e2f7a777SLen Brown #define ARGP_STALL_OP ARGP_LIST1 (ARGP_TERMARG) 177e2f7a777SLen Brown #define ARGP_STATICSTRING_OP ARGP_LIST1 (ARGP_NAMESTRING) 178e2f7a777SLen Brown #define ARGP_STORE_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_SUPERNAME) 179e2f7a777SLen Brown #define ARGP_STRING_OP ARGP_LIST1 (ARGP_CHARLIST) 180e2f7a777SLen Brown #define ARGP_SUBTRACT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 181e2f7a777SLen Brown #define ARGP_THERMAL_ZONE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_OBJLIST) 182e2f7a777SLen Brown #define ARGP_TIMER_OP ARG_NONE 183e2f7a777SLen Brown #define ARGP_TO_BCD_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 184e2f7a777SLen Brown #define ARGP_TO_BUFFER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 185e2f7a777SLen Brown #define ARGP_TO_DEC_STR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 186e2f7a777SLen Brown #define ARGP_TO_HEX_STR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 187e2f7a777SLen Brown #define ARGP_TO_INTEGER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 188e2f7a777SLen Brown #define ARGP_TO_STRING_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 189e2f7a777SLen Brown #define ARGP_UNLOAD_OP ARGP_LIST1 (ARGP_SUPERNAME) 190e2f7a777SLen Brown #define ARGP_VAR_PACKAGE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_DATAOBJLIST) 191e2f7a777SLen Brown #define ARGP_WAIT_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_TERMARG) 192e2f7a777SLen Brown #define ARGP_WHILE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_TERMLIST) 193e2f7a777SLen Brown #define ARGP_WORD_OP ARGP_LIST1 (ARGP_WORDDATA) 194e2f7a777SLen Brown #define ARGP_ZERO_OP ARG_NONE 195e2f7a777SLen Brown 196e2f7a777SLen Brown /* 197e2f7a777SLen Brown * All AML opcodes and the runtime arguments for each. Used by the AML 198e2f7a777SLen Brown * interpreter Each list is compressed into a 32-bit number and stored 199e2f7a777SLen Brown * in the master opcode table (in psopcode.c). 200e2f7a777SLen Brown * 201e2f7a777SLen Brown * (Used by prep_operands procedure and the ASL Compiler) 202e2f7a777SLen Brown */ 203e2f7a777SLen Brown #define ARGI_ACCESSFIELD_OP ARGI_INVALID_OPCODE 204e2f7a777SLen Brown #define ARGI_ACQUIRE_OP ARGI_LIST2 (ARGI_MUTEX, ARGI_INTEGER) 205e2f7a777SLen Brown #define ARGI_ADD_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 206e2f7a777SLen Brown #define ARGI_ALIAS_OP ARGI_INVALID_OPCODE 207e2f7a777SLen Brown #define ARGI_ARG0 ARG_NONE 208e2f7a777SLen Brown #define ARGI_ARG1 ARG_NONE 209e2f7a777SLen Brown #define ARGI_ARG2 ARG_NONE 210e2f7a777SLen Brown #define ARGI_ARG3 ARG_NONE 211e2f7a777SLen Brown #define ARGI_ARG4 ARG_NONE 212e2f7a777SLen Brown #define ARGI_ARG5 ARG_NONE 213e2f7a777SLen Brown #define ARGI_ARG6 ARG_NONE 214a5922a1fSBob Moore #define ARGI_BANK_FIELD_OP ARGI_LIST1 (ARGI_INTEGER) 215e2f7a777SLen Brown #define ARGI_BIT_AND_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 216e2f7a777SLen Brown #define ARGI_BIT_NAND_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 217e2f7a777SLen Brown #define ARGI_BIT_NOR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 218e2f7a777SLen Brown #define ARGI_BIT_NOT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 219e2f7a777SLen Brown #define ARGI_BIT_OR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 220e2f7a777SLen Brown #define ARGI_BIT_XOR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 221e2f7a777SLen Brown #define ARGI_BREAK_OP ARG_NONE 222e2f7a777SLen Brown #define ARGI_BREAK_POINT_OP ARG_NONE 223e2f7a777SLen Brown #define ARGI_BUFFER_OP ARGI_LIST1 (ARGI_INTEGER) 224e2f7a777SLen Brown #define ARGI_BYTE_OP ARGI_INVALID_OPCODE 225e2f7a777SLen Brown #define ARGI_BYTELIST_OP ARGI_INVALID_OPCODE 2267910617eSBob Moore #define ARGI_CONCAT_OP ARGI_LIST3 (ARGI_ANYTYPE, ARGI_ANYTYPE, ARGI_TARGETREF) 227e2f7a777SLen Brown #define ARGI_CONCAT_RES_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_BUFFER, ARGI_TARGETREF) 228e2f7a777SLen Brown #define ARGI_COND_REF_OF_OP ARGI_LIST2 (ARGI_OBJECT_REF, ARGI_TARGETREF) 2299ce81784SBob Moore #define ARGI_CONNECTFIELD_OP ARGI_INVALID_OPCODE 230e2f7a777SLen Brown #define ARGI_CONTINUE_OP ARGI_INVALID_OPCODE 231e2f7a777SLen Brown #define ARGI_COPY_OP ARGI_LIST2 (ARGI_ANYTYPE, ARGI_SIMPLE_TARGET) 232e2f7a777SLen Brown #define ARGI_CREATE_BIT_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 233e2f7a777SLen Brown #define ARGI_CREATE_BYTE_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 234e2f7a777SLen Brown #define ARGI_CREATE_DWORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 235e2f7a777SLen Brown #define ARGI_CREATE_FIELD_OP ARGI_LIST4 (ARGI_BUFFER, ARGI_INTEGER, ARGI_INTEGER, ARGI_REFERENCE) 236e2f7a777SLen Brown #define ARGI_CREATE_QWORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 237e2f7a777SLen Brown #define ARGI_CREATE_WORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 238e2f7a777SLen Brown #define ARGI_DATA_REGION_OP ARGI_LIST3 (ARGI_STRING, ARGI_STRING, ARGI_STRING) 239e2f7a777SLen Brown #define ARGI_DEBUG_OP ARG_NONE 240e2f7a777SLen Brown #define ARGI_DECREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) 241e2f7a777SLen Brown #define ARGI_DEREF_OF_OP ARGI_LIST1 (ARGI_REF_OR_STRING) 242e2f7a777SLen Brown #define ARGI_DEVICE_OP ARGI_INVALID_OPCODE 243e2f7a777SLen Brown #define ARGI_DIVIDE_OP ARGI_LIST4 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF, ARGI_TARGETREF) 244e2f7a777SLen Brown #define ARGI_DWORD_OP ARGI_INVALID_OPCODE 245e2f7a777SLen Brown #define ARGI_ELSE_OP ARGI_INVALID_OPCODE 246e2f7a777SLen Brown #define ARGI_EVENT_OP ARGI_INVALID_OPCODE 24756a3d5e7SBob Moore #define ARGI_EXTERNAL_OP ARGI_LIST3 (ARGI_STRING, ARGI_INTEGER, ARGI_INTEGER) 248e2f7a777SLen Brown #define ARGI_FATAL_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_INTEGER) 249e2f7a777SLen Brown #define ARGI_FIELD_OP ARGI_INVALID_OPCODE 250e2f7a777SLen Brown #define ARGI_FIND_SET_LEFT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 251e2f7a777SLen Brown #define ARGI_FIND_SET_RIGHT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 25274e30f96SBob Moore #define ARGI_FROM_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 253e2f7a777SLen Brown #define ARGI_IF_OP ARGI_INVALID_OPCODE 254e2f7a777SLen Brown #define ARGI_INCREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) 255e2f7a777SLen Brown #define ARGI_INDEX_FIELD_OP ARGI_INVALID_OPCODE 256e2f7a777SLen Brown #define ARGI_INDEX_OP ARGI_LIST3 (ARGI_COMPLEXOBJ, ARGI_INTEGER, ARGI_TARGETREF) 257e2f7a777SLen Brown #define ARGI_LAND_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) 258e2f7a777SLen Brown #define ARGI_LEQUAL_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) 259e2f7a777SLen Brown #define ARGI_LGREATER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) 260e2f7a777SLen Brown #define ARGI_LGREATEREQUAL_OP ARGI_INVALID_OPCODE 261e2f7a777SLen Brown #define ARGI_LLESS_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) 262e2f7a777SLen Brown #define ARGI_LLESSEQUAL_OP ARGI_INVALID_OPCODE 263e2f7a777SLen Brown #define ARGI_LNOT_OP ARGI_LIST1 (ARGI_INTEGER) 264e2f7a777SLen Brown #define ARGI_LNOTEQUAL_OP ARGI_INVALID_OPCODE 265e2f7a777SLen Brown #define ARGI_LOAD_OP ARGI_LIST2 (ARGI_REGION_OR_BUFFER,ARGI_TARGETREF) 266e2f7a777SLen Brown #define ARGI_LOAD_TABLE_OP ARGI_LIST6 (ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_ANYTYPE) 267e2f7a777SLen Brown #define ARGI_LOCAL0 ARG_NONE 268e2f7a777SLen Brown #define ARGI_LOCAL1 ARG_NONE 269e2f7a777SLen Brown #define ARGI_LOCAL2 ARG_NONE 270e2f7a777SLen Brown #define ARGI_LOCAL3 ARG_NONE 271e2f7a777SLen Brown #define ARGI_LOCAL4 ARG_NONE 272e2f7a777SLen Brown #define ARGI_LOCAL5 ARG_NONE 273e2f7a777SLen Brown #define ARGI_LOCAL6 ARG_NONE 274e2f7a777SLen Brown #define ARGI_LOCAL7 ARG_NONE 275e2f7a777SLen Brown #define ARGI_LOR_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) 276e2f7a777SLen Brown #define ARGI_MATCH_OP ARGI_LIST6 (ARGI_PACKAGE, ARGI_INTEGER, ARGI_COMPUTEDATA, ARGI_INTEGER,ARGI_COMPUTEDATA,ARGI_INTEGER) 277e2f7a777SLen Brown #define ARGI_METHOD_OP ARGI_INVALID_OPCODE 278e2f7a777SLen Brown #define ARGI_METHODCALL_OP ARGI_INVALID_OPCODE 279e2f7a777SLen Brown #define ARGI_MID_OP ARGI_LIST4 (ARGI_BUFFER_OR_STRING,ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 280e2f7a777SLen Brown #define ARGI_MOD_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 281e2f7a777SLen Brown #define ARGI_MULTIPLY_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 282e2f7a777SLen Brown #define ARGI_MUTEX_OP ARGI_INVALID_OPCODE 283e2f7a777SLen Brown #define ARGI_NAME_OP ARGI_INVALID_OPCODE 284e2f7a777SLen Brown #define ARGI_NAMEDFIELD_OP ARGI_INVALID_OPCODE 285e2f7a777SLen Brown #define ARGI_NAMEPATH_OP ARGI_INVALID_OPCODE 286e2f7a777SLen Brown #define ARGI_NOOP_OP ARG_NONE 287e2f7a777SLen Brown #define ARGI_NOTIFY_OP ARGI_LIST2 (ARGI_DEVICE_REF, ARGI_INTEGER) 288f70008d3SBob Moore #define ARGI_OBJECT_TYPE_OP ARGI_LIST1 (ARGI_ANYTYPE) 289e2f7a777SLen Brown #define ARGI_ONE_OP ARG_NONE 290e2f7a777SLen Brown #define ARGI_ONES_OP ARG_NONE 291e2f7a777SLen Brown #define ARGI_PACKAGE_OP ARGI_LIST1 (ARGI_INTEGER) 292e2f7a777SLen Brown #define ARGI_POWER_RES_OP ARGI_INVALID_OPCODE 293e2f7a777SLen Brown #define ARGI_PROCESSOR_OP ARGI_INVALID_OPCODE 294e2f7a777SLen Brown #define ARGI_QWORD_OP ARGI_INVALID_OPCODE 295e2f7a777SLen Brown #define ARGI_REF_OF_OP ARGI_LIST1 (ARGI_OBJECT_REF) 296e2f7a777SLen Brown #define ARGI_REGION_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) 297e2f7a777SLen Brown #define ARGI_RELEASE_OP ARGI_LIST1 (ARGI_MUTEX) 298e2f7a777SLen Brown #define ARGI_RESERVEDFIELD_OP ARGI_INVALID_OPCODE 299e2f7a777SLen Brown #define ARGI_RESET_OP ARGI_LIST1 (ARGI_EVENT) 300e2f7a777SLen Brown #define ARGI_RETURN_OP ARGI_INVALID_OPCODE 301e2f7a777SLen Brown #define ARGI_REVISION_OP ARG_NONE 302e2f7a777SLen Brown #define ARGI_SCOPE_OP ARGI_INVALID_OPCODE 3039ce81784SBob Moore #define ARGI_SERIALFIELD_OP ARGI_INVALID_OPCODE 304e2f7a777SLen Brown #define ARGI_SHIFT_LEFT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 305e2f7a777SLen Brown #define ARGI_SHIFT_RIGHT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 306e2f7a777SLen Brown #define ARGI_SIGNAL_OP ARGI_LIST1 (ARGI_EVENT) 307e2f7a777SLen Brown #define ARGI_SIZE_OF_OP ARGI_LIST1 (ARGI_DATAOBJECT) 308e2f7a777SLen Brown #define ARGI_SLEEP_OP ARGI_LIST1 (ARGI_INTEGER) 309e2f7a777SLen Brown #define ARGI_STALL_OP ARGI_LIST1 (ARGI_INTEGER) 310e2f7a777SLen Brown #define ARGI_STATICSTRING_OP ARGI_INVALID_OPCODE 311a5922a1fSBob Moore #define ARGI_STORE_OP ARGI_LIST2 (ARGI_DATAREFOBJ, ARGI_STORE_TARGET) 312e2f7a777SLen Brown #define ARGI_STRING_OP ARGI_INVALID_OPCODE 313e2f7a777SLen Brown #define ARGI_SUBTRACT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 314e2f7a777SLen Brown #define ARGI_THERMAL_ZONE_OP ARGI_INVALID_OPCODE 315e2f7a777SLen Brown #define ARGI_TIMER_OP ARG_NONE 31674e30f96SBob Moore #define ARGI_TO_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 31774e30f96SBob Moore #define ARGI_TO_BUFFER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_TARGETREF) 31874e30f96SBob Moore #define ARGI_TO_DEC_STR_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_TARGETREF) 31974e30f96SBob Moore #define ARGI_TO_HEX_STR_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_TARGETREF) 32074e30f96SBob Moore #define ARGI_TO_INTEGER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_TARGETREF) 32174e30f96SBob Moore #define ARGI_TO_STRING_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_TARGETREF) 322e2f7a777SLen Brown #define ARGI_UNLOAD_OP ARGI_LIST1 (ARGI_DDBHANDLE) 323e2f7a777SLen Brown #define ARGI_VAR_PACKAGE_OP ARGI_LIST1 (ARGI_INTEGER) 324e2f7a777SLen Brown #define ARGI_WAIT_OP ARGI_LIST2 (ARGI_EVENT, ARGI_INTEGER) 325e2f7a777SLen Brown #define ARGI_WHILE_OP ARGI_INVALID_OPCODE 326e2f7a777SLen Brown #define ARGI_WORD_OP ARGI_INVALID_OPCODE 327e2f7a777SLen Brown #define ARGI_ZERO_OP ARG_NONE 328e2f7a777SLen Brown 329e2f7a777SLen Brown #endif /* __ACOPCODE_H__ */ 330