aslmap.c revision 138287
1118611Snjl 2118611Snjl/****************************************************************************** 3118611Snjl * 4118611Snjl * Module Name: aslmap - parser to AML opcode mapping table 5138287Smarks * $Revision: 76 $ 6118611Snjl * 7118611Snjl *****************************************************************************/ 8118611Snjl 9118611Snjl/****************************************************************************** 10118611Snjl * 11118611Snjl * 1. Copyright Notice 12118611Snjl * 13126372Snjl * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp. 14118611Snjl * All rights reserved. 15118611Snjl * 16118611Snjl * 2. License 17118611Snjl * 18118611Snjl * 2.1. This is your license from Intel Corp. under its intellectual property 19118611Snjl * rights. You may have additional license terms from the party that provided 20118611Snjl * you this software, covering your right to use that party's intellectual 21118611Snjl * property rights. 22118611Snjl * 23118611Snjl * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 24118611Snjl * copy of the source code appearing in this file ("Covered Code") an 25118611Snjl * irrevocable, perpetual, worldwide license under Intel's copyrights in the 26118611Snjl * base code distributed originally by Intel ("Original Intel Code") to copy, 27118611Snjl * make derivatives, distribute, use and display any portion of the Covered 28118611Snjl * Code in any form, with the right to sublicense such rights; and 29118611Snjl * 30118611Snjl * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 31118611Snjl * license (with the right to sublicense), under only those claims of Intel 32118611Snjl * patents that are infringed by the Original Intel Code, to make, use, sell, 33118611Snjl * offer to sell, and import the Covered Code and derivative works thereof 34118611Snjl * solely to the minimum extent necessary to exercise the above copyright 35118611Snjl * license, and in no event shall the patent license extend to any additions 36118611Snjl * to or modifications of the Original Intel Code. No other license or right 37118611Snjl * is granted directly or by implication, estoppel or otherwise; 38118611Snjl * 39118611Snjl * The above copyright and patent license is granted only if the following 40118611Snjl * conditions are met: 41118611Snjl * 42118611Snjl * 3. Conditions 43118611Snjl * 44118611Snjl * 3.1. Redistribution of Source with Rights to Further Distribute Source. 45118611Snjl * Redistribution of source code of any substantial portion of the Covered 46118611Snjl * Code or modification with rights to further distribute source must include 47118611Snjl * the above Copyright Notice, the above License, this list of Conditions, 48118611Snjl * and the following Disclaimer and Export Compliance provision. In addition, 49118611Snjl * Licensee must cause all Covered Code to which Licensee contributes to 50118611Snjl * contain a file documenting the changes Licensee made to create that Covered 51118611Snjl * Code and the date of any change. Licensee must include in that file the 52118611Snjl * documentation of any changes made by any predecessor Licensee. Licensee 53118611Snjl * must include a prominent statement that the modification is derived, 54118611Snjl * directly or indirectly, from Original Intel Code. 55118611Snjl * 56118611Snjl * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 57118611Snjl * Redistribution of source code of any substantial portion of the Covered 58118611Snjl * Code or modification without rights to further distribute source must 59118611Snjl * include the following Disclaimer and Export Compliance provision in the 60118611Snjl * documentation and/or other materials provided with distribution. In 61118611Snjl * addition, Licensee may not authorize further sublicense of source of any 62118611Snjl * portion of the Covered Code, and must include terms to the effect that the 63118611Snjl * license from Licensee to its licensee is limited to the intellectual 64118611Snjl * property embodied in the software Licensee provides to its licensee, and 65118611Snjl * not to intellectual property embodied in modifications its licensee may 66118611Snjl * make. 67118611Snjl * 68118611Snjl * 3.3. Redistribution of Executable. Redistribution in executable form of any 69118611Snjl * substantial portion of the Covered Code or modification must reproduce the 70118611Snjl * above Copyright Notice, and the following Disclaimer and Export Compliance 71118611Snjl * provision in the documentation and/or other materials provided with the 72118611Snjl * distribution. 73118611Snjl * 74118611Snjl * 3.4. Intel retains all right, title, and interest in and to the Original 75118611Snjl * Intel Code. 76118611Snjl * 77118611Snjl * 3.5. Neither the name Intel nor any other trademark owned or controlled by 78118611Snjl * Intel shall be used in advertising or otherwise to promote the sale, use or 79118611Snjl * other dealings in products derived from or relating to the Covered Code 80118611Snjl * without prior written authorization from Intel. 81118611Snjl * 82118611Snjl * 4. Disclaimer and Export Compliance 83118611Snjl * 84118611Snjl * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 85118611Snjl * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 86118611Snjl * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 87118611Snjl * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 88118611Snjl * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 89118611Snjl * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 90118611Snjl * PARTICULAR PURPOSE. 91118611Snjl * 92118611Snjl * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 93118611Snjl * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 94118611Snjl * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 95118611Snjl * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 96118611Snjl * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 97118611Snjl * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 98118611Snjl * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 99118611Snjl * LIMITED REMEDY. 100118611Snjl * 101118611Snjl * 4.3. Licensee shall not export, either directly or indirectly, any of this 102118611Snjl * software or system incorporating such software without first obtaining any 103118611Snjl * required license or other approval from the U. S. Department of Commerce or 104118611Snjl * any other agency or department of the United States Government. In the 105118611Snjl * event Licensee exports any such software from the United States or 106118611Snjl * re-exports any such software from a foreign destination, Licensee shall 107118611Snjl * ensure that the distribution and export/re-export of the software is in 108118611Snjl * compliance with all laws, regulations, orders, or other restrictions of the 109118611Snjl * U.S. Export Administration Regulations. Licensee agrees that neither it nor 110118611Snjl * any of its subsidiaries will export/re-export any technical data, process, 111118611Snjl * software, or service, directly or indirectly, to any country for which the 112118611Snjl * United States government or any agency thereof requires an export license, 113118611Snjl * other governmental approval, or letter of assurance, without first obtaining 114118611Snjl * such license, approval or letter. 115118611Snjl * 116118611Snjl *****************************************************************************/ 117118611Snjl 118118611Snjl 119118611Snjl#include "aslcompiler.h" 120118611Snjl#include "amlcode.h" 121118611Snjl#include "acparser.h" 122118611Snjl 123118611Snjl 124118611Snjl#define _COMPONENT ACPI_COMPILER 125118611Snjl ACPI_MODULE_NAME ("aslmap") 126118611Snjl 127118611Snjl 128118611Snjl/******************************************************************************* 129118611Snjl * 130118611Snjl * FUNCTION: AslMapNamedOpcodeToDataType 131118611Snjl * 132118611Snjl * PARAMETERS: Opcode - The Named AML opcode to map 133118611Snjl * 134118611Snjl * RETURN: The ACPI type associated with the named opcode 135118611Snjl * 136118611Snjl * DESCRIPTION: Convert a raw Named AML opcode to the associated data type. 137118611Snjl * Named opcodes are a subset of the AML opcodes. 138118611Snjl * 139118611Snjl ******************************************************************************/ 140118611Snjl 141118611SnjlACPI_OBJECT_TYPE 142118611SnjlAslMapNamedOpcodeToDataType ( 143118611Snjl UINT16 Opcode) 144118611Snjl{ 145118611Snjl const ACPI_OPCODE_INFO *OpInfo; 146118611Snjl 147118611Snjl 148118611Snjl /* 149118611Snjl * There are some differences from the opcode table types, we 150118611Snjl * catch them here. 151118611Snjl */ 152118611Snjl OpInfo = AcpiPsGetOpcodeInfo (Opcode); 153118611Snjl 154118611Snjl if (Opcode == AML_INT_NAMEPATH_OP) 155118611Snjl { 156118611Snjl return (ACPI_TYPE_ANY); 157118611Snjl } 158118611Snjl 159118611Snjl if (Opcode == AML_INT_METHODCALL_OP) 160118611Snjl { 161118611Snjl return (ACPI_TYPE_ANY); 162118611Snjl } 163118611Snjl 164118611Snjl if (OpInfo->Flags & AML_NSOBJECT) 165118611Snjl { 166118611Snjl return (OpInfo->ObjectType); 167118611Snjl } 168118611Snjl 169118611Snjl return (ACPI_TYPE_ANY); 170118611Snjl} 171118611Snjl 172118611Snjl 173118611Snjl/******************************************************************************* 174118611Snjl * 175118611Snjl * DATA STRUCTURE: ReservedMethods 176118611Snjl * 177118611Snjl * DESCRIPTION: Contains all reserved methods and names as defined in the 178118611Snjl * ACPI specification. Used during the analysis phase to 179118611Snjl * ensure that reserved methods have the required number of 180118611Snjl * arguments and the proper return type. 181118611Snjl * 182118611Snjl * Each entry in the table contains the following items: 183118611Snjl * 184118611Snjl * Name - The ACPI reserved name 185118611Snjl * Args - Number of arguments to the method 186118611Snjl * Flags - Whether this method must return a value or not 187118611Snjl * 188118611Snjl ******************************************************************************/ 189118611Snjl 190118611Snjlconst ASL_RESERVED_INFO ReservedMethods[] = { 191118611Snjl {"_AC0", 0, ASL_RSVD_RETURN_VALUE}, 192118611Snjl {"_AC1", 0, ASL_RSVD_RETURN_VALUE}, 193118611Snjl {"_AC2", 0, ASL_RSVD_RETURN_VALUE}, 194118611Snjl {"_AC3", 0, ASL_RSVD_RETURN_VALUE}, 195118611Snjl {"_AC4", 0, ASL_RSVD_RETURN_VALUE}, 196118611Snjl {"_AC5", 0, ASL_RSVD_RETURN_VALUE}, 197118611Snjl {"_AC6", 0, ASL_RSVD_RETURN_VALUE}, 198118611Snjl {"_AC7", 0, ASL_RSVD_RETURN_VALUE}, 199118611Snjl {"_AC8", 0, ASL_RSVD_RETURN_VALUE}, 200118611Snjl {"_AC9", 0, ASL_RSVD_RETURN_VALUE}, 201118611Snjl {"_ADR", 0, ASL_RSVD_RETURN_VALUE}, 202118611Snjl {"_AL0", 0, ASL_RSVD_RETURN_VALUE}, 203118611Snjl {"_AL1", 0, ASL_RSVD_RETURN_VALUE}, 204118611Snjl {"_AL2", 0, ASL_RSVD_RETURN_VALUE}, 205118611Snjl {"_AL3", 0, ASL_RSVD_RETURN_VALUE}, 206118611Snjl {"_AL4", 0, ASL_RSVD_RETURN_VALUE}, 207118611Snjl {"_AL5", 0, ASL_RSVD_RETURN_VALUE}, 208118611Snjl {"_AL6", 0, ASL_RSVD_RETURN_VALUE}, 209118611Snjl {"_AL7", 0, ASL_RSVD_RETURN_VALUE}, 210118611Snjl {"_AL8", 0, ASL_RSVD_RETURN_VALUE}, 211118611Snjl {"_AL9", 0, ASL_RSVD_RETURN_VALUE}, 212138287Smarks {"_ALC", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 213138287Smarks {"_ALI", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 214118611Snjl {"_ALN", 0, ASL_RSVD_RESOURCE_NAME}, 215138287Smarks {"_ALP", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 216138287Smarks {"_ALR", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 217138287Smarks {"_ALT", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 218118611Snjl {"_ASI", 0, ASL_RSVD_RESOURCE_NAME}, 219118611Snjl {"_BAS", 0, ASL_RSVD_RESOURCE_NAME}, 220118611Snjl {"_BBN", 0, ASL_RSVD_RETURN_VALUE}, 221118611Snjl {"_BCL", 0, ASL_RSVD_RETURN_VALUE}, 222118611Snjl {"_BCM", 1, 0}, 223118611Snjl {"_BDN", 0, ASL_RSVD_RETURN_VALUE}, 224118611Snjl {"_BFS", 1, 0}, 225118611Snjl {"_BIF", 0, ASL_RSVD_RETURN_VALUE}, 226138287Smarks {"_BLT", 3, 0}, /* Acpi 3.0 */ 227118611Snjl {"_BM_", 0, ASL_RSVD_RESOURCE_NAME}, 228138287Smarks {"_BMC", 1, 0}, /* Acpi 3.0 */ 229138287Smarks {"_BMD", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 230138287Smarks {"_BQC", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 231118611Snjl {"_BST", 0, ASL_RSVD_RETURN_VALUE}, 232138287Smarks {"_BTM", 1, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 233118611Snjl {"_BTP", 1, 0}, 234138287Smarks {"_CBA", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 235118611Snjl {"_CID", 0, ASL_RSVD_RETURN_VALUE}, 236118611Snjl {"_CRS", 0, ASL_RSVD_RETURN_VALUE}, 237118611Snjl {"_CRT", 0, ASL_RSVD_RETURN_VALUE}, 238138287Smarks {"_CSD", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 239118611Snjl {"_CST", 0, ASL_RSVD_RETURN_VALUE}, 240118611Snjl {"_DCK", 1, ASL_RSVD_RETURN_VALUE}, 241118611Snjl {"_DCS", 0, ASL_RSVD_RETURN_VALUE}, 242118611Snjl {"_DDC", 1, ASL_RSVD_RETURN_VALUE}, 243118611Snjl {"_DDN", 0, 0}, 244118611Snjl {"_DEC", 0, ASL_RSVD_RESOURCE_NAME}, 245118611Snjl {"_DGS", 0, ASL_RSVD_RETURN_VALUE}, 246118611Snjl {"_DIS", 0, 0}, 247118611Snjl {"_DMA", 0, ASL_RSVD_RETURN_VALUE}, 248118611Snjl {"_DOD", 0, ASL_RSVD_RETURN_VALUE}, 249118611Snjl {"_DOS", 1, 0}, 250138287Smarks {"_DSM", 4, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 251118611Snjl {"_DSS", 1, 0}, 252138287Smarks {"_DSW", 3, 0}, /* Acpi 3.0 */ 253118611Snjl {"_EC_", 0, ASL_RSVD_RETURN_VALUE}, 254118611Snjl {"_EDL", 0, ASL_RSVD_RETURN_VALUE}, 255118611Snjl {"_EJ0", 1, 0}, 256118611Snjl {"_EJ1", 1, 0}, 257118611Snjl {"_EJ2", 1, 0}, 258118611Snjl {"_EJ3", 1, 0}, 259118611Snjl {"_EJ4", 1, 0}, 260118611Snjl {"_EJD", 0, ASL_RSVD_RETURN_VALUE}, 261138287Smarks {"_ERR", 2, ASL_RSVD_RETURN_VALUE}, 262118611Snjl {"_FDE", 0, ASL_RSVD_RETURN_VALUE}, 263118611Snjl {"_FDI", 0, ASL_RSVD_RETURN_VALUE}, 264118611Snjl {"_FDM", 1, 0}, 265118611Snjl {"_FIX", 0, ASL_RSVD_RETURN_VALUE}, 266118611Snjl {"_GL_", 0, ASL_RSVD_RETURN_VALUE}, 267118611Snjl {"_GLK", 0, ASL_RSVD_RETURN_VALUE}, 268118611Snjl {"_GPD", 0, ASL_RSVD_RETURN_VALUE}, 269118611Snjl {"_GPE", 0, ASL_RSVD_RETURN_VALUE}, 270118611Snjl {"_GRA", 0, ASL_RSVD_RESOURCE_NAME}, 271138287Smarks {"_GSB", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 272118611Snjl {"_GTF", 0, ASL_RSVD_RETURN_VALUE}, 273118611Snjl {"_GTM", 0, ASL_RSVD_RETURN_VALUE}, 274118611Snjl {"_GTS", 1, 0}, 275118611Snjl {"_HE_", 0, ASL_RSVD_RESOURCE_NAME}, 276118611Snjl {"_HID", 0, ASL_RSVD_RETURN_VALUE}, 277118611Snjl {"_HOT", 0, ASL_RSVD_RETURN_VALUE}, 278118611Snjl {"_HPP", 0, ASL_RSVD_RETURN_VALUE}, 279138287Smarks {"_HPX", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 280138287Smarks {"_IFT", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 281118611Snjl {"_INI", 0, 0}, 282118611Snjl {"_INT", 0, ASL_RSVD_RESOURCE_NAME}, 283118611Snjl {"_IRC", 0, 0}, 284118611Snjl {"_LCK", 1, 0}, 285118611Snjl {"_LEN", 0, ASL_RSVD_RESOURCE_NAME}, 286118611Snjl {"_LID", 0, ASL_RSVD_RETURN_VALUE}, 287118611Snjl {"_LL_", 0, ASL_RSVD_RESOURCE_NAME}, 288118611Snjl {"_MAF", 0, ASL_RSVD_RESOURCE_NAME}, 289118611Snjl {"_MAT", 0, ASL_RSVD_RETURN_VALUE}, 290118611Snjl {"_MAX", 0, ASL_RSVD_RESOURCE_NAME}, 291118611Snjl {"_MEM", 0, ASL_RSVD_RESOURCE_NAME}, 292118611Snjl {"_MIF", 0, ASL_RSVD_RESOURCE_NAME}, 293118611Snjl {"_MIN", 0, ASL_RSVD_RESOURCE_NAME}, 294138287Smarks {"_MLS", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 295118611Snjl {"_MSG", 1, 0}, 296118611Snjl {"_OFF", 0, 0}, 297118611Snjl {"_ON_", 0, 0}, 298118611Snjl {"_OS_", 0, ASL_RSVD_RETURN_VALUE}, 299138287Smarks {"_OSC", 4, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 300118611Snjl {"_OSI", 1, ASL_RSVD_RETURN_VALUE}, 301138287Smarks {"_OST", 3, 0}, /* Acpi 3.0 */ 302118611Snjl {"_PCL", 0, ASL_RSVD_RETURN_VALUE}, 303118611Snjl {"_PCT", 0, ASL_RSVD_RETURN_VALUE}, 304118611Snjl {"_PDC", 1, 0}, 305118611Snjl {"_PIC", 1, 0}, 306138287Smarks {"_PLD", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 307118611Snjl {"_PPC", 0, ASL_RSVD_RETURN_VALUE}, 308138287Smarks {"_PPE", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 309118611Snjl {"_PR0", 0, ASL_RSVD_RETURN_VALUE}, 310118611Snjl {"_PR1", 0, ASL_RSVD_RETURN_VALUE}, 311118611Snjl {"_PR2", 0, ASL_RSVD_RETURN_VALUE}, 312118611Snjl {"_PRS", 0, ASL_RSVD_RETURN_VALUE}, 313118611Snjl {"_PRT", 0, ASL_RSVD_RETURN_VALUE}, 314118611Snjl {"_PRW", 0, ASL_RSVD_RETURN_VALUE}, 315118611Snjl {"_PS0", 0, 0}, 316118611Snjl {"_PS1", 0, 0}, 317118611Snjl {"_PS2", 0, 0}, 318118611Snjl {"_PS3", 0, 0}, 319118611Snjl {"_PSC", 0, ASL_RSVD_RETURN_VALUE}, 320138287Smarks {"_PSD", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 321118611Snjl {"_PSL", 0, ASL_RSVD_RETURN_VALUE}, 322118611Snjl {"_PSR", 0, ASL_RSVD_RETURN_VALUE}, 323118611Snjl {"_PSS", 0, ASL_RSVD_RETURN_VALUE}, 324118611Snjl {"_PSV", 0, ASL_RSVD_RETURN_VALUE}, 325118611Snjl {"_PSW", 1, 0}, 326118611Snjl {"_PTC", 0, ASL_RSVD_RETURN_VALUE}, 327118611Snjl {"_PTS", 1, 0}, 328118611Snjl {"_PXM", 0, ASL_RSVD_RETURN_VALUE}, 329118611Snjl {"_RBO", 0, ASL_RSVD_RESOURCE_NAME}, 330118611Snjl {"_RBW", 0, ASL_RSVD_RESOURCE_NAME}, 331118611Snjl {"_REG", 2, 0}, 332118611Snjl {"_REV", 0, ASL_RSVD_RETURN_VALUE}, 333118611Snjl {"_RMV", 0, ASL_RSVD_RETURN_VALUE}, 334118611Snjl {"_RNG", 0, ASL_RSVD_RESOURCE_NAME}, 335118611Snjl {"_ROM", 2, ASL_RSVD_RETURN_VALUE}, 336138287Smarks {"_RT_", 0, ASL_RSVD_RESOURCE_NAME}, /* Acpi 3.0 */ 337138287Smarks {"_RTV", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 338118611Snjl {"_RW_", 0, ASL_RSVD_RESOURCE_NAME}, 339118611Snjl {"_S0_", 0, ASL_RSVD_RETURN_VALUE}, 340118611Snjl {"_S1_", 0, ASL_RSVD_RETURN_VALUE}, 341118611Snjl {"_S2_", 0, ASL_RSVD_RETURN_VALUE}, 342118611Snjl {"_S3_", 0, ASL_RSVD_RETURN_VALUE}, 343118611Snjl {"_S4_", 0, ASL_RSVD_RETURN_VALUE}, 344118611Snjl {"_S5_", 0, ASL_RSVD_RETURN_VALUE}, 345118611Snjl {"_S1D", 0, ASL_RSVD_RETURN_VALUE}, 346118611Snjl {"_S2D", 0, ASL_RSVD_RETURN_VALUE}, 347118611Snjl {"_S3D", 0, ASL_RSVD_RETURN_VALUE}, 348118611Snjl {"_S4D", 0, ASL_RSVD_RETURN_VALUE}, 349138287Smarks {"_S0W", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 350138287Smarks {"_S1W", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 351138287Smarks {"_S2W", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 352138287Smarks {"_S3W", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 353138287Smarks {"_S4W", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 354118611Snjl {"_SB_", 0, ASL_RSVD_SCOPE}, 355118611Snjl {"_SBS", 0, ASL_RSVD_RETURN_VALUE}, 356118611Snjl {"_SCP", 1, 0}, 357138287Smarks {"_SDD", 1, 0}, /* Acpi 3.0 */ 358118611Snjl {"_SEG", 0, ASL_RSVD_RETURN_VALUE}, 359118611Snjl {"_SHR", 0, ASL_RSVD_RESOURCE_NAME}, 360118611Snjl {"_SI_", 0, ASL_RSVD_SCOPE}, 361118611Snjl {"_SIZ", 0, ASL_RSVD_RESOURCE_NAME}, 362138287Smarks {"_SLI", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 363118611Snjl {"_SPD", 1, ASL_RSVD_RETURN_VALUE}, 364118611Snjl {"_SRS", 1, 0}, 365138287Smarks {"_SRV", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 366118611Snjl {"_SST", 1, 0}, 367118611Snjl {"_STA", 0, ASL_RSVD_RETURN_VALUE}, 368118611Snjl {"_STM", 3, 0}, 369118611Snjl {"_STR", 0, ASL_RSVD_RETURN_VALUE}, 370118611Snjl {"_SUN", 0, ASL_RSVD_RETURN_VALUE}, 371138287Smarks {"_SWS", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 372118611Snjl {"_TC1", 0, ASL_RSVD_RETURN_VALUE}, 373118611Snjl {"_TC2", 0, ASL_RSVD_RETURN_VALUE}, 374118611Snjl {"_TMP", 0, ASL_RSVD_RETURN_VALUE}, 375138287Smarks {"_TPC", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 376138287Smarks {"_TPT", 1, 0}, /* Acpi 3.0 */ 377118611Snjl {"_TRA", 0, ASL_RSVD_RESOURCE_NAME}, 378118611Snjl {"_TRS", 0, ASL_RSVD_RESOURCE_NAME}, 379138287Smarks {"_TRT", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 380138287Smarks {"_TSD", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 381138287Smarks {"_TSF", 0, ASL_RSVD_RESOURCE_NAME}, /* Acpi 3.0 */ 382118611Snjl {"_TSP", 0, ASL_RSVD_RETURN_VALUE}, 383138287Smarks {"_TSS", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 384138287Smarks {"_TST", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 385118611Snjl {"_TTP", 0, ASL_RSVD_RESOURCE_NAME}, 386138287Smarks {"_TTS", 1, 0}, /* Acpi 3.0 */ 387118611Snjl {"_TYP", 0, ASL_RSVD_RESOURCE_NAME}, 388118611Snjl {"_TZ_", 0, ASL_RSVD_SCOPE}, 389118611Snjl {"_TZD", 0, ASL_RSVD_RETURN_VALUE}, 390138287Smarks {"_TZM", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 391118611Snjl {"_TZP", 0, ASL_RSVD_RETURN_VALUE}, 392118611Snjl {"_UID", 0, ASL_RSVD_RETURN_VALUE}, 393138287Smarks {"_UPC", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 394138287Smarks {"_UPD", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 395138287Smarks {"_UPP", 0, ASL_RSVD_RETURN_VALUE}, /* Acpi 3.0 */ 396118611Snjl {"_VPO", 0, ASL_RSVD_RETURN_VALUE}, 397118611Snjl {"_WAK", 1, ASL_RSVD_RETURN_VALUE}, 398118611Snjl {NULL, 0, 0}, 399118611Snjl}; 400118611Snjl 401118611Snjl 402118611Snjl/******************************************************************************* 403118611Snjl * 404118611Snjl * FUNCTION: MpDisplayReservedNames 405118611Snjl * 406118611Snjl * PARAMETERS: None 407118611Snjl * 408118611Snjl * RETURN: None 409118611Snjl * 410118611Snjl * DESCRIPTION: Print the table above 411118611Snjl * 412118611Snjl ******************************************************************************/ 413118611Snjl 414118611Snjlvoid 415118611SnjlMpDisplayReservedNames ( 416118611Snjl void) 417118611Snjl{ 418118611Snjl UINT32 i; 419118611Snjl 420118611Snjl printf ("Reserved name information\n\n"); 421118611Snjl 422118611Snjl for (i = 0; ReservedMethods[i].Name; i++) 423118611Snjl { 424118611Snjl printf ("%s ", ReservedMethods[i].Name); 425118611Snjl 426118611Snjl if (ReservedMethods[i].Flags & ASL_RSVD_SCOPE) 427118611Snjl { 428118611Snjl printf ("Reserved scope name\n"); 429118611Snjl } 430118611Snjl else if (ReservedMethods[i].Flags & ASL_RSVD_RESOURCE_NAME) 431118611Snjl { 432118611Snjl printf ("Resource data type reserved field name\n"); 433118611Snjl } 434118611Snjl else 435118611Snjl { 436118611Snjl printf ("Method with %d arguments, ", ReservedMethods[i].NumArguments); 437118611Snjl if (ReservedMethods[i].Flags & ASL_RSVD_RETURN_VALUE) 438118611Snjl { 439118611Snjl printf ("must return a value\n"); 440118611Snjl } 441118611Snjl else 442118611Snjl { 443118611Snjl printf ("no return value\n"); 444118611Snjl } 445118611Snjl } 446118611Snjl } 447118611Snjl} 448118611Snjl 449118611Snjl 450118611Snjl/******************************************************************************* 451118611Snjl * 452118611Snjl * DATA STRUCTURE: AslKeywordMapping 453118611Snjl * 454118611Snjl * DESCRIPTION: Maps the ParseOpcode to the actual AML opcode. The parse 455118611Snjl * opcodes are generated from Bison, and this table must 456118611Snjl * track any additions to them. 457118611Snjl * 458118611Snjl * Each entry in the table contains the following items: 459118611Snjl * 460118611Snjl * AML opcode - Opcode that is written to the AML file 461118611Snjl * Value - Value of the object to be written (if applicable) 462118611Snjl * Flags - 1) Whether this opcode opens an AML "package". 463118611Snjl * 464118611Snjl ******************************************************************************/ 465118611Snjl/* 466118611Snjl * TBD: 467118611Snjl * AccessAttrib 468118611Snjl * AccessType 469118611Snjl * AMlop for DMA? 470118611Snjl * ObjectType keywords 471118611Snjl * Register 472118611Snjl */ 473118611Snjl 474118611Snjlconst ASL_MAPPING_ENTRY AslKeywordMapping [] = 475118611Snjl{ 476118611Snjl/*! [Begin] no source code translation (keep the table structure) */ 477118611Snjl 478118611Snjl 479118611Snjl/* ACCESSAS */ OP_TABLE_ENTRY (AML_INT_ACCESSFIELD_OP, 0, 0, 0), 480118611Snjl/* ACCESSATTRIB_BLOCK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SMB_BLOCK, 0, 0), 481118611Snjl/* ACCESSATTRIB_BLOCK_CALL */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SMB_BLOCK_CALL,0, 0), 482118611Snjl/* ACCESSATTRIB_BYTE */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SMB_BYTE, 0, 0), 483118611Snjl/* ACCESSATTRIB_WORD_CALL */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SMB_WORD_CALL, 0, 0), 484118611Snjl/* ACCESSATTRIB_QUICK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SMB_QUICK, 0, 0), 485118611Snjl/* ACCESSATTRIB_SND_RCV */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SMB_SEND_RCV, 0, 0), 486118611Snjl/* ACCESSATTRIB_WORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ATTRIB_SMB_WORD, 0, 0), 487118611Snjl/* ACCESSTYPE_ANY */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_ANY, 0, 0), 488118611Snjl/* ACCESSTYPE_BUF */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_BUFFER, 0, 0), 489118611Snjl/* ACCESSTYPE_BYTE */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_BYTE, 0, 0), 490118611Snjl/* ACCESSTYPE_DWORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_DWORD, 0, 0), 491118611Snjl/* ACCESSTYPE_QWORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_QWORD, 0, 0), 492118611Snjl/* ACCESSTYPE_WORD */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_ACCESS_WORD, 0, 0), 493118611Snjl/* ACQUIRE */ OP_TABLE_ENTRY (AML_ACQUIRE_OP, 0, 0, ACPI_BTYPE_INTEGER), 494118611Snjl/* ADD */ OP_TABLE_ENTRY (AML_ADD_OP, 0, 0, ACPI_BTYPE_INTEGER), 495118611Snjl/* ADDRESSSPACE_FFIXEDHW */ OP_TABLE_ENTRY (AML_BYTE_OP, REGION_FIXED_HW, 0, 0), 496118611Snjl/* ADDRESSTYPE_ACPI */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), 497118611Snjl/* ADDRESSTYPE_MEMORY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 498118611Snjl/* ADDRESSTYPE_NVS */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), 499118611Snjl/* ADDRESSTYPE_RESERVED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 500118611Snjl/* ALIAS */ OP_TABLE_ENTRY (AML_ALIAS_OP, 0, 0, 0), 501118611Snjl/* AND */ OP_TABLE_ENTRY (AML_BIT_AND_OP, 0, 0, ACPI_BTYPE_INTEGER), 502118611Snjl/* ARG0 */ OP_TABLE_ENTRY (AML_ARG0, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 503118611Snjl/* ARG1 */ OP_TABLE_ENTRY (AML_ARG1, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 504118611Snjl/* ARG2 */ OP_TABLE_ENTRY (AML_ARG2, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 505118611Snjl/* ARG3 */ OP_TABLE_ENTRY (AML_ARG3, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 506118611Snjl/* ARG4 */ OP_TABLE_ENTRY (AML_ARG4, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 507118611Snjl/* ARG5 */ OP_TABLE_ENTRY (AML_ARG5, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 508118611Snjl/* ARG6 */ OP_TABLE_ENTRY (AML_ARG6, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 509118611Snjl/* BANKFIELD */ OP_TABLE_ENTRY (AML_BANK_FIELD_OP, 0, NODE_AML_PACKAGE, 0), 510118611Snjl/* BREAK */ OP_TABLE_ENTRY (AML_BREAK_OP, 0, 0, 0), 511118611Snjl/* BREAKPOINT */ OP_TABLE_ENTRY (AML_BREAK_POINT_OP, 0, 0, 0), 512118611Snjl/* BUFFER */ OP_TABLE_ENTRY (AML_BUFFER_OP, 0, NODE_AML_PACKAGE, ACPI_BTYPE_BUFFER), 513118611Snjl/* BUSMASTERTYPE_MASTER */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 514118611Snjl/* BUSMASTERTYPE_NOTMASTER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 515118611Snjl/* BYTECONST */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, 0, 0, ACPI_BTYPE_INTEGER), 516118611Snjl/* CASE */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 517118611Snjl/* CONCATENATE */ OP_TABLE_ENTRY (AML_CONCAT_OP, 0, 0, ACPI_BTYPE_COMPUTE_DATA), 518118611Snjl/* CONCATENATERESTEMPLATE */ OP_TABLE_ENTRY (AML_CONCAT_RES_OP, 0, 0, ACPI_BTYPE_BUFFER), 519118611Snjl/* CONDREFOF */ OP_TABLE_ENTRY (AML_COND_REF_OF_OP, 0, 0, ACPI_BTYPE_INTEGER), 520118611Snjl/* CONTINUE */ OP_TABLE_ENTRY (AML_CONTINUE_OP, 0, 0, 0), 521118611Snjl/* COPY */ OP_TABLE_ENTRY (AML_COPY_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE), 522118611Snjl/* CREATEBITFIELD */ OP_TABLE_ENTRY (AML_CREATE_BIT_FIELD_OP, 0, 0, 0), 523118611Snjl/* CREATEBYTEFIELD */ OP_TABLE_ENTRY (AML_CREATE_BYTE_FIELD_OP, 0, 0, 0), 524118611Snjl/* CREATEDWORDFIELD */ OP_TABLE_ENTRY (AML_CREATE_DWORD_FIELD_OP, 0, 0, 0), 525118611Snjl/* CREATEFIELD */ OP_TABLE_ENTRY (AML_CREATE_FIELD_OP, 0, 0, 0), 526118611Snjl/* CREATEQWORDFIELD */ OP_TABLE_ENTRY (AML_CREATE_QWORD_FIELD_OP, 0, 0, 0), 527118611Snjl/* CREATEWORDFIELD */ OP_TABLE_ENTRY (AML_CREATE_WORD_FIELD_OP, 0, 0, 0), 528118611Snjl/* DATATABLEREGION */ OP_TABLE_ENTRY (AML_DATA_REGION_OP, 0, 0, 0), 529118611Snjl/* DEBUG */ OP_TABLE_ENTRY (AML_DEBUG_OP, 0, 0, ACPI_BTYPE_DEBUG_OBJECT), 530118611Snjl/* DECODETYPE_POS */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 531118611Snjl/* DECODETYPE_SUB */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 532118611Snjl/* DECREMENT */ OP_TABLE_ENTRY (AML_DECREMENT_OP, 0, 0, ACPI_BTYPE_INTEGER), 533118611Snjl/* DEFAULT */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 534118611Snjl/* DEFAULT_ARG */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 535118611Snjl/* DEFINITIONBLOCK */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 536118611Snjl/* DEREFOF */ OP_TABLE_ENTRY (AML_DEREF_OF_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE | ACPI_BTYPE_STRING), 537118611Snjl/* DEVICE */ OP_TABLE_ENTRY (AML_DEVICE_OP, 0, NODE_AML_PACKAGE, 0), 538118611Snjl/* DIVIDE */ OP_TABLE_ENTRY (AML_DIVIDE_OP, 0, 0, ACPI_BTYPE_INTEGER), 539118611Snjl/* DMA */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 540118611Snjl/* DMATYPE_A */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 541118611Snjl/* DMATYPE_COMPATIBILITY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 542118611Snjl/* DMATYPE_B */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), 543118611Snjl/* DMATYPE_F */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), 544118611Snjl/* DWORDCONST */ OP_TABLE_ENTRY (AML_RAW_DATA_DWORD, 0, 0, ACPI_BTYPE_INTEGER), 545118611Snjl/* DWORDIO */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 546118611Snjl/* DWORDMEMORY */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 547138287Smarks/* DWORDSPACE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 548118611Snjl/* EISAID */ OP_TABLE_ENTRY (AML_DWORD_OP, 0, 0, ACPI_BTYPE_INTEGER), 549118611Snjl/* ELSE */ OP_TABLE_ENTRY (AML_ELSE_OP, 0, NODE_AML_PACKAGE, 0), 550118611Snjl/* ELSEIF */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, NODE_AML_PACKAGE, 0), 551118611Snjl/* ENDDEPENDENTFN */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 552118611Snjl/* ERRORNODE */ OP_TABLE_ENTRY (AML_NOOP_OP, 0, 0, 0), 553118611Snjl/* EVENT */ OP_TABLE_ENTRY (AML_EVENT_OP, 0, 0, 0), 554138287Smarks/* EXTENDEDIO */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 555138287Smarks/* EXTENDEDMEMORY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 556138287Smarks/* EXTENDEDSPACE */ OP_TABLE_ENTRY (AML_RAW_DATA_QWORD, 0, 0, ACPI_BTYPE_INTEGER), 557118611Snjl/* EXTERNAL */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 558118611Snjl/* FATAL */ OP_TABLE_ENTRY (AML_FATAL_OP, 0, 0, 0), 559118611Snjl/* FIELD */ OP_TABLE_ENTRY (AML_FIELD_OP, 0, NODE_AML_PACKAGE, 0), 560118611Snjl/* FINDSETLEFTBIT */ OP_TABLE_ENTRY (AML_FIND_SET_LEFT_BIT_OP, 0, 0, ACPI_BTYPE_INTEGER), 561118611Snjl/* FINDSETRIGHTBIT */ OP_TABLE_ENTRY (AML_FIND_SET_RIGHT_BIT_OP, 0, 0, ACPI_BTYPE_INTEGER), 562118611Snjl/* FIXEDIO */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 563118611Snjl/* FROMBCD */ OP_TABLE_ENTRY (AML_FROM_BCD_OP, 0, 0, ACPI_BTYPE_INTEGER), 564138287Smarks/* FUNCTION */ OP_TABLE_ENTRY (AML_METHOD_OP, 0, NODE_AML_PACKAGE, 0), 565118611Snjl/* IF */ OP_TABLE_ENTRY (AML_IF_OP, 0, NODE_AML_PACKAGE, 0), 566118611Snjl/* INCLUDE */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 567118611Snjl/* INCLUDE_CSTYLE */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 568118611Snjl/* INCLUDE_END */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 569118611Snjl/* INCREMENT */ OP_TABLE_ENTRY (AML_INCREMENT_OP, 0, 0, ACPI_BTYPE_INTEGER), 570118611Snjl/* INDEX */ OP_TABLE_ENTRY (AML_INDEX_OP, 0, 0, ACPI_BTYPE_REFERENCE), 571118611Snjl/* INDEXFIELD */ OP_TABLE_ENTRY (AML_INDEX_FIELD_OP, 0, NODE_AML_PACKAGE, 0), 572118611Snjl/* INTEGER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, ACPI_BTYPE_INTEGER), 573118611Snjl/* INTERRUPT */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 574118611Snjl/* INTLEVEL_ACTIVEHIGH */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 575118611Snjl/* INTLEVEL_ACTIVELOW */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 576118611Snjl/* INTTYPE_EDGE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 577118611Snjl/* INTTYPE_LEVEL */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 578118611Snjl/* IO */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 579118611Snjl/* IODECODETYPE_10 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 580118611Snjl/* IODECODETYPE_16 */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 581118611Snjl/* IRQ */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 582118611Snjl/* IRQNOFLAGS */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 583118611Snjl/* LAND */ OP_TABLE_ENTRY (AML_LAND_OP, 0, 0, ACPI_BTYPE_INTEGER), 584118611Snjl/* LEQUAL */ OP_TABLE_ENTRY (AML_LEQUAL_OP, 0, 0, ACPI_BTYPE_INTEGER), 585118611Snjl/* LGREATER */ OP_TABLE_ENTRY (AML_LGREATER_OP, 0, 0, ACPI_BTYPE_INTEGER), 586118611Snjl/* LGREATEREQUAL */ OP_TABLE_ENTRY (AML_LGREATEREQUAL_OP, 0, 0, ACPI_BTYPE_INTEGER), 587118611Snjl/* LINE */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 588118611Snjl/* LLESS */ OP_TABLE_ENTRY (AML_LLESS_OP, 0, 0, ACPI_BTYPE_INTEGER), 589118611Snjl/* LLESSEQUAL */ OP_TABLE_ENTRY (AML_LLESSEQUAL_OP, 0, 0, ACPI_BTYPE_INTEGER), 590118611Snjl/* LNOT */ OP_TABLE_ENTRY (AML_LNOT_OP, 0, 0, ACPI_BTYPE_INTEGER), 591118611Snjl/* LNOTEQUAL */ OP_TABLE_ENTRY (AML_LNOTEQUAL_OP, 0, 0, ACPI_BTYPE_INTEGER), 592118611Snjl/* LOAD */ OP_TABLE_ENTRY (AML_LOAD_OP, 0, 0, 0), 593118611Snjl/* LOADTABLE */ OP_TABLE_ENTRY (AML_LOAD_TABLE_OP, 0, 0, ACPI_BTYPE_DDB_HANDLE), 594118611Snjl/* LOCAL0 */ OP_TABLE_ENTRY (AML_LOCAL0, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 595118611Snjl/* LOCAL1 */ OP_TABLE_ENTRY (AML_LOCAL1, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 596118611Snjl/* LOCAL2 */ OP_TABLE_ENTRY (AML_LOCAL2, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 597118611Snjl/* LOCAL3 */ OP_TABLE_ENTRY (AML_LOCAL3, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 598118611Snjl/* LOCAL4 */ OP_TABLE_ENTRY (AML_LOCAL4, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 599118611Snjl/* LOCAL5 */ OP_TABLE_ENTRY (AML_LOCAL5, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 600118611Snjl/* LOCAL6 */ OP_TABLE_ENTRY (AML_LOCAL6, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 601118611Snjl/* LOCAL7 */ OP_TABLE_ENTRY (AML_LOCAL7, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 602118611Snjl/* LOCKRULE_LOCK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_LOCK_ALWAYS, 0, 0), 603118611Snjl/* LOCKRULE_NOLOCK */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_LOCK_NEVER, 0, 0), 604118611Snjl/* LOR */ OP_TABLE_ENTRY (AML_LOR_OP, 0, 0, ACPI_BTYPE_INTEGER), 605118611Snjl/* MATCH */ OP_TABLE_ENTRY (AML_MATCH_OP, 0, 0, ACPI_BTYPE_INTEGER), 606118611Snjl/* MATCHTYPE_MEQ */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MEQ, 0, ACPI_BTYPE_INTEGER), 607118611Snjl/* MATCHTYPE_MGE */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MGE, 0, ACPI_BTYPE_INTEGER), 608118611Snjl/* MATCHTYPE_MGT */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MGT, 0, ACPI_BTYPE_INTEGER), 609118611Snjl/* MATCHTYPE_MLE */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MLE, 0, ACPI_BTYPE_INTEGER), 610118611Snjl/* MATCHTYPE_MLT */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MLT, 0, ACPI_BTYPE_INTEGER), 611118611Snjl/* MATCHTYPE_MTR */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, MATCH_MTR, 0, ACPI_BTYPE_INTEGER), 612118611Snjl/* MAXTYPE_FIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 613118611Snjl/* MAXTYPE_NOTFIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 614118611Snjl/* MEMORY24 */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 615118611Snjl/* MEMORY32 */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 616118611Snjl/* MEMORY32FIXED */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 617118611Snjl/* MEMTYPE_CACHEABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 618118611Snjl/* MEMTYPE_NONCACHEABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 619118611Snjl/* MEMTYPE_PREFETCHABLE */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), 620118611Snjl/* MEMTYPE_WRITECOMBINING */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), 621118611Snjl/* METHOD */ OP_TABLE_ENTRY (AML_METHOD_OP, 0, NODE_AML_PACKAGE, 0), 622118611Snjl/* METHODCALL */ OP_TABLE_ENTRY (AML_INT_METHODCALL_OP, 0, 0, ACPI_BTYPE_OBJECTS_AND_REFS), 623118611Snjl/* MID */ OP_TABLE_ENTRY (AML_MID_OP, 0, 0, ACPI_BTYPE_STRING | ACPI_BTYPE_BUFFER), 624118611Snjl/* MINTYPE_FIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 625118611Snjl/* MINTYPE_NOTFIXED */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 626118611Snjl/* MOD */ OP_TABLE_ENTRY (AML_MOD_OP, 0, 0, ACPI_BTYPE_INTEGER), 627118611Snjl/* MULTIPLY */ OP_TABLE_ENTRY (AML_MULTIPLY_OP, 0, 0, ACPI_BTYPE_INTEGER), 628118611Snjl/* MUTEX */ OP_TABLE_ENTRY (AML_MUTEX_OP, 0, 0, 0), 629118611Snjl/* NAME */ OP_TABLE_ENTRY (AML_NAME_OP, 0, 0, 0), 630118611Snjl/* NAMESEG */ OP_TABLE_ENTRY (AML_INT_NAMEPATH_OP, 0, 0, 0), 631118611Snjl/* NAMESTRING */ OP_TABLE_ENTRY (AML_INT_NAMEPATH_OP, 0, 0, 0), 632118611Snjl/* NAND */ OP_TABLE_ENTRY (AML_BIT_NAND_OP, 0, 0, ACPI_BTYPE_INTEGER), 633118611Snjl/* NOOP */ OP_TABLE_ENTRY (AML_NOOP_OP, 0, 0, 0), 634118611Snjl/* NOR */ OP_TABLE_ENTRY (AML_BIT_NOR_OP, 0, 0, ACPI_BTYPE_INTEGER), 635118611Snjl/* NOT */ OP_TABLE_ENTRY (AML_BIT_NOT_OP, 0, 0, ACPI_BTYPE_INTEGER), 636118611Snjl/* NOTIFY */ OP_TABLE_ENTRY (AML_NOTIFY_OP, 0, 0, 0), 637118611Snjl/* OBJECTTYPE */ OP_TABLE_ENTRY (AML_TYPE_OP, 0, 0, ACPI_BTYPE_INTEGER), 638118611Snjl/* OBJECTTYPE_BFF */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_BUFFER_FIELD, 0, 0), 639118611Snjl/* OBJECTTYPE_BUF */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_BUFFER, 0, 0), 640118611Snjl/* OBJECTTYPE_DDB */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_DDB_HANDLE, 0, 0), 641118611Snjl/* OBJECTTYPE_DEV */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_DEVICE, 0, 0), 642118611Snjl/* OBJECTTYPE_EVT */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_EVENT, 0, 0), 643118611Snjl/* OBJECTTYPE_FLD */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_FIELD_UNIT, 0, 0), 644118611Snjl/* OBJECTTYPE_INT */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_INTEGER, 0, 0), 645118611Snjl/* OBJECTTYPE_MTH */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_METHOD, 0, 0), 646118611Snjl/* OBJECTTYPE_MTX */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_MUTEX, 0, 0), 647118611Snjl/* OBJECTTYPE_OPR */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_REGION, 0, 0), 648118611Snjl/* OBJECTTYPE_PKG */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_PACKAGE, 0, 0), 649118611Snjl/* OBJECTTYPE_POW */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_POWER, 0, 0), 650118611Snjl/* OBJECTTYPE_STR */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_STRING, 0, 0), 651118611Snjl/* OBJECTTYPE_THZ */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_THERMAL, 0, 0), 652118611Snjl/* OBJECTTYPE_UNK */ OP_TABLE_ENTRY (AML_BYTE_OP, ACPI_TYPE_ANY, 0, 0), 653118611Snjl/* OFFSET */ OP_TABLE_ENTRY (AML_INT_RESERVEDFIELD_OP, 0, 0, 0), 654118611Snjl/* ONE */ OP_TABLE_ENTRY (AML_ONE_OP, 0, 0, ACPI_BTYPE_INTEGER), 655118611Snjl/* ONES */ OP_TABLE_ENTRY (AML_ONES_OP, 0, 0, ACPI_BTYPE_INTEGER), 656118611Snjl/* OPERATIONREGION */ OP_TABLE_ENTRY (AML_REGION_OP, 0, 0, 0), 657118611Snjl/* OR */ OP_TABLE_ENTRY (AML_BIT_OR_OP, 0, 0, ACPI_BTYPE_INTEGER), 658118611Snjl/* PACKAGE */ OP_TABLE_ENTRY (AML_PACKAGE_OP, 0, NODE_AML_PACKAGE, ACPI_BTYPE_PACKAGE), 659118611Snjl/* PACKAGEP_LENGTH */ OP_TABLE_ENTRY (AML_PACKAGE_LENGTH, 0, NODE_AML_PACKAGE, 0), 660118611Snjl/* POWERRESOURCE */ OP_TABLE_ENTRY (AML_POWER_RES_OP, 0, NODE_AML_PACKAGE, 0), 661118611Snjl/* PROCESSOR */ OP_TABLE_ENTRY (AML_PROCESSOR_OP, 0, NODE_AML_PACKAGE, 0), 662118611Snjl/* QWORDCONST */ OP_TABLE_ENTRY (AML_RAW_DATA_QWORD, 0, 0, ACPI_BTYPE_INTEGER), 663118611Snjl/* QWORDIO */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 664118611Snjl/* QWORDMEMORY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 665138287Smarks/* QWORDSPACE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 666118611Snjl/* RANGE_TYPE_ENTIRE */ OP_TABLE_ENTRY (AML_BYTE_OP, 3, 0, 0), 667118611Snjl/* RANGE_TYPE_ISAONLY */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), 668118611Snjl/* RANGE_TYPE_NONISAONLY */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 669118611Snjl/* RAW_DATA */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 670118611Snjl/* READWRITETYPE_BOTH */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 671118611Snjl/* READWRITETYPE_READONLY */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 672118611Snjl/* REFOF */ OP_TABLE_ENTRY (AML_REF_OF_OP, 0, 0, ACPI_BTYPE_REFERENCE), 673118611Snjl/* REGIONSPACE_CMOS */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, REGION_CMOS, 0, 0), 674118611Snjl/* REGIONSPACE_EC */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, REGION_EC, 0, 0), 675118611Snjl/* REGIONSPACE_IO */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, REGION_IO, 0, 0), 676118611Snjl/* REGIONSPACE_MEM */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, REGION_MEMORY, 0, 0), 677118611Snjl/* REGIONSPACE_PCI */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, REGION_PCI_CONFIG, 0, 0), 678118611Snjl/* REGIONSPACE_PCIBAR */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, REGION_PCI_BAR, 0, 0), 679118611Snjl/* REGIONSPACE_SMBUS */ OP_TABLE_ENTRY (AML_RAW_DATA_BYTE, REGION_SMBUS, 0, 0), 680118611Snjl/* REGISTER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 681118611Snjl/* RELEASE */ OP_TABLE_ENTRY (AML_RELEASE_OP, 0, 0, 0), 682118611Snjl/* RESERVED_BYTES */ OP_TABLE_ENTRY (AML_INT_RESERVEDFIELD_OP, 0, 0, 0), 683118611Snjl/* RESET */ OP_TABLE_ENTRY (AML_RESET_OP, 0, 0, 0), 684118611Snjl/* RESOURCETEMPLATE */ OP_TABLE_ENTRY (AML_BUFFER_OP, 0, 0, ACPI_BTYPE_BUFFER), 685118611Snjl/* RESOURCETYPE_CONSUMER */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 686118611Snjl/* RESOURCETYPE_PRODUCER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 687118611Snjl/* RETURN */ OP_TABLE_ENTRY (AML_RETURN_OP, 0, 0, 0), 688118611Snjl/* REVISION */ OP_TABLE_ENTRY (AML_REVISION_OP, 0, 0, ACPI_BTYPE_INTEGER), 689118611Snjl/* SCOPE */ OP_TABLE_ENTRY (AML_SCOPE_OP, 0, NODE_AML_PACKAGE, 0), 690118611Snjl/* SERIALIZERULE_NOTSERIAL */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 691118611Snjl/* SERIALIZERULE_SERIAL */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 692118611Snjl/* SHARETYPE_EXCLUSIVE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 693118611Snjl/* SHARETYPE_SHARED */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 694118611Snjl/* SHIFTLEFT */ OP_TABLE_ENTRY (AML_SHIFT_LEFT_OP, 0, 0, ACPI_BTYPE_INTEGER), 695118611Snjl/* SHIFTRIGHT */ OP_TABLE_ENTRY (AML_SHIFT_RIGHT_OP, 0, 0, ACPI_BTYPE_INTEGER), 696118611Snjl/* SIGNAL */ OP_TABLE_ENTRY (AML_SIGNAL_OP, 0, 0, 0), 697118611Snjl/* SIZEOF */ OP_TABLE_ENTRY (AML_SIZE_OF_OP, 0, 0, ACPI_BTYPE_INTEGER), 698118611Snjl/* SLEEP */ OP_TABLE_ENTRY (AML_SLEEP_OP, 0, 0, 0), 699118611Snjl/* STALL */ OP_TABLE_ENTRY (AML_STALL_OP, 0, 0, 0), 700118611Snjl/* STARTDEPENDENTFN */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 701118611Snjl/* STARTDEPENDENTFN_NOPRI */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 702118611Snjl/* STORE */ OP_TABLE_ENTRY (AML_STORE_OP, 0, 0, ACPI_BTYPE_DATA_REFERENCE), 703118611Snjl/* STRING_LITERAL */ OP_TABLE_ENTRY (AML_STRING_OP, 0, 0, ACPI_BTYPE_STRING), 704118611Snjl/* SUBTRACT */ OP_TABLE_ENTRY (AML_SUBTRACT_OP, 0, 0, ACPI_BTYPE_INTEGER), 705118611Snjl/* SWITCH */ OP_TABLE_ENTRY (AML_DEFAULT_ARG_OP, 0, 0, 0), 706118611Snjl/* THERMALZONE */ OP_TABLE_ENTRY (AML_THERMAL_ZONE_OP, 0, NODE_AML_PACKAGE, 0), 707138287Smarks/* TIMER */ OP_TABLE_ENTRY (AML_TIMER_OP, 0, 0, ACPI_BTYPE_INTEGER), 708118611Snjl/* TOBCD */ OP_TABLE_ENTRY (AML_TO_BCD_OP, 0, 0, ACPI_BTYPE_INTEGER), 709118611Snjl/* TOBUFFER */ OP_TABLE_ENTRY (AML_TO_BUFFER_OP, 0, 0, ACPI_BTYPE_COMPUTE_DATA), 710118611Snjl/* TODECIMALSTRING */ OP_TABLE_ENTRY (AML_TO_DECSTRING_OP, 0, 0, ACPI_BTYPE_STRING), 711118611Snjl/* TOHEXSTRING */ OP_TABLE_ENTRY (AML_TO_HEXSTRING_OP, 0, 0, ACPI_BTYPE_STRING), 712118611Snjl/* TOINTEGER */ OP_TABLE_ENTRY (AML_TO_INTEGER_OP, 0, 0, ACPI_BTYPE_INTEGER), 713118611Snjl/* TOSTRING */ OP_TABLE_ENTRY (AML_TO_STRING_OP, 0, 0, ACPI_BTYPE_STRING), 714138287Smarks/* TOUUID */ OP_TABLE_ENTRY (AML_DWORD_OP, 0, NODE_AML_PACKAGE, ACPI_BTYPE_INTEGER), 715118611Snjl/* TRANSLATIONTYPE_DENSE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 716118611Snjl/* TRANSLATIONTYPE_SPARSE */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 717118611Snjl/* TYPE_STATIC */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 718118611Snjl/* TYPE_TRANSLATION */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 719118611Snjl/* UNICODE */ OP_TABLE_ENTRY (AML_BUFFER_OP, 0, NODE_AML_PACKAGE, 0), 720118611Snjl/* UNLOAD */ OP_TABLE_ENTRY (AML_UNLOAD_OP, 0, 0, 0), 721118611Snjl/* UPDATERULE_ONES */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_UPDATE_WRITE_AS_ONES, 0, 0), 722118611Snjl/* UPDATERULE_PRESERVE */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_UPDATE_PRESERVE, 0, 0), 723118611Snjl/* UPDATERULE_ZEROS */ OP_TABLE_ENTRY (AML_BYTE_OP, AML_FIELD_UPDATE_WRITE_AS_ZEROS,0, 0), 724118611Snjl/* VAR_PACKAGE */ OP_TABLE_ENTRY (AML_VAR_PACKAGE_OP, 0, NODE_AML_PACKAGE, ACPI_BTYPE_PACKAGE), 725118611Snjl/* VENDORLONG */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 726118611Snjl/* VENDORSHORT */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 727118611Snjl/* WAIT */ OP_TABLE_ENTRY (AML_WAIT_OP, 0, 0, ACPI_BTYPE_INTEGER), 728118611Snjl/* WHILE */ OP_TABLE_ENTRY (AML_WHILE_OP, 0, NODE_AML_PACKAGE, 0), 729118611Snjl/* WORDBUSNUMBER */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 730118611Snjl/* WORDCONST */ OP_TABLE_ENTRY (AML_RAW_DATA_WORD, 0, 0, ACPI_BTYPE_INTEGER), 731118611Snjl/* WORDIO */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 732138287Smarks/* WORDSPACE */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 733118611Snjl/* XFERTYPE_8 */ OP_TABLE_ENTRY (AML_BYTE_OP, 0, 0, 0), 734118611Snjl/* XFERTYPE_8_16 */ OP_TABLE_ENTRY (AML_BYTE_OP, 1, 0, 0), 735118611Snjl/* XFERTYPE_16 */ OP_TABLE_ENTRY (AML_BYTE_OP, 2, 0, 0), 736118611Snjl/* XOR */ OP_TABLE_ENTRY (AML_BIT_XOR_OP, 0, 0, ACPI_BTYPE_INTEGER), 737118611Snjl/* ZERO */ OP_TABLE_ENTRY (AML_ZERO_OP, 0, 0, ACPI_BTYPE_INTEGER), 738118611Snjl 739118611Snjl/*! [End] no source code translation !*/ 740118611Snjl 741118611Snjl}; 742118611Snjl 743118611Snjl 744