psopcode.c 26 KB

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