Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Module Name: psopcode - Parser/Interpreter opcode information table |
| 4 | * |
| 5 | *****************************************************************************/ |
| 6 | |
| 7 | /* |
David E. Box | 82a8094 | 2015-02-05 15:20:45 +0800 | [diff] [blame] | 8 | * Copyright (C) 2000 - 2015, Intel Corp. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | * All rights reserved. |
| 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or without |
| 12 | * modification, are permitted provided that the following conditions |
| 13 | * are met: |
| 14 | * 1. Redistributions of source code must retain the above copyright |
| 15 | * notice, this list of conditions, and the following disclaimer, |
| 16 | * without modification. |
| 17 | * 2. Redistributions in binary form must reproduce at minimum a disclaimer |
| 18 | * substantially similar to the "NO WARRANTY" disclaimer below |
| 19 | * ("Disclaimer") and any redistribution must be conditioned upon |
| 20 | * including a substantially similar Disclaimer requirement for further |
| 21 | * binary redistribution. |
| 22 | * 3. Neither the names of the above-listed copyright holders nor the names |
| 23 | * of any contributors may be used to endorse or promote products derived |
| 24 | * from this software without specific prior written permission. |
| 25 | * |
| 26 | * Alternatively, this software may be distributed under the terms of the |
| 27 | * GNU General Public License ("GPL") version 2 as published by the Free |
| 28 | * Software Foundation. |
| 29 | * |
| 30 | * NO WARRANTY |
| 31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 32 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 33 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR |
| 34 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 35 | * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 37 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 38 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 39 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 40 | * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 41 | * POSSIBILITY OF SUCH DAMAGES. |
| 42 | */ |
| 43 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 44 | #include <acpi/acpi.h> |
Len Brown | e2f7a77 | 2009-01-09 00:30:03 -0500 | [diff] [blame] | 45 | #include "accommon.h" |
Len Brown | e2f7a77 | 2009-01-09 00:30:03 -0500 | [diff] [blame] | 46 | #include "acopcode.h" |
| 47 | #include "amlcode.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 49 | #define _COMPONENT ACPI_PARSER |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 50 | ACPI_MODULE_NAME("psopcode") |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | /******************************************************************************* |
| 53 | * |
| 54 | * NAME: acpi_gbl_aml_op_info |
| 55 | * |
| 56 | * DESCRIPTION: Opcode table. Each entry contains <opcode, type, name, operands> |
| 57 | * The name is a simple ascii string, the operand specifier is an |
Bob Moore | 73a3090 | 2012-10-31 02:26:55 +0000 | [diff] [blame] | 58 | * ascii string with one letter per operand. The letter specifies |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | * the operand type. |
| 60 | * |
| 61 | ******************************************************************************/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 62 | /* |
| 63 | * Summary of opcode types/flags |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 64 | * |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | |
| 66 | Opcodes that have associated namespace objects (AML_NSOBJECT flag) |
| 67 | |
| 68 | AML_SCOPE_OP |
| 69 | AML_DEVICE_OP |
| 70 | AML_THERMAL_ZONE_OP |
| 71 | AML_METHOD_OP |
| 72 | AML_POWER_RES_OP |
| 73 | AML_PROCESSOR_OP |
| 74 | AML_FIELD_OP |
| 75 | AML_INDEX_FIELD_OP |
| 76 | AML_BANK_FIELD_OP |
| 77 | AML_NAME_OP |
| 78 | AML_ALIAS_OP |
| 79 | AML_MUTEX_OP |
| 80 | AML_EVENT_OP |
| 81 | AML_REGION_OP |
| 82 | AML_CREATE_FIELD_OP |
| 83 | AML_CREATE_BIT_FIELD_OP |
| 84 | AML_CREATE_BYTE_FIELD_OP |
| 85 | AML_CREATE_WORD_FIELD_OP |
| 86 | AML_CREATE_DWORD_FIELD_OP |
| 87 | AML_CREATE_QWORD_FIELD_OP |
| 88 | AML_INT_NAMEDFIELD_OP |
| 89 | AML_INT_METHODCALL_OP |
| 90 | AML_INT_NAMEPATH_OP |
| 91 | |
| 92 | Opcodes that are "namespace" opcodes (AML_NSOPCODE flag) |
| 93 | |
| 94 | AML_SCOPE_OP |
| 95 | AML_DEVICE_OP |
| 96 | AML_THERMAL_ZONE_OP |
| 97 | AML_METHOD_OP |
| 98 | AML_POWER_RES_OP |
| 99 | AML_PROCESSOR_OP |
| 100 | AML_FIELD_OP |
| 101 | AML_INDEX_FIELD_OP |
| 102 | AML_BANK_FIELD_OP |
| 103 | AML_NAME_OP |
| 104 | AML_ALIAS_OP |
| 105 | AML_MUTEX_OP |
| 106 | AML_EVENT_OP |
| 107 | AML_REGION_OP |
| 108 | AML_INT_NAMEDFIELD_OP |
| 109 | |
| 110 | Opcodes that have an associated namespace node (AML_NSNODE flag) |
| 111 | |
| 112 | AML_SCOPE_OP |
| 113 | AML_DEVICE_OP |
| 114 | AML_THERMAL_ZONE_OP |
| 115 | AML_METHOD_OP |
| 116 | AML_POWER_RES_OP |
| 117 | AML_PROCESSOR_OP |
| 118 | AML_NAME_OP |
| 119 | AML_ALIAS_OP |
| 120 | AML_MUTEX_OP |
| 121 | AML_EVENT_OP |
| 122 | AML_REGION_OP |
| 123 | AML_CREATE_FIELD_OP |
| 124 | AML_CREATE_BIT_FIELD_OP |
| 125 | AML_CREATE_BYTE_FIELD_OP |
| 126 | AML_CREATE_WORD_FIELD_OP |
| 127 | AML_CREATE_DWORD_FIELD_OP |
| 128 | AML_CREATE_QWORD_FIELD_OP |
| 129 | AML_INT_NAMEDFIELD_OP |
| 130 | AML_INT_METHODCALL_OP |
| 131 | AML_INT_NAMEPATH_OP |
| 132 | |
| 133 | Opcodes that define named ACPI objects (AML_NAMED flag) |
| 134 | |
| 135 | AML_SCOPE_OP |
| 136 | AML_DEVICE_OP |
| 137 | AML_THERMAL_ZONE_OP |
| 138 | AML_METHOD_OP |
| 139 | AML_POWER_RES_OP |
| 140 | AML_PROCESSOR_OP |
| 141 | AML_NAME_OP |
| 142 | AML_ALIAS_OP |
| 143 | AML_MUTEX_OP |
| 144 | AML_EVENT_OP |
| 145 | AML_REGION_OP |
| 146 | AML_INT_NAMEDFIELD_OP |
| 147 | |
| 148 | Opcodes that contain executable AML as part of the definition that |
| 149 | must be deferred until needed |
| 150 | |
| 151 | AML_METHOD_OP |
| 152 | AML_VAR_PACKAGE_OP |
| 153 | AML_CREATE_FIELD_OP |
| 154 | AML_CREATE_BIT_FIELD_OP |
| 155 | AML_CREATE_BYTE_FIELD_OP |
| 156 | AML_CREATE_WORD_FIELD_OP |
| 157 | AML_CREATE_DWORD_FIELD_OP |
| 158 | AML_CREATE_QWORD_FIELD_OP |
| 159 | AML_REGION_OP |
| 160 | AML_BUFFER_OP |
| 161 | |
| 162 | Field opcodes |
| 163 | |
| 164 | AML_CREATE_FIELD_OP |
| 165 | AML_FIELD_OP |
| 166 | AML_INDEX_FIELD_OP |
| 167 | AML_BANK_FIELD_OP |
| 168 | |
| 169 | Field "Create" opcodes |
| 170 | |
| 171 | AML_CREATE_FIELD_OP |
| 172 | AML_CREATE_BIT_FIELD_OP |
| 173 | AML_CREATE_BYTE_FIELD_OP |
| 174 | AML_CREATE_WORD_FIELD_OP |
| 175 | AML_CREATE_DWORD_FIELD_OP |
| 176 | AML_CREATE_QWORD_FIELD_OP |
| 177 | |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 178 | ******************************************************************************/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 179 | /* |
Bob Moore | 73a3090 | 2012-10-31 02:26:55 +0000 | [diff] [blame] | 180 | * Master Opcode information table. A summary of everything we know about each |
Robert Moore | 44f6c01 | 2005-04-18 22:49:35 -0400 | [diff] [blame] | 181 | * opcode, all in one place. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | */ |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 183 | const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES] = { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 184 | /*! [Begin] no source code translation */ |
| 185 | /* Index Name Parser Args Interpreter Args ObjectType Class Type Flags */ |
| 186 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 187 | /* 00 */ ACPI_OP("Zero", ARGP_ZERO_OP, ARGI_ZERO_OP, ACPI_TYPE_INTEGER, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 188 | AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 189 | /* 01 */ ACPI_OP("One", ARGP_ONE_OP, ARGI_ONE_OP, ACPI_TYPE_INTEGER, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 190 | AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 191 | /* 02 */ ACPI_OP("Alias", ARGP_ALIAS_OP, ARGI_ALIAS_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 192 | ACPI_TYPE_LOCAL_ALIAS, AML_CLASS_NAMED_OBJECT, |
| 193 | AML_TYPE_NAMED_SIMPLE, |
| 194 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 195 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 196 | /* 03 */ ACPI_OP("Name", ARGP_NAME_OP, ARGI_NAME_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 197 | AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX, |
| 198 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 199 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 200 | /* 04 */ ACPI_OP("ByteConst", ARGP_BYTE_OP, ARGI_BYTE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 201 | ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, |
| 202 | AML_TYPE_LITERAL, AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 203 | /* 05 */ ACPI_OP("WordConst", ARGP_WORD_OP, ARGI_WORD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 204 | ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, |
| 205 | AML_TYPE_LITERAL, AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 206 | /* 06 */ ACPI_OP("DwordConst", ARGP_DWORD_OP, ARGI_DWORD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 207 | ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, |
| 208 | AML_TYPE_LITERAL, AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 209 | /* 07 */ ACPI_OP("String", ARGP_STRING_OP, ARGI_STRING_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 210 | ACPI_TYPE_STRING, AML_CLASS_ARGUMENT, |
| 211 | AML_TYPE_LITERAL, AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 212 | /* 08 */ ACPI_OP("Scope", ARGP_SCOPE_OP, ARGI_SCOPE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 213 | ACPI_TYPE_LOCAL_SCOPE, AML_CLASS_NAMED_OBJECT, |
| 214 | AML_TYPE_NAMED_NO_OBJ, |
| 215 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 216 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 217 | /* 09 */ ACPI_OP("Buffer", ARGP_BUFFER_OP, ARGI_BUFFER_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 218 | ACPI_TYPE_BUFFER, AML_CLASS_CREATE, |
| 219 | AML_TYPE_CREATE_OBJECT, |
| 220 | AML_HAS_ARGS | AML_DEFER | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 221 | /* 0A */ ACPI_OP("Package", ARGP_PACKAGE_OP, ARGI_PACKAGE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 222 | ACPI_TYPE_PACKAGE, AML_CLASS_CREATE, |
| 223 | AML_TYPE_CREATE_OBJECT, |
| 224 | AML_HAS_ARGS | AML_DEFER | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 225 | /* 0B */ ACPI_OP("Method", ARGP_METHOD_OP, ARGI_METHOD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 226 | ACPI_TYPE_METHOD, AML_CLASS_NAMED_OBJECT, |
| 227 | AML_TYPE_NAMED_COMPLEX, |
| 228 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 229 | AML_NSNODE | AML_NAMED | AML_DEFER), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 230 | /* 0C */ ACPI_OP("Local0", ARGP_LOCAL0, ARGI_LOCAL0, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 231 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 232 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 233 | /* 0D */ ACPI_OP("Local1", ARGP_LOCAL1, ARGI_LOCAL1, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 234 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 235 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 236 | /* 0E */ ACPI_OP("Local2", ARGP_LOCAL2, ARGI_LOCAL2, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 237 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 238 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 239 | /* 0F */ ACPI_OP("Local3", ARGP_LOCAL3, ARGI_LOCAL3, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 240 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 241 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 242 | /* 10 */ ACPI_OP("Local4", ARGP_LOCAL4, ARGI_LOCAL4, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 243 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 244 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 245 | /* 11 */ ACPI_OP("Local5", ARGP_LOCAL5, ARGI_LOCAL5, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 246 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 247 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 248 | /* 12 */ ACPI_OP("Local6", ARGP_LOCAL6, ARGI_LOCAL6, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 249 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 250 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 251 | /* 13 */ ACPI_OP("Local7", ARGP_LOCAL7, ARGI_LOCAL7, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 252 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 253 | AML_TYPE_LOCAL_VARIABLE, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 254 | /* 14 */ ACPI_OP("Arg0", ARGP_ARG0, ARGI_ARG0, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 255 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 256 | AML_TYPE_METHOD_ARGUMENT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 257 | /* 15 */ ACPI_OP("Arg1", ARGP_ARG1, ARGI_ARG1, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 258 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 259 | AML_TYPE_METHOD_ARGUMENT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 260 | /* 16 */ ACPI_OP("Arg2", ARGP_ARG2, ARGI_ARG2, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 261 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 262 | AML_TYPE_METHOD_ARGUMENT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 263 | /* 17 */ ACPI_OP("Arg3", ARGP_ARG3, ARGI_ARG3, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 264 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 265 | AML_TYPE_METHOD_ARGUMENT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 266 | /* 18 */ ACPI_OP("Arg4", ARGP_ARG4, ARGI_ARG4, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 267 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 268 | AML_TYPE_METHOD_ARGUMENT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 269 | /* 19 */ ACPI_OP("Arg5", ARGP_ARG5, ARGI_ARG5, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 270 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 271 | AML_TYPE_METHOD_ARGUMENT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 272 | /* 1A */ ACPI_OP("Arg6", ARGP_ARG6, ARGI_ARG6, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 273 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 274 | AML_TYPE_METHOD_ARGUMENT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 275 | /* 1B */ ACPI_OP("Store", ARGP_STORE_OP, ARGI_STORE_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 276 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, |
| 277 | AML_FLAGS_EXEC_1A_1T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 278 | /* 1C */ ACPI_OP("RefOf", ARGP_REF_OF_OP, ARGI_REF_OF_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 279 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, |
| 280 | AML_FLAGS_EXEC_1A_0T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 281 | /* 1D */ ACPI_OP("Add", ARGP_ADD_OP, ARGI_ADD_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 282 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 283 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 284 | /* 1E */ ACPI_OP("Concatenate", ARGP_CONCAT_OP, ARGI_CONCAT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 285 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 286 | AML_TYPE_EXEC_2A_1T_1R, |
| 287 | AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 288 | /* 1F */ ACPI_OP("Subtract", ARGP_SUBTRACT_OP, ARGI_SUBTRACT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 289 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 290 | AML_TYPE_EXEC_2A_1T_1R, |
| 291 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 292 | /* 20 */ ACPI_OP("Increment", ARGP_INCREMENT_OP, ARGI_INCREMENT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 293 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 294 | AML_TYPE_EXEC_1A_0T_1R, |
| 295 | AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 296 | /* 21 */ ACPI_OP("Decrement", ARGP_DECREMENT_OP, ARGI_DECREMENT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 297 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 298 | AML_TYPE_EXEC_1A_0T_1R, |
| 299 | AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 300 | /* 22 */ ACPI_OP("Multiply", ARGP_MULTIPLY_OP, ARGI_MULTIPLY_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 301 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 302 | AML_TYPE_EXEC_2A_1T_1R, |
| 303 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 304 | /* 23 */ ACPI_OP("Divide", ARGP_DIVIDE_OP, ARGI_DIVIDE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 305 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 306 | AML_TYPE_EXEC_2A_2T_1R, |
| 307 | AML_FLAGS_EXEC_2A_2T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 308 | /* 24 */ ACPI_OP("ShiftLeft", ARGP_SHIFT_LEFT_OP, ARGI_SHIFT_LEFT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 309 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 310 | AML_TYPE_EXEC_2A_1T_1R, |
| 311 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 312 | /* 25 */ ACPI_OP("ShiftRight", ARGP_SHIFT_RIGHT_OP, ARGI_SHIFT_RIGHT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 313 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 314 | AML_TYPE_EXEC_2A_1T_1R, |
| 315 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 316 | /* 26 */ ACPI_OP("And", ARGP_BIT_AND_OP, ARGI_BIT_AND_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 317 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 318 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 319 | /* 27 */ ACPI_OP("NAnd", ARGP_BIT_NAND_OP, ARGI_BIT_NAND_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 320 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 321 | AML_TYPE_EXEC_2A_1T_1R, |
| 322 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 323 | /* 28 */ ACPI_OP("Or", ARGP_BIT_OR_OP, ARGI_BIT_OR_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 324 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 325 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 326 | /* 29 */ ACPI_OP("NOr", ARGP_BIT_NOR_OP, ARGI_BIT_NOR_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 327 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 328 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 329 | /* 2A */ ACPI_OP("XOr", ARGP_BIT_XOR_OP, ARGI_BIT_XOR_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 330 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 331 | AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 332 | /* 2B */ ACPI_OP("Not", ARGP_BIT_NOT_OP, ARGI_BIT_NOT_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 333 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, |
| 334 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 335 | /* 2C */ ACPI_OP("FindSetLeftBit", ARGP_FIND_SET_LEFT_BIT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 336 | ARGI_FIND_SET_LEFT_BIT_OP, ACPI_TYPE_ANY, |
| 337 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, |
| 338 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 339 | /* 2D */ ACPI_OP("FindSetRightBit", ARGP_FIND_SET_RIGHT_BIT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 340 | ARGI_FIND_SET_RIGHT_BIT_OP, ACPI_TYPE_ANY, |
| 341 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, |
| 342 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 343 | /* 2E */ ACPI_OP("DerefOf", ARGP_DEREF_OF_OP, ARGI_DEREF_OF_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 344 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 345 | AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 346 | /* 2F */ ACPI_OP("Notify", ARGP_NOTIFY_OP, ARGI_NOTIFY_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 347 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 348 | AML_TYPE_EXEC_2A_0T_0R, AML_FLAGS_EXEC_2A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 349 | /* 30 */ ACPI_OP("SizeOf", ARGP_SIZE_OF_OP, ARGI_SIZE_OF_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 350 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 351 | AML_TYPE_EXEC_1A_0T_1R, |
| 352 | AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 353 | /* 31 */ ACPI_OP("Index", ARGP_INDEX_OP, ARGI_INDEX_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 354 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 355 | AML_FLAGS_EXEC_2A_1T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 356 | /* 32 */ ACPI_OP("Match", ARGP_MATCH_OP, ARGI_MATCH_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 357 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_6A_0T_1R, |
| 358 | AML_FLAGS_EXEC_6A_0T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 359 | /* 33 */ ACPI_OP("CreateDWordField", ARGP_CREATE_DWORD_FIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 360 | ARGI_CREATE_DWORD_FIELD_OP, |
| 361 | ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, |
| 362 | AML_TYPE_CREATE_FIELD, |
| 363 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | |
| 364 | AML_DEFER | AML_CREATE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 365 | /* 34 */ ACPI_OP("CreateWordField", ARGP_CREATE_WORD_FIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 366 | ARGI_CREATE_WORD_FIELD_OP, |
| 367 | ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, |
| 368 | AML_TYPE_CREATE_FIELD, |
| 369 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | |
| 370 | AML_DEFER | AML_CREATE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 371 | /* 35 */ ACPI_OP("CreateByteField", ARGP_CREATE_BYTE_FIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 372 | ARGI_CREATE_BYTE_FIELD_OP, |
| 373 | ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, |
| 374 | AML_TYPE_CREATE_FIELD, |
| 375 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | |
| 376 | AML_DEFER | AML_CREATE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 377 | /* 36 */ ACPI_OP("CreateBitField", ARGP_CREATE_BIT_FIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 378 | ARGI_CREATE_BIT_FIELD_OP, |
| 379 | ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, |
| 380 | AML_TYPE_CREATE_FIELD, |
| 381 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | |
| 382 | AML_DEFER | AML_CREATE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 383 | /* 37 */ ACPI_OP("ObjectType", ARGP_TYPE_OP, ARGI_TYPE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 384 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 385 | AML_TYPE_EXEC_1A_0T_1R, |
| 386 | AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 387 | /* 38 */ ACPI_OP("LAnd", ARGP_LAND_OP, ARGI_LAND_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 388 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, |
Lv Zheng | 1f86e8c | 2012-10-31 02:25:45 +0000 | [diff] [blame] | 389 | AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC | |
| 390 | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 391 | /* 39 */ ACPI_OP("LOr", ARGP_LOR_OP, ARGI_LOR_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 392 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, |
Lv Zheng | 1f86e8c | 2012-10-31 02:25:45 +0000 | [diff] [blame] | 393 | AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC | |
| 394 | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 395 | /* 3A */ ACPI_OP("LNot", ARGP_LNOT_OP, ARGI_LNOT_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 396 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R, |
| 397 | AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 398 | /* 3B */ ACPI_OP("LEqual", ARGP_LEQUAL_OP, ARGI_LEQUAL_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 399 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 400 | AML_TYPE_EXEC_2A_0T_1R, |
| 401 | AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 402 | /* 3C */ ACPI_OP("LGreater", ARGP_LGREATER_OP, ARGI_LGREATER_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 403 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 404 | AML_TYPE_EXEC_2A_0T_1R, |
| 405 | AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 406 | /* 3D */ ACPI_OP("LLess", ARGP_LLESS_OP, ARGI_LLESS_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 407 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, |
| 408 | AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 409 | /* 3E */ ACPI_OP("If", ARGP_IF_OP, ARGI_IF_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 410 | AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 411 | /* 3F */ ACPI_OP("Else", ARGP_ELSE_OP, ARGI_ELSE_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 412 | AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 413 | /* 40 */ ACPI_OP("While", ARGP_WHILE_OP, ARGI_WHILE_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 414 | AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 415 | /* 41 */ ACPI_OP("Noop", ARGP_NOOP_OP, ARGI_NOOP_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 416 | AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 417 | /* 42 */ ACPI_OP("Return", ARGP_RETURN_OP, ARGI_RETURN_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 418 | ACPI_TYPE_ANY, AML_CLASS_CONTROL, |
| 419 | AML_TYPE_CONTROL, AML_HAS_ARGS), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 420 | /* 43 */ ACPI_OP("Break", ARGP_BREAK_OP, ARGI_BREAK_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 421 | AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 422 | /* 44 */ ACPI_OP("BreakPoint", ARGP_BREAK_POINT_OP, ARGI_BREAK_POINT_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 423 | ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 424 | /* 45 */ ACPI_OP("Ones", ARGP_ONES_OP, ARGI_ONES_OP, ACPI_TYPE_INTEGER, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 425 | AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 426 | |
| 427 | /* Prefixed opcodes (Two-byte opcodes with a prefix op) */ |
| 428 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 429 | /* 46 */ ACPI_OP("Mutex", ARGP_MUTEX_OP, ARGI_MUTEX_OP, ACPI_TYPE_MUTEX, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 430 | AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, |
| 431 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 432 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 433 | /* 47 */ ACPI_OP("Event", ARGP_EVENT_OP, ARGI_EVENT_OP, ACPI_TYPE_EVENT, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 434 | AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE, |
| 435 | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 436 | /* 48 */ ACPI_OP("CondRefOf", ARGP_COND_REF_OF_OP, ARGI_COND_REF_OF_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 437 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 438 | AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 439 | /* 49 */ ACPI_OP("CreateField", ARGP_CREATE_FIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 440 | ARGI_CREATE_FIELD_OP, ACPI_TYPE_BUFFER_FIELD, |
| 441 | AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD, |
| 442 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | |
| 443 | AML_DEFER | AML_FIELD | AML_CREATE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 444 | /* 4A */ ACPI_OP("Load", ARGP_LOAD_OP, ARGI_LOAD_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 445 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_0R, |
| 446 | AML_FLAGS_EXEC_1A_1T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 447 | /* 4B */ ACPI_OP("Stall", ARGP_STALL_OP, ARGI_STALL_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 448 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, |
| 449 | AML_FLAGS_EXEC_1A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 450 | /* 4C */ ACPI_OP("Sleep", ARGP_SLEEP_OP, ARGI_SLEEP_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 451 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, |
| 452 | AML_FLAGS_EXEC_1A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 453 | /* 4D */ ACPI_OP("Acquire", ARGP_ACQUIRE_OP, ARGI_ACQUIRE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 454 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 455 | AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 456 | /* 4E */ ACPI_OP("Signal", ARGP_SIGNAL_OP, ARGI_SIGNAL_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 457 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 458 | AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 459 | /* 4F */ ACPI_OP("Wait", ARGP_WAIT_OP, ARGI_WAIT_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 460 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R, |
| 461 | AML_FLAGS_EXEC_2A_0T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 462 | /* 50 */ ACPI_OP("Reset", ARGP_RESET_OP, ARGI_RESET_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 463 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R, |
| 464 | AML_FLAGS_EXEC_1A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 465 | /* 51 */ ACPI_OP("Release", ARGP_RELEASE_OP, ARGI_RELEASE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 466 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 467 | AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 468 | /* 52 */ ACPI_OP("FromBCD", ARGP_FROM_BCD_OP, ARGI_FROM_BCD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 469 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 470 | AML_TYPE_EXEC_1A_1T_1R, |
| 471 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 472 | /* 53 */ ACPI_OP("ToBCD", ARGP_TO_BCD_OP, ARGI_TO_BCD_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 473 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, |
| 474 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 475 | /* 54 */ ACPI_OP("Unload", ARGP_UNLOAD_OP, ARGI_UNLOAD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 476 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 477 | AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 478 | /* 55 */ ACPI_OP("Revision", ARGP_REVISION_OP, ARGI_REVISION_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 479 | ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, |
| 480 | AML_TYPE_CONSTANT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 481 | /* 56 */ ACPI_OP("Debug", ARGP_DEBUG_OP, ARGI_DEBUG_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 482 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 483 | AML_TYPE_CONSTANT, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 484 | /* 57 */ ACPI_OP("Fatal", ARGP_FATAL_OP, ARGI_FATAL_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 485 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_0T_0R, |
| 486 | AML_FLAGS_EXEC_3A_0T_0R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 487 | /* 58 */ ACPI_OP("OperationRegion", ARGP_REGION_OP, ARGI_REGION_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 488 | ACPI_TYPE_REGION, AML_CLASS_NAMED_OBJECT, |
| 489 | AML_TYPE_NAMED_COMPLEX, |
| 490 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 491 | AML_NSNODE | AML_NAMED | AML_DEFER), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 492 | /* 59 */ ACPI_OP("Field", ARGP_FIELD_OP, ARGI_FIELD_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 493 | AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD, |
Lv Zheng | 1f86e8c | 2012-10-31 02:25:45 +0000 | [diff] [blame] | 494 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 495 | AML_FIELD), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 496 | /* 5A */ ACPI_OP("Device", ARGP_DEVICE_OP, ARGI_DEVICE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 497 | ACPI_TYPE_DEVICE, AML_CLASS_NAMED_OBJECT, |
| 498 | AML_TYPE_NAMED_NO_OBJ, |
| 499 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 500 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 501 | /* 5B */ ACPI_OP("Processor", ARGP_PROCESSOR_OP, ARGI_PROCESSOR_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 502 | ACPI_TYPE_PROCESSOR, AML_CLASS_NAMED_OBJECT, |
| 503 | AML_TYPE_NAMED_SIMPLE, |
| 504 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 505 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 506 | /* 5C */ ACPI_OP("PowerResource", ARGP_POWER_RES_OP, ARGI_POWER_RES_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 507 | ACPI_TYPE_POWER, AML_CLASS_NAMED_OBJECT, |
| 508 | AML_TYPE_NAMED_SIMPLE, |
| 509 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 510 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 511 | /* 5D */ ACPI_OP("ThermalZone", ARGP_THERMAL_ZONE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 512 | ARGI_THERMAL_ZONE_OP, ACPI_TYPE_THERMAL, |
| 513 | AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_NO_OBJ, |
| 514 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 515 | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 516 | /* 5E */ ACPI_OP("IndexField", ARGP_INDEX_FIELD_OP, ARGI_INDEX_FIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 517 | ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT, |
| 518 | AML_TYPE_NAMED_FIELD, |
Lv Zheng | 1f86e8c | 2012-10-31 02:25:45 +0000 | [diff] [blame] | 519 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 520 | AML_FIELD), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 521 | /* 5F */ ACPI_OP("BankField", ARGP_BANK_FIELD_OP, ARGI_BANK_FIELD_OP, |
Lv Zheng | 1f86e8c | 2012-10-31 02:25:45 +0000 | [diff] [blame] | 522 | ACPI_TYPE_LOCAL_BANK_FIELD, |
| 523 | AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD, |
| 524 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 525 | AML_FIELD | AML_DEFER), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 526 | |
| 527 | /* Internal opcodes that map to invalid AML opcodes */ |
| 528 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 529 | /* 60 */ ACPI_OP("LNotEqual", ARGP_LNOTEQUAL_OP, ARGI_LNOTEQUAL_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 530 | ACPI_TYPE_ANY, AML_CLASS_INTERNAL, |
| 531 | AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 532 | /* 61 */ ACPI_OP("LLessEqual", ARGP_LLESSEQUAL_OP, ARGI_LLESSEQUAL_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 533 | ACPI_TYPE_ANY, AML_CLASS_INTERNAL, |
| 534 | AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 535 | /* 62 */ ACPI_OP("LGreaterEqual", ARGP_LGREATEREQUAL_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 536 | ARGI_LGREATEREQUAL_OP, ACPI_TYPE_ANY, |
| 537 | AML_CLASS_INTERNAL, AML_TYPE_BOGUS, |
| 538 | AML_HAS_ARGS | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 539 | /* 63 */ ACPI_OP("-NamePath-", ARGP_NAMEPATH_OP, ARGI_NAMEPATH_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 540 | ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT, |
| 541 | AML_TYPE_LITERAL, AML_NSOBJECT | AML_NSNODE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 542 | /* 64 */ ACPI_OP("-MethodCall-", ARGP_METHODCALL_OP, ARGI_METHODCALL_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 543 | ACPI_TYPE_METHOD, AML_CLASS_METHOD_CALL, |
| 544 | AML_TYPE_METHOD_CALL, |
| 545 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 546 | /* 65 */ ACPI_OP("-ByteList-", ARGP_BYTELIST_OP, ARGI_BYTELIST_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 547 | ACPI_TYPE_ANY, AML_CLASS_ARGUMENT, |
| 548 | AML_TYPE_LITERAL, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 549 | /* 66 */ ACPI_OP("-ReservedField-", ARGP_RESERVEDFIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 550 | ARGI_RESERVEDFIELD_OP, ACPI_TYPE_ANY, |
| 551 | AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 552 | /* 67 */ ACPI_OP("-NamedField-", ARGP_NAMEDFIELD_OP, ARGI_NAMEDFIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 553 | ACPI_TYPE_ANY, AML_CLASS_INTERNAL, |
| 554 | AML_TYPE_BOGUS, |
| 555 | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 556 | /* 68 */ ACPI_OP("-AccessField-", ARGP_ACCESSFIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 557 | ARGI_ACCESSFIELD_OP, ACPI_TYPE_ANY, |
| 558 | AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 559 | /* 69 */ ACPI_OP("-StaticString", ARGP_STATICSTRING_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 560 | ARGI_STATICSTRING_OP, ACPI_TYPE_ANY, |
| 561 | AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 562 | /* 6A */ ACPI_OP("-Return Value-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 563 | AML_CLASS_RETURN_VALUE, AML_TYPE_RETURN, |
| 564 | AML_HAS_ARGS | AML_HAS_RETVAL), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 565 | /* 6B */ ACPI_OP("-UNKNOWN_OP-", ARG_NONE, ARG_NONE, ACPI_TYPE_INVALID, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 566 | AML_CLASS_UNKNOWN, AML_TYPE_BOGUS, AML_HAS_ARGS), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 567 | /* 6C */ ACPI_OP("-ASCII_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 568 | AML_CLASS_ASCII, AML_TYPE_BOGUS, AML_HAS_ARGS), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 569 | /* 6D */ ACPI_OP("-PREFIX_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 570 | AML_CLASS_PREFIX, AML_TYPE_BOGUS, AML_HAS_ARGS), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 571 | |
| 572 | /* ACPI 2.0 opcodes */ |
| 573 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 574 | /* 6E */ ACPI_OP("QwordConst", ARGP_QWORD_OP, ARGI_QWORD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 575 | ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT, |
| 576 | AML_TYPE_LITERAL, AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 577 | /* 6F */ ACPI_OP("Package", /* Var */ ARGP_VAR_PACKAGE_OP, |
| 578 | ARGI_VAR_PACKAGE_OP, ACPI_TYPE_PACKAGE, |
| 579 | AML_CLASS_CREATE, AML_TYPE_CREATE_OBJECT, |
| 580 | AML_HAS_ARGS | AML_DEFER), |
| 581 | /* 70 */ ACPI_OP("ConcatenateResTemplate", ARGP_CONCAT_RES_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 582 | ARGI_CONCAT_RES_OP, ACPI_TYPE_ANY, |
| 583 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 584 | AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 585 | /* 71 */ ACPI_OP("Mod", ARGP_MOD_OP, ARGI_MOD_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 586 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R, |
| 587 | AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 588 | /* 72 */ ACPI_OP("CreateQWordField", ARGP_CREATE_QWORD_FIELD_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 589 | ARGI_CREATE_QWORD_FIELD_OP, |
| 590 | ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE, |
| 591 | AML_TYPE_CREATE_FIELD, |
| 592 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE | |
| 593 | AML_DEFER | AML_CREATE), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 594 | /* 73 */ ACPI_OP("ToBuffer", ARGP_TO_BUFFER_OP, ARGI_TO_BUFFER_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 595 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 596 | AML_TYPE_EXEC_1A_1T_1R, |
| 597 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 598 | /* 74 */ ACPI_OP("ToDecimalString", ARGP_TO_DEC_STR_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 599 | ARGI_TO_DEC_STR_OP, ACPI_TYPE_ANY, |
| 600 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R, |
| 601 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 602 | /* 75 */ ACPI_OP("ToHexString", ARGP_TO_HEX_STR_OP, ARGI_TO_HEX_STR_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 603 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 604 | AML_TYPE_EXEC_1A_1T_1R, |
| 605 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 606 | /* 76 */ ACPI_OP("ToInteger", ARGP_TO_INTEGER_OP, ARGI_TO_INTEGER_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 607 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 608 | AML_TYPE_EXEC_1A_1T_1R, |
| 609 | AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 610 | /* 77 */ ACPI_OP("ToString", ARGP_TO_STRING_OP, ARGI_TO_STRING_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 611 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 612 | AML_TYPE_EXEC_2A_1T_1R, |
| 613 | AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 614 | /* 78 */ ACPI_OP("CopyObject", ARGP_COPY_OP, ARGI_COPY_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 615 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 616 | AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 617 | /* 79 */ ACPI_OP("Mid", ARGP_MID_OP, ARGI_MID_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 618 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_1T_1R, |
| 619 | AML_FLAGS_EXEC_3A_1T_1R | AML_CONSTANT), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 620 | /* 7A */ ACPI_OP("Continue", ARGP_CONTINUE_OP, ARGI_CONTINUE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 621 | ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 622 | /* 7B */ ACPI_OP("LoadTable", ARGP_LOAD_TABLE_OP, ARGI_LOAD_TABLE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 623 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, |
| 624 | AML_TYPE_EXEC_6A_0T_1R, AML_FLAGS_EXEC_6A_0T_1R), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 625 | /* 7C */ ACPI_OP("DataTableRegion", ARGP_DATA_REGION_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 626 | ARGI_DATA_REGION_OP, ACPI_TYPE_REGION, |
Lin Ming | 941f48b | 2008-04-10 19:06:41 +0400 | [diff] [blame] | 627 | AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 628 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
Lin Ming | 941f48b | 2008-04-10 19:06:41 +0400 | [diff] [blame] | 629 | AML_NSNODE | AML_NAMED | AML_DEFER), |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 630 | /* 7D */ ACPI_OP("[EvalSubTree]", ARGP_SCOPE_OP, ARGI_SCOPE_OP, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 631 | ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT, |
| 632 | AML_TYPE_NAMED_NO_OBJ, |
Lv Zheng | 1f86e8c | 2012-10-31 02:25:45 +0000 | [diff] [blame] | 633 | AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | |
| 634 | AML_NSNODE), |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 635 | |
| 636 | /* ACPI 3.0 opcodes */ |
| 637 | |
Len Brown | 4be44fc | 2005-08-05 00:44:28 -0400 | [diff] [blame] | 638 | /* 7E */ ACPI_OP("Timer", ARGP_TIMER_OP, ARGI_TIMER_OP, ACPI_TYPE_ANY, |
Len Brown | fd35094 | 2007-05-09 23:34:35 -0400 | [diff] [blame] | 639 | AML_CLASS_EXECUTE, AML_TYPE_EXEC_0A_0T_1R, |
Bob Moore | 9ce8178 | 2011-11-16 13:39:07 +0800 | [diff] [blame] | 640 | AML_FLAGS_EXEC_0A_0T_1R), |
| 641 | |
| 642 | /* ACPI 5.0 opcodes */ |
| 643 | |
| 644 | /* 7F */ ACPI_OP("-ConnectField-", ARGP_CONNECTFIELD_OP, |
| 645 | ARGI_CONNECTFIELD_OP, ACPI_TYPE_ANY, |
| 646 | AML_CLASS_INTERNAL, AML_TYPE_BOGUS, AML_HAS_ARGS), |
| 647 | /* 80 */ ACPI_OP("-ExtAccessField-", ARGP_CONNECTFIELD_OP, |
| 648 | ARGI_CONNECTFIELD_OP, ACPI_TYPE_ANY, |
Bob Moore | 56a3d5e | 2015-04-13 11:50:32 +0800 | [diff] [blame] | 649 | AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0), |
| 650 | |
| 651 | /* ACPI 6.0 opcodes */ |
| 652 | |
| 653 | /* 81 */ ACPI_OP("External", ARGP_EXTERNAL_OP, ARGI_EXTERNAL_OP, |
| 654 | ACPI_TYPE_ANY, AML_CLASS_EXECUTE, /* ? */ |
| 655 | AML_TYPE_EXEC_3A_0T_0R, AML_FLAGS_EXEC_3A_0T_0R) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 656 | |
| 657 | /*! [End] no source code translation !*/ |
| 658 | }; |