2005-04-17 00:20:36 +02:00
|
|
|
/******************************************************************************
|
|
|
|
*
|
|
|
|
* Module Name: psopcode - Parser/Interpreter opcode information table
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
/*
|
2008-04-24 05:00:13 +02:00
|
|
|
* Copyright (C) 2000 - 2008, Intel Corp.
|
2005-04-17 00:20:36 +02:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions, and the following disclaimer,
|
|
|
|
* without modification.
|
|
|
|
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
|
|
|
|
* substantially similar to the "NO WARRANTY" disclaimer below
|
|
|
|
* ("Disclaimer") and any redistribution must be conditioned upon
|
|
|
|
* including a substantially similar Disclaimer requirement for further
|
|
|
|
* binary redistribution.
|
|
|
|
* 3. Neither the names of the above-listed copyright holders nor the names
|
|
|
|
* of any contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of the
|
|
|
|
* GNU General Public License ("GPL") version 2 as published by the Free
|
|
|
|
* Software Foundation.
|
|
|
|
*
|
|
|
|
* NO WARRANTY
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
|
|
|
|
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
|
|
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
|
|
|
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGES.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <acpi/acpi.h>
|
|
|
|
#include <acpi/acparser.h>
|
2005-04-19 04:49:35 +02:00
|
|
|
#include <acpi/acopcode.h>
|
2005-04-17 00:20:36 +02:00
|
|
|
#include <acpi/amlcode.h>
|
|
|
|
|
|
|
|
#define _COMPONENT ACPI_PARSER
|
2005-08-05 06:44:28 +02:00
|
|
|
ACPI_MODULE_NAME("psopcode")
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2008-04-10 17:06:40 +02:00
|
|
|
static const u8 acpi_gbl_argument_count[] =
|
|
|
|
{ 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 6 };
|
2008-04-10 17:06:37 +02:00
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* NAME: acpi_gbl_aml_op_info
|
|
|
|
*
|
|
|
|
* DESCRIPTION: Opcode table. Each entry contains <opcode, type, name, operands>
|
|
|
|
* The name is a simple ascii string, the operand specifier is an
|
|
|
|
* ascii string with one letter per operand. The letter specifies
|
|
|
|
* the operand type.
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
2008-04-10 17:06:37 +02:00
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
/*
|
|
|
|
* Summary of opcode types/flags
|
2005-04-19 04:49:35 +02:00
|
|
|
*
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
Opcodes that have associated namespace objects (AML_NSOBJECT flag)
|
|
|
|
|
|
|
|
AML_SCOPE_OP
|
|
|
|
AML_DEVICE_OP
|
|
|
|
AML_THERMAL_ZONE_OP
|
|
|
|
AML_METHOD_OP
|
|
|
|
AML_POWER_RES_OP
|
|
|
|
AML_PROCESSOR_OP
|
|
|
|
AML_FIELD_OP
|
|
|
|
AML_INDEX_FIELD_OP
|
|
|
|
AML_BANK_FIELD_OP
|
|
|
|
AML_NAME_OP
|
|
|
|
AML_ALIAS_OP
|
|
|
|
AML_MUTEX_OP
|
|
|
|
AML_EVENT_OP
|
|
|
|
AML_REGION_OP
|
|
|
|
AML_CREATE_FIELD_OP
|
|
|
|
AML_CREATE_BIT_FIELD_OP
|
|
|
|
AML_CREATE_BYTE_FIELD_OP
|
|
|
|
AML_CREATE_WORD_FIELD_OP
|
|
|
|
AML_CREATE_DWORD_FIELD_OP
|
|
|
|
AML_CREATE_QWORD_FIELD_OP
|
|
|
|
AML_INT_NAMEDFIELD_OP
|
|
|
|
AML_INT_METHODCALL_OP
|
|
|
|
AML_INT_NAMEPATH_OP
|
|
|
|
|
|
|
|
Opcodes that are "namespace" opcodes (AML_NSOPCODE flag)
|
|
|
|
|
|
|
|
AML_SCOPE_OP
|
|
|
|
AML_DEVICE_OP
|
|
|
|
AML_THERMAL_ZONE_OP
|
|
|
|
AML_METHOD_OP
|
|
|
|
AML_POWER_RES_OP
|
|
|
|
AML_PROCESSOR_OP
|
|
|
|
AML_FIELD_OP
|
|
|
|
AML_INDEX_FIELD_OP
|
|
|
|
AML_BANK_FIELD_OP
|
|
|
|
AML_NAME_OP
|
|
|
|
AML_ALIAS_OP
|
|
|
|
AML_MUTEX_OP
|
|
|
|
AML_EVENT_OP
|
|
|
|
AML_REGION_OP
|
|
|
|
AML_INT_NAMEDFIELD_OP
|
|
|
|
|
|
|
|
Opcodes that have an associated namespace node (AML_NSNODE flag)
|
|
|
|
|
|
|
|
AML_SCOPE_OP
|
|
|
|
AML_DEVICE_OP
|
|
|
|
AML_THERMAL_ZONE_OP
|
|
|
|
AML_METHOD_OP
|
|
|
|
AML_POWER_RES_OP
|
|
|
|
AML_PROCESSOR_OP
|
|
|
|
AML_NAME_OP
|
|
|
|
AML_ALIAS_OP
|
|
|
|
AML_MUTEX_OP
|
|
|
|
AML_EVENT_OP
|
|
|
|
AML_REGION_OP
|
|
|
|
AML_CREATE_FIELD_OP
|
|
|
|
AML_CREATE_BIT_FIELD_OP
|
|
|
|
AML_CREATE_BYTE_FIELD_OP
|
|
|
|
AML_CREATE_WORD_FIELD_OP
|
|
|
|
AML_CREATE_DWORD_FIELD_OP
|
|
|
|
AML_CREATE_QWORD_FIELD_OP
|
|
|
|
AML_INT_NAMEDFIELD_OP
|
|
|
|
AML_INT_METHODCALL_OP
|
|
|
|
AML_INT_NAMEPATH_OP
|
|
|
|
|
|
|
|
Opcodes that define named ACPI objects (AML_NAMED flag)
|
|
|
|
|
|
|
|
AML_SCOPE_OP
|
|
|
|
AML_DEVICE_OP
|
|
|
|
AML_THERMAL_ZONE_OP
|
|
|
|
AML_METHOD_OP
|
|
|
|
AML_POWER_RES_OP
|
|
|
|
AML_PROCESSOR_OP
|
|
|
|
AML_NAME_OP
|
|
|
|
AML_ALIAS_OP
|
|
|
|
AML_MUTEX_OP
|
|
|
|
AML_EVENT_OP
|
|
|
|
AML_REGION_OP
|
|
|
|
AML_INT_NAMEDFIELD_OP
|
|
|
|
|
|
|
|
Opcodes that contain executable AML as part of the definition that
|
|
|
|
must be deferred until needed
|
|
|
|
|
|
|
|
AML_METHOD_OP
|
|
|
|
AML_VAR_PACKAGE_OP
|
|
|
|
AML_CREATE_FIELD_OP
|
|
|
|
AML_CREATE_BIT_FIELD_OP
|
|
|
|
AML_CREATE_BYTE_FIELD_OP
|
|
|
|
AML_CREATE_WORD_FIELD_OP
|
|
|
|
AML_CREATE_DWORD_FIELD_OP
|
|
|
|
AML_CREATE_QWORD_FIELD_OP
|
|
|
|
AML_REGION_OP
|
|
|
|
AML_BUFFER_OP
|
|
|
|
|
|
|
|
Field opcodes
|
|
|
|
|
|
|
|
AML_CREATE_FIELD_OP
|
|
|
|
AML_FIELD_OP
|
|
|
|
AML_INDEX_FIELD_OP
|
|
|
|
AML_BANK_FIELD_OP
|
|
|
|
|
|
|
|
Field "Create" opcodes
|
|
|
|
|
|
|
|
AML_CREATE_FIELD_OP
|
|
|
|
AML_CREATE_BIT_FIELD_OP
|
|
|
|
AML_CREATE_BYTE_FIELD_OP
|
|
|
|
AML_CREATE_WORD_FIELD_OP
|
|
|
|
AML_CREATE_DWORD_FIELD_OP
|
|
|
|
AML_CREATE_QWORD_FIELD_OP
|
|
|
|
|
2005-04-19 04:49:35 +02:00
|
|
|
******************************************************************************/
|
2008-04-10 17:06:37 +02:00
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
/*
|
2005-04-19 04:49:35 +02:00
|
|
|
* Master Opcode information table. A summary of everything we know about each
|
|
|
|
* opcode, all in one place.
|
2005-04-17 00:20:36 +02:00
|
|
|
*/
|
2005-08-05 06:44:28 +02:00
|
|
|
const struct acpi_opcode_info acpi_gbl_aml_op_info[AML_NUM_OPCODES] = {
|
2005-04-17 00:20:36 +02:00
|
|
|
/*! [Begin] no source code translation */
|
|
|
|
/* Index Name Parser Args Interpreter Args ObjectType Class Type Flags */
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 00 */ ACPI_OP("Zero", ARGP_ZERO_OP, ARGI_ZERO_OP, ACPI_TYPE_INTEGER,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 01 */ ACPI_OP("One", ARGP_ONE_OP, ARGI_ONE_OP, ACPI_TYPE_INTEGER,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 02 */ ACPI_OP("Alias", ARGP_ALIAS_OP, ARGI_ALIAS_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_ALIAS, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_SIMPLE,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 03 */ ACPI_OP("Name", ARGP_NAME_OP, ARGI_NAME_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 04 */ ACPI_OP("ByteConst", ARGP_BYTE_OP, ARGI_BYTE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LITERAL, AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 05 */ ACPI_OP("WordConst", ARGP_WORD_OP, ARGI_WORD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LITERAL, AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 06 */ ACPI_OP("DwordConst", ARGP_DWORD_OP, ARGI_DWORD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LITERAL, AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 07 */ ACPI_OP("String", ARGP_STRING_OP, ARGI_STRING_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_STRING, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LITERAL, AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 08 */ ACPI_OP("Scope", ARGP_SCOPE_OP, ARGI_SCOPE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_SCOPE, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_NO_OBJ,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 09 */ ACPI_OP("Buffer", ARGP_BUFFER_OP, ARGI_BUFFER_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_BUFFER, AML_CLASS_CREATE,
|
|
|
|
AML_TYPE_CREATE_OBJECT,
|
|
|
|
AML_HAS_ARGS | AML_DEFER | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0A */ ACPI_OP("Package", ARGP_PACKAGE_OP, ARGI_PACKAGE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_PACKAGE, AML_CLASS_CREATE,
|
|
|
|
AML_TYPE_CREATE_OBJECT,
|
|
|
|
AML_HAS_ARGS | AML_DEFER | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0B */ ACPI_OP("Method", ARGP_METHOD_OP, ARGI_METHOD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_METHOD, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_COMPLEX,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED | AML_DEFER),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0C */ ACPI_OP("Local0", ARGP_LOCAL0, ARGI_LOCAL0,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0D */ ACPI_OP("Local1", ARGP_LOCAL1, ARGI_LOCAL1,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0E */ ACPI_OP("Local2", ARGP_LOCAL2, ARGI_LOCAL2,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0F */ ACPI_OP("Local3", ARGP_LOCAL3, ARGI_LOCAL3,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 10 */ ACPI_OP("Local4", ARGP_LOCAL4, ARGI_LOCAL4,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 11 */ ACPI_OP("Local5", ARGP_LOCAL5, ARGI_LOCAL5,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 12 */ ACPI_OP("Local6", ARGP_LOCAL6, ARGI_LOCAL6,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 13 */ ACPI_OP("Local7", ARGP_LOCAL7, ARGI_LOCAL7,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LOCAL_VARIABLE, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 14 */ ACPI_OP("Arg0", ARGP_ARG0, ARGI_ARG0,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_METHOD_ARGUMENT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 15 */ ACPI_OP("Arg1", ARGP_ARG1, ARGI_ARG1,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_METHOD_ARGUMENT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 16 */ ACPI_OP("Arg2", ARGP_ARG2, ARGI_ARG2,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_METHOD_ARGUMENT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 17 */ ACPI_OP("Arg3", ARGP_ARG3, ARGI_ARG3,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_METHOD_ARGUMENT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 18 */ ACPI_OP("Arg4", ARGP_ARG4, ARGI_ARG4,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_METHOD_ARGUMENT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 19 */ ACPI_OP("Arg5", ARGP_ARG5, ARGI_ARG5,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_METHOD_ARGUMENT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 1A */ ACPI_OP("Arg6", ARGP_ARG6, ARGI_ARG6,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_METHOD_ARGUMENT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 1B */ ACPI_OP("Store", ARGP_STORE_OP, ARGI_STORE_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 1C */ ACPI_OP("RefOf", ARGP_REF_OF_OP, ARGI_REF_OF_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 1D */ ACPI_OP("Add", ARGP_ADD_OP, ARGI_ADD_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 1E */ ACPI_OP("Concatenate", ARGP_CONCAT_OP, ARGI_CONCAT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 1F */ ACPI_OP("Subtract", ARGP_SUBTRACT_OP, ARGI_SUBTRACT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 20 */ ACPI_OP("Increment", ARGP_INCREMENT_OP, ARGI_INCREMENT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 21 */ ACPI_OP("Decrement", ARGP_DECREMENT_OP, ARGI_DECREMENT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 22 */ ACPI_OP("Multiply", ARGP_MULTIPLY_OP, ARGI_MULTIPLY_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 23 */ ACPI_OP("Divide", ARGP_DIVIDE_OP, ARGI_DIVIDE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_2T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_2T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 24 */ ACPI_OP("ShiftLeft", ARGP_SHIFT_LEFT_OP, ARGI_SHIFT_LEFT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 25 */ ACPI_OP("ShiftRight", ARGP_SHIFT_RIGHT_OP, ARGI_SHIFT_RIGHT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 26 */ ACPI_OP("And", ARGP_BIT_AND_OP, ARGI_BIT_AND_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 27 */ ACPI_OP("NAnd", ARGP_BIT_NAND_OP, ARGI_BIT_NAND_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 28 */ ACPI_OP("Or", ARGP_BIT_OR_OP, ARGI_BIT_OR_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 29 */ ACPI_OP("NOr", ARGP_BIT_NOR_OP, ARGI_BIT_NOR_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 2A */ ACPI_OP("XOr", ARGP_BIT_XOR_OP, ARGI_BIT_XOR_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_MATH | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 2B */ ACPI_OP("Not", ARGP_BIT_NOT_OP, ARGI_BIT_NOT_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 2C */ ACPI_OP("FindSetLeftBit", ARGP_FIND_SET_LEFT_BIT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_FIND_SET_LEFT_BIT_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 2D */ ACPI_OP("FindSetRightBit", ARGP_FIND_SET_RIGHT_BIT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_FIND_SET_RIGHT_BIT_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 2E */ ACPI_OP("DerefOf", ARGP_DEREF_OF_OP, ARGI_DEREF_OF_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_1R, AML_FLAGS_EXEC_1A_0T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 2F */ ACPI_OP("Notify", ARGP_NOTIFY_OP, ARGI_NOTIFY_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_0T_0R, AML_FLAGS_EXEC_2A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 30 */ ACPI_OP("SizeOf", ARGP_SIZE_OF_OP, ARGI_SIZE_OF_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 31 */ ACPI_OP("Index", ARGP_INDEX_OP, ARGI_INDEX_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 32 */ ACPI_OP("Match", ARGP_MATCH_OP, ARGI_MATCH_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_6A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_6A_0T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 33 */ ACPI_OP("CreateDWordField", ARGP_CREATE_DWORD_FIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_CREATE_DWORD_FIELD_OP,
|
|
|
|
ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
|
|
|
|
AML_TYPE_CREATE_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
|
|
|
|
AML_DEFER | AML_CREATE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 34 */ ACPI_OP("CreateWordField", ARGP_CREATE_WORD_FIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_CREATE_WORD_FIELD_OP,
|
|
|
|
ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
|
|
|
|
AML_TYPE_CREATE_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
|
|
|
|
AML_DEFER | AML_CREATE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 35 */ ACPI_OP("CreateByteField", ARGP_CREATE_BYTE_FIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_CREATE_BYTE_FIELD_OP,
|
|
|
|
ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
|
|
|
|
AML_TYPE_CREATE_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
|
|
|
|
AML_DEFER | AML_CREATE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 36 */ ACPI_OP("CreateBitField", ARGP_CREATE_BIT_FIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_CREATE_BIT_FIELD_OP,
|
|
|
|
ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
|
|
|
|
AML_TYPE_CREATE_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
|
|
|
|
AML_DEFER | AML_CREATE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 37 */ ACPI_OP("ObjectType", ARGP_TYPE_OP, ARGI_TYPE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_1R | AML_NO_OPERAND_RESOLVE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 38 */ ACPI_OP("LAnd", ARGP_LAND_OP, ARGI_LAND_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 39 */ ACPI_OP("LOr", ARGP_LOR_OP, ARGI_LOR_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL_NUMERIC | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 3A */ ACPI_OP("LNot", ARGP_LNOT_OP, ARGI_LNOT_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 3B */ ACPI_OP("LEqual", ARGP_LEQUAL_OP, ARGI_LEQUAL_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 3C */ ACPI_OP("LGreater", ARGP_LGREATER_OP, ARGI_LGREATER_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 3D */ ACPI_OP("LLess", ARGP_LLESS_OP, ARGI_LLESS_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_0T_1R | AML_LOGICAL | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 3E */ ACPI_OP("If", ARGP_IF_OP, ARGI_IF_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 3F */ ACPI_OP("Else", ARGP_ELSE_OP, ARGI_ELSE_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 40 */ ACPI_OP("While", ARGP_WHILE_OP, ARGI_WHILE_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_CONTROL, AML_TYPE_CONTROL, AML_HAS_ARGS),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 41 */ ACPI_OP("Noop", ARGP_NOOP_OP, ARGI_NOOP_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 42 */ ACPI_OP("Return", ARGP_RETURN_OP, ARGI_RETURN_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_CONTROL,
|
|
|
|
AML_TYPE_CONTROL, AML_HAS_ARGS),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 43 */ ACPI_OP("Break", ARGP_BREAK_OP, ARGI_BREAK_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 44 */ ACPI_OP("BreakPoint", ARGP_BREAK_POINT_OP, ARGI_BREAK_POINT_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 45 */ ACPI_OP("Ones", ARGP_ONES_OP, ARGI_ONES_OP, ACPI_TYPE_INTEGER,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_ARGUMENT, AML_TYPE_CONSTANT, AML_CONSTANT),
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* Prefixed opcodes (Two-byte opcodes with a prefix op) */
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 46 */ ACPI_OP("Mutex", ARGP_MUTEX_OP, ARGI_MUTEX_OP, ACPI_TYPE_MUTEX,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 47 */ ACPI_OP("Event", ARGP_EVENT_OP, ARGI_EVENT_OP, ACPI_TYPE_EVENT,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_SIMPLE,
|
|
|
|
AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 48 */ ACPI_OP("CondRefOf", ARGP_COND_REF_OF_OP, ARGI_COND_REF_OF_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 49 */ ACPI_OP("CreateField", ARGP_CREATE_FIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_CREATE_FIELD_OP, ACPI_TYPE_BUFFER_FIELD,
|
|
|
|
AML_CLASS_CREATE, AML_TYPE_CREATE_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
|
|
|
|
AML_DEFER | AML_FIELD | AML_CREATE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 4A */ ACPI_OP("Load", ARGP_LOAD_OP, ARGI_LOAD_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_0R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 4B */ ACPI_OP("Stall", ARGP_STALL_OP, ARGI_STALL_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 4C */ ACPI_OP("Sleep", ARGP_SLEEP_OP, ARGI_SLEEP_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 4D */ ACPI_OP("Acquire", ARGP_ACQUIRE_OP, ARGI_ACQUIRE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_0T_1R, AML_FLAGS_EXEC_2A_0T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 4E */ ACPI_OP("Signal", ARGP_SIGNAL_OP, ARGI_SIGNAL_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 4F */ ACPI_OP("Wait", ARGP_WAIT_OP, ARGI_WAIT_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_0T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 50 */ ACPI_OP("Reset", ARGP_RESET_OP, ARGI_RESET_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_0T_0R,
|
|
|
|
AML_FLAGS_EXEC_1A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 51 */ ACPI_OP("Release", ARGP_RELEASE_OP, ARGI_RELEASE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 52 */ ACPI_OP("FromBCD", ARGP_FROM_BCD_OP, ARGI_FROM_BCD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 53 */ ACPI_OP("ToBCD", ARGP_TO_BCD_OP, ARGI_TO_BCD_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 54 */ ACPI_OP("Unload", ARGP_UNLOAD_OP, ARGI_UNLOAD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_0T_0R, AML_FLAGS_EXEC_1A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 55 */ ACPI_OP("Revision", ARGP_REVISION_OP, ARGI_REVISION_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_CONSTANT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 56 */ ACPI_OP("Debug", ARGP_DEBUG_OP, ARGI_DEBUG_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_CONSTANT, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 57 */ ACPI_OP("Fatal", ARGP_FATAL_OP, ARGI_FATAL_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_0T_0R,
|
|
|
|
AML_FLAGS_EXEC_3A_0T_0R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 58 */ ACPI_OP("OperationRegion", ARGP_REGION_OP, ARGI_REGION_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_REGION, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_COMPLEX,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED | AML_DEFER),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 59 */ ACPI_OP("Field", ARGP_FIELD_OP, ARGI_FIELD_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_FIELD),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 5A */ ACPI_OP("Device", ARGP_DEVICE_OP, ARGI_DEVICE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_DEVICE, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_NO_OBJ,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 5B */ ACPI_OP("Processor", ARGP_PROCESSOR_OP, ARGI_PROCESSOR_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_PROCESSOR, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_SIMPLE,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 5C */ ACPI_OP("PowerResource", ARGP_POWER_RES_OP, ARGI_POWER_RES_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_POWER, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_SIMPLE,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 5D */ ACPI_OP("ThermalZone", ARGP_THERMAL_ZONE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_THERMAL_ZONE_OP, ACPI_TYPE_THERMAL,
|
|
|
|
AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_NO_OBJ,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
|
|
|
AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 5E */ ACPI_OP("IndexField", ARGP_INDEX_FIELD_OP, ARGI_INDEX_FIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_FIELD),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 5F */ ACPI_OP("BankField", ARGP_BANK_FIELD_OP, ARGI_BANK_FIELD_OP,
|
2008-04-10 17:06:41 +02:00
|
|
|
ACPI_TYPE_LOCAL_BANK_FIELD, AML_CLASS_NAMED_OBJECT,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_TYPE_NAMED_FIELD,
|
2008-04-10 17:06:41 +02:00
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_FIELD |
|
|
|
|
AML_DEFER),
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* Internal opcodes that map to invalid AML opcodes */
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 60 */ ACPI_OP("LNotEqual", ARGP_LNOTEQUAL_OP, ARGI_LNOTEQUAL_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_INTERNAL,
|
|
|
|
AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 61 */ ACPI_OP("LLessEqual", ARGP_LLESSEQUAL_OP, ARGI_LLESSEQUAL_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_INTERNAL,
|
|
|
|
AML_TYPE_BOGUS, AML_HAS_ARGS | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 62 */ ACPI_OP("LGreaterEqual", ARGP_LGREATEREQUAL_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_LGREATEREQUAL_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_INTERNAL, AML_TYPE_BOGUS,
|
|
|
|
AML_HAS_ARGS | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 63 */ ACPI_OP("-NamePath-", ARGP_NAMEPATH_OP, ARGI_NAMEPATH_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_LOCAL_REFERENCE, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LITERAL, AML_NSOBJECT | AML_NSNODE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 64 */ ACPI_OP("-MethodCall-", ARGP_METHODCALL_OP, ARGI_METHODCALL_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_METHOD, AML_CLASS_METHOD_CALL,
|
|
|
|
AML_TYPE_METHOD_CALL,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 65 */ ACPI_OP("-ByteList-", ARGP_BYTELIST_OP, ARGI_BYTELIST_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LITERAL, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 66 */ ACPI_OP("-ReservedField-", ARGP_RESERVEDFIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_RESERVEDFIELD_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 67 */ ACPI_OP("-NamedField-", ARGP_NAMEDFIELD_OP, ARGI_NAMEDFIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_INTERNAL,
|
|
|
|
AML_TYPE_BOGUS,
|
|
|
|
AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE | AML_NAMED),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 68 */ ACPI_OP("-AccessField-", ARGP_ACCESSFIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_ACCESSFIELD_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 69 */ ACPI_OP("-StaticString", ARGP_STATICSTRING_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_STATICSTRING_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_INTERNAL, AML_TYPE_BOGUS, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 6A */ ACPI_OP("-Return Value-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_RETURN_VALUE, AML_TYPE_RETURN,
|
|
|
|
AML_HAS_ARGS | AML_HAS_RETVAL),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 6B */ ACPI_OP("-UNKNOWN_OP-", ARG_NONE, ARG_NONE, ACPI_TYPE_INVALID,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_UNKNOWN, AML_TYPE_BOGUS, AML_HAS_ARGS),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 6C */ ACPI_OP("-ASCII_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_ASCII, AML_TYPE_BOGUS, AML_HAS_ARGS),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 6D */ ACPI_OP("-PREFIX_ONLY-", ARG_NONE, ARG_NONE, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_PREFIX, AML_TYPE_BOGUS, AML_HAS_ARGS),
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* ACPI 2.0 opcodes */
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 6E */ ACPI_OP("QwordConst", ARGP_QWORD_OP, ARGI_QWORD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_INTEGER, AML_CLASS_ARGUMENT,
|
|
|
|
AML_TYPE_LITERAL, AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 6F */ ACPI_OP("Package", /* Var */ ARGP_VAR_PACKAGE_OP,
|
|
|
|
ARGI_VAR_PACKAGE_OP, ACPI_TYPE_PACKAGE,
|
|
|
|
AML_CLASS_CREATE, AML_TYPE_CREATE_OBJECT,
|
|
|
|
AML_HAS_ARGS | AML_DEFER),
|
|
|
|
/* 70 */ ACPI_OP("ConcatenateResTemplate", ARGP_CONCAT_RES_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_CONCAT_RES_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 71 */ ACPI_OP("Mod", ARGP_MOD_OP, ARGI_MOD_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 72 */ ACPI_OP("CreateQWordField", ARGP_CREATE_QWORD_FIELD_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_CREATE_QWORD_FIELD_OP,
|
|
|
|
ACPI_TYPE_BUFFER_FIELD, AML_CLASS_CREATE,
|
|
|
|
AML_TYPE_CREATE_FIELD,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSNODE |
|
|
|
|
AML_DEFER | AML_CREATE),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 73 */ ACPI_OP("ToBuffer", ARGP_TO_BUFFER_OP, ARGI_TO_BUFFER_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 74 */ ACPI_OP("ToDecimalString", ARGP_TO_DEC_STR_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_TO_DEC_STR_OP, ACPI_TYPE_ANY,
|
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 75 */ ACPI_OP("ToHexString", ARGP_TO_HEX_STR_OP, ARGI_TO_HEX_STR_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 76 */ ACPI_OP("ToInteger", ARGP_TO_INTEGER_OP, ARGI_TO_INTEGER_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_1A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 77 */ ACPI_OP("ToString", ARGP_TO_STRING_OP, ARGI_TO_STRING_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_2A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_2A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 78 */ ACPI_OP("CopyObject", ARGP_COPY_OP, ARGI_COPY_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_1A_1T_1R, AML_FLAGS_EXEC_1A_1T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 79 */ ACPI_OP("Mid", ARGP_MID_OP, ARGI_MID_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_3A_1T_1R,
|
|
|
|
AML_FLAGS_EXEC_3A_1T_1R | AML_CONSTANT),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 7A */ ACPI_OP("Continue", ARGP_CONTINUE_OP, ARGI_CONTINUE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_CONTROL, AML_TYPE_CONTROL, 0),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 7B */ ACPI_OP("LoadTable", ARGP_LOAD_TABLE_OP, ARGI_LOAD_TABLE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_EXECUTE,
|
|
|
|
AML_TYPE_EXEC_6A_0T_1R, AML_FLAGS_EXEC_6A_0T_1R),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 7C */ ACPI_OP("DataTableRegion", ARGP_DATA_REGION_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ARGI_DATA_REGION_OP, ACPI_TYPE_REGION,
|
2008-04-10 17:06:41 +02:00
|
|
|
AML_CLASS_NAMED_OBJECT, AML_TYPE_NAMED_COMPLEX,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE |
|
2008-04-10 17:06:41 +02:00
|
|
|
AML_NSNODE | AML_NAMED | AML_DEFER),
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 7D */ ACPI_OP("[EvalSubTree]", ARGP_SCOPE_OP, ARGI_SCOPE_OP,
|
2007-05-10 05:34:35 +02:00
|
|
|
ACPI_TYPE_ANY, AML_CLASS_NAMED_OBJECT,
|
|
|
|
AML_TYPE_NAMED_NO_OBJ,
|
|
|
|
AML_HAS_ARGS | AML_NSOBJECT | AML_NSOPCODE | AML_NSNODE),
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* ACPI 3.0 opcodes */
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 7E */ ACPI_OP("Timer", ARGP_TIMER_OP, ARGI_TIMER_OP, ACPI_TYPE_ANY,
|
2007-05-10 05:34:35 +02:00
|
|
|
AML_CLASS_EXECUTE, AML_TYPE_EXEC_0A_0T_1R,
|
|
|
|
AML_FLAGS_EXEC_0A_0T_1R)
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/*! [End] no source code translation !*/
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This table is directly indexed by the opcodes, and returns an
|
|
|
|
* index into the table above
|
|
|
|
*/
|
2005-08-05 06:44:28 +02:00
|
|
|
static const u8 acpi_gbl_short_op_index[256] = {
|
2005-04-17 00:20:36 +02:00
|
|
|
/* 0 1 2 3 4 5 6 7 */
|
|
|
|
/* 8 9 A B C D E F */
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0x00 */ 0x00, 0x01, _UNK, _UNK, _UNK, _UNK, 0x02, _UNK,
|
|
|
|
/* 0x08 */ 0x03, _UNK, 0x04, 0x05, 0x06, 0x07, 0x6E, _UNK,
|
|
|
|
/* 0x10 */ 0x08, 0x09, 0x0a, 0x6F, 0x0b, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x18 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x20 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x28 */ _UNK, _UNK, _UNK, _UNK, _UNK, 0x63, _PFX, _PFX,
|
|
|
|
/* 0x30 */ 0x67, 0x66, 0x68, 0x65, 0x69, 0x64, 0x6A, 0x7D,
|
|
|
|
/* 0x38 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x40 */ _UNK, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC,
|
|
|
|
/* 0x48 */ _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC,
|
|
|
|
/* 0x50 */ _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC, _ASC,
|
|
|
|
/* 0x58 */ _ASC, _ASC, _ASC, _UNK, _PFX, _UNK, _PFX, _ASC,
|
|
|
|
/* 0x60 */ 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11, 0x12, 0x13,
|
|
|
|
/* 0x68 */ 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1a, _UNK,
|
|
|
|
/* 0x70 */ 0x1b, 0x1c, 0x1d, 0x1e, 0x1f, 0x20, 0x21, 0x22,
|
|
|
|
/* 0x78 */ 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x2a,
|
|
|
|
/* 0x80 */ 0x2b, 0x2c, 0x2d, 0x2e, 0x70, 0x71, 0x2f, 0x30,
|
|
|
|
/* 0x88 */ 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x72,
|
|
|
|
/* 0x90 */ 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x73, 0x74,
|
|
|
|
/* 0x98 */ 0x75, 0x76, _UNK, _UNK, 0x77, 0x78, 0x79, 0x7A,
|
|
|
|
/* 0xA0 */ 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x60, 0x61,
|
|
|
|
/* 0xA8 */ 0x62, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xB0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xB8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xC0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xC8 */ _UNK, _UNK, _UNK, _UNK, 0x44, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xD0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xD8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xE0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xE8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xF0 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0xF8 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 0x45,
|
2005-04-17 00:20:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This table is indexed by the second opcode of the extended opcode
|
|
|
|
* pair. It returns an index into the opcode table (acpi_gbl_aml_op_info)
|
|
|
|
*/
|
2005-08-05 06:44:28 +02:00
|
|
|
static const u8 acpi_gbl_long_op_index[NUM_EXTENDED_OPCODE] = {
|
2005-04-17 00:20:36 +02:00
|
|
|
/* 0 1 2 3 4 5 6 7 */
|
|
|
|
/* 8 9 A B C D E F */
|
2005-08-05 06:44:28 +02:00
|
|
|
/* 0x00 */ _UNK, 0x46, 0x47, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x08 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x10 */ _UNK, _UNK, 0x48, 0x49, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x18 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, 0x7B,
|
|
|
|
/* 0x20 */ 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51,
|
|
|
|
/* 0x28 */ 0x52, 0x53, 0x54, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x30 */ 0x55, 0x56, 0x57, 0x7e, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x38 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x40 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x48 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x50 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x58 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x60 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x68 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x70 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x78 */ _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK, _UNK,
|
|
|
|
/* 0x80 */ 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
|
|
|
|
/* 0x88 */ 0x7C,
|
2005-04-17 00:20:36 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: acpi_ps_get_opcode_info
|
|
|
|
*
|
|
|
|
* PARAMETERS: Opcode - The AML opcode
|
|
|
|
*
|
2005-04-19 04:49:35 +02:00
|
|
|
* RETURN: A pointer to the info about the opcode.
|
2005-04-17 00:20:36 +02:00
|
|
|
*
|
|
|
|
* DESCRIPTION: Find AML opcode description based on the opcode.
|
|
|
|
* NOTE: This procedure must ALWAYS return a valid pointer!
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 23:15:00 +02:00
|
|
|
ACPI_FUNCTION_NAME(ps_get_opcode_info);
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Detect normal 8-bit opcode or extended 16-bit opcode
|
|
|
|
*/
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 06:00:00 +02:00
|
|
|
if (!(opcode & 0xFF00)) {
|
2006-10-02 06:00:00 +02:00
|
|
|
|
2005-04-17 00:20:36 +02:00
|
|
|
/* Simple (8-bit) opcode: 0-255, can't index beyond table */
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
return (&acpi_gbl_aml_op_info
|
|
|
|
[acpi_gbl_short_op_index[(u8) opcode]]);
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 06:00:00 +02:00
|
|
|
}
|
2005-04-17 00:20:36 +02:00
|
|
|
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 06:00:00 +02:00
|
|
|
if (((opcode & 0xFF00) == AML_EXTENDED_OPCODE) &&
|
2005-08-05 06:44:28 +02:00
|
|
|
(((u8) opcode) <= MAX_EXTENDED_OPCODE)) {
|
2006-10-02 06:00:00 +02:00
|
|
|
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 06:00:00 +02:00
|
|
|
/* Valid extended (16-bit) opcode */
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
return (&acpi_gbl_aml_op_info
|
|
|
|
[acpi_gbl_long_op_index[(u8) opcode]]);
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
|
ACPICA 20050617-0624 from Bob Moore <robert.moore@intel.com>
ACPICA 20050617:
Moved the object cache operations into the OS interface
layer (OSL) to allow the host OS to handle these operations
if desired (for example, the Linux OSL will invoke the
slab allocator). This support is optional; the compile
time define ACPI_USE_LOCAL_CACHE may be used to utilize
the original cache code in the ACPI CA core. The new OSL
interfaces are shown below. See utalloc.c for an example
implementation, and acpiosxf.h for the exact interface
definitions. Thanks to Alexey Starikovskiy.
acpi_os_create_cache
acpi_os_delete_cache
acpi_os_purge_cache
acpi_os_acquire_object
acpi_os_release_object
Modified the interfaces to acpi_os_acquire_lock and
acpi_os_release_lock to return and restore a flags
parameter. This fits better with many OS lock models.
Note: the current execution state (interrupt handler
or not) is no longer passed to these interfaces. If
necessary, the OSL must determine this state by itself, a
simple and fast operation. Thanks to Alexey Starikovskiy.
Fixed a problem in the ACPI table handling where a valid
XSDT was assumed present if the revision of the RSDP
was 2 or greater. According to the ACPI specification,
the XSDT is optional in all cases, and the table manager
therefore now checks for both an RSDP >=2 and a valid
XSDT pointer. Otherwise, the RSDT pointer is used.
Some ACPI 2.0 compliant BIOSs contain only the RSDT.
Fixed an interpreter problem with the Mid() operator in the
case of an input string where the resulting output string
is of zero length. It now correctly returns a valid,
null terminated string object instead of a string object
with a null pointer.
Fixed a problem with the control method argument handling
to allow a store to an Arg object that already contains an
object of type Device. The Device object is now correctly
overwritten. Previously, an error was returned.
ACPICA 20050624:
Modified the new OSL cache interfaces to use ACPI_CACHE_T
as the type for the host-defined cache object. This allows
the OSL implementation to define and type this object in
any manner desired, simplifying the OSL implementation.
For example, ACPI_CACHE_T is defined as kmem_cache_t for
Linux, and should be defined in the OS-specific header
file for other operating systems as required.
Changed the interface to AcpiOsAcquireObject to directly
return the requested object as the function return (instead
of ACPI_STATUS.) This change was made for performance
reasons, since this is the purpose of the interface in the
first place. acpi_os_acquire_object is now similar to the
acpi_os_allocate interface. Thanks to Alexey Starikovskiy.
Modified the initialization sequence in
acpi_initialize_subsystem to call the OSL interface
acpi_osl_initialize first, before any local initialization.
This change was required because the global initialization
now calls OSL interfaces.
Restructured the code base to split some files because
of size and/or because the code logically belonged in a
separate file. New files are listed below.
utilities/utcache.c /* Local cache interfaces */
utilities/utmutex.c /* Local mutex support */
utilities/utstate.c /* State object support */
parser/psloop.c /* Main AML parse loop */
Signed-off-by: Len Brown <len.brown@intel.com>
2005-06-24 06:00:00 +02:00
|
|
|
/* Unknown AML opcode */
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2006-01-13 22:22:00 +01:00
|
|
|
ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
|
2005-08-05 06:44:28 +02:00
|
|
|
"Unknown AML opcode [%4.4X]\n", opcode));
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
return (&acpi_gbl_aml_op_info[_UNK]);
|
2005-04-17 00:20:36 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: acpi_ps_get_opcode_name
|
|
|
|
*
|
|
|
|
* PARAMETERS: Opcode - The AML opcode
|
|
|
|
*
|
|
|
|
* RETURN: A pointer to the name of the opcode (ASCII String)
|
|
|
|
* Note: Never returns NULL.
|
|
|
|
*
|
|
|
|
* DESCRIPTION: Translate an opcode into a human-readable string
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
char *acpi_ps_get_opcode_name(u16 opcode)
|
2005-04-17 00:20:36 +02:00
|
|
|
{
|
|
|
|
#if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUG_OUTPUT)
|
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
const struct acpi_opcode_info *op;
|
2005-04-17 00:20:36 +02:00
|
|
|
|
2005-08-05 06:44:28 +02:00
|
|
|
op = acpi_ps_get_opcode_info(opcode);
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
/* Always guaranteed to return a valid pointer */
|
|
|
|
|
|
|
|
return (op->name);
|
|
|
|
|
|
|
|
#else
|
ACPI: ACPICA 20060421
Removed a device initialization optimization introduced in
20051216 where the _STA method was not run unless an _INI
was also present for the same device. This optimization
could cause problems because it could allow _INI methods
to be run within a not-present device subtree (If a
not-present device had no _INI, _STA would not be run,
the not-present status would not be discovered, and the
children of the device would be incorrectly traversed.)
Implemented a new _STA optimization where namespace
subtrees that do not contain _INI are identified and
ignored during device initialization. Selectively running
_STA can significantly improve boot time on large machines
(with assistance from Len Brown.)
Implemented support for the device initialization case
where the returned _STA flags indicate a device not-present
but functioning. In this case, _INI is not run, but the
device children are examined for presence, as per the
ACPI specification.
Implemented an additional change to the IndexField support
in order to conform to MS behavior. The value written to
the Index Register is not simply a byte offset, it is a
byte offset in units of the access width of the parent
Index Field. (Fiodor Suietov)
Defined and deployed a new OSL interface,
acpi_os_validate_address(). This interface is called during
the creation of all AML operation regions, and allows
the host OS to exert control over what addresses it will
allow the AML code to access. Operation Regions whose
addresses are disallowed will cause a runtime exception
when they are actually accessed (will not affect or abort
table loading.)
Defined and deployed a new OSL interface,
acpi_os_validate_interface(). This interface allows the host OS
to match the various "optional" interface/behavior strings
for the _OSI predefined control method as appropriate
(with assistance from Bjorn Helgaas.)
Restructured and corrected various problems in the
exception handling code paths within DsCallControlMethod
and DsTerminateControlMethod in dsmethod (with assistance
from Takayoshi Kochi.)
Modified the Linux source converter to ignore quoted string
literals while converting identifiers from mixed to lower
case. This will correct problems with the disassembler
and other areas where such strings must not be modified.
The ACPI_FUNCTION_* macros no longer require quotes around
the function name. This allows the Linux source converter
to convert the names, now that the converter ignores
quoted strings.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2006-04-21 23:15:00 +02:00
|
|
|
return ("OpcodeName unavailable");
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
2008-04-10 17:06:37 +02:00
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* FUNCTION: acpi_ps_get_argument_count
|
|
|
|
*
|
|
|
|
* PARAMETERS: op_type - Type associated with the AML opcode
|
|
|
|
*
|
|
|
|
* RETURN: Argument count
|
|
|
|
*
|
|
|
|
* DESCRIPTION: Obtain the number of expected arguments for an AML opcode
|
|
|
|
*
|
|
|
|
******************************************************************************/
|
|
|
|
|
|
|
|
u8 acpi_ps_get_argument_count(u32 op_type)
|
|
|
|
{
|
|
|
|
|
|
|
|
if (op_type <= AML_TYPE_EXEC_6A_0T_1R) {
|
|
|
|
return (acpi_gbl_argument_count[op_type]);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (0);
|
|
|
|
}
|