acinterp.h revision 27f7c58306b55fe9e0cfd2934039be1729b505e9
2N/A/******************************************************************************
2N/A *
2N/A * Name: acinterp.h - Interpreter subcomponent prototypes and defines
2N/A * $Revision: 1.167 $
2N/A *
2N/A *****************************************************************************/
2N/A
2N/A/******************************************************************************
2N/A *
2N/A * 1. Copyright Notice
2N/A *
2N/A * Some or all of this work - Copyright (c) 1999 - 2006, Intel Corp.
2N/A * All rights reserved.
2N/A *
2N/A * 2. License
2N/A *
2N/A * 2.1. This is your license from Intel Corp. under its intellectual property
2N/A * rights. You may have additional license terms from the party that provided
2N/A * you this software, covering your right to use that party's intellectual
2N/A * property rights.
2N/A *
2N/A * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
2N/A * copy of the source code appearing in this file ("Covered Code") an
2N/A * irrevocable, perpetual, worldwide license under Intel's copyrights in the
2N/A * base code distributed originally by Intel ("Original Intel Code") to copy,
2N/A * make derivatives, distribute, use and display any portion of the Covered
2N/A * Code in any form, with the right to sublicense such rights; and
2N/A *
2N/A * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
2N/A * license (with the right to sublicense), under only those claims of Intel
2N/A * patents that are infringed by the Original Intel Code, to make, use, sell,
2N/A * offer to sell, and import the Covered Code and derivative works thereof
2N/A * solely to the minimum extent necessary to exercise the above copyright
2N/A * license, and in no event shall the patent license extend to any additions
2N/A * to or modifications of the Original Intel Code. No other license or right
2N/A * is granted directly or by implication, estoppel or otherwise;
2N/A *
2N/A * The above copyright and patent license is granted only if the following
2N/A * conditions are met:
2N/A *
2N/A * 3. Conditions
2N/A *
2N/A * 3.1. Redistribution of Source with Rights to Further Distribute Source.
2N/A * Redistribution of source code of any substantial portion of the Covered
2N/A * Code or modification with rights to further distribute source must include
2N/A * the above Copyright Notice, the above License, this list of Conditions,
2N/A * and the following Disclaimer and Export Compliance provision. In addition,
2N/A * Licensee must cause all Covered Code to which Licensee contributes to
2N/A * contain a file documenting the changes Licensee made to create that Covered
2N/A * Code and the date of any change. Licensee must include in that file the
2N/A * documentation of any changes made by any predecessor Licensee. Licensee
2N/A * must include a prominent statement that the modification is derived,
2N/A * directly or indirectly, from Original Intel Code.
2N/A *
2N/A * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
2N/A * Redistribution of source code of any substantial portion of the Covered
2N/A * Code or modification without rights to further distribute source must
2N/A * include the following Disclaimer and Export Compliance provision in the
2N/A * documentation and/or other materials provided with distribution. In
2N/A * addition, Licensee may not authorize further sublicense of source of any
2N/A * portion of the Covered Code, and must include terms to the effect that the
2N/A * license from Licensee to its licensee is limited to the intellectual
2N/A * property embodied in the software Licensee provides to its licensee, and
2N/A * not to intellectual property embodied in modifications its licensee may
2N/A * make.
2N/A *
2N/A * 3.3. Redistribution of Executable. Redistribution in executable form of any
2N/A * substantial portion of the Covered Code or modification must reproduce the
2N/A * above Copyright Notice, and the following Disclaimer and Export Compliance
2N/A * provision in the documentation and/or other materials provided with the
2N/A * distribution.
2N/A *
2N/A * 3.4. Intel retains all right, title, and interest in and to the Original
2N/A * Intel Code.
2N/A *
2N/A * 3.5. Neither the name Intel nor any other trademark owned or controlled by
2N/A * Intel shall be used in advertising or otherwise to promote the sale, use or
2N/A * other dealings in products derived from or relating to the Covered Code
2N/A * without prior written authorization from Intel.
2N/A *
2N/A * 4. Disclaimer and Export Compliance
2N/A *
2N/A * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
2N/A * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
2N/A * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
2N/A * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
2N/A * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
2N/A * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
2N/A * PARTICULAR PURPOSE.
2N/A *
2N/A * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
2N/A * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
2N/A * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
2N/A * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
2N/A * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
2N/A * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
2N/A * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
2N/A * LIMITED REMEDY.
2N/A *
2N/A * 4.3. Licensee shall not export, either directly or indirectly, any of this
2N/A * software or system incorporating such software without first obtaining any
2N/A * required license or other approval from the U. S. Department of Commerce or
2N/A * any other agency or department of the United States Government. In the
2N/A * event Licensee exports any such software from the United States or
2N/A * re-exports any such software from a foreign destination, Licensee shall
2N/A * ensure that the distribution and export/re-export of the software is in
2N/A * compliance with all laws, regulations, orders, or other restrictions of the
2N/A * U.S. Export Administration Regulations. Licensee agrees that neither it nor
2N/A * any of its subsidiaries will export/re-export any technical data, process,
2N/A * software, or service, directly or indirectly, to any country for which the
2N/A * United States government or any agency thereof requires an export license,
2N/A * other governmental approval, or letter of assurance, without first obtaining
2N/A * such license, approval or letter.
2N/A *
2N/A *****************************************************************************/
2N/A
2N/A#ifndef __ACINTERP_H__
2N/A#define __ACINTERP_H__
2N/A
2N/A
2N/A#define ACPI_WALK_OPERANDS (&(WalkState->Operands [WalkState->NumOperands -1]))
2N/A
2N/A/* Macros for tables used for debug output */
2N/A
2N/A#define ACPI_EXD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_OPERAND_OBJECT,f)
2N/A#define ACPI_EXD_NSOFFSET(f) (UINT8) ACPI_OFFSET (ACPI_NAMESPACE_NODE,f)
2N/A#define ACPI_EXD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_EXDUMP_INFO))
2N/A
2N/A/*
2N/A * If possible, pack the following structures to byte alignment, since we
2N/A * don't care about performance for debug output. Two cases where we cannot
2N/A * pack the structures:
2N/A *
2N/A * 1) Hardware does not support misaligned memory transfers
2N/A * 2) Compiler does not support pointers within packed structures
2N/A */
2N/A#if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED))
2N/A#pragma pack(1)
2N/A#endif
2N/A
2N/Atypedef const struct acpi_exdump_info
2N/A{
2N/A UINT8 Opcode;
2N/A UINT8 Offset;
2N/A char *Name;
2N/A
2N/A} ACPI_EXDUMP_INFO;
2N/A
2N/A/* Values for the Opcode field above */
2N/A
2N/A#define ACPI_EXD_INIT 0
2N/A#define ACPI_EXD_TYPE 1
2N/A#define ACPI_EXD_UINT8 2
2N/A#define ACPI_EXD_UINT16 3
2N/A#define ACPI_EXD_UINT32 4
2N/A#define ACPI_EXD_UINT64 5
2N/A#define ACPI_EXD_LITERAL 6
2N/A#define ACPI_EXD_POINTER 7
2N/A#define ACPI_EXD_ADDRESS 8
2N/A#define ACPI_EXD_STRING 9
2N/A#define ACPI_EXD_BUFFER 10
2N/A#define ACPI_EXD_PACKAGE 11
2N/A#define ACPI_EXD_FIELD 12
2N/A#define ACPI_EXD_REFERENCE 13
2N/A
2N/A/* restore default alignment */
2N/A
2N/A#pragma pack()
2N/A
2N/A
2N/A/*
2N/A * exconvrt - object conversion
2N/A */
2N/AACPI_STATUS
2N/AAcpiExConvertToInteger (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT **ResultDesc,
2N/A UINT32 Flags);
2N/A
2N/AACPI_STATUS
2N/AAcpiExConvertToBuffer (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT **ResultDesc);
2N/A
2N/AACPI_STATUS
2N/AAcpiExConvertToString (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT **ResultDesc,
2N/A UINT32 Type);
2N/A
2N/A/* Types for ->String conversion */
2N/A
2N/A#define ACPI_EXPLICIT_BYTE_COPY 0x00000000
2N/A#define ACPI_EXPLICIT_CONVERT_HEX 0x00000001
2N/A#define ACPI_IMPLICIT_CONVERT_HEX 0x00000002
2N/A#define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003
2N/A
2N/AACPI_STATUS
2N/AAcpiExConvertToTargetType (
2N/A ACPI_OBJECT_TYPE DestinationType,
2N/A ACPI_OPERAND_OBJECT *SourceDesc,
2N/A ACPI_OPERAND_OBJECT **ResultDesc,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/A
2N/A/*
2N/A * exfield - ACPI AML (p-code) execution - field manipulation
2N/A */
2N/AACPI_STATUS
2N/AAcpiExCommonBufferSetup (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A UINT32 BufferLength,
2N/A UINT32 *DatumCount);
2N/A
2N/AACPI_STATUS
2N/AAcpiExWriteWithUpdateRule (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_INTEGER Mask,
2N/A ACPI_INTEGER FieldValue,
2N/A UINT32 FieldDatumByteOffset);
2N/A
2N/Avoid
2N/AAcpiExGetBufferDatum(
2N/A ACPI_INTEGER *Datum,
2N/A void *Buffer,
2N/A UINT32 BufferLength,
2N/A UINT32 ByteGranularity,
2N/A UINT32 BufferOffset);
2N/A
2N/Avoid
2N/AAcpiExSetBufferDatum (
2N/A ACPI_INTEGER MergedDatum,
2N/A void *Buffer,
2N/A UINT32 BufferLength,
2N/A UINT32 ByteGranularity,
2N/A UINT32 BufferOffset);
2N/A
2N/AACPI_STATUS
2N/AAcpiExReadDataFromField (
2N/A ACPI_WALK_STATE *WalkState,
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT **RetBufferDesc);
2N/A
2N/AACPI_STATUS
2N/AAcpiExWriteDataToField (
2N/A ACPI_OPERAND_OBJECT *SourceDesc,
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT **ResultDesc);
2N/A
2N/A
2N/A/*
2N/A * exfldio - low level field I/O
2N/A */
2N/AACPI_STATUS
2N/AAcpiExExtractFromField (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A void *Buffer,
2N/A UINT32 BufferLength);
2N/A
2N/AACPI_STATUS
2N/AAcpiExInsertIntoField (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A void *Buffer,
2N/A UINT32 BufferLength);
2N/A
2N/AACPI_STATUS
2N/AAcpiExAccessRegion (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A UINT32 FieldDatumByteOffset,
2N/A ACPI_INTEGER *Value,
2N/A UINT32 ReadWrite);
2N/A
2N/A
2N/A/*
2N/A * exmisc - misc support routines
2N/A */
2N/AACPI_STATUS
2N/AAcpiExGetObjectReference (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT **ReturnDesc,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExConcatTemplate (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT *ObjDesc2,
2N/A ACPI_OPERAND_OBJECT **ActualReturnDesc,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExDoConcatenate (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT *ObjDesc2,
2N/A ACPI_OPERAND_OBJECT **ActualReturnDesc,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExDoLogicalNumericOp (
2N/A UINT16 Opcode,
2N/A ACPI_INTEGER Integer0,
2N/A ACPI_INTEGER Integer1,
2N/A BOOLEAN *LogicalResult);
2N/A
2N/AACPI_STATUS
2N/AAcpiExDoLogicalOp (
2N/A UINT16 Opcode,
2N/A ACPI_OPERAND_OBJECT *Operand0,
2N/A ACPI_OPERAND_OBJECT *Operand1,
2N/A BOOLEAN *LogicalResult);
2N/A
2N/AACPI_INTEGER
2N/AAcpiExDoMathOp (
2N/A UINT16 Opcode,
2N/A ACPI_INTEGER Operand0,
2N/A ACPI_INTEGER Operand1);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreateMutex (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreateProcessor (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreatePowerResource (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreateRegion (
2N/A UINT8 *AmlStart,
2N/A UINT32 AmlLength,
2N/A UINT8 RegionSpace,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreateTableRegion (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreateEvent (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreateAlias (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExCreateMethod (
2N/A UINT8 *AmlStart,
2N/A UINT32 AmlLength,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/A
2N/A/*
2N/A * exconfig - dynamic table load/unload
2N/A */
2N/AACPI_STATUS
2N/AAcpiExLoadOp (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_OPERAND_OBJECT *Target,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExLoadTableOp (
2N/A ACPI_WALK_STATE *WalkState,
2N/A ACPI_OPERAND_OBJECT **ReturnDesc);
2N/A
2N/AACPI_STATUS
2N/AAcpiExUnloadTable (
2N/A ACPI_OPERAND_OBJECT *DdbHandle);
2N/A
2N/A
2N/A/*
2N/A * exmutex - mutex support
2N/A */
2N/AACPI_STATUS
2N/AAcpiExAcquireMutex (
2N/A ACPI_OPERAND_OBJECT *TimeDesc,
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExReleaseMutex (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/Avoid
2N/AAcpiExReleaseAllMutexes (
2N/A ACPI_THREAD_STATE *Thread);
2N/A
2N/Avoid
2N/AAcpiExUnlinkMutex (
2N/A ACPI_OPERAND_OBJECT *ObjDesc);
2N/A
2N/A
2N/A/*
2N/A * exprep - ACPI AML execution - prep utilities
2N/A */
2N/AACPI_STATUS
2N/AAcpiExPrepCommonFieldObject (
2N/A ACPI_OPERAND_OBJECT *ObjDesc,
2N/A UINT8 FieldFlags,
2N/A UINT8 FieldAttribute,
2N/A UINT32 FieldBitPosition,
2N/A UINT32 FieldBitLength);
2N/A
2N/AACPI_STATUS
2N/AAcpiExPrepFieldValue (
2N/A ACPI_CREATE_FIELD_INFO *Info);
2N/A
2N/A
2N/A/*
2N/A * exsystem - Interface to OS services
2N/A */
2N/AACPI_STATUS
2N/AAcpiExSystemDoNotifyOp (
2N/A ACPI_OPERAND_OBJECT *Value,
2N/A ACPI_OPERAND_OBJECT *ObjDesc);
2N/A
2N/AACPI_STATUS
2N/AAcpiExSystemDoSuspend(
2N/A ACPI_INTEGER Time);
2N/A
2N/AACPI_STATUS
2N/AAcpiExSystemDoStall (
2N/A UINT32 Time);
2N/A
2N/AACPI_STATUS
2N/AAcpiExSystemSignalEvent(
2N/A ACPI_OPERAND_OBJECT *ObjDesc);
2N/A
2N/AACPI_STATUS
2N/AAcpiExSystemWaitEvent(
2N/A ACPI_OPERAND_OBJECT *Time,
2N/A ACPI_OPERAND_OBJECT *ObjDesc);
2N/A
2N/AACPI_STATUS
2N/AAcpiExSystemResetEvent(
2N/A ACPI_OPERAND_OBJECT *ObjDesc);
2N/A
2N/AACPI_STATUS
2N/AAcpiExSystemWaitSemaphore (
2N/A ACPI_SEMAPHORE Semaphore,
2N/A UINT16 Timeout);
2N/A
2N/AACPI_STATUS
2N/AAcpiExSystemWaitMutex (
2N/A ACPI_MUTEX Mutex,
2N/A UINT16 Timeout);
2N/A
2N/A/*
2N/A * exoparg1 - ACPI AML execution, 1 operand
2N/A */
2N/AACPI_STATUS
2N/AAcpiExOpcode_0A_0T_1R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExOpcode_1A_0T_0R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExOpcode_1A_0T_1R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExOpcode_1A_1T_1R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExOpcode_1A_1T_0R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/A/*
2N/A * exoparg2 - ACPI AML execution, 2 operands
2N/A */
2N/AACPI_STATUS
2N/AAcpiExOpcode_2A_0T_0R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExOpcode_2A_0T_1R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
2N/AACPI_STATUS
2N/AAcpiExOpcode_2A_1T_1R (
2N/A ACPI_WALK_STATE *WalkState);
2N/A
ACPI_STATUS
AcpiExOpcode_2A_2T_1R (
ACPI_WALK_STATE *WalkState);
/*
* exoparg3 - ACPI AML execution, 3 operands
*/
ACPI_STATUS
AcpiExOpcode_3A_0T_0R (
ACPI_WALK_STATE *WalkState);
ACPI_STATUS
AcpiExOpcode_3A_1T_1R (
ACPI_WALK_STATE *WalkState);
/*
* exoparg6 - ACPI AML execution, 6 operands
*/
ACPI_STATUS
AcpiExOpcode_6A_0T_1R (
ACPI_WALK_STATE *WalkState);
/*
* exresolv - Object resolution and get value functions
*/
ACPI_STATUS
AcpiExResolveToValue (
ACPI_OPERAND_OBJECT **StackPtr,
ACPI_WALK_STATE *WalkState);
ACPI_STATUS
AcpiExResolveMultiple (
ACPI_WALK_STATE *WalkState,
ACPI_OPERAND_OBJECT *Operand,
ACPI_OBJECT_TYPE *ReturnType,
ACPI_OPERAND_OBJECT **ReturnDesc);
/*
* exresnte - resolve namespace node
*/
ACPI_STATUS
AcpiExResolveNodeToValue (
ACPI_NAMESPACE_NODE **StackPtr,
ACPI_WALK_STATE *WalkState);
/*
* exresop - resolve operand to value
*/
ACPI_STATUS
AcpiExResolveOperands (
UINT16 Opcode,
ACPI_OPERAND_OBJECT **StackPtr,
ACPI_WALK_STATE *WalkState);
/*
* exdump - Interpreter debug output routines
*/
void
AcpiExDumpOperand (
ACPI_OPERAND_OBJECT *ObjDesc,
UINT32 Depth);
void
AcpiExDumpOperands (
ACPI_OPERAND_OBJECT **Operands,
ACPI_INTERPRETER_MODE InterpreterMode,
char *Ident,
UINT32 NumLevels,
char *Note,
char *ModuleName,
UINT32 LineNumber);
void
AcpiExDumpObjectDescriptor (
ACPI_OPERAND_OBJECT *Object,
UINT32 Flags);
void
AcpiExDumpNamespaceNode (
ACPI_NAMESPACE_NODE *Node,
UINT32 Flags);
/*
* exnames - AML namestring support
*/
ACPI_STATUS
AcpiExGetNameString (
ACPI_OBJECT_TYPE DataType,
UINT8 *InAmlAddress,
char **OutNameString,
UINT32 *OutNameLength);
/*
* exstore - Object store support
*/
ACPI_STATUS
AcpiExStore (
ACPI_OPERAND_OBJECT *ValDesc,
ACPI_OPERAND_OBJECT *DestDesc,
ACPI_WALK_STATE *WalkState);
ACPI_STATUS
AcpiExStoreObjectToNode (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_NAMESPACE_NODE *Node,
ACPI_WALK_STATE *WalkState,
UINT8 ImplicitConversion);
#define ACPI_IMPLICIT_CONVERSION TRUE
#define ACPI_NO_IMPLICIT_CONVERSION FALSE
/*
* exstoren - resolve/store object
*/
ACPI_STATUS
AcpiExResolveObject (
ACPI_OPERAND_OBJECT **SourceDescPtr,
ACPI_OBJECT_TYPE TargetType,
ACPI_WALK_STATE *WalkState);
ACPI_STATUS
AcpiExStoreObjectToObject (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_OPERAND_OBJECT *DestDesc,
ACPI_OPERAND_OBJECT **NewDesc,
ACPI_WALK_STATE *WalkState);
/*
* exstorob - store object - buffer/string
*/
ACPI_STATUS
AcpiExStoreBufferToBuffer (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_OPERAND_OBJECT *TargetDesc);
ACPI_STATUS
AcpiExStoreStringToString (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_OPERAND_OBJECT *TargetDesc);
/*
* excopy - object copy
*/
ACPI_STATUS
AcpiExCopyIntegerToIndexField (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_OPERAND_OBJECT *TargetDesc);
ACPI_STATUS
AcpiExCopyIntegerToBankField (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_OPERAND_OBJECT *TargetDesc);
ACPI_STATUS
AcpiExCopyDataToNamedField (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_NAMESPACE_NODE *Node);
ACPI_STATUS
AcpiExCopyIntegerToBufferField (
ACPI_OPERAND_OBJECT *SourceDesc,
ACPI_OPERAND_OBJECT *TargetDesc);
/*
* exutils - interpreter/scanner utilities
*/
ACPI_STATUS
AcpiExEnterInterpreter (
void);
void
AcpiExExitInterpreter (
void);
void
AcpiExTruncateFor32bitTable (
ACPI_OPERAND_OBJECT *ObjDesc);
BOOLEAN
AcpiExAcquireGlobalLock (
UINT32 Rule);
void
AcpiExReleaseGlobalLock (
BOOLEAN Locked);
void
AcpiExEisaIdToString (
UINT32 NumericId,
char *OutString);
void
AcpiExUnsignedIntegerToString (
ACPI_INTEGER Value,
char *OutString);
/*
* exregion - default OpRegion handlers
*/
ACPI_STATUS
AcpiExSystemMemorySpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
ACPI_STATUS
AcpiExSystemIoSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
ACPI_STATUS
AcpiExPciConfigSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
ACPI_STATUS
AcpiExCmosSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
ACPI_STATUS
AcpiExPciBarSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
ACPI_STATUS
AcpiExEmbeddedControllerSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
ACPI_STATUS
AcpiExSmBusSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
ACPI_STATUS
AcpiExDataTableSpaceHandler (
UINT32 Function,
ACPI_PHYSICAL_ADDRESS Address,
UINT32 BitWidth,
ACPI_INTEGER *Value,
void *HandlerContext,
void *RegionContext);
#endif /* __INTERP_H__ */