psopcode.c 26.7 KB
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7
/******************************************************************************
 *
 * Module Name: psopcode - Parser/Interpreter opcode information table
 *
 *****************************************************************************/

/*
8
 * Copyright (C) 2000 - 2016, Intel Corp.
L
Linus Torvalds 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions, and the following disclaimer,
 *    without modification.
 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
 *    substantially similar to the "NO WARRANTY" disclaimer below
 *    ("Disclaimer") and any redistribution must be conditioned upon
 *    including a substantially similar Disclaimer requirement for further
 *    binary redistribution.
 * 3. Neither the names of the above-listed copyright holders nor the names
 *    of any contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * Alternatively, this software may be distributed under the terms of the
 * GNU General Public License ("GPL") version 2 as published by the Free
 * Software Foundation.
 *
 * NO WARRANTY
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGES.
 */

#include <acpi/acpi.h>
L
Len Brown 已提交
45 46 47
#include "accommon.h"
#include "acopcode.h"
#include "amlcode.h"
L
Linus Torvalds 已提交
48 49

#define _COMPONENT          ACPI_PARSER
L
Len Brown 已提交
50
ACPI_MODULE_NAME("psopcode")
L
Linus Torvalds 已提交
51 52 53 54 55 56 57

/*******************************************************************************
 *
 * NAME:        acpi_gbl_aml_op_info
 *
 * DESCRIPTION: Opcode table. Each entry contains <opcode, type, name, operands>
 *              The name is a simple ascii string, the operand specifier is an
58
 *              ascii string with one letter per operand. The letter specifies
L
Linus Torvalds 已提交
59 60 61 62 63
 *              the operand type.
 *
 ******************************************************************************/
/*
 * Summary of opcode types/flags
R
Robert Moore 已提交
64
 *
L
Linus Torvalds 已提交
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177

 Opcodes that have associated namespace objects (AML_NSOBJECT flag)

	AML_SCOPE_OP
	AML_DEVICE_OP
	AML_THERMAL_ZONE_OP
	AML_METHOD_OP
	AML_POWER_RES_OP
	AML_PROCESSOR_OP
	AML_FIELD_OP
	AML_INDEX_FIELD_OP
	AML_BANK_FIELD_OP
	AML_NAME_OP
	AML_ALIAS_OP
	AML_MUTEX_OP
	AML_EVENT_OP
	AML_REGION_OP
	AML_CREATE_FIELD_OP
	AML_CREATE_BIT_FIELD_OP
	AML_CREATE_BYTE_FIELD_OP
	AML_CREATE_WORD_FIELD_OP
	AML_CREATE_DWORD_FIELD_OP
	AML_CREATE_QWORD_FIELD_OP
	AML_INT_NAMEDFIELD_OP
	AML_INT_METHODCALL_OP
	AML_INT_NAMEPATH_OP

  Opcodes that are "namespace" opcodes (AML_NSOPCODE flag)

	AML_SCOPE_OP
	AML_DEVICE_OP
	AML_THERMAL_ZONE_OP
	AML_METHOD_OP
	AML_POWER_RES_OP
	AML_PROCESSOR_OP
	AML_FIELD_OP
	AML_INDEX_FIELD_OP
	AML_BANK_FIELD_OP
	AML_NAME_OP
	AML_ALIAS_OP
	AML_MUTEX_OP
	AML_EVENT_OP
	AML_REGION_OP
	AML_INT_NAMEDFIELD_OP

  Opcodes that have an associated namespace node (AML_NSNODE flag)

	AML_SCOPE_OP
	AML_DEVICE_OP
	AML_THERMAL_ZONE_OP
	AML_METHOD_OP
	AML_POWER_RES_OP
	AML_PROCESSOR_OP
	AML_NAME_OP
	AML_ALIAS_OP
	AML_MUTEX_OP
	AML_EVENT_OP
	AML_REGION_OP
	AML_CREATE_FIELD_OP
	AML_CREATE_BIT_FIELD_OP
	AML_CREATE_BYTE_FIELD_OP
	AML_CREATE_WORD_FIELD_OP
	AML_CREATE_DWORD_FIELD_OP
	AML_CREATE_QWORD_FIELD_OP
	AML_INT_NAMEDFIELD_OP
	AML_INT_METHODCALL_OP
	AML_INT_NAMEPATH_OP

  Opcodes that define named ACPI objects (AML_NAMED flag)

	AML_SCOPE_OP
	AML_DEVICE_OP
	AML_THERMAL_ZONE_OP
	AML_METHOD_OP
	AML_POWER_RES_OP
	AML_PROCESSOR_OP
	AML_NAME_OP
	AML_ALIAS_OP
	AML_MUTEX_OP
	AML_EVENT_OP
	AML_REGION_OP
	AML_INT_NAMEDFIELD_OP

  Opcodes that contain executable AML as part of the definition that
  must be deferred until needed

	AML_METHOD_OP
	AML_VAR_PACKAGE_OP
	AML_CREATE_FIELD_OP
	AML_CREATE_BIT_FIELD_OP
	AML_CREATE_BYTE_FIELD_OP
	AML_CREATE_WORD_FIELD_OP
	AML_CREATE_DWORD_FIELD_OP
	AML_CREATE_QWORD_FIELD_OP
	AML_REGION_OP
	AML_BUFFER_OP

  Field opcodes

	AML_CREATE_FIELD_OP
	AML_FIELD_OP
	AML_INDEX_FIELD_OP
	AML_BANK_FIELD_OP

  Field "Create" opcodes

	AML_CREATE_FIELD_OP
	AML_CREATE_BIT_FIELD_OP
	AML_CREATE_BYTE_FIELD_OP
	AML_CREATE_WORD_FIELD_OP
	AML_CREATE_DWORD_FIELD_OP
	AML_CREATE_QWORD_FIELD_OP

R
Robert Moore 已提交
178
 ******************************************************************************/
L
Linus Torvalds 已提交
179
/*
180
 * Master Opcode information table. A summary of everything we know about each
R
Robert Moore 已提交
181
 * opcode, all in one place.
L
Linus Torvalds 已提交
182
 */
L
Len Brown 已提交
183
const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES] = {
L
Linus Torvalds 已提交
184 185 186
/*! [Begin] no source code translation */
/* Index           Name                 Parser Args               Interpreter Args                ObjectType                    Class                      Type                  Flags */

L
Len Brown 已提交
187
/* 00 */ ACPI_OP("Zero", ARGP_ZERO_OP, ARGI_ZERO_OP, ACPI_TYPE_INTEGER,
188
			 AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT),
L
Len Brown 已提交
189
/* 01 */ ACPI_OP("One", ARGP_ONE_OP, ARGI_ONE_OP, ACPI_TYPE_INTEGER,
190
			 AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT),
L
Len Brown 已提交
191
/* 02 */ ACPI_OP("Alias", ARGP_ALIAS_OP, ARGI_ALIAS_OP,
192 193 194 195
			 ACPI_TYPE_LOCAL_ALIAS, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_SIMPLE,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
196
/* 03 */ ACPI_OP("Name", ARGP_NAME_OP, ARGI_NAME_OP, ACPI_TYPE_ANY,
197 198 199
			 AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
200
/* 04 */ ACPI_OP("ByteConst", ARGP_BYTE_OP, ARGI_BYTE_OP,
201 202
			 ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
			 AML_TYPE_LITERAL, AML_CONSTANT),
L
Len Brown 已提交
203
/* 05 */ ACPI_OP("WordConst", ARGP_WORD_OP, ARGI_WORD_OP,
204 205
			 ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
			 AML_TYPE_LITERAL, AML_CONSTANT),
L
Len Brown 已提交
206
/* 06 */ ACPI_OP("DwordConst", ARGP_DWORD_OP, ARGI_DWORD_OP,
207 208
			 ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
			 AML_TYPE_LITERAL, AML_CONSTANT),
L
Len Brown 已提交
209
/* 07 */ ACPI_OP("String", ARGP_STRING_OP, ARGI_STRING_OP,
210 211
			 ACPI_TYPE_STRING, AML_CLASS_ARGUMENT,
			 AML_TYPE_LITERAL, AML_CONSTANT),
L
Len Brown 已提交
212
/* 08 */ ACPI_OP("Scope", ARGP_SCOPE_OP, ARGI_SCOPE_OP,
213 214 215 216
			 ACPI_TYPE_LOCAL_SCOPE, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_NO_OBJ,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
217
/* 09 */ ACPI_OP("Buffer", ARGP_BUFFER_OP, ARGI_BUFFER_OP,
218 219 220
			 ACPI_TYPE_BUFFER, AML_CLASS_CREATE,
			 AML_TYPE_CREATE_OBJECT,
			 AML_HAS_ARGS | AML_DEFER | AML_CONSTANT),
L
Len Brown 已提交
221
/* 0A */ ACPI_OP("Package", ARGP_PACKAGE_OP, ARGI_PACKAGE_OP,
222 223 224
			 ACPI_TYPE_PACKAGE, AML_CLASS_CREATE,
			 AML_TYPE_CREATE_OBJECT,
			 AML_HAS_ARGS | AML_DEFER | AML_CONSTANT),
L
Len Brown 已提交
225
/* 0B */ ACPI_OP("Method", ARGP_METHOD_OP, ARGI_METHOD_OP,
226 227 228 229
			 ACPI_TYPE_METHOD, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_COMPLEX,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED | AML_DEFER),
L
Len Brown 已提交
230
/* 0C */ ACPI_OP("Local0", ARGP_LOCAL0, ARGI_LOCAL0,
231 232
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
233
/* 0D */ ACPI_OP("Local1", ARGP_LOCAL1, ARGI_LOCAL1,
234 235
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
236
/* 0E */ ACPI_OP("Local2", ARGP_LOCAL2, ARGI_LOCAL2,
237 238
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
239
/* 0F */ ACPI_OP("Local3", ARGP_LOCAL3, ARGI_LOCAL3,
240 241
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
242
/* 10 */ ACPI_OP("Local4", ARGP_LOCAL4, ARGI_LOCAL4,
243 244
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
245
/* 11 */ ACPI_OP("Local5", ARGP_LOCAL5, ARGI_LOCAL5,
246 247
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
248
/* 12 */ ACPI_OP("Local6", ARGP_LOCAL6, ARGI_LOCAL6,
249 250
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
251
/* 13 */ ACPI_OP("Local7", ARGP_LOCAL7, ARGI_LOCAL7,
252 253
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LOCAL_VARIABLE, 0),
L
Len Brown 已提交
254
/* 14 */ ACPI_OP("Arg0", ARGP_ARG0, ARGI_ARG0,
255 256
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_METHOD_ARGUMENT, 0),
L
Len Brown 已提交
257
/* 15 */ ACPI_OP("Arg1", ARGP_ARG1, ARGI_ARG1,
258 259
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_METHOD_ARGUMENT, 0),
L
Len Brown 已提交
260
/* 16 */ ACPI_OP("Arg2", ARGP_ARG2, ARGI_ARG2,
261 262
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_METHOD_ARGUMENT, 0),
L
Len Brown 已提交
263
/* 17 */ ACPI_OP("Arg3", ARGP_ARG3, ARGI_ARG3,
264 265
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_METHOD_ARGUMENT, 0),
L
Len Brown 已提交
266
/* 18 */ ACPI_OP("Arg4", ARGP_ARG4, ARGI_ARG4,
267 268
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_METHOD_ARGUMENT, 0),
L
Len Brown 已提交
269
/* 19 */ ACPI_OP("Arg5", ARGP_ARG5, ARGI_ARG5,
270 271
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_METHOD_ARGUMENT, 0),
L
Len Brown 已提交
272
/* 1A */ ACPI_OP("Arg6", ARGP_ARG6, ARGI_ARG6,
273 274
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_METHOD_ARGUMENT, 0),
L
Len Brown 已提交
275
/* 1B */ ACPI_OP("Store", ARGP_STORE_OP, ARGI_STORE_OP, ACPI_TYPE_ANY,
276 277
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R),
L
Len Brown 已提交
278
/* 1C */ ACPI_OP("RefOf", ARGP_REF_OF_OP, ARGI_REF_OF_OP, ACPI_TYPE_ANY,
279 280
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R,
			 AML_FLAGS_EXEC_1A_0T_1R),
L
Len Brown 已提交
281
/* 1D */ ACPI_OP("Add", ARGP_ADD_OP, ARGI_ADD_OP, ACPI_TYPE_ANY,
282 283
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
284
/* 1E */ ACPI_OP("Concatenate", ARGP_CONCAT_OP, ARGI_CONCAT_OP,
285 286 287
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
288
/* 1F */ ACPI_OP("Subtract", ARGP_SUBTRACT_OP, ARGI_SUBTRACT_OP,
289 290 291
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
292
/* 20 */ ACPI_OP("Increment", ARGP_INCREMENT_OP, ARGI_INCREMENT_OP,
293 294 295
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_1R,
			 AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT),
L
Len Brown 已提交
296
/* 21 */ ACPI_OP("Decrement", ARGP_DECREMENT_OP, ARGI_DECREMENT_OP,
297 298 299
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_1R,
			 AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT),
L
Len Brown 已提交
300
/* 22 */ ACPI_OP("Multiply", ARGP_MULTIPLY_OP, ARGI_MULTIPLY_OP,
301 302 303
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
304
/* 23 */ ACPI_OP("Divide", ARGP_DIVIDE_OP, ARGI_DIVIDE_OP,
305 306 307
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_2T_1R,
			 AML_FLAGS_EXEC_2A_2T_1R | AML_CONSTANT),
L
Len Brown 已提交
308
/* 24 */ ACPI_OP("ShiftLeft", ARGP_SHIFT_LEFT_OP, ARGI_SHIFT_LEFT_OP,
309 310 311
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
312
/* 25 */ ACPI_OP("ShiftRight", ARGP_SHIFT_RIGHT_OP, ARGI_SHIFT_RIGHT_OP,
313 314 315
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
316
/* 26 */ ACPI_OP("And", ARGP_BIT_AND_OP, ARGI_BIT_AND_OP, ACPI_TYPE_ANY,
317 318
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
319
/* 27 */ ACPI_OP("NAnd", ARGP_BIT_NAND_OP, ARGI_BIT_NAND_OP,
320 321 322
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
323
/* 28 */ ACPI_OP("Or", ARGP_BIT_OR_OP, ARGI_BIT_OR_OP, ACPI_TYPE_ANY,
324 325
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
326
/* 29 */ ACPI_OP("NOr", ARGP_BIT_NOR_OP, ARGI_BIT_NOR_OP, ACPI_TYPE_ANY,
327 328
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
329
/* 2A */ ACPI_OP("XOr", ARGP_BIT_XOR_OP, ARGI_BIT_XOR_OP, ACPI_TYPE_ANY,
330 331
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
L
Len Brown 已提交
332
/* 2B */ ACPI_OP("Not", ARGP_BIT_NOT_OP, ARGI_BIT_NOT_OP, ACPI_TYPE_ANY,
333 334
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
335
/* 2C */ ACPI_OP("FindSetLeftBit", ARGP_FIND_SET_LEFT_BIT_OP,
336 337 338
			 ARGI_FIND_SET_LEFT_BIT_OP, ACPI_TYPE_ANY,
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
339
/* 2D */ ACPI_OP("FindSetRightBit", ARGP_FIND_SET_RIGHT_BIT_OP,
340 341 342
			 ARGI_FIND_SET_RIGHT_BIT_OP, ACPI_TYPE_ANY,
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
343
/* 2E */ ACPI_OP("DerefOf", ARGP_DEREF_OF_OP, ARGI_DEREF_OF_OP,
344 345
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R),
L
Len Brown 已提交
346
/* 2F */ ACPI_OP("Notify", ARGP_NOTIFY_OP, ARGI_NOTIFY_OP,
347 348
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_0T_0R, AML_FLAGS_EXEC_2A_0T_0R),
L
Len Brown 已提交
349
/* 30 */ ACPI_OP("SizeOf", ARGP_SIZE_OF_OP, ARGI_SIZE_OF_OP,
350 351 352
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_1R,
			 AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE),
L
Len Brown 已提交
353
/* 31 */ ACPI_OP("Index", ARGP_INDEX_OP, ARGI_INDEX_OP, ACPI_TYPE_ANY,
354 355
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R),
L
Len Brown 已提交
356
/* 32 */ ACPI_OP("Match", ARGP_MATCH_OP, ARGI_MATCH_OP, ACPI_TYPE_ANY,
357 358
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_6A_0T_1R,
			 AML_FLAGS_EXEC_6A_0T_1R | AML_CONSTANT),
L
Len Brown 已提交
359
/* 33 */ ACPI_OP("CreateDWordField", ARGP_CREATE_DWORD_FIELD_OP,
360 361 362 363 364
			 ARGI_CREATE_DWORD_FIELD_OP,
			 ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
			 AML_TYPE_CREATE_FIELD,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
			 AML_DEFER | AML_CREATE),
L
Len Brown 已提交
365
/* 34 */ ACPI_OP("CreateWordField", ARGP_CREATE_WORD_FIELD_OP,
366 367 368 369 370
			 ARGI_CREATE_WORD_FIELD_OP,
			 ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
			 AML_TYPE_CREATE_FIELD,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
			 AML_DEFER | AML_CREATE),
L
Len Brown 已提交
371
/* 35 */ ACPI_OP("CreateByteField", ARGP_CREATE_BYTE_FIELD_OP,
372 373 374 375 376
			 ARGI_CREATE_BYTE_FIELD_OP,
			 ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
			 AML_TYPE_CREATE_FIELD,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
			 AML_DEFER | AML_CREATE),
L
Len Brown 已提交
377
/* 36 */ ACPI_OP("CreateBitField", ARGP_CREATE_BIT_FIELD_OP,
378 379 380 381 382
			 ARGI_CREATE_BIT_FIELD_OP,
			 ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
			 AML_TYPE_CREATE_FIELD,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
			 AML_DEFER | AML_CREATE),
383
/* 37 */ ACPI_OP("ObjectType", ARGP_OBJECT_TYPE_OP, ARGI_OBJECT_TYPE_OP,
384 385 386
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_1R,
			 AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE),
L
Len Brown 已提交
387
/* 38 */ ACPI_OP("LAnd", ARGP_LAND_OP, ARGI_LAND_OP, ACPI_TYPE_ANY,
388
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
L
Lv Zheng 已提交
389 390
			 AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC |
			 AML_CONSTANT),
L
Len Brown 已提交
391
/* 39 */ ACPI_OP("LOr", ARGP_LOR_OP, ARGI_LOR_OP, ACPI_TYPE_ANY,
392 393
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
			 AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC |
L
Lv Zheng 已提交
394
			 AML_CONSTANT),
L
Len Brown 已提交
395
/* 3A */ ACPI_OP("LNot", ARGP_LNOT_OP, ARGI_LNOT_OP, ACPI_TYPE_ANY,
396 397
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R,
			 AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT),
L
Len Brown 已提交
398
/* 3B */ ACPI_OP("LEqual", ARGP_LEQUAL_OP, ARGI_LEQUAL_OP,
399 400 401
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_0T_1R,
			 AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT),
L
Len Brown 已提交
402
/* 3C */ ACPI_OP("LGreater", ARGP_LGREATER_OP, ARGI_LGREATER_OP,
403 404 405
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_0T_1R,
			 AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT),
L
Len Brown 已提交
406
/* 3D */ ACPI_OP("LLess", ARGP_LLESS_OP, ARGI_LLESS_OP, ACPI_TYPE_ANY,
407 408
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
			 AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT),
L
Len Brown 已提交
409
/* 3E */ ACPI_OP("If", ARGP_IF_OP, ARGI_IF_OP, ACPI_TYPE_ANY,
410
			 AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS),
L
Len Brown 已提交
411
/* 3F */ ACPI_OP("Else", ARGP_ELSE_OP, ARGI_ELSE_OP, ACPI_TYPE_ANY,
412
			 AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS),
L
Len Brown 已提交
413
/* 40 */ ACPI_OP("While", ARGP_WHILE_OP, ARGI_WHILE_OP, ACPI_TYPE_ANY,
414
			 AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS),
L
Len Brown 已提交
415
/* 41 */ ACPI_OP("Noop", ARGP_NOOP_OP, ARGI_NOOP_OP, ACPI_TYPE_ANY,
416
			 AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
L
Len Brown 已提交
417
/* 42 */ ACPI_OP("Return", ARGP_RETURN_OP, ARGI_RETURN_OP,
418 419
			 ACPI_TYPE_ANY, AML_CLASS_CONTROL,
			 AML_TYPE_CONTROL, AML_HAS_ARGS),
L
Len Brown 已提交
420
/* 43 */ ACPI_OP("Break", ARGP_BREAK_OP, ARGI_BREAK_OP, ACPI_TYPE_ANY,
421
			 AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
L
Len Brown 已提交
422
/* 44 */ ACPI_OP("BreakPoint", ARGP_BREAK_POINT_OP, ARGI_BREAK_POINT_OP,
423
			 ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
L
Len Brown 已提交
424
/* 45 */ ACPI_OP("Ones", ARGP_ONES_OP, ARGI_ONES_OP, ACPI_TYPE_INTEGER,
425
			 AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT),
L
Linus Torvalds 已提交
426 427 428

/* Prefixed opcodes (Two-byte opcodes with a prefix op) */

L
Len Brown 已提交
429
/* 46 */ ACPI_OP("Mutex", ARGP_MUTEX_OP, ARGI_MUTEX_OP, ACPI_TYPE_MUTEX,
430 431 432
			 AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
433
/* 47 */ ACPI_OP("Event", ARGP_EVENT_OP, ARGI_EVENT_OP, ACPI_TYPE_EVENT,
434 435
			 AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE,
			 AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
436
/* 48 */ ACPI_OP("CondRefOf", ARGP_COND_REF_OF_OP, ARGI_COND_REF_OF_OP,
437 438
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R),
L
Len Brown 已提交
439
/* 49 */ ACPI_OP("CreateField", ARGP_CREATE_FIELD_OP,
440 441 442 443
			 ARGI_CREATE_FIELD_OP, ACPI_TYPE_BUFFER_FIELD,
			 AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
			 AML_DEFER | AML_FIELD | AML_CREATE),
L
Len Brown 已提交
444
/* 4A */ ACPI_OP("Load", ARGP_LOAD_OP, ARGI_LOAD_OP, ACPI_TYPE_ANY,
445 446
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_0R,
			 AML_FLAGS_EXEC_1A_1T_0R),
L
Len Brown 已提交
447
/* 4B */ ACPI_OP("Stall", ARGP_STALL_OP, ARGI_STALL_OP, ACPI_TYPE_ANY,
448 449
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R,
			 AML_FLAGS_EXEC_1A_0T_0R),
L
Len Brown 已提交
450
/* 4C */ ACPI_OP("Sleep", ARGP_SLEEP_OP, ARGI_SLEEP_OP, ACPI_TYPE_ANY,
451 452
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R,
			 AML_FLAGS_EXEC_1A_0T_0R),
L
Len Brown 已提交
453
/* 4D */ ACPI_OP("Acquire", ARGP_ACQUIRE_OP, ARGI_ACQUIRE_OP,
454 455
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R),
L
Len Brown 已提交
456
/* 4E */ ACPI_OP("Signal", ARGP_SIGNAL_OP, ARGI_SIGNAL_OP,
457 458
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R),
L
Len Brown 已提交
459
/* 4F */ ACPI_OP("Wait", ARGP_WAIT_OP, ARGI_WAIT_OP, ACPI_TYPE_ANY,
460 461
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
			 AML_FLAGS_EXEC_2A_0T_1R),
L
Len Brown 已提交
462
/* 50 */ ACPI_OP("Reset", ARGP_RESET_OP, ARGI_RESET_OP, ACPI_TYPE_ANY,
463 464
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R,
			 AML_FLAGS_EXEC_1A_0T_0R),
L
Len Brown 已提交
465
/* 51 */ ACPI_OP("Release", ARGP_RELEASE_OP, ARGI_RELEASE_OP,
466 467
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R),
L
Len Brown 已提交
468
/* 52 */ ACPI_OP("FromBCD", ARGP_FROM_BCD_OP, ARGI_FROM_BCD_OP,
469 470 471
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
472
/* 53 */ ACPI_OP("ToBCD", ARGP_TO_BCD_OP, ARGI_TO_BCD_OP, ACPI_TYPE_ANY,
473 474
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
475
/* 54 */ ACPI_OP("Unload", ARGP_UNLOAD_OP, ARGI_UNLOAD_OP,
476 477
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R),
L
Len Brown 已提交
478
/* 55 */ ACPI_OP("Revision", ARGP_REVISION_OP, ARGI_REVISION_OP,
479 480
			 ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
			 AML_TYPE_CONSTANT, 0),
L
Len Brown 已提交
481
/* 56 */ ACPI_OP("Debug", ARGP_DEBUG_OP, ARGI_DEBUG_OP,
482 483
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_CONSTANT, 0),
L
Len Brown 已提交
484
/* 57 */ ACPI_OP("Fatal", ARGP_FATAL_OP, ARGI_FATAL_OP, ACPI_TYPE_ANY,
485 486
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_0T_0R,
			 AML_FLAGS_EXEC_3A_0T_0R),
L
Len Brown 已提交
487
/* 58 */ ACPI_OP("OperationRegion", ARGP_REGION_OP, ARGI_REGION_OP,
488 489 490 491
			 ACPI_TYPE_REGION, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_COMPLEX,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED | AML_DEFER),
L
Len Brown 已提交
492
/* 59 */ ACPI_OP("Field", ARGP_FIELD_OP, ARGI_FIELD_OP, ACPI_TYPE_ANY,
493
			 AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD,
L
Lv Zheng 已提交
494 495
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_FIELD),
L
Len Brown 已提交
496
/* 5A */ ACPI_OP("Device", ARGP_DEVICE_OP, ARGI_DEVICE_OP,
497 498 499 500
			 ACPI_TYPE_DEVICE, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_NO_OBJ,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
501
/* 5B */ ACPI_OP("Processor", ARGP_PROCESSOR_OP, ARGI_PROCESSOR_OP,
502 503 504 505
			 ACPI_TYPE_PROCESSOR, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_SIMPLE,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
506
/* 5C */ ACPI_OP("PowerResource", ARGP_POWER_RES_OP, ARGI_POWER_RES_OP,
507 508 509 510
			 ACPI_TYPE_POWER, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_SIMPLE,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
511
/* 5D */ ACPI_OP("ThermalZone", ARGP_THERMAL_ZONE_OP,
512 513 514 515
			 ARGI_THERMAL_ZONE_OP, ACPI_TYPE_THERMAL,
			 AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_NO_OBJ,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
516
/* 5E */ ACPI_OP("IndexField", ARGP_INDEX_FIELD_OP, ARGI_INDEX_FIELD_OP,
517 518 519
			 ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_FIELD,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
L
Lv Zheng 已提交
520
			 AML_FIELD),
L
Len Brown 已提交
521
/* 5F */ ACPI_OP("BankField", ARGP_BANK_FIELD_OP, ARGI_BANK_FIELD_OP,
522
			 ACPI_TYPE_LOCAL_BANK_FIELD,
L
Lv Zheng 已提交
523
			 AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD,
524
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
L
Lv Zheng 已提交
525
			 AML_FIELD | AML_DEFER),
L
Linus Torvalds 已提交
526 527 528

/* Internal opcodes that map to invalid AML opcodes */

L
Len Brown 已提交
529
/* 60 */ ACPI_OP("LNotEqual", ARGP_LNOTEQUAL_OP, ARGI_LNOTEQUAL_OP,
530 531
			 ACPI_TYPE_ANY, AML_CLASS_INTERNAL,
			 AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT),
L
Len Brown 已提交
532
/* 61 */ ACPI_OP("LLessEqual", ARGP_LLESSEQUAL_OP, ARGI_LLESSEQUAL_OP,
533 534
			 ACPI_TYPE_ANY, AML_CLASS_INTERNAL,
			 AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT),
L
Len Brown 已提交
535
/* 62 */ ACPI_OP("LGreaterEqual", ARGP_LGREATEREQUAL_OP,
536 537 538
			 ARGI_LGREATEREQUAL_OP, ACPI_TYPE_ANY,
			 AML_CLASS_INTERNAL, AML_TYPE_BOGUS,
			 AML_HAS_ARGS | AML_CONSTANT),
L
Len Brown 已提交
539
/* 63 */ ACPI_OP("-NamePath-", ARGP_NAMEPATH_OP, ARGI_NAMEPATH_OP,
540 541
			 ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
			 AML_TYPE_LITERAL, AML_NSOBJECT | AML_NSNODE),
L
Len Brown 已提交
542
/* 64 */ ACPI_OP("-MethodCall-", ARGP_METHODCALL_OP, ARGI_METHODCALL_OP,
543 544 545
			 ACPI_TYPE_METHOD, AML_CLASS_METHOD_CALL,
			 AML_TYPE_METHOD_CALL,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE),
L
Len Brown 已提交
546
/* 65 */ ACPI_OP("-ByteList-", ARGP_BYTELIST_OP, ARGI_BYTELIST_OP,
547 548
			 ACPI_TYPE_ANY, AML_CLASS_ARGUMENT,
			 AML_TYPE_LITERAL, 0),
L
Len Brown 已提交
549
/* 66 */ ACPI_OP("-ReservedField-", ARGP_RESERVEDFIELD_OP,
550 551
			 ARGI_RESERVEDFIELD_OP, ACPI_TYPE_ANY,
			 AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0),
L
Len Brown 已提交
552
/* 67 */ ACPI_OP("-NamedField-", ARGP_NAMEDFIELD_OP, ARGI_NAMEDFIELD_OP,
553 554 555
			 ACPI_TYPE_ANY, AML_CLASS_INTERNAL,
			 AML_TYPE_BOGUS,
			 AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED),
L
Len Brown 已提交
556
/* 68 */ ACPI_OP("-AccessField-", ARGP_ACCESSFIELD_OP,
557 558
			 ARGI_ACCESSFIELD_OP, ACPI_TYPE_ANY,
			 AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0),
L
Len Brown 已提交
559
/* 69 */ ACPI_OP("-StaticString", ARGP_STATICSTRING_OP,
560 561
			 ARGI_STATICSTRING_OP, ACPI_TYPE_ANY,
			 AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0),
L
Len Brown 已提交
562
/* 6A */ ACPI_OP("-Return Value-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY,
563 564
			 AML_CLASS_RETURN_VALUE, AML_TYPE_RETURN,
			 AML_HAS_ARGS | AML_HAS_RETVAL),
L
Len Brown 已提交
565
/* 6B */ ACPI_OP("-UNKNOWN_OP-", ARG_NONE, ARG_NONE, ACPI_TYPE_INVALID,
566
			 AML_CLASS_UNKNOWN, AML_TYPE_BOGUS, AML_HAS_ARGS),
L
Len Brown 已提交
567
/* 6C */ ACPI_OP("-ASCII_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY,
568
			 AML_CLASS_ASCII, AML_TYPE_BOGUS, AML_HAS_ARGS),
L
Len Brown 已提交
569
/* 6D */ ACPI_OP("-PREFIX_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY,
570
			 AML_CLASS_PREFIX, AML_TYPE_BOGUS, AML_HAS_ARGS),
L
Linus Torvalds 已提交
571 572 573

/* ACPI 2.0 opcodes */

L
Len Brown 已提交
574
/* 6E */ ACPI_OP("QwordConst", ARGP_QWORD_OP, ARGI_QWORD_OP,
575 576
			 ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
			 AML_TYPE_LITERAL, AML_CONSTANT),
L
Len Brown 已提交
577 578 579 580 581
	/* 6F */ ACPI_OP("Package", /* Var */ ARGP_VAR_PACKAGE_OP,
			 ARGI_VAR_PACKAGE_OP, ACPI_TYPE_PACKAGE,
			 AML_CLASS_CREATE, AML_TYPE_CREATE_OBJECT,
			 AML_HAS_ARGS | AML_DEFER),
/* 70 */ ACPI_OP("ConcatenateResTemplate", ARGP_CONCAT_RES_OP,
582 583 584
			 ARGI_CONCAT_RES_OP, ACPI_TYPE_ANY,
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
585
/* 71 */ ACPI_OP("Mod", ARGP_MOD_OP, ARGI_MOD_OP, ACPI_TYPE_ANY,
586 587
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
588
/* 72 */ ACPI_OP("CreateQWordField", ARGP_CREATE_QWORD_FIELD_OP,
589 590 591 592 593
			 ARGI_CREATE_QWORD_FIELD_OP,
			 ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
			 AML_TYPE_CREATE_FIELD,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
			 AML_DEFER | AML_CREATE),
L
Len Brown 已提交
594
/* 73 */ ACPI_OP("ToBuffer", ARGP_TO_BUFFER_OP, ARGI_TO_BUFFER_OP,
595 596 597
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
598
/* 74 */ ACPI_OP("ToDecimalString", ARGP_TO_DEC_STR_OP,
599 600 601
			 ARGI_TO_DEC_STR_OP, ACPI_TYPE_ANY,
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
602
/* 75 */ ACPI_OP("ToHexString", ARGP_TO_HEX_STR_OP, ARGI_TO_HEX_STR_OP,
603 604 605
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
606
/* 76 */ ACPI_OP("ToInteger", ARGP_TO_INTEGER_OP, ARGI_TO_INTEGER_OP,
607 608 609
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_1T_1R,
			 AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
610
/* 77 */ ACPI_OP("ToString", ARGP_TO_STRING_OP, ARGI_TO_STRING_OP,
611 612 613
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_2A_1T_1R,
			 AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
614
/* 78 */ ACPI_OP("CopyObject", ARGP_COPY_OP, ARGI_COPY_OP,
615 616
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R),
L
Len Brown 已提交
617
/* 79 */ ACPI_OP("Mid", ARGP_MID_OP, ARGI_MID_OP, ACPI_TYPE_ANY,
618 619
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_1T_1R,
			 AML_FLAGS_EXEC_3A_1T_1R | AML_CONSTANT),
L
Len Brown 已提交
620
/* 7A */ ACPI_OP("Continue", ARGP_CONTINUE_OP, ARGI_CONTINUE_OP,
621
			 ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
L
Len Brown 已提交
622
/* 7B */ ACPI_OP("LoadTable", ARGP_LOAD_TABLE_OP, ARGI_LOAD_TABLE_OP,
623 624
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
			 AML_TYPE_EXEC_6A_0T_1R, AML_FLAGS_EXEC_6A_0T_1R),
L
Len Brown 已提交
625
/* 7C */ ACPI_OP("DataTableRegion", ARGP_DATA_REGION_OP,
626 627 628 629
			 ARGI_DATA_REGION_OP, ACPI_TYPE_REGION,
			 AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
			 AML_NSNODE | AML_NAMED | AML_DEFER),
L
Len Brown 已提交
630
/* 7D */ ACPI_OP("[EvalSubTree]", ARGP_SCOPE_OP, ARGI_SCOPE_OP,
631 632 633
			 ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT,
			 AML_TYPE_NAMED_NO_OBJ,
			 AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
L
Lv Zheng 已提交
634
			 AML_NSNODE),
L
Linus Torvalds 已提交
635 636 637

/* ACPI 3.0 opcodes */

L
Len Brown 已提交
638
/* 7E */ ACPI_OP("Timer", ARGP_TIMER_OP, ARGI_TIMER_OP, ACPI_TYPE_ANY,
639
			 AML_CLASS_EXECUTE, AML_TYPE_EXEC_0A_0T_1R,
640 641 642 643 644 645 646 647 648
			 AML_FLAGS_EXEC_0A_0T_1R),

/* ACPI 5.0 opcodes */

/* 7F */ ACPI_OP("-ConnectField-", ARGP_CONNECTFIELD_OP,
			 ARGI_CONNECTFIELD_OP, ACPI_TYPE_ANY,
			 AML_CLASS_INTERNAL, AML_TYPE_BOGUS, AML_HAS_ARGS),
/* 80 */ ACPI_OP("-ExtAccessField-", ARGP_CONNECTFIELD_OP,
			 ARGI_CONNECTFIELD_OP, ACPI_TYPE_ANY,
649 650 651 652 653 654 655
			 AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0),

/* ACPI 6.0 opcodes */

	/* 81 */ ACPI_OP("External", ARGP_EXTERNAL_OP, ARGI_EXTERNAL_OP,
			 ACPI_TYPE_ANY, AML_CLASS_EXECUTE, /* ? */
			 AML_TYPE_EXEC_3A_0T_0R, AML_FLAGS_EXEC_3A_0T_0R)
L
Linus Torvalds 已提交
656 657 658

/*! [End] no source code translation !*/
};