10174267aSFredrik Holmqvist /****************************************************************************** 20174267aSFredrik Holmqvist * 30174267aSFredrik Holmqvist * Name: acopcode.h - AML opcode information for the AML parser and interpreter 40174267aSFredrik Holmqvist * 50174267aSFredrik Holmqvist *****************************************************************************/ 60174267aSFredrik Holmqvist 70174267aSFredrik Holmqvist /****************************************************************************** 80174267aSFredrik Holmqvist * 90174267aSFredrik Holmqvist * 1. Copyright Notice 100174267aSFredrik Holmqvist * 11*6dde014fSPulkoMandy * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp. 120174267aSFredrik Holmqvist * All rights reserved. 130174267aSFredrik Holmqvist * 140174267aSFredrik Holmqvist * 2. License 150174267aSFredrik Holmqvist * 160174267aSFredrik Holmqvist * 2.1. This is your license from Intel Corp. under its intellectual property 170174267aSFredrik Holmqvist * rights. You may have additional license terms from the party that provided 180174267aSFredrik Holmqvist * you this software, covering your right to use that party's intellectual 190174267aSFredrik Holmqvist * property rights. 200174267aSFredrik Holmqvist * 210174267aSFredrik Holmqvist * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 220174267aSFredrik Holmqvist * copy of the source code appearing in this file ("Covered Code") an 230174267aSFredrik Holmqvist * irrevocable, perpetual, worldwide license under Intel's copyrights in the 240174267aSFredrik Holmqvist * base code distributed originally by Intel ("Original Intel Code") to copy, 250174267aSFredrik Holmqvist * make derivatives, distribute, use and display any portion of the Covered 260174267aSFredrik Holmqvist * Code in any form, with the right to sublicense such rights; and 270174267aSFredrik Holmqvist * 280174267aSFredrik Holmqvist * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 290174267aSFredrik Holmqvist * license (with the right to sublicense), under only those claims of Intel 300174267aSFredrik Holmqvist * patents that are infringed by the Original Intel Code, to make, use, sell, 310174267aSFredrik Holmqvist * offer to sell, and import the Covered Code and derivative works thereof 320174267aSFredrik Holmqvist * solely to the minimum extent necessary to exercise the above copyright 330174267aSFredrik Holmqvist * license, and in no event shall the patent license extend to any additions 340174267aSFredrik Holmqvist * to or modifications of the Original Intel Code. No other license or right 350174267aSFredrik Holmqvist * is granted directly or by implication, estoppel or otherwise; 360174267aSFredrik Holmqvist * 370174267aSFredrik Holmqvist * The above copyright and patent license is granted only if the following 380174267aSFredrik Holmqvist * conditions are met: 390174267aSFredrik Holmqvist * 400174267aSFredrik Holmqvist * 3. Conditions 410174267aSFredrik Holmqvist * 420174267aSFredrik Holmqvist * 3.1. Redistribution of Source with Rights to Further Distribute Source. 430174267aSFredrik Holmqvist * Redistribution of source code of any substantial portion of the Covered 440174267aSFredrik Holmqvist * Code or modification with rights to further distribute source must include 450174267aSFredrik Holmqvist * the above Copyright Notice, the above License, this list of Conditions, 460174267aSFredrik Holmqvist * and the following Disclaimer and Export Compliance provision. In addition, 470174267aSFredrik Holmqvist * Licensee must cause all Covered Code to which Licensee contributes to 480174267aSFredrik Holmqvist * contain a file documenting the changes Licensee made to create that Covered 490174267aSFredrik Holmqvist * Code and the date of any change. Licensee must include in that file the 500174267aSFredrik Holmqvist * documentation of any changes made by any predecessor Licensee. Licensee 510174267aSFredrik Holmqvist * must include a prominent statement that the modification is derived, 520174267aSFredrik Holmqvist * directly or indirectly, from Original Intel Code. 530174267aSFredrik Holmqvist * 540174267aSFredrik Holmqvist * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 550174267aSFredrik Holmqvist * Redistribution of source code of any substantial portion of the Covered 560174267aSFredrik Holmqvist * Code or modification without rights to further distribute source must 570174267aSFredrik Holmqvist * include the following Disclaimer and Export Compliance provision in the 580174267aSFredrik Holmqvist * documentation and/or other materials provided with distribution. In 590174267aSFredrik Holmqvist * addition, Licensee may not authorize further sublicense of source of any 600174267aSFredrik Holmqvist * portion of the Covered Code, and must include terms to the effect that the 610174267aSFredrik Holmqvist * license from Licensee to its licensee is limited to the intellectual 620174267aSFredrik Holmqvist * property embodied in the software Licensee provides to its licensee, and 630174267aSFredrik Holmqvist * not to intellectual property embodied in modifications its licensee may 640174267aSFredrik Holmqvist * make. 650174267aSFredrik Holmqvist * 660174267aSFredrik Holmqvist * 3.3. Redistribution of Executable. Redistribution in executable form of any 670174267aSFredrik Holmqvist * substantial portion of the Covered Code or modification must reproduce the 680174267aSFredrik Holmqvist * above Copyright Notice, and the following Disclaimer and Export Compliance 690174267aSFredrik Holmqvist * provision in the documentation and/or other materials provided with the 700174267aSFredrik Holmqvist * distribution. 710174267aSFredrik Holmqvist * 720174267aSFredrik Holmqvist * 3.4. Intel retains all right, title, and interest in and to the Original 730174267aSFredrik Holmqvist * Intel Code. 740174267aSFredrik Holmqvist * 750174267aSFredrik Holmqvist * 3.5. Neither the name Intel nor any other trademark owned or controlled by 760174267aSFredrik Holmqvist * Intel shall be used in advertising or otherwise to promote the sale, use or 770174267aSFredrik Holmqvist * other dealings in products derived from or relating to the Covered Code 780174267aSFredrik Holmqvist * without prior written authorization from Intel. 790174267aSFredrik Holmqvist * 800174267aSFredrik Holmqvist * 4. Disclaimer and Export Compliance 810174267aSFredrik Holmqvist * 820174267aSFredrik Holmqvist * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 830174267aSFredrik Holmqvist * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 840174267aSFredrik Holmqvist * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 850174267aSFredrik Holmqvist * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 860174267aSFredrik Holmqvist * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 870174267aSFredrik Holmqvist * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 880174267aSFredrik Holmqvist * PARTICULAR PURPOSE. 890174267aSFredrik Holmqvist * 900174267aSFredrik Holmqvist * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 910174267aSFredrik Holmqvist * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 920174267aSFredrik Holmqvist * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 930174267aSFredrik Holmqvist * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 940174267aSFredrik Holmqvist * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 950174267aSFredrik Holmqvist * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 960174267aSFredrik Holmqvist * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 970174267aSFredrik Holmqvist * LIMITED REMEDY. 980174267aSFredrik Holmqvist * 990174267aSFredrik Holmqvist * 4.3. Licensee shall not export, either directly or indirectly, any of this 1000174267aSFredrik Holmqvist * software or system incorporating such software without first obtaining any 1010174267aSFredrik Holmqvist * required license or other approval from the U. S. Department of Commerce or 1020174267aSFredrik Holmqvist * any other agency or department of the United States Government. In the 1030174267aSFredrik Holmqvist * event Licensee exports any such software from the United States or 1040174267aSFredrik Holmqvist * re-exports any such software from a foreign destination, Licensee shall 1050174267aSFredrik Holmqvist * ensure that the distribution and export/re-export of the software is in 1060174267aSFredrik Holmqvist * compliance with all laws, regulations, orders, or other restrictions of the 1070174267aSFredrik Holmqvist * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1080174267aSFredrik Holmqvist * any of its subsidiaries will export/re-export any technical data, process, 1090174267aSFredrik Holmqvist * software, or service, directly or indirectly, to any country for which the 1100174267aSFredrik Holmqvist * United States government or any agency thereof requires an export license, 1110174267aSFredrik Holmqvist * other governmental approval, or letter of assurance, without first obtaining 1120174267aSFredrik Holmqvist * such license, approval or letter. 1130174267aSFredrik Holmqvist * 114ff2e2f81SFredrik Holmqvist ***************************************************************************** 115ff2e2f81SFredrik Holmqvist * 116ff2e2f81SFredrik Holmqvist * Alternatively, you may choose to be licensed under the terms of the 117ff2e2f81SFredrik Holmqvist * following license: 118ff2e2f81SFredrik Holmqvist * 119ff2e2f81SFredrik Holmqvist * Redistribution and use in source and binary forms, with or without 120ff2e2f81SFredrik Holmqvist * modification, are permitted provided that the following conditions 121ff2e2f81SFredrik Holmqvist * are met: 122ff2e2f81SFredrik Holmqvist * 1. Redistributions of source code must retain the above copyright 123ff2e2f81SFredrik Holmqvist * notice, this list of conditions, and the following disclaimer, 124ff2e2f81SFredrik Holmqvist * without modification. 125ff2e2f81SFredrik Holmqvist * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126ff2e2f81SFredrik Holmqvist * substantially similar to the "NO WARRANTY" disclaimer below 127ff2e2f81SFredrik Holmqvist * ("Disclaimer") and any redistribution must be conditioned upon 128ff2e2f81SFredrik Holmqvist * including a substantially similar Disclaimer requirement for further 129ff2e2f81SFredrik Holmqvist * binary redistribution. 130ff2e2f81SFredrik Holmqvist * 3. Neither the names of the above-listed copyright holders nor the names 131ff2e2f81SFredrik Holmqvist * of any contributors may be used to endorse or promote products derived 132ff2e2f81SFredrik Holmqvist * from this software without specific prior written permission. 133ff2e2f81SFredrik Holmqvist * 134ff2e2f81SFredrik Holmqvist * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 135ff2e2f81SFredrik Holmqvist * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 136ff2e2f81SFredrik Holmqvist * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 137ff2e2f81SFredrik Holmqvist * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 138ff2e2f81SFredrik Holmqvist * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 139ff2e2f81SFredrik Holmqvist * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 140ff2e2f81SFredrik Holmqvist * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 141ff2e2f81SFredrik Holmqvist * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 142ff2e2f81SFredrik Holmqvist * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 143ff2e2f81SFredrik Holmqvist * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 144ff2e2f81SFredrik Holmqvist * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 145ff2e2f81SFredrik Holmqvist * 146ff2e2f81SFredrik Holmqvist * Alternatively, you may choose to be licensed under the terms of the 147ff2e2f81SFredrik Holmqvist * GNU General Public License ("GPL") version 2 as published by the Free 148ff2e2f81SFredrik Holmqvist * Software Foundation. 149ff2e2f81SFredrik Holmqvist * 1500174267aSFredrik Holmqvist *****************************************************************************/ 1510174267aSFredrik Holmqvist 1520174267aSFredrik Holmqvist #ifndef __ACOPCODE_H__ 1530174267aSFredrik Holmqvist #define __ACOPCODE_H__ 1540174267aSFredrik Holmqvist 1550174267aSFredrik Holmqvist #define MAX_EXTENDED_OPCODE 0x88 1560174267aSFredrik Holmqvist #define NUM_EXTENDED_OPCODE (MAX_EXTENDED_OPCODE + 1) 1570174267aSFredrik Holmqvist #define MAX_INTERNAL_OPCODE 1580174267aSFredrik Holmqvist #define NUM_INTERNAL_OPCODE (MAX_INTERNAL_OPCODE + 1) 1590174267aSFredrik Holmqvist 1600174267aSFredrik Holmqvist /* Used for non-assigned opcodes */ 1610174267aSFredrik Holmqvist 1620174267aSFredrik Holmqvist #define _UNK 0x6B 1630174267aSFredrik Holmqvist 1640174267aSFredrik Holmqvist /* 1650174267aSFredrik Holmqvist * Reserved ASCII characters. Do not use any of these for 1660174267aSFredrik Holmqvist * internal opcodes, since they are used to differentiate 1670174267aSFredrik Holmqvist * name strings from AML opcodes 1680174267aSFredrik Holmqvist */ 1690174267aSFredrik Holmqvist #define _ASC 0x6C 1700174267aSFredrik Holmqvist #define _NAM 0x6C 1710174267aSFredrik Holmqvist #define _PFX 0x6D 1720174267aSFredrik Holmqvist 1730174267aSFredrik Holmqvist 1740174267aSFredrik Holmqvist /* 1750174267aSFredrik Holmqvist * All AML opcodes and the parse-time arguments for each. Used by the AML 1760174267aSFredrik Holmqvist * parser Each list is compressed into a 32-bit number and stored in the 1770174267aSFredrik Holmqvist * master opcode table (in psopcode.c). 1780174267aSFredrik Holmqvist */ 1790174267aSFredrik Holmqvist #define ARGP_ACCESSFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 1800174267aSFredrik Holmqvist #define ARGP_ACQUIRE_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_WORDDATA) 1810174267aSFredrik Holmqvist #define ARGP_ADD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 1820174267aSFredrik Holmqvist #define ARGP_ALIAS_OP ARGP_LIST2 (ARGP_NAMESTRING, ARGP_NAME) 1830174267aSFredrik Holmqvist #define ARGP_ARG0 ARG_NONE 1840174267aSFredrik Holmqvist #define ARGP_ARG1 ARG_NONE 1850174267aSFredrik Holmqvist #define ARGP_ARG2 ARG_NONE 1860174267aSFredrik Holmqvist #define ARGP_ARG3 ARG_NONE 1870174267aSFredrik Holmqvist #define ARGP_ARG4 ARG_NONE 1880174267aSFredrik Holmqvist #define ARGP_ARG5 ARG_NONE 1890174267aSFredrik Holmqvist #define ARGP_ARG6 ARG_NONE 1900174267aSFredrik Holmqvist #define ARGP_BANK_FIELD_OP ARGP_LIST6 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_NAMESTRING,ARGP_TERMARG, ARGP_BYTEDATA, ARGP_FIELDLIST) 1910174267aSFredrik Holmqvist #define ARGP_BIT_AND_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 1920174267aSFredrik Holmqvist #define ARGP_BIT_NAND_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 1930174267aSFredrik Holmqvist #define ARGP_BIT_NOR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 1940174267aSFredrik Holmqvist #define ARGP_BIT_NOT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 1950174267aSFredrik Holmqvist #define ARGP_BIT_OR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 1960174267aSFredrik Holmqvist #define ARGP_BIT_XOR_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 1970174267aSFredrik Holmqvist #define ARGP_BREAK_OP ARG_NONE 1980174267aSFredrik Holmqvist #define ARGP_BREAK_POINT_OP ARG_NONE 1990174267aSFredrik Holmqvist #define ARGP_BUFFER_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_BYTELIST) 2000174267aSFredrik Holmqvist #define ARGP_BYTE_OP ARGP_LIST1 (ARGP_BYTEDATA) 2010174267aSFredrik Holmqvist #define ARGP_BYTELIST_OP ARGP_LIST1 (ARGP_NAMESTRING) 202ff2e2f81SFredrik Holmqvist #define ARGP_COMMENT_OP ARGP_LIST2 (ARGP_BYTEDATA, ARGP_COMMENT) 2030174267aSFredrik Holmqvist #define ARGP_CONCAT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2040174267aSFredrik Holmqvist #define ARGP_CONCAT_RES_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 205ff2e2f81SFredrik Holmqvist #define ARGP_COND_REF_OF_OP ARGP_LIST2 (ARGP_SIMPLENAME, ARGP_TARGET) 2066822cda0SFredrik Holmqvist #define ARGP_CONNECTFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 2070174267aSFredrik Holmqvist #define ARGP_CONTINUE_OP ARG_NONE 2080174267aSFredrik Holmqvist #define ARGP_COPY_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_SIMPLENAME) 2090174267aSFredrik Holmqvist #define ARGP_CREATE_BIT_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 2100174267aSFredrik Holmqvist #define ARGP_CREATE_BYTE_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 2110174267aSFredrik Holmqvist #define ARGP_CREATE_DWORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 2120174267aSFredrik Holmqvist #define ARGP_CREATE_FIELD_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 2130174267aSFredrik Holmqvist #define ARGP_CREATE_QWORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 2140174267aSFredrik Holmqvist #define ARGP_CREATE_WORD_FIELD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_NAME) 2150174267aSFredrik Holmqvist #define ARGP_DATA_REGION_OP ARGP_LIST4 (ARGP_NAME, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG) 2160174267aSFredrik Holmqvist #define ARGP_DEBUG_OP ARG_NONE 2170174267aSFredrik Holmqvist #define ARGP_DECREMENT_OP ARGP_LIST1 (ARGP_SUPERNAME) 218ff2e2f81SFredrik Holmqvist #define ARGP_DEREF_OF_OP ARGP_LIST1 (ARGP_SUPERNAME) 2190174267aSFredrik Holmqvist #define ARGP_DEVICE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_OBJLIST) 2200174267aSFredrik Holmqvist #define ARGP_DIVIDE_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET, ARGP_TARGET) 2210174267aSFredrik Holmqvist #define ARGP_DWORD_OP ARGP_LIST1 (ARGP_DWORDDATA) 2220174267aSFredrik Holmqvist #define ARGP_ELSE_OP ARGP_LIST2 (ARGP_PKGLENGTH, ARGP_TERMLIST) 2230174267aSFredrik Holmqvist #define ARGP_EVENT_OP ARGP_LIST1 (ARGP_NAME) 224ff2e2f81SFredrik Holmqvist #define ARGP_EXTERNAL_OP ARGP_LIST3 (ARGP_NAME, ARGP_BYTEDATA, ARGP_BYTEDATA) 2250174267aSFredrik Holmqvist #define ARGP_FATAL_OP ARGP_LIST3 (ARGP_BYTEDATA, ARGP_DWORDDATA, ARGP_TERMARG) 2260174267aSFredrik Holmqvist #define ARGP_FIELD_OP ARGP_LIST4 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_BYTEDATA, ARGP_FIELDLIST) 2270174267aSFredrik Holmqvist #define ARGP_FIND_SET_LEFT_BIT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2280174267aSFredrik Holmqvist #define ARGP_FIND_SET_RIGHT_BIT_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2290174267aSFredrik Holmqvist #define ARGP_FROM_BCD_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2300174267aSFredrik Holmqvist #define ARGP_IF_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_TERMLIST) 2310174267aSFredrik Holmqvist #define ARGP_INCREMENT_OP ARGP_LIST1 (ARGP_SUPERNAME) 2320174267aSFredrik Holmqvist #define ARGP_INDEX_FIELD_OP ARGP_LIST5 (ARGP_PKGLENGTH, ARGP_NAMESTRING, ARGP_NAMESTRING,ARGP_BYTEDATA, ARGP_FIELDLIST) 2330174267aSFredrik Holmqvist #define ARGP_INDEX_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2340174267aSFredrik Holmqvist #define ARGP_LAND_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2350174267aSFredrik Holmqvist #define ARGP_LEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2360174267aSFredrik Holmqvist #define ARGP_LGREATER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2370174267aSFredrik Holmqvist #define ARGP_LGREATEREQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2380174267aSFredrik Holmqvist #define ARGP_LLESS_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2390174267aSFredrik Holmqvist #define ARGP_LLESSEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2400174267aSFredrik Holmqvist #define ARGP_LNOT_OP ARGP_LIST1 (ARGP_TERMARG) 2410174267aSFredrik Holmqvist #define ARGP_LNOTEQUAL_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2420174267aSFredrik Holmqvist #define ARGP_LOAD_OP ARGP_LIST2 (ARGP_NAMESTRING, ARGP_SUPERNAME) 2430174267aSFredrik Holmqvist #define ARGP_LOAD_TABLE_OP ARGP_LIST6 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG) 2440174267aSFredrik Holmqvist #define ARGP_LOCAL0 ARG_NONE 2450174267aSFredrik Holmqvist #define ARGP_LOCAL1 ARG_NONE 2460174267aSFredrik Holmqvist #define ARGP_LOCAL2 ARG_NONE 2470174267aSFredrik Holmqvist #define ARGP_LOCAL3 ARG_NONE 2480174267aSFredrik Holmqvist #define ARGP_LOCAL4 ARG_NONE 2490174267aSFredrik Holmqvist #define ARGP_LOCAL5 ARG_NONE 2500174267aSFredrik Holmqvist #define ARGP_LOCAL6 ARG_NONE 2510174267aSFredrik Holmqvist #define ARGP_LOCAL7 ARG_NONE 2520174267aSFredrik Holmqvist #define ARGP_LOR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TERMARG) 2530174267aSFredrik Holmqvist #define ARGP_MATCH_OP ARGP_LIST6 (ARGP_TERMARG, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_TERMARG) 2540174267aSFredrik Holmqvist #define ARGP_METHOD_OP ARGP_LIST4 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_TERMLIST) 2550174267aSFredrik Holmqvist #define ARGP_METHODCALL_OP ARGP_LIST1 (ARGP_NAMESTRING) 2560174267aSFredrik Holmqvist #define ARGP_MID_OP ARGP_LIST4 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2570174267aSFredrik Holmqvist #define ARGP_MOD_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2580174267aSFredrik Holmqvist #define ARGP_MULTIPLY_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2590174267aSFredrik Holmqvist #define ARGP_MUTEX_OP ARGP_LIST2 (ARGP_NAME, ARGP_BYTEDATA) 2600174267aSFredrik Holmqvist #define ARGP_NAME_OP ARGP_LIST2 (ARGP_NAME, ARGP_DATAOBJ) 2610174267aSFredrik Holmqvist #define ARGP_NAMEDFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 2620174267aSFredrik Holmqvist #define ARGP_NAMEPATH_OP ARGP_LIST1 (ARGP_NAMESTRING) 2630174267aSFredrik Holmqvist #define ARGP_NOOP_OP ARG_NONE 2640174267aSFredrik Holmqvist #define ARGP_NOTIFY_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_TERMARG) 265ff2e2f81SFredrik Holmqvist #define ARGP_OBJECT_TYPE_OP ARGP_LIST1 (ARGP_SIMPLENAME) 2660174267aSFredrik Holmqvist #define ARGP_ONE_OP ARG_NONE 2670174267aSFredrik Holmqvist #define ARGP_ONES_OP ARG_NONE 2680174267aSFredrik Holmqvist #define ARGP_PACKAGE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_BYTEDATA, ARGP_DATAOBJLIST) 2690174267aSFredrik Holmqvist #define ARGP_POWER_RES_OP ARGP_LIST5 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_WORDDATA, ARGP_OBJLIST) 2700174267aSFredrik Holmqvist #define ARGP_PROCESSOR_OP ARGP_LIST6 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_BYTEDATA, ARGP_DWORDDATA, ARGP_BYTEDATA, ARGP_OBJLIST) 2710174267aSFredrik Holmqvist #define ARGP_QWORD_OP ARGP_LIST1 (ARGP_QWORDDATA) 272ff2e2f81SFredrik Holmqvist #define ARGP_REF_OF_OP ARGP_LIST1 (ARGP_SIMPLENAME) 2730174267aSFredrik Holmqvist #define ARGP_REGION_OP ARGP_LIST4 (ARGP_NAME, ARGP_BYTEDATA, ARGP_TERMARG, ARGP_TERMARG) 2740174267aSFredrik Holmqvist #define ARGP_RELEASE_OP ARGP_LIST1 (ARGP_SUPERNAME) 2750174267aSFredrik Holmqvist #define ARGP_RESERVEDFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 2760174267aSFredrik Holmqvist #define ARGP_RESET_OP ARGP_LIST1 (ARGP_SUPERNAME) 2770174267aSFredrik Holmqvist #define ARGP_RETURN_OP ARGP_LIST1 (ARGP_TERMARG) 2780174267aSFredrik Holmqvist #define ARGP_REVISION_OP ARG_NONE 2790174267aSFredrik Holmqvist #define ARGP_SCOPE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_TERMLIST) 2806822cda0SFredrik Holmqvist #define ARGP_SERIALFIELD_OP ARGP_LIST1 (ARGP_NAMESTRING) 2810174267aSFredrik Holmqvist #define ARGP_SHIFT_LEFT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2820174267aSFredrik Holmqvist #define ARGP_SHIFT_RIGHT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2830174267aSFredrik Holmqvist #define ARGP_SIGNAL_OP ARGP_LIST1 (ARGP_SUPERNAME) 2840174267aSFredrik Holmqvist #define ARGP_SIZE_OF_OP ARGP_LIST1 (ARGP_SUPERNAME) 2850174267aSFredrik Holmqvist #define ARGP_SLEEP_OP ARGP_LIST1 (ARGP_TERMARG) 2860174267aSFredrik Holmqvist #define ARGP_STALL_OP ARGP_LIST1 (ARGP_TERMARG) 2870174267aSFredrik Holmqvist #define ARGP_STATICSTRING_OP ARGP_LIST1 (ARGP_NAMESTRING) 2880174267aSFredrik Holmqvist #define ARGP_STORE_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_SUPERNAME) 2890174267aSFredrik Holmqvist #define ARGP_STRING_OP ARGP_LIST1 (ARGP_CHARLIST) 2900174267aSFredrik Holmqvist #define ARGP_SUBTRACT_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2910174267aSFredrik Holmqvist #define ARGP_THERMAL_ZONE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_NAME, ARGP_OBJLIST) 2920174267aSFredrik Holmqvist #define ARGP_TIMER_OP ARG_NONE 2930174267aSFredrik Holmqvist #define ARGP_TO_BCD_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2940174267aSFredrik Holmqvist #define ARGP_TO_BUFFER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2950174267aSFredrik Holmqvist #define ARGP_TO_DEC_STR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2960174267aSFredrik Holmqvist #define ARGP_TO_HEX_STR_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2970174267aSFredrik Holmqvist #define ARGP_TO_INTEGER_OP ARGP_LIST2 (ARGP_TERMARG, ARGP_TARGET) 2980174267aSFredrik Holmqvist #define ARGP_TO_STRING_OP ARGP_LIST3 (ARGP_TERMARG, ARGP_TERMARG, ARGP_TARGET) 2990174267aSFredrik Holmqvist #define ARGP_UNLOAD_OP ARGP_LIST1 (ARGP_SUPERNAME) 3000174267aSFredrik Holmqvist #define ARGP_VAR_PACKAGE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_DATAOBJLIST) 3010174267aSFredrik Holmqvist #define ARGP_WAIT_OP ARGP_LIST2 (ARGP_SUPERNAME, ARGP_TERMARG) 3020174267aSFredrik Holmqvist #define ARGP_WHILE_OP ARGP_LIST3 (ARGP_PKGLENGTH, ARGP_TERMARG, ARGP_TERMLIST) 3030174267aSFredrik Holmqvist #define ARGP_WORD_OP ARGP_LIST1 (ARGP_WORDDATA) 3040174267aSFredrik Holmqvist #define ARGP_ZERO_OP ARG_NONE 3050174267aSFredrik Holmqvist 3060174267aSFredrik Holmqvist 3070174267aSFredrik Holmqvist /* 3080174267aSFredrik Holmqvist * All AML opcodes and the runtime arguments for each. Used by the AML 3090174267aSFredrik Holmqvist * interpreter Each list is compressed into a 32-bit number and stored 3100174267aSFredrik Holmqvist * in the master opcode table (in psopcode.c). 3110174267aSFredrik Holmqvist * 3120174267aSFredrik Holmqvist * (Used by PrepOperands procedure and the ASL Compiler) 3130174267aSFredrik Holmqvist */ 3140174267aSFredrik Holmqvist #define ARGI_ACCESSFIELD_OP ARGI_INVALID_OPCODE 3150174267aSFredrik Holmqvist #define ARGI_ACQUIRE_OP ARGI_LIST2 (ARGI_MUTEX, ARGI_INTEGER) 3160174267aSFredrik Holmqvist #define ARGI_ADD_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3170174267aSFredrik Holmqvist #define ARGI_ALIAS_OP ARGI_INVALID_OPCODE 3180174267aSFredrik Holmqvist #define ARGI_ARG0 ARG_NONE 3190174267aSFredrik Holmqvist #define ARGI_ARG1 ARG_NONE 3200174267aSFredrik Holmqvist #define ARGI_ARG2 ARG_NONE 3210174267aSFredrik Holmqvist #define ARGI_ARG3 ARG_NONE 3220174267aSFredrik Holmqvist #define ARGI_ARG4 ARG_NONE 3230174267aSFredrik Holmqvist #define ARGI_ARG5 ARG_NONE 3240174267aSFredrik Holmqvist #define ARGI_ARG6 ARG_NONE 325b64e8511SFredrik Holmqvist #define ARGI_BANK_FIELD_OP ARGI_LIST1 (ARGI_INTEGER) 3260174267aSFredrik Holmqvist #define ARGI_BIT_AND_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3270174267aSFredrik Holmqvist #define ARGI_BIT_NAND_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3280174267aSFredrik Holmqvist #define ARGI_BIT_NOR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3290174267aSFredrik Holmqvist #define ARGI_BIT_NOT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 3300174267aSFredrik Holmqvist #define ARGI_BIT_OR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3310174267aSFredrik Holmqvist #define ARGI_BIT_XOR_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3320174267aSFredrik Holmqvist #define ARGI_BREAK_OP ARG_NONE 3330174267aSFredrik Holmqvist #define ARGI_BREAK_POINT_OP ARG_NONE 3340174267aSFredrik Holmqvist #define ARGI_BUFFER_OP ARGI_LIST1 (ARGI_INTEGER) 3350174267aSFredrik Holmqvist #define ARGI_BYTE_OP ARGI_INVALID_OPCODE 3360174267aSFredrik Holmqvist #define ARGI_BYTELIST_OP ARGI_INVALID_OPCODE 337ff2e2f81SFredrik Holmqvist #define ARGI_COMMENT_OP ARGI_INVALID_OPCODE 338b64e8511SFredrik Holmqvist #define ARGI_CONCAT_OP ARGI_LIST3 (ARGI_ANYTYPE, ARGI_ANYTYPE, ARGI_TARGETREF) 3390174267aSFredrik Holmqvist #define ARGI_CONCAT_RES_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_BUFFER, ARGI_TARGETREF) 3400174267aSFredrik Holmqvist #define ARGI_COND_REF_OF_OP ARGI_LIST2 (ARGI_OBJECT_REF, ARGI_TARGETREF) 3416822cda0SFredrik Holmqvist #define ARGI_CONNECTFIELD_OP ARGI_INVALID_OPCODE 3420174267aSFredrik Holmqvist #define ARGI_CONTINUE_OP ARGI_INVALID_OPCODE 3430174267aSFredrik Holmqvist #define ARGI_COPY_OP ARGI_LIST2 (ARGI_ANYTYPE, ARGI_SIMPLE_TARGET) 3440174267aSFredrik Holmqvist #define ARGI_CREATE_BIT_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 3450174267aSFredrik Holmqvist #define ARGI_CREATE_BYTE_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 3460174267aSFredrik Holmqvist #define ARGI_CREATE_DWORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 3470174267aSFredrik Holmqvist #define ARGI_CREATE_FIELD_OP ARGI_LIST4 (ARGI_BUFFER, ARGI_INTEGER, ARGI_INTEGER, ARGI_REFERENCE) 3480174267aSFredrik Holmqvist #define ARGI_CREATE_QWORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 3490174267aSFredrik Holmqvist #define ARGI_CREATE_WORD_FIELD_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_REFERENCE) 3500174267aSFredrik Holmqvist #define ARGI_DATA_REGION_OP ARGI_LIST3 (ARGI_STRING, ARGI_STRING, ARGI_STRING) 3510174267aSFredrik Holmqvist #define ARGI_DEBUG_OP ARG_NONE 3520174267aSFredrik Holmqvist #define ARGI_DECREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) 3530174267aSFredrik Holmqvist #define ARGI_DEREF_OF_OP ARGI_LIST1 (ARGI_REF_OR_STRING) 3540174267aSFredrik Holmqvist #define ARGI_DEVICE_OP ARGI_INVALID_OPCODE 3550174267aSFredrik Holmqvist #define ARGI_DIVIDE_OP ARGI_LIST4 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF, ARGI_TARGETREF) 3560174267aSFredrik Holmqvist #define ARGI_DWORD_OP ARGI_INVALID_OPCODE 3570174267aSFredrik Holmqvist #define ARGI_ELSE_OP ARGI_INVALID_OPCODE 3580174267aSFredrik Holmqvist #define ARGI_EVENT_OP ARGI_INVALID_OPCODE 359e226d1d0SFredrik Holmqvist #define ARGI_EXTERNAL_OP ARGI_LIST3 (ARGI_STRING, ARGI_INTEGER, ARGI_INTEGER) 3600174267aSFredrik Holmqvist #define ARGI_FATAL_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_INTEGER) 3610174267aSFredrik Holmqvist #define ARGI_FIELD_OP ARGI_INVALID_OPCODE 3620174267aSFredrik Holmqvist #define ARGI_FIND_SET_LEFT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 3630174267aSFredrik Holmqvist #define ARGI_FIND_SET_RIGHT_BIT_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_TARGETREF) 36408c9948cSFredrik Holmqvist #define ARGI_FROM_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_FIXED_TARGET) 3650174267aSFredrik Holmqvist #define ARGI_IF_OP ARGI_INVALID_OPCODE 3660174267aSFredrik Holmqvist #define ARGI_INCREMENT_OP ARGI_LIST1 (ARGI_TARGETREF) 3670174267aSFredrik Holmqvist #define ARGI_INDEX_FIELD_OP ARGI_INVALID_OPCODE 3680174267aSFredrik Holmqvist #define ARGI_INDEX_OP ARGI_LIST3 (ARGI_COMPLEXOBJ, ARGI_INTEGER, ARGI_TARGETREF) 3690174267aSFredrik Holmqvist #define ARGI_LAND_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) 3700174267aSFredrik Holmqvist #define ARGI_LEQUAL_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) 3710174267aSFredrik Holmqvist #define ARGI_LGREATER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) 3720174267aSFredrik Holmqvist #define ARGI_LGREATEREQUAL_OP ARGI_INVALID_OPCODE 3730174267aSFredrik Holmqvist #define ARGI_LLESS_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA) 3740174267aSFredrik Holmqvist #define ARGI_LLESSEQUAL_OP ARGI_INVALID_OPCODE 3750174267aSFredrik Holmqvist #define ARGI_LNOT_OP ARGI_LIST1 (ARGI_INTEGER) 3760174267aSFredrik Holmqvist #define ARGI_LNOTEQUAL_OP ARGI_INVALID_OPCODE 3770174267aSFredrik Holmqvist #define ARGI_LOAD_OP ARGI_LIST2 (ARGI_REGION_OR_BUFFER,ARGI_TARGETREF) 3780174267aSFredrik Holmqvist #define ARGI_LOAD_TABLE_OP ARGI_LIST6 (ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_STRING, ARGI_ANYTYPE) 3790174267aSFredrik Holmqvist #define ARGI_LOCAL0 ARG_NONE 3800174267aSFredrik Holmqvist #define ARGI_LOCAL1 ARG_NONE 3810174267aSFredrik Holmqvist #define ARGI_LOCAL2 ARG_NONE 3820174267aSFredrik Holmqvist #define ARGI_LOCAL3 ARG_NONE 3830174267aSFredrik Holmqvist #define ARGI_LOCAL4 ARG_NONE 3840174267aSFredrik Holmqvist #define ARGI_LOCAL5 ARG_NONE 3850174267aSFredrik Holmqvist #define ARGI_LOCAL6 ARG_NONE 3860174267aSFredrik Holmqvist #define ARGI_LOCAL7 ARG_NONE 3870174267aSFredrik Holmqvist #define ARGI_LOR_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) 3880174267aSFredrik Holmqvist #define ARGI_MATCH_OP ARGI_LIST6 (ARGI_PACKAGE, ARGI_INTEGER, ARGI_COMPUTEDATA, ARGI_INTEGER,ARGI_COMPUTEDATA,ARGI_INTEGER) 3890174267aSFredrik Holmqvist #define ARGI_METHOD_OP ARGI_INVALID_OPCODE 3900174267aSFredrik Holmqvist #define ARGI_METHODCALL_OP ARGI_INVALID_OPCODE 3910174267aSFredrik Holmqvist #define ARGI_MID_OP ARGI_LIST4 (ARGI_BUFFER_OR_STRING,ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3920174267aSFredrik Holmqvist #define ARGI_MOD_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3930174267aSFredrik Holmqvist #define ARGI_MULTIPLY_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 3940174267aSFredrik Holmqvist #define ARGI_MUTEX_OP ARGI_INVALID_OPCODE 3950174267aSFredrik Holmqvist #define ARGI_NAME_OP ARGI_INVALID_OPCODE 3960174267aSFredrik Holmqvist #define ARGI_NAMEDFIELD_OP ARGI_INVALID_OPCODE 3970174267aSFredrik Holmqvist #define ARGI_NAMEPATH_OP ARGI_INVALID_OPCODE 3980174267aSFredrik Holmqvist #define ARGI_NOOP_OP ARG_NONE 3990174267aSFredrik Holmqvist #define ARGI_NOTIFY_OP ARGI_LIST2 (ARGI_DEVICE_REF, ARGI_INTEGER) 400b64e8511SFredrik Holmqvist #define ARGI_OBJECT_TYPE_OP ARGI_LIST1 (ARGI_ANYTYPE) 4010174267aSFredrik Holmqvist #define ARGI_ONE_OP ARG_NONE 4020174267aSFredrik Holmqvist #define ARGI_ONES_OP ARG_NONE 4030174267aSFredrik Holmqvist #define ARGI_PACKAGE_OP ARGI_LIST1 (ARGI_INTEGER) 4040174267aSFredrik Holmqvist #define ARGI_POWER_RES_OP ARGI_INVALID_OPCODE 4050174267aSFredrik Holmqvist #define ARGI_PROCESSOR_OP ARGI_INVALID_OPCODE 4060174267aSFredrik Holmqvist #define ARGI_QWORD_OP ARGI_INVALID_OPCODE 4070174267aSFredrik Holmqvist #define ARGI_REF_OF_OP ARGI_LIST1 (ARGI_OBJECT_REF) 4080174267aSFredrik Holmqvist #define ARGI_REGION_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_INTEGER) 4090174267aSFredrik Holmqvist #define ARGI_RELEASE_OP ARGI_LIST1 (ARGI_MUTEX) 4100174267aSFredrik Holmqvist #define ARGI_RESERVEDFIELD_OP ARGI_INVALID_OPCODE 4110174267aSFredrik Holmqvist #define ARGI_RESET_OP ARGI_LIST1 (ARGI_EVENT) 4120174267aSFredrik Holmqvist #define ARGI_RETURN_OP ARGI_INVALID_OPCODE 4130174267aSFredrik Holmqvist #define ARGI_REVISION_OP ARG_NONE 4140174267aSFredrik Holmqvist #define ARGI_SCOPE_OP ARGI_INVALID_OPCODE 4156822cda0SFredrik Holmqvist #define ARGI_SERIALFIELD_OP ARGI_INVALID_OPCODE 4160174267aSFredrik Holmqvist #define ARGI_SHIFT_LEFT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 4170174267aSFredrik Holmqvist #define ARGI_SHIFT_RIGHT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 4180174267aSFredrik Holmqvist #define ARGI_SIGNAL_OP ARGI_LIST1 (ARGI_EVENT) 4190174267aSFredrik Holmqvist #define ARGI_SIZE_OF_OP ARGI_LIST1 (ARGI_DATAOBJECT) 4200174267aSFredrik Holmqvist #define ARGI_SLEEP_OP ARGI_LIST1 (ARGI_INTEGER) 4210174267aSFredrik Holmqvist #define ARGI_STALL_OP ARGI_LIST1 (ARGI_INTEGER) 4220174267aSFredrik Holmqvist #define ARGI_STATICSTRING_OP ARGI_INVALID_OPCODE 423b64e8511SFredrik Holmqvist #define ARGI_STORE_OP ARGI_LIST2 (ARGI_DATAREFOBJ, ARGI_STORE_TARGET) 4240174267aSFredrik Holmqvist #define ARGI_STRING_OP ARGI_INVALID_OPCODE 4250174267aSFredrik Holmqvist #define ARGI_SUBTRACT_OP ARGI_LIST3 (ARGI_INTEGER, ARGI_INTEGER, ARGI_TARGETREF) 4260174267aSFredrik Holmqvist #define ARGI_THERMAL_ZONE_OP ARGI_INVALID_OPCODE 4270174267aSFredrik Holmqvist #define ARGI_TIMER_OP ARG_NONE 42808c9948cSFredrik Holmqvist #define ARGI_TO_BCD_OP ARGI_LIST2 (ARGI_INTEGER, ARGI_FIXED_TARGET) 42908c9948cSFredrik Holmqvist #define ARGI_TO_BUFFER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) 43008c9948cSFredrik Holmqvist #define ARGI_TO_DEC_STR_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) 43108c9948cSFredrik Holmqvist #define ARGI_TO_HEX_STR_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) 43208c9948cSFredrik Holmqvist #define ARGI_TO_INTEGER_OP ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET) 43308c9948cSFredrik Holmqvist #define ARGI_TO_STRING_OP ARGI_LIST3 (ARGI_BUFFER, ARGI_INTEGER, ARGI_FIXED_TARGET) 4340174267aSFredrik Holmqvist #define ARGI_UNLOAD_OP ARGI_LIST1 (ARGI_DDBHANDLE) 4350174267aSFredrik Holmqvist #define ARGI_VAR_PACKAGE_OP ARGI_LIST1 (ARGI_INTEGER) 4360174267aSFredrik Holmqvist #define ARGI_WAIT_OP ARGI_LIST2 (ARGI_EVENT, ARGI_INTEGER) 4370174267aSFredrik Holmqvist #define ARGI_WHILE_OP ARGI_INVALID_OPCODE 4380174267aSFredrik Holmqvist #define ARGI_WORD_OP ARGI_INVALID_OPCODE 4390174267aSFredrik Holmqvist #define ARGI_ZERO_OP ARG_NONE 4400174267aSFredrik Holmqvist 4410174267aSFredrik Holmqvist #endif /* __ACOPCODE_H__ */ 442