acopcode.h revision 167802
1254885Sdumbbell/******************************************************************************
2254885Sdumbbell *
3254885Sdumbbell * Name: acopcode.h - AML opcode information for the AML parser and interpreter
4254885Sdumbbell *       $Revision: 1.7 $
5254885Sdumbbell *
6254885Sdumbbell *****************************************************************************/
7254885Sdumbbell
8254885Sdumbbell/******************************************************************************
9254885Sdumbbell *
10254885Sdumbbell * 1. Copyright Notice
11254885Sdumbbell *
12254885Sdumbbell * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp.
13254885Sdumbbell * All rights reserved.
14254885Sdumbbell *
15254885Sdumbbell * 2. License
16254885Sdumbbell *
17254885Sdumbbell * 2.1. This is your license from Intel Corp. under its intellectual property
18254885Sdumbbell * rights.  You may have additional license terms from the party that provided
19254885Sdumbbell * you this software, covering your right to use that party's intellectual
20254885Sdumbbell * property rights.
21254885Sdumbbell *
22254885Sdumbbell * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23254885Sdumbbell * copy of the source code appearing in this file ("Covered Code") an
24254885Sdumbbell * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25254885Sdumbbell * base code distributed originally by Intel ("Original Intel Code") to copy,
26254885Sdumbbell * make derivatives, distribute, use and display any portion of the Covered
27254885Sdumbbell * Code in any form, with the right to sublicense such rights; and
28254885Sdumbbell *
29254885Sdumbbell * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30254885Sdumbbell * license (with the right to sublicense), under only those claims of Intel
31254885Sdumbbell * patents that are infringed by the Original Intel Code, to make, use, sell,
32254885Sdumbbell * offer to sell, and import the Covered Code and derivative works thereof
33254885Sdumbbell * solely to the minimum extent necessary to exercise the above copyright
34254885Sdumbbell * license, and in no event shall the patent license extend to any additions
35254885Sdumbbell * to or modifications of the Original Intel Code.  No other license or right
36254885Sdumbbell * is granted directly or by implication, estoppel or otherwise;
37254885Sdumbbell *
38254885Sdumbbell * The above copyright and patent license is granted only if the following
39254885Sdumbbell * conditions are met:
40254885Sdumbbell *
41254885Sdumbbell * 3. Conditions
42254885Sdumbbell *
43254885Sdumbbell * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44254885Sdumbbell * Redistribution of source code of any substantial portion of the Covered
45254885Sdumbbell * Code or modification with rights to further distribute source must include
46254885Sdumbbell * the above Copyright Notice, the above License, this list of Conditions,
47254885Sdumbbell * and the following Disclaimer and Export Compliance provision.  In addition,
48254885Sdumbbell * Licensee must cause all Covered Code to which Licensee contributes to
49254885Sdumbbell * contain a file documenting the changes Licensee made to create that Covered
50254885Sdumbbell * Code and the date of any change.  Licensee must include in that file the
51254885Sdumbbell * documentation of any changes made by any predecessor Licensee.  Licensee
52254885Sdumbbell * must include a prominent statement that the modification is derived,
53254885Sdumbbell * directly or indirectly, from Original Intel Code.
54254885Sdumbbell *
55254885Sdumbbell * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56254885Sdumbbell * Redistribution of source code of any substantial portion of the Covered
57254885Sdumbbell * Code or modification without rights to further distribute source must
58254885Sdumbbell * include the following Disclaimer and Export Compliance provision in the
59254885Sdumbbell * documentation and/or other materials provided with distribution.  In
60254885Sdumbbell * addition, Licensee may not authorize further sublicense of source of any
61254885Sdumbbell * portion of the Covered Code, and must include terms to the effect that the
62254885Sdumbbell * license from Licensee to its licensee is limited to the intellectual
63254885Sdumbbell * property embodied in the software Licensee provides to its licensee, and
64254885Sdumbbell * not to intellectual property embodied in modifications its licensee may
65254885Sdumbbell * make.
66254885Sdumbbell *
67254885Sdumbbell * 3.3. Redistribution of Executable. Redistribution in executable form of any
68254885Sdumbbell * substantial portion of the Covered Code or modification must reproduce the
69254885Sdumbbell * above Copyright Notice, and the following Disclaimer and Export Compliance
70254885Sdumbbell * provision in the documentation and/or other materials provided with the
71254885Sdumbbell * distribution.
72254885Sdumbbell *
73254885Sdumbbell * 3.4. Intel retains all right, title, and interest in and to the Original
74254885Sdumbbell * Intel Code.
75254885Sdumbbell *
76254885Sdumbbell * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77254885Sdumbbell * Intel shall be used in advertising or otherwise to promote the sale, use or
78254885Sdumbbell * other dealings in products derived from or relating to the Covered Code
79254885Sdumbbell * without prior written authorization from Intel.
80254885Sdumbbell *
81254885Sdumbbell * 4. Disclaimer and Export Compliance
82254885Sdumbbell *
83254885Sdumbbell * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84254885Sdumbbell * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85254885Sdumbbell * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86254885Sdumbbell * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87254885Sdumbbell * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88254885Sdumbbell * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89254885Sdumbbell * PARTICULAR PURPOSE.
90254885Sdumbbell *
91254885Sdumbbell * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92254885Sdumbbell * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93254885Sdumbbell * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94254885Sdumbbell * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95254885Sdumbbell * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96254885Sdumbbell * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97254885Sdumbbell * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98254885Sdumbbell * LIMITED REMEDY.
99254885Sdumbbell *
100254885Sdumbbell * 4.3. Licensee shall not export, either directly or indirectly, any of this
101254885Sdumbbell * software or system incorporating such software without first obtaining any
102254885Sdumbbell * required license or other approval from the U. S. Department of Commerce or
103254885Sdumbbell * any other agency or department of the United States Government.  In the
104254885Sdumbbell * event Licensee exports any such software from the United States or
105254885Sdumbbell * re-exports any such software from a foreign destination, Licensee shall
106254885Sdumbbell * ensure that the distribution and export/re-export of the software is in
107254885Sdumbbell * compliance with all laws, regulations, orders, or other restrictions of the
108254885Sdumbbell * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109254885Sdumbbell * any of its subsidiaries will export/re-export any technical data, process,
110254885Sdumbbell * software, or service, directly or indirectly, to any country for which the
111254885Sdumbbell * United States government or any agency thereof requires an export license,
112254885Sdumbbell * other governmental approval, or letter of assurance, without first obtaining
113254885Sdumbbell * such license, approval or letter.
114254885Sdumbbell *
115254885Sdumbbell *****************************************************************************/
116254885Sdumbbell
117254885Sdumbbell#ifndef __ACOPCODE_H__
118254885Sdumbbell#define __ACOPCODE_H__
119254885Sdumbbell
120254885Sdumbbell#define MAX_EXTENDED_OPCODE         0x88
121254885Sdumbbell#define NUM_EXTENDED_OPCODE         (MAX_EXTENDED_OPCODE + 1)
122254885Sdumbbell#define MAX_INTERNAL_OPCODE
123254885Sdumbbell#define NUM_INTERNAL_OPCODE         (MAX_INTERNAL_OPCODE + 1)
124254885Sdumbbell
125254885Sdumbbell/* Used for non-assigned opcodes */
126254885Sdumbbell
127254885Sdumbbell#define _UNK                        0x6B
128254885Sdumbbell
129254885Sdumbbell/*
130254885Sdumbbell * Reserved ASCII characters.  Do not use any of these for
131254885Sdumbbell * internal opcodes, since they are used to differentiate
132254885Sdumbbell * name strings from AML opcodes
133254885Sdumbbell */
134254885Sdumbbell#define _ASC                        0x6C
135254885Sdumbbell#define _NAM                        0x6C
136254885Sdumbbell#define _PFX                        0x6D
137254885Sdumbbell
138254885Sdumbbell
139254885Sdumbbell/*
140254885Sdumbbell * All AML opcodes and the parse-time arguments for each.  Used by the AML
141254885Sdumbbell * parser  Each list is compressed into a 32-bit number and stored in the
142254885Sdumbbell * master opcode table (in psopcode.c).
143254885Sdumbbell */
144254885Sdumbbell#define ARGP_ACCESSFIELD_OP             ARGP_LIST1 (ARGP_NAMESTRING)
145254885Sdumbbell#define ARGP_ACQUIRE_OP                 ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_WORDDATA)
146254885Sdumbbell#define ARGP_ADD_OP                     ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
147254885Sdumbbell#define ARGP_ALIAS_OP                   ARGP_LIST2 (ARGP_NAMESTRING, ARGP_NAME)
148254885Sdumbbell#define ARGP_ARG0                       ARG_NONE
149254885Sdumbbell#define ARGP_ARG1                       ARG_NONE
150254885Sdumbbell#define ARGP_ARG2                       ARG_NONE
151254885Sdumbbell#define ARGP_ARG3                       ARG_NONE
152254885Sdumbbell#define ARGP_ARG4                       ARG_NONE
153254885Sdumbbell#define ARGP_ARG5                       ARG_NONE
154254885Sdumbbell#define ARGP_ARG6                       ARG_NONE
155254885Sdumbbell#define ARGP_BANK_FIELD_OP              ARGP_LIST6 (ARGP_PKGLENGTH,  ARGP_NAMESTRING,    ARGP_NAMESTRING,ARGP_TERMARG,   ARGP_BYTEDATA,  ARGP_FIELDLIST)
156254885Sdumbbell#define ARGP_BIT_AND_OP                 ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
157254885Sdumbbell#define ARGP_BIT_NAND_OP                ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
158254885Sdumbbell#define ARGP_BIT_NOR_OP                 ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
159254885Sdumbbell#define ARGP_BIT_NOT_OP                 ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
160254885Sdumbbell#define ARGP_BIT_OR_OP                  ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
161254885Sdumbbell#define ARGP_BIT_XOR_OP                 ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
162254885Sdumbbell#define ARGP_BREAK_OP                   ARG_NONE
163254885Sdumbbell#define ARGP_BREAK_POINT_OP             ARG_NONE
164254885Sdumbbell#define ARGP_BUFFER_OP                  ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_BYTELIST)
165254885Sdumbbell#define ARGP_BYTE_OP                    ARGP_LIST1 (ARGP_BYTEDATA)
166254885Sdumbbell#define ARGP_BYTELIST_OP                ARGP_LIST1 (ARGP_NAMESTRING)
167254885Sdumbbell#define ARGP_CONCAT_OP                  ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
168254885Sdumbbell#define ARGP_CONCAT_RES_OP              ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
169254885Sdumbbell#define ARGP_COND_REF_OF_OP             ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_SUPERNAME)
170254885Sdumbbell#define ARGP_CONTINUE_OP                ARG_NONE
171254885Sdumbbell#define ARGP_COPY_OP                    ARGP_LIST2 (ARGP_TERMARG,    ARGP_SIMPLENAME)
172254885Sdumbbell#define ARGP_CREATE_BIT_FIELD_OP        ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
173254885Sdumbbell#define ARGP_CREATE_BYTE_FIELD_OP       ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
174254885Sdumbbell#define ARGP_CREATE_DWORD_FIELD_OP      ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
175254885Sdumbbell#define ARGP_CREATE_FIELD_OP            ARGP_LIST4 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TERMARG,   ARGP_NAME)
176254885Sdumbbell#define ARGP_CREATE_QWORD_FIELD_OP      ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
177254885Sdumbbell#define ARGP_CREATE_WORD_FIELD_OP       ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_NAME)
178254885Sdumbbell#define ARGP_DATA_REGION_OP             ARGP_LIST4 (ARGP_NAME,       ARGP_TERMARG,       ARGP_TERMARG,   ARGP_TERMARG)
179254885Sdumbbell#define ARGP_DEBUG_OP                   ARG_NONE
180254885Sdumbbell#define ARGP_DECREMENT_OP               ARGP_LIST1 (ARGP_SUPERNAME)
181254885Sdumbbell#define ARGP_DEREF_OF_OP                ARGP_LIST1 (ARGP_TERMARG)
182254885Sdumbbell#define ARGP_DEVICE_OP                  ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_OBJLIST)
183254885Sdumbbell#define ARGP_DIVIDE_OP                  ARGP_LIST4 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET,    ARGP_TARGET)
184254885Sdumbbell#define ARGP_DWORD_OP                   ARGP_LIST1 (ARGP_DWORDDATA)
185254885Sdumbbell#define ARGP_ELSE_OP                    ARGP_LIST2 (ARGP_PKGLENGTH,  ARGP_TERMLIST)
186254885Sdumbbell#define ARGP_EVENT_OP                   ARGP_LIST1 (ARGP_NAME)
187254885Sdumbbell#define ARGP_FATAL_OP                   ARGP_LIST3 (ARGP_BYTEDATA,   ARGP_DWORDDATA,     ARGP_TERMARG)
188254885Sdumbbell#define ARGP_FIELD_OP                   ARGP_LIST4 (ARGP_PKGLENGTH,  ARGP_NAMESTRING,    ARGP_BYTEDATA,  ARGP_FIELDLIST)
189254885Sdumbbell#define ARGP_FIND_SET_LEFT_BIT_OP       ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
190254885Sdumbbell#define ARGP_FIND_SET_RIGHT_BIT_OP      ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
191254885Sdumbbell#define ARGP_FROM_BCD_OP                ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
192254885Sdumbbell#define ARGP_IF_OP                      ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_TERMLIST)
193254885Sdumbbell#define ARGP_INCREMENT_OP               ARGP_LIST1 (ARGP_SUPERNAME)
194254885Sdumbbell#define ARGP_INDEX_FIELD_OP             ARGP_LIST5 (ARGP_PKGLENGTH,  ARGP_NAMESTRING,    ARGP_NAMESTRING,ARGP_BYTEDATA,  ARGP_FIELDLIST)
195254885Sdumbbell#define ARGP_INDEX_OP                   ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
196254885Sdumbbell#define ARGP_LAND_OP                    ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
197254885Sdumbbell#define ARGP_LEQUAL_OP                  ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
198254885Sdumbbell#define ARGP_LGREATER_OP                ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
199254885Sdumbbell#define ARGP_LGREATEREQUAL_OP           ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
200254885Sdumbbell#define ARGP_LLESS_OP                   ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
201254885Sdumbbell#define ARGP_LLESSEQUAL_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
202254885Sdumbbell#define ARGP_LNOT_OP                    ARGP_LIST1 (ARGP_TERMARG)
203254885Sdumbbell#define ARGP_LNOTEQUAL_OP               ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
204254885Sdumbbell#define ARGP_LOAD_OP                    ARGP_LIST2 (ARGP_NAMESTRING, ARGP_SUPERNAME)
205254885Sdumbbell#define ARGP_LOAD_TABLE_OP              ARGP_LIST6 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TERMARG,   ARGP_TERMARG,  ARGP_TERMARG,   ARGP_TERMARG)
206254885Sdumbbell#define ARGP_LOCAL0                     ARG_NONE
207254885Sdumbbell#define ARGP_LOCAL1                     ARG_NONE
208254885Sdumbbell#define ARGP_LOCAL2                     ARG_NONE
209254885Sdumbbell#define ARGP_LOCAL3                     ARG_NONE
210254885Sdumbbell#define ARGP_LOCAL4                     ARG_NONE
211254885Sdumbbell#define ARGP_LOCAL5                     ARG_NONE
212254885Sdumbbell#define ARGP_LOCAL6                     ARG_NONE
213254885Sdumbbell#define ARGP_LOCAL7                     ARG_NONE
214254885Sdumbbell#define ARGP_LOR_OP                     ARGP_LIST2 (ARGP_TERMARG,    ARGP_TERMARG)
215254885Sdumbbell#define ARGP_MATCH_OP                   ARGP_LIST6 (ARGP_TERMARG,    ARGP_BYTEDATA,      ARGP_TERMARG,   ARGP_BYTEDATA,  ARGP_TERMARG,   ARGP_TERMARG)
216254885Sdumbbell#define ARGP_METHOD_OP                  ARGP_LIST4 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_BYTEDATA,  ARGP_TERMLIST)
217254885Sdumbbell#define ARGP_METHODCALL_OP              ARGP_LIST1 (ARGP_NAMESTRING)
218254885Sdumbbell#define ARGP_MID_OP                     ARGP_LIST4 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TERMARG,   ARGP_TARGET)
219254885Sdumbbell#define ARGP_MOD_OP                     ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
220254885Sdumbbell#define ARGP_MULTIPLY_OP                ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
221254885Sdumbbell#define ARGP_MUTEX_OP                   ARGP_LIST2 (ARGP_NAME,       ARGP_BYTEDATA)
222254885Sdumbbell#define ARGP_NAME_OP                    ARGP_LIST2 (ARGP_NAME,       ARGP_DATAOBJ)
223254885Sdumbbell#define ARGP_NAMEDFIELD_OP              ARGP_LIST1 (ARGP_NAMESTRING)
224254885Sdumbbell#define ARGP_NAMEPATH_OP                ARGP_LIST1 (ARGP_NAMESTRING)
225254885Sdumbbell#define ARGP_NOOP_OP                    ARG_NONE
226254885Sdumbbell#define ARGP_NOTIFY_OP                  ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_TERMARG)
227254885Sdumbbell#define ARGP_ONE_OP                     ARG_NONE
228254885Sdumbbell#define ARGP_ONES_OP                    ARG_NONE
229254885Sdumbbell#define ARGP_PACKAGE_OP                 ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_BYTEDATA,      ARGP_DATAOBJLIST)
230254885Sdumbbell#define ARGP_POWER_RES_OP               ARGP_LIST5 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_BYTEDATA,  ARGP_WORDDATA,  ARGP_OBJLIST)
231254885Sdumbbell#define ARGP_PROCESSOR_OP               ARGP_LIST6 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_BYTEDATA,  ARGP_DWORDDATA, ARGP_BYTEDATA,  ARGP_OBJLIST)
232254885Sdumbbell#define ARGP_QWORD_OP                   ARGP_LIST1 (ARGP_QWORDDATA)
233254885Sdumbbell#define ARGP_REF_OF_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
234254885Sdumbbell#define ARGP_REGION_OP                  ARGP_LIST4 (ARGP_NAME,       ARGP_BYTEDATA,      ARGP_TERMARG,   ARGP_TERMARG)
235254885Sdumbbell#define ARGP_RELEASE_OP                 ARGP_LIST1 (ARGP_SUPERNAME)
236254885Sdumbbell#define ARGP_RESERVEDFIELD_OP           ARGP_LIST1 (ARGP_NAMESTRING)
237254885Sdumbbell#define ARGP_RESET_OP                   ARGP_LIST1 (ARGP_SUPERNAME)
238254885Sdumbbell#define ARGP_RETURN_OP                  ARGP_LIST1 (ARGP_TERMARG)
239254885Sdumbbell#define ARGP_REVISION_OP                ARG_NONE
240254885Sdumbbell#define ARGP_SCOPE_OP                   ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_TERMLIST)
241254885Sdumbbell#define ARGP_SHIFT_LEFT_OP              ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
242254885Sdumbbell#define ARGP_SHIFT_RIGHT_OP             ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
243254885Sdumbbell#define ARGP_SIGNAL_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
244254885Sdumbbell#define ARGP_SIZE_OF_OP                 ARGP_LIST1 (ARGP_SUPERNAME)
245254885Sdumbbell#define ARGP_SLEEP_OP                   ARGP_LIST1 (ARGP_TERMARG)
246254885Sdumbbell#define ARGP_STALL_OP                   ARGP_LIST1 (ARGP_TERMARG)
247254885Sdumbbell#define ARGP_STATICSTRING_OP            ARGP_LIST1 (ARGP_NAMESTRING)
248254885Sdumbbell#define ARGP_STORE_OP                   ARGP_LIST2 (ARGP_TERMARG,    ARGP_SUPERNAME)
249254885Sdumbbell#define ARGP_STRING_OP                  ARGP_LIST1 (ARGP_CHARLIST)
250254885Sdumbbell#define ARGP_SUBTRACT_OP                ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
251254885Sdumbbell#define ARGP_THERMAL_ZONE_OP            ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_NAME,          ARGP_OBJLIST)
252254885Sdumbbell#define ARGP_TIMER_OP                   ARG_NONE
253254885Sdumbbell#define ARGP_TO_BCD_OP                  ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
254254885Sdumbbell#define ARGP_TO_BUFFER_OP               ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
255254885Sdumbbell#define ARGP_TO_DEC_STR_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
256254885Sdumbbell#define ARGP_TO_HEX_STR_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
257254885Sdumbbell#define ARGP_TO_INTEGER_OP              ARGP_LIST2 (ARGP_TERMARG,    ARGP_TARGET)
258254885Sdumbbell#define ARGP_TO_STRING_OP               ARGP_LIST3 (ARGP_TERMARG,    ARGP_TERMARG,       ARGP_TARGET)
259254885Sdumbbell#define ARGP_TYPE_OP                    ARGP_LIST1 (ARGP_SUPERNAME)
260254885Sdumbbell#define ARGP_UNLOAD_OP                  ARGP_LIST1 (ARGP_SUPERNAME)
261254885Sdumbbell#define ARGP_VAR_PACKAGE_OP             ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_DATAOBJLIST)
262254885Sdumbbell#define ARGP_WAIT_OP                    ARGP_LIST2 (ARGP_SUPERNAME,  ARGP_TERMARG)
263254885Sdumbbell#define ARGP_WHILE_OP                   ARGP_LIST3 (ARGP_PKGLENGTH,  ARGP_TERMARG,       ARGP_TERMLIST)
264254885Sdumbbell#define ARGP_WORD_OP                    ARGP_LIST1 (ARGP_WORDDATA)
265254885Sdumbbell#define ARGP_ZERO_OP                    ARG_NONE
266254885Sdumbbell
267254885Sdumbbell
268254885Sdumbbell/*
269254885Sdumbbell * All AML opcodes and the runtime arguments for each.  Used by the AML
270254885Sdumbbell * interpreter  Each list is compressed into a 32-bit number and stored
271254885Sdumbbell * in the master opcode table (in psopcode.c).
272254885Sdumbbell *
273254885Sdumbbell * (Used by PrepOperands procedure and the ASL Compiler)
274254885Sdumbbell */
275254885Sdumbbell#define ARGI_ACCESSFIELD_OP             ARGI_INVALID_OPCODE
276254885Sdumbbell#define ARGI_ACQUIRE_OP                 ARGI_LIST2 (ARGI_MUTEX,      ARGI_INTEGER)
277254885Sdumbbell#define ARGI_ADD_OP                     ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
278254885Sdumbbell#define ARGI_ALIAS_OP                   ARGI_INVALID_OPCODE
279254885Sdumbbell#define ARGI_ARG0                       ARG_NONE
280254885Sdumbbell#define ARGI_ARG1                       ARG_NONE
281254885Sdumbbell#define ARGI_ARG2                       ARG_NONE
282254885Sdumbbell#define ARGI_ARG3                       ARG_NONE
283254885Sdumbbell#define ARGI_ARG4                       ARG_NONE
284254885Sdumbbell#define ARGI_ARG5                       ARG_NONE
285254885Sdumbbell#define ARGI_ARG6                       ARG_NONE
286254885Sdumbbell#define ARGI_BANK_FIELD_OP              ARGI_INVALID_OPCODE
287254885Sdumbbell#define ARGI_BIT_AND_OP                 ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
288254885Sdumbbell#define ARGI_BIT_NAND_OP                ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
289254885Sdumbbell#define ARGI_BIT_NOR_OP                 ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
290254885Sdumbbell#define ARGI_BIT_NOT_OP                 ARGI_LIST2 (ARGI_INTEGER,    ARGI_TARGETREF)
291254885Sdumbbell#define ARGI_BIT_OR_OP                  ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
292254885Sdumbbell#define ARGI_BIT_XOR_OP                 ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
293254885Sdumbbell#define ARGI_BREAK_OP                   ARG_NONE
294254885Sdumbbell#define ARGI_BREAK_POINT_OP             ARG_NONE
295254885Sdumbbell#define ARGI_BUFFER_OP                  ARGI_LIST1 (ARGI_INTEGER)
296254885Sdumbbell#define ARGI_BYTE_OP                    ARGI_INVALID_OPCODE
297254885Sdumbbell#define ARGI_BYTELIST_OP                ARGI_INVALID_OPCODE
298254885Sdumbbell#define ARGI_CONCAT_OP                  ARGI_LIST3 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA,   ARGI_TARGETREF)
299254885Sdumbbell#define ARGI_CONCAT_RES_OP              ARGI_LIST3 (ARGI_BUFFER,     ARGI_BUFFER,        ARGI_TARGETREF)
300254885Sdumbbell#define ARGI_COND_REF_OF_OP             ARGI_LIST2 (ARGI_OBJECT_REF, ARGI_TARGETREF)
301254885Sdumbbell#define ARGI_CONTINUE_OP                ARGI_INVALID_OPCODE
302254885Sdumbbell#define ARGI_COPY_OP                    ARGI_LIST2 (ARGI_ANYTYPE,    ARGI_SIMPLE_TARGET)
303254885Sdumbbell#define ARGI_CREATE_BIT_FIELD_OP        ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
304254885Sdumbbell#define ARGI_CREATE_BYTE_FIELD_OP       ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
305254885Sdumbbell#define ARGI_CREATE_DWORD_FIELD_OP      ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
306254885Sdumbbell#define ARGI_CREATE_FIELD_OP            ARGI_LIST4 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_INTEGER,      ARGI_REFERENCE)
307254885Sdumbbell#define ARGI_CREATE_QWORD_FIELD_OP      ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
308254885Sdumbbell#define ARGI_CREATE_WORD_FIELD_OP       ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_REFERENCE)
309254885Sdumbbell#define ARGI_DATA_REGION_OP             ARGI_LIST3 (ARGI_STRING,     ARGI_STRING,        ARGI_STRING)
310254885Sdumbbell#define ARGI_DEBUG_OP                   ARG_NONE
311254885Sdumbbell#define ARGI_DECREMENT_OP               ARGI_LIST1 (ARGI_INTEGER_REF)
312254885Sdumbbell#define ARGI_DEREF_OF_OP                ARGI_LIST1 (ARGI_REF_OR_STRING)
313254885Sdumbbell#define ARGI_DEVICE_OP                  ARGI_INVALID_OPCODE
314254885Sdumbbell#define ARGI_DIVIDE_OP                  ARGI_LIST4 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF,    ARGI_TARGETREF)
315254885Sdumbbell#define ARGI_DWORD_OP                   ARGI_INVALID_OPCODE
316254885Sdumbbell#define ARGI_ELSE_OP                    ARGI_INVALID_OPCODE
317254885Sdumbbell#define ARGI_EVENT_OP                   ARGI_INVALID_OPCODE
318254885Sdumbbell#define ARGI_FATAL_OP                   ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_INTEGER)
319254885Sdumbbell#define ARGI_FIELD_OP                   ARGI_INVALID_OPCODE
320254885Sdumbbell#define ARGI_FIND_SET_LEFT_BIT_OP       ARGI_LIST2 (ARGI_INTEGER,    ARGI_TARGETREF)
321254885Sdumbbell#define ARGI_FIND_SET_RIGHT_BIT_OP      ARGI_LIST2 (ARGI_INTEGER,    ARGI_TARGETREF)
322254885Sdumbbell#define ARGI_FROM_BCD_OP                ARGI_LIST2 (ARGI_INTEGER,    ARGI_FIXED_TARGET)
323254885Sdumbbell#define ARGI_IF_OP                      ARGI_INVALID_OPCODE
324254885Sdumbbell#define ARGI_INCREMENT_OP               ARGI_LIST1 (ARGI_INTEGER_REF)
325254885Sdumbbell#define ARGI_INDEX_FIELD_OP             ARGI_INVALID_OPCODE
326254885Sdumbbell#define ARGI_INDEX_OP                   ARGI_LIST3 (ARGI_COMPLEXOBJ, ARGI_INTEGER,       ARGI_TARGETREF)
327254885Sdumbbell#define ARGI_LAND_OP                    ARGI_LIST2 (ARGI_INTEGER,    ARGI_INTEGER)
328254885Sdumbbell#define ARGI_LEQUAL_OP                  ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA)
329254885Sdumbbell#define ARGI_LGREATER_OP                ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA)
330254885Sdumbbell#define ARGI_LGREATEREQUAL_OP           ARGI_INVALID_OPCODE
331254885Sdumbbell#define ARGI_LLESS_OP                   ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_COMPUTEDATA)
332254885Sdumbbell#define ARGI_LLESSEQUAL_OP              ARGI_INVALID_OPCODE
333254885Sdumbbell#define ARGI_LNOT_OP                    ARGI_LIST1 (ARGI_INTEGER)
334254885Sdumbbell#define ARGI_LNOTEQUAL_OP               ARGI_INVALID_OPCODE
335254885Sdumbbell#define ARGI_LOAD_OP                    ARGI_LIST2 (ARGI_REGION_OR_BUFFER,ARGI_TARGETREF)
336254885Sdumbbell#define ARGI_LOAD_TABLE_OP              ARGI_LIST6 (ARGI_STRING,     ARGI_STRING,        ARGI_STRING,       ARGI_STRING,    ARGI_STRING, ARGI_ANYTYPE)
337254885Sdumbbell#define ARGI_LOCAL0                     ARG_NONE
338254885Sdumbbell#define ARGI_LOCAL1                     ARG_NONE
339254885Sdumbbell#define ARGI_LOCAL2                     ARG_NONE
340254885Sdumbbell#define ARGI_LOCAL3                     ARG_NONE
341254885Sdumbbell#define ARGI_LOCAL4                     ARG_NONE
342254885Sdumbbell#define ARGI_LOCAL5                     ARG_NONE
343254885Sdumbbell#define ARGI_LOCAL6                     ARG_NONE
344254885Sdumbbell#define ARGI_LOCAL7                     ARG_NONE
345254885Sdumbbell#define ARGI_LOR_OP                     ARGI_LIST2 (ARGI_INTEGER,    ARGI_INTEGER)
346254885Sdumbbell#define ARGI_MATCH_OP                   ARGI_LIST6 (ARGI_PACKAGE,    ARGI_INTEGER,   ARGI_COMPUTEDATA,      ARGI_INTEGER,ARGI_COMPUTEDATA,ARGI_INTEGER)
347254885Sdumbbell#define ARGI_METHOD_OP                  ARGI_INVALID_OPCODE
348254885Sdumbbell#define ARGI_METHODCALL_OP              ARGI_INVALID_OPCODE
349254885Sdumbbell#define ARGI_MID_OP                     ARGI_LIST4 (ARGI_BUFFER_OR_STRING,ARGI_INTEGER,  ARGI_INTEGER,      ARGI_TARGETREF)
350254885Sdumbbell#define ARGI_MOD_OP                     ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
351254885Sdumbbell#define ARGI_MULTIPLY_OP                ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
352254885Sdumbbell#define ARGI_MUTEX_OP                   ARGI_INVALID_OPCODE
353254885Sdumbbell#define ARGI_NAME_OP                    ARGI_INVALID_OPCODE
354254885Sdumbbell#define ARGI_NAMEDFIELD_OP              ARGI_INVALID_OPCODE
355254885Sdumbbell#define ARGI_NAMEPATH_OP                ARGI_INVALID_OPCODE
356254885Sdumbbell#define ARGI_NOOP_OP                    ARG_NONE
357254885Sdumbbell#define ARGI_NOTIFY_OP                  ARGI_LIST2 (ARGI_DEVICE_REF, ARGI_INTEGER)
358254885Sdumbbell#define ARGI_ONE_OP                     ARG_NONE
359254885Sdumbbell#define ARGI_ONES_OP                    ARG_NONE
360254885Sdumbbell#define ARGI_PACKAGE_OP                 ARGI_LIST1 (ARGI_INTEGER)
361254885Sdumbbell#define ARGI_POWER_RES_OP               ARGI_INVALID_OPCODE
362254885Sdumbbell#define ARGI_PROCESSOR_OP               ARGI_INVALID_OPCODE
363254885Sdumbbell#define ARGI_QWORD_OP                   ARGI_INVALID_OPCODE
364254885Sdumbbell#define ARGI_REF_OF_OP                  ARGI_LIST1 (ARGI_OBJECT_REF)
365254885Sdumbbell#define ARGI_REGION_OP                  ARGI_LIST2 (ARGI_INTEGER,    ARGI_INTEGER)
366254885Sdumbbell#define ARGI_RELEASE_OP                 ARGI_LIST1 (ARGI_MUTEX)
367254885Sdumbbell#define ARGI_RESERVEDFIELD_OP           ARGI_INVALID_OPCODE
368254885Sdumbbell#define ARGI_RESET_OP                   ARGI_LIST1 (ARGI_EVENT)
369254885Sdumbbell#define ARGI_RETURN_OP                  ARGI_INVALID_OPCODE
370254885Sdumbbell#define ARGI_REVISION_OP                ARG_NONE
371254885Sdumbbell#define ARGI_SCOPE_OP                   ARGI_INVALID_OPCODE
372254885Sdumbbell#define ARGI_SHIFT_LEFT_OP              ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
373254885Sdumbbell#define ARGI_SHIFT_RIGHT_OP             ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
374254885Sdumbbell#define ARGI_SIGNAL_OP                  ARGI_LIST1 (ARGI_EVENT)
375254885Sdumbbell#define ARGI_SIZE_OF_OP                 ARGI_LIST1 (ARGI_DATAOBJECT)
376254885Sdumbbell#define ARGI_SLEEP_OP                   ARGI_LIST1 (ARGI_INTEGER)
377254885Sdumbbell#define ARGI_STALL_OP                   ARGI_LIST1 (ARGI_INTEGER)
378254885Sdumbbell#define ARGI_STATICSTRING_OP            ARGI_INVALID_OPCODE
379254885Sdumbbell#define ARGI_STORE_OP                   ARGI_LIST2 (ARGI_DATAREFOBJ, ARGI_TARGETREF)
380254885Sdumbbell#define ARGI_STRING_OP                  ARGI_INVALID_OPCODE
381254885Sdumbbell#define ARGI_SUBTRACT_OP                ARGI_LIST3 (ARGI_INTEGER,    ARGI_INTEGER,       ARGI_TARGETREF)
382254885Sdumbbell#define ARGI_THERMAL_ZONE_OP            ARGI_INVALID_OPCODE
383254885Sdumbbell#define ARGI_TIMER_OP                   ARG_NONE
384254885Sdumbbell#define ARGI_TO_BCD_OP                  ARGI_LIST2 (ARGI_INTEGER,    ARGI_FIXED_TARGET)
385254885Sdumbbell#define ARGI_TO_BUFFER_OP               ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
386254885Sdumbbell#define ARGI_TO_DEC_STR_OP              ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
387254885Sdumbbell#define ARGI_TO_HEX_STR_OP              ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
388254885Sdumbbell#define ARGI_TO_INTEGER_OP              ARGI_LIST2 (ARGI_COMPUTEDATA,ARGI_FIXED_TARGET)
389254885Sdumbbell#define ARGI_TO_STRING_OP               ARGI_LIST3 (ARGI_BUFFER,     ARGI_INTEGER,       ARGI_FIXED_TARGET)
390254885Sdumbbell#define ARGI_TYPE_OP                    ARGI_LIST1 (ARGI_ANYTYPE)
391254885Sdumbbell#define ARGI_UNLOAD_OP                  ARGI_LIST1 (ARGI_DDBHANDLE)
392254885Sdumbbell#define ARGI_VAR_PACKAGE_OP             ARGI_LIST1 (ARGI_INTEGER)
393254885Sdumbbell#define ARGI_WAIT_OP                    ARGI_LIST2 (ARGI_EVENT,      ARGI_INTEGER)
394254885Sdumbbell#define ARGI_WHILE_OP                   ARGI_INVALID_OPCODE
395254885Sdumbbell#define ARGI_WORD_OP                    ARGI_INVALID_OPCODE
396254885Sdumbbell#define ARGI_ZERO_OP                    ARG_NONE
397254885Sdumbbell
398254885Sdumbbell#endif /* __ACOPCODE_H__ */
399254885Sdumbbell