1efcc2a30SJung-uk Kim /****************************************************************************** 2efcc2a30SJung-uk Kim * 3efcc2a30SJung-uk Kim * Module Name: psopinfo - AML opcode information functions and dispatch tables 4efcc2a30SJung-uk Kim * 5efcc2a30SJung-uk Kim *****************************************************************************/ 6efcc2a30SJung-uk Kim 70d84335fSJung-uk Kim /****************************************************************************** 80d84335fSJung-uk Kim * 90d84335fSJung-uk Kim * 1. Copyright Notice 100d84335fSJung-uk Kim * 11*804fe266SJung-uk Kim * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp. 12efcc2a30SJung-uk Kim * All rights reserved. 13efcc2a30SJung-uk Kim * 140d84335fSJung-uk Kim * 2. License 150d84335fSJung-uk Kim * 160d84335fSJung-uk Kim * 2.1. This is your license from Intel Corp. under its intellectual property 170d84335fSJung-uk Kim * rights. You may have additional license terms from the party that provided 180d84335fSJung-uk Kim * you this software, covering your right to use that party's intellectual 190d84335fSJung-uk Kim * property rights. 200d84335fSJung-uk Kim * 210d84335fSJung-uk Kim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 220d84335fSJung-uk Kim * copy of the source code appearing in this file ("Covered Code") an 230d84335fSJung-uk Kim * irrevocable, perpetual, worldwide license under Intel's copyrights in the 240d84335fSJung-uk Kim * base code distributed originally by Intel ("Original Intel Code") to copy, 250d84335fSJung-uk Kim * make derivatives, distribute, use and display any portion of the Covered 260d84335fSJung-uk Kim * Code in any form, with the right to sublicense such rights; and 270d84335fSJung-uk Kim * 280d84335fSJung-uk Kim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 290d84335fSJung-uk Kim * license (with the right to sublicense), under only those claims of Intel 300d84335fSJung-uk Kim * patents that are infringed by the Original Intel Code, to make, use, sell, 310d84335fSJung-uk Kim * offer to sell, and import the Covered Code and derivative works thereof 320d84335fSJung-uk Kim * solely to the minimum extent necessary to exercise the above copyright 330d84335fSJung-uk Kim * license, and in no event shall the patent license extend to any additions 340d84335fSJung-uk Kim * to or modifications of the Original Intel Code. No other license or right 350d84335fSJung-uk Kim * is granted directly or by implication, estoppel or otherwise; 360d84335fSJung-uk Kim * 370d84335fSJung-uk Kim * The above copyright and patent license is granted only if the following 380d84335fSJung-uk Kim * conditions are met: 390d84335fSJung-uk Kim * 400d84335fSJung-uk Kim * 3. Conditions 410d84335fSJung-uk Kim * 420d84335fSJung-uk Kim * 3.1. Redistribution of Source with Rights to Further Distribute Source. 430d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 440d84335fSJung-uk Kim * Code or modification with rights to further distribute source must include 450d84335fSJung-uk Kim * the above Copyright Notice, the above License, this list of Conditions, 460d84335fSJung-uk Kim * and the following Disclaimer and Export Compliance provision. In addition, 470d84335fSJung-uk Kim * Licensee must cause all Covered Code to which Licensee contributes to 480d84335fSJung-uk Kim * contain a file documenting the changes Licensee made to create that Covered 490d84335fSJung-uk Kim * Code and the date of any change. Licensee must include in that file the 500d84335fSJung-uk Kim * documentation of any changes made by any predecessor Licensee. Licensee 510d84335fSJung-uk Kim * must include a prominent statement that the modification is derived, 520d84335fSJung-uk Kim * directly or indirectly, from Original Intel Code. 530d84335fSJung-uk Kim * 540d84335fSJung-uk Kim * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 550d84335fSJung-uk Kim * Redistribution of source code of any substantial portion of the Covered 560d84335fSJung-uk Kim * Code or modification without rights to further distribute source must 570d84335fSJung-uk Kim * include the following Disclaimer and Export Compliance provision in the 580d84335fSJung-uk Kim * documentation and/or other materials provided with distribution. In 590d84335fSJung-uk Kim * addition, Licensee may not authorize further sublicense of source of any 600d84335fSJung-uk Kim * portion of the Covered Code, and must include terms to the effect that the 610d84335fSJung-uk Kim * license from Licensee to its licensee is limited to the intellectual 620d84335fSJung-uk Kim * property embodied in the software Licensee provides to its licensee, and 630d84335fSJung-uk Kim * not to intellectual property embodied in modifications its licensee may 640d84335fSJung-uk Kim * make. 650d84335fSJung-uk Kim * 660d84335fSJung-uk Kim * 3.3. Redistribution of Executable. Redistribution in executable form of any 670d84335fSJung-uk Kim * substantial portion of the Covered Code or modification must reproduce the 680d84335fSJung-uk Kim * above Copyright Notice, and the following Disclaimer and Export Compliance 690d84335fSJung-uk Kim * provision in the documentation and/or other materials provided with the 700d84335fSJung-uk Kim * distribution. 710d84335fSJung-uk Kim * 720d84335fSJung-uk Kim * 3.4. Intel retains all right, title, and interest in and to the Original 730d84335fSJung-uk Kim * Intel Code. 740d84335fSJung-uk Kim * 750d84335fSJung-uk Kim * 3.5. Neither the name Intel nor any other trademark owned or controlled by 760d84335fSJung-uk Kim * Intel shall be used in advertising or otherwise to promote the sale, use or 770d84335fSJung-uk Kim * other dealings in products derived from or relating to the Covered Code 780d84335fSJung-uk Kim * without prior written authorization from Intel. 790d84335fSJung-uk Kim * 800d84335fSJung-uk Kim * 4. Disclaimer and Export Compliance 810d84335fSJung-uk Kim * 820d84335fSJung-uk Kim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 830d84335fSJung-uk Kim * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 840d84335fSJung-uk Kim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 850d84335fSJung-uk Kim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 860d84335fSJung-uk Kim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 870d84335fSJung-uk Kim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 880d84335fSJung-uk Kim * PARTICULAR PURPOSE. 890d84335fSJung-uk Kim * 900d84335fSJung-uk Kim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 910d84335fSJung-uk Kim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 920d84335fSJung-uk Kim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 930d84335fSJung-uk Kim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 940d84335fSJung-uk Kim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 950d84335fSJung-uk Kim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 960d84335fSJung-uk Kim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 970d84335fSJung-uk Kim * LIMITED REMEDY. 980d84335fSJung-uk Kim * 990d84335fSJung-uk Kim * 4.3. Licensee shall not export, either directly or indirectly, any of this 1000d84335fSJung-uk Kim * software or system incorporating such software without first obtaining any 1010d84335fSJung-uk Kim * required license or other approval from the U. S. Department of Commerce or 1020d84335fSJung-uk Kim * any other agency or department of the United States Government. In the 1030d84335fSJung-uk Kim * event Licensee exports any such software from the United States or 1040d84335fSJung-uk Kim * re-exports any such software from a foreign destination, Licensee shall 1050d84335fSJung-uk Kim * ensure that the distribution and export/re-export of the software is in 1060d84335fSJung-uk Kim * compliance with all laws, regulations, orders, or other restrictions of the 1070d84335fSJung-uk Kim * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1080d84335fSJung-uk Kim * any of its subsidiaries will export/re-export any technical data, process, 1090d84335fSJung-uk Kim * software, or service, directly or indirectly, to any country for which the 1100d84335fSJung-uk Kim * United States government or any agency thereof requires an export license, 1110d84335fSJung-uk Kim * other governmental approval, or letter of assurance, without first obtaining 1120d84335fSJung-uk Kim * such license, approval or letter. 1130d84335fSJung-uk Kim * 1140d84335fSJung-uk Kim ***************************************************************************** 1150d84335fSJung-uk Kim * 1160d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 1170d84335fSJung-uk Kim * following license: 1180d84335fSJung-uk Kim * 119efcc2a30SJung-uk Kim * Redistribution and use in source and binary forms, with or without 120efcc2a30SJung-uk Kim * modification, are permitted provided that the following conditions 121efcc2a30SJung-uk Kim * are met: 122efcc2a30SJung-uk Kim * 1. Redistributions of source code must retain the above copyright 123efcc2a30SJung-uk Kim * notice, this list of conditions, and the following disclaimer, 124efcc2a30SJung-uk Kim * without modification. 125efcc2a30SJung-uk Kim * 2. Redistributions in binary form must reproduce at minimum a disclaimer 126efcc2a30SJung-uk Kim * substantially similar to the "NO WARRANTY" disclaimer below 127efcc2a30SJung-uk Kim * ("Disclaimer") and any redistribution must be conditioned upon 128efcc2a30SJung-uk Kim * including a substantially similar Disclaimer requirement for further 129efcc2a30SJung-uk Kim * binary redistribution. 130efcc2a30SJung-uk Kim * 3. Neither the names of the above-listed copyright holders nor the names 131efcc2a30SJung-uk Kim * of any contributors may be used to endorse or promote products derived 132efcc2a30SJung-uk Kim * from this software without specific prior written permission. 133efcc2a30SJung-uk Kim * 1340d84335fSJung-uk Kim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1350d84335fSJung-uk Kim * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1360d84335fSJung-uk Kim * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1370d84335fSJung-uk Kim * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1380d84335fSJung-uk Kim * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 1390d84335fSJung-uk Kim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 1400d84335fSJung-uk Kim * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1410d84335fSJung-uk Kim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 1420d84335fSJung-uk Kim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 1430d84335fSJung-uk Kim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 1440d84335fSJung-uk Kim * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1450d84335fSJung-uk Kim * 1460d84335fSJung-uk Kim * Alternatively, you may choose to be licensed under the terms of the 147efcc2a30SJung-uk Kim * GNU General Public License ("GPL") version 2 as published by the Free 148efcc2a30SJung-uk Kim * Software Foundation. 149efcc2a30SJung-uk Kim * 1500d84335fSJung-uk Kim *****************************************************************************/ 151efcc2a30SJung-uk Kim 152efcc2a30SJung-uk Kim #include <contrib/dev/acpica/include/acpi.h> 153efcc2a30SJung-uk Kim #include <contrib/dev/acpica/include/accommon.h> 154efcc2a30SJung-uk Kim #include <contrib/dev/acpica/include/acparser.h> 155efcc2a30SJung-uk Kim #include <contrib/dev/acpica/include/acopcode.h> 156efcc2a30SJung-uk Kim #include <contrib/dev/acpica/include/amlcode.h> 157efcc2a30SJung-uk Kim 158efcc2a30SJung-uk Kim 159efcc2a30SJung-uk Kim #define _COMPONENT ACPI_PARSER 160efcc2a30SJung-uk Kim ACPI_MODULE_NAME ("psopinfo") 161efcc2a30SJung-uk Kim 162efcc2a30SJung-uk Kim 163efcc2a30SJung-uk Kim static const UINT8 AcpiGbl_ArgumentCount[] = {0,1,1,1,1,2,2,2,2,3,3,6}; 164efcc2a30SJung-uk Kim 165efcc2a30SJung-uk Kim 166efcc2a30SJung-uk Kim /******************************************************************************* 167efcc2a30SJung-uk Kim * 168efcc2a30SJung-uk Kim * FUNCTION: AcpiPsGetOpcodeInfo 169efcc2a30SJung-uk Kim * 170efcc2a30SJung-uk Kim * PARAMETERS: Opcode - The AML opcode 171efcc2a30SJung-uk Kim * 172efcc2a30SJung-uk Kim * RETURN: A pointer to the info about the opcode. 173efcc2a30SJung-uk Kim * 174efcc2a30SJung-uk Kim * DESCRIPTION: Find AML opcode description based on the opcode. 175efcc2a30SJung-uk Kim * NOTE: This procedure must ALWAYS return a valid pointer! 176efcc2a30SJung-uk Kim * 177efcc2a30SJung-uk Kim ******************************************************************************/ 178efcc2a30SJung-uk Kim 179efcc2a30SJung-uk Kim const ACPI_OPCODE_INFO * 180efcc2a30SJung-uk Kim AcpiPsGetOpcodeInfo ( 181efcc2a30SJung-uk Kim UINT16 Opcode) 182efcc2a30SJung-uk Kim { 183313a0c13SJung-uk Kim #ifdef ACPI_DEBUG_OUTPUT 184313a0c13SJung-uk Kim const char *OpcodeName = "Unknown AML opcode"; 185313a0c13SJung-uk Kim #endif 186313a0c13SJung-uk Kim 187efcc2a30SJung-uk Kim ACPI_FUNCTION_NAME (PsGetOpcodeInfo); 188efcc2a30SJung-uk Kim 189efcc2a30SJung-uk Kim 190efcc2a30SJung-uk Kim /* 191efcc2a30SJung-uk Kim * Detect normal 8-bit opcode or extended 16-bit opcode 192efcc2a30SJung-uk Kim */ 193efcc2a30SJung-uk Kim if (!(Opcode & 0xFF00)) 194efcc2a30SJung-uk Kim { 195efcc2a30SJung-uk Kim /* Simple (8-bit) opcode: 0-255, can't index beyond table */ 196efcc2a30SJung-uk Kim 197efcc2a30SJung-uk Kim return (&AcpiGbl_AmlOpInfo [AcpiGbl_ShortOpIndex [(UINT8) Opcode]]); 198efcc2a30SJung-uk Kim } 199efcc2a30SJung-uk Kim 200efcc2a30SJung-uk Kim if (((Opcode & 0xFF00) == AML_EXTENDED_OPCODE) && 201efcc2a30SJung-uk Kim (((UINT8) Opcode) <= MAX_EXTENDED_OPCODE)) 202efcc2a30SJung-uk Kim { 203efcc2a30SJung-uk Kim /* Valid extended (16-bit) opcode */ 204efcc2a30SJung-uk Kim 205efcc2a30SJung-uk Kim return (&AcpiGbl_AmlOpInfo [AcpiGbl_LongOpIndex [(UINT8) Opcode]]); 206efcc2a30SJung-uk Kim } 207efcc2a30SJung-uk Kim 208313a0c13SJung-uk Kim #if defined ACPI_ASL_COMPILER && defined ACPI_DEBUG_OUTPUT 209313a0c13SJung-uk Kim #include <contrib/dev/acpica/compiler/asldefine.h> 210313a0c13SJung-uk Kim 211313a0c13SJung-uk Kim switch (Opcode) 212313a0c13SJung-uk Kim { 213313a0c13SJung-uk Kim case AML_RAW_DATA_BYTE: 214313a0c13SJung-uk Kim OpcodeName = "-Raw Data Byte-"; 215313a0c13SJung-uk Kim break; 216313a0c13SJung-uk Kim 217313a0c13SJung-uk Kim case AML_RAW_DATA_WORD: 218313a0c13SJung-uk Kim OpcodeName = "-Raw Data Word-"; 219313a0c13SJung-uk Kim break; 220313a0c13SJung-uk Kim 221313a0c13SJung-uk Kim case AML_RAW_DATA_DWORD: 222313a0c13SJung-uk Kim OpcodeName = "-Raw Data Dword-"; 223313a0c13SJung-uk Kim break; 224313a0c13SJung-uk Kim 225313a0c13SJung-uk Kim case AML_RAW_DATA_QWORD: 226313a0c13SJung-uk Kim OpcodeName = "-Raw Data Qword-"; 227313a0c13SJung-uk Kim break; 228313a0c13SJung-uk Kim 229313a0c13SJung-uk Kim case AML_RAW_DATA_BUFFER: 230313a0c13SJung-uk Kim OpcodeName = "-Raw Data Buffer-"; 231313a0c13SJung-uk Kim break; 232313a0c13SJung-uk Kim 233313a0c13SJung-uk Kim case AML_RAW_DATA_CHAIN: 234313a0c13SJung-uk Kim OpcodeName = "-Raw Data Buffer Chain-"; 235313a0c13SJung-uk Kim break; 236313a0c13SJung-uk Kim 237313a0c13SJung-uk Kim case AML_PACKAGE_LENGTH: 238313a0c13SJung-uk Kim OpcodeName = "-Package Length-"; 239313a0c13SJung-uk Kim break; 240313a0c13SJung-uk Kim 241313a0c13SJung-uk Kim case AML_UNASSIGNED_OPCODE: 242313a0c13SJung-uk Kim OpcodeName = "-Unassigned Opcode-"; 243313a0c13SJung-uk Kim break; 244313a0c13SJung-uk Kim 245313a0c13SJung-uk Kim case AML_DEFAULT_ARG_OP: 246313a0c13SJung-uk Kim OpcodeName = "-Default Arg-"; 247313a0c13SJung-uk Kim break; 248313a0c13SJung-uk Kim 249313a0c13SJung-uk Kim default: 250313a0c13SJung-uk Kim break; 251313a0c13SJung-uk Kim } 252313a0c13SJung-uk Kim #endif 253313a0c13SJung-uk Kim 254efcc2a30SJung-uk Kim /* Unknown AML opcode */ 255efcc2a30SJung-uk Kim 256efcc2a30SJung-uk Kim ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, 257313a0c13SJung-uk Kim "%s [%4.4X]\n", OpcodeName, Opcode)); 258efcc2a30SJung-uk Kim 259efcc2a30SJung-uk Kim return (&AcpiGbl_AmlOpInfo [_UNK]); 260efcc2a30SJung-uk Kim } 261efcc2a30SJung-uk Kim 262efcc2a30SJung-uk Kim 263efcc2a30SJung-uk Kim /******************************************************************************* 264efcc2a30SJung-uk Kim * 265efcc2a30SJung-uk Kim * FUNCTION: AcpiPsGetOpcodeName 266efcc2a30SJung-uk Kim * 267efcc2a30SJung-uk Kim * PARAMETERS: Opcode - The AML opcode 268efcc2a30SJung-uk Kim * 269efcc2a30SJung-uk Kim * RETURN: A pointer to the name of the opcode (ASCII String) 270efcc2a30SJung-uk Kim * Note: Never returns NULL. 271efcc2a30SJung-uk Kim * 272efcc2a30SJung-uk Kim * DESCRIPTION: Translate an opcode into a human-readable string 273efcc2a30SJung-uk Kim * 274efcc2a30SJung-uk Kim ******************************************************************************/ 275efcc2a30SJung-uk Kim 276f8146b88SJung-uk Kim const char * 277efcc2a30SJung-uk Kim AcpiPsGetOpcodeName ( 278efcc2a30SJung-uk Kim UINT16 Opcode) 279efcc2a30SJung-uk Kim { 280efcc2a30SJung-uk Kim #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT) 281efcc2a30SJung-uk Kim 282efcc2a30SJung-uk Kim const ACPI_OPCODE_INFO *Op; 283efcc2a30SJung-uk Kim 284efcc2a30SJung-uk Kim 285efcc2a30SJung-uk Kim Op = AcpiPsGetOpcodeInfo (Opcode); 286efcc2a30SJung-uk Kim 287efcc2a30SJung-uk Kim /* Always guaranteed to return a valid pointer */ 288efcc2a30SJung-uk Kim 289efcc2a30SJung-uk Kim return (Op->Name); 290efcc2a30SJung-uk Kim 291efcc2a30SJung-uk Kim #else 292efcc2a30SJung-uk Kim return ("OpcodeName unavailable"); 293efcc2a30SJung-uk Kim 294efcc2a30SJung-uk Kim #endif 295efcc2a30SJung-uk Kim } 296efcc2a30SJung-uk Kim 297efcc2a30SJung-uk Kim 298efcc2a30SJung-uk Kim /******************************************************************************* 299efcc2a30SJung-uk Kim * 300efcc2a30SJung-uk Kim * FUNCTION: AcpiPsGetArgumentCount 301efcc2a30SJung-uk Kim * 302efcc2a30SJung-uk Kim * PARAMETERS: OpType - Type associated with the AML opcode 303efcc2a30SJung-uk Kim * 304efcc2a30SJung-uk Kim * RETURN: Argument count 305efcc2a30SJung-uk Kim * 306efcc2a30SJung-uk Kim * DESCRIPTION: Obtain the number of expected arguments for an AML opcode 307efcc2a30SJung-uk Kim * 308efcc2a30SJung-uk Kim ******************************************************************************/ 309efcc2a30SJung-uk Kim 310efcc2a30SJung-uk Kim UINT8 311efcc2a30SJung-uk Kim AcpiPsGetArgumentCount ( 312efcc2a30SJung-uk Kim UINT32 OpType) 313efcc2a30SJung-uk Kim { 314efcc2a30SJung-uk Kim 315efcc2a30SJung-uk Kim if (OpType <= AML_TYPE_EXEC_6A_0T_1R) 316efcc2a30SJung-uk Kim { 317efcc2a30SJung-uk Kim return (AcpiGbl_ArgumentCount[OpType]); 318efcc2a30SJung-uk Kim } 319efcc2a30SJung-uk Kim 320efcc2a30SJung-uk Kim return (0); 321efcc2a30SJung-uk Kim } 322efcc2a30SJung-uk Kim 323efcc2a30SJung-uk Kim 324efcc2a30SJung-uk Kim /* 325efcc2a30SJung-uk Kim * This table is directly indexed by the opcodes It returns 326efcc2a30SJung-uk Kim * an index into the opcode table (AcpiGbl_AmlOpInfo) 327efcc2a30SJung-uk Kim */ 328efcc2a30SJung-uk Kim const UINT8 AcpiGbl_ShortOpIndex[256] = 329efcc2a30SJung-uk Kim { 330efcc2a30SJung-uk Kim /* 0 1 2 3 4 5 6 7 */ 331efcc2a30SJung-uk Kim /* 8 9 A B C D E F */ 332efcc2a30SJung-uk Kim /* 0x00 */ 0x00, 0x01, _UNK, _UNK, _UNK, _UNK, 0x02, _UNK, 333efcc2a30SJung-uk Kim /* 0x08 */ 0x03, _UNK, 0x04, 0x05, 0x06, 0x07, 0x6E, _UNK, 3347cf3e94aSJung-uk Kim /* 0x10 */ 0x08, 0x09, 0x0a, 0x6F, 0x0b, 0x81, _UNK, _UNK, 335efcc2a30SJung-uk Kim /* 0x18 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 336efcc2a30SJung-uk Kim /* 0x20 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 337efcc2a30SJung-uk Kim /* 0x28 */ _UNK, _UNK, _UNK, _UNK, _UNK, 0x63, _PFX, _PFX, 338efcc2a30SJung-uk Kim /* 0x30 */ 0x67, 0x66, 0x68, 0x65, 0x69, 0x64, 0x6A, 0x7D, 339efcc2a30SJung-uk Kim /* 0x38 */ 0x7F, 0x80, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 340efcc2a30SJung-uk Kim /* 0x40 */ _UNK, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, 341efcc2a30SJung-uk Kim /* 0x48 */ _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, 342efcc2a30SJung-uk Kim /* 0x50 */ _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, 343efcc2a30SJung-uk Kim /* 0x58 */ _ASC, _ASC, _ASC, _UNK, _PFX, _UNK, _PFX, _ASC, 344efcc2a30SJung-uk Kim /* 0x60 */ 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13, 345efcc2a30SJung-uk Kim /* 0x68 */ 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, _UNK, 346efcc2a30SJung-uk Kim /* 0x70 */ 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22, 347efcc2a30SJung-uk Kim /* 0x78 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a, 348efcc2a30SJung-uk Kim /* 0x80 */ 0x2b, 0x2c, 0x2d, 0x2e, 0x70, 0x71, 0x2f, 0x30, 349efcc2a30SJung-uk Kim /* 0x88 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x72, 350efcc2a30SJung-uk Kim /* 0x90 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x73, 0x74, 351efcc2a30SJung-uk Kim /* 0x98 */ 0x75, 0x76, _UNK, _UNK, 0x77, 0x78, 0x79, 0x7A, 352efcc2a30SJung-uk Kim /* 0xA0 */ 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x60, 0x61, 3530d84335fSJung-uk Kim /* 0xA8 */ 0x62, 0x82, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 354efcc2a30SJung-uk Kim /* 0xB0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 355efcc2a30SJung-uk Kim /* 0xB8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 356efcc2a30SJung-uk Kim /* 0xC0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 357efcc2a30SJung-uk Kim /* 0xC8 */ _UNK, _UNK, _UNK, _UNK, 0x44, _UNK, _UNK, _UNK, 358efcc2a30SJung-uk Kim /* 0xD0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 359efcc2a30SJung-uk Kim /* 0xD8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 360efcc2a30SJung-uk Kim /* 0xE0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 361efcc2a30SJung-uk Kim /* 0xE8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 362efcc2a30SJung-uk Kim /* 0xF0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 363efcc2a30SJung-uk Kim /* 0xF8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 0x45, 364efcc2a30SJung-uk Kim }; 365efcc2a30SJung-uk Kim 366efcc2a30SJung-uk Kim /* 367efcc2a30SJung-uk Kim * This table is indexed by the second opcode of the extended opcode 368efcc2a30SJung-uk Kim * pair. It returns an index into the opcode table (AcpiGbl_AmlOpInfo) 369efcc2a30SJung-uk Kim */ 370efcc2a30SJung-uk Kim const UINT8 AcpiGbl_LongOpIndex[NUM_EXTENDED_OPCODE] = 371efcc2a30SJung-uk Kim { 372efcc2a30SJung-uk Kim /* 0 1 2 3 4 5 6 7 */ 373efcc2a30SJung-uk Kim /* 8 9 A B C D E F */ 374efcc2a30SJung-uk Kim /* 0x00 */ _UNK, 0x46, 0x47, _UNK, _UNK, _UNK, _UNK, _UNK, 375efcc2a30SJung-uk Kim /* 0x08 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 376efcc2a30SJung-uk Kim /* 0x10 */ _UNK, _UNK, 0x48, 0x49, _UNK, _UNK, _UNK, _UNK, 377efcc2a30SJung-uk Kim /* 0x18 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 0x7B, 378efcc2a30SJung-uk Kim /* 0x20 */ 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 379efcc2a30SJung-uk Kim /* 0x28 */ 0x52, 0x53, 0x54, _UNK, _UNK, _UNK, _UNK, _UNK, 380efcc2a30SJung-uk Kim /* 0x30 */ 0x55, 0x56, 0x57, 0x7e, _UNK, _UNK, _UNK, _UNK, 381efcc2a30SJung-uk Kim /* 0x38 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 382efcc2a30SJung-uk Kim /* 0x40 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 383efcc2a30SJung-uk Kim /* 0x48 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 384efcc2a30SJung-uk Kim /* 0x50 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 385efcc2a30SJung-uk Kim /* 0x58 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 386efcc2a30SJung-uk Kim /* 0x60 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 387efcc2a30SJung-uk Kim /* 0x68 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 388efcc2a30SJung-uk Kim /* 0x70 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 389efcc2a30SJung-uk Kim /* 0x78 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 390efcc2a30SJung-uk Kim /* 0x80 */ 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, 391efcc2a30SJung-uk Kim /* 0x88 */ 0x7C, 392efcc2a30SJung-uk Kim }; 393