Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:41

0001 /******************************************************************************
0002  *
0003  * Name: acinterp.h - Interpreter subcomponent prototypes and defines
0004  *
0005  *****************************************************************************/
0006 
0007 /******************************************************************************
0008  *
0009  * 1. Copyright Notice
0010  *
0011  * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
0012  * All rights reserved.
0013  *
0014  * 2. License
0015  *
0016  * 2.1. This is your license from Intel Corp. under its intellectual property
0017  * rights. You may have additional license terms from the party that provided
0018  * you this software, covering your right to use that party's intellectual
0019  * property rights.
0020  *
0021  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
0022  * copy of the source code appearing in this file ("Covered Code") an
0023  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
0024  * base code distributed originally by Intel ("Original Intel Code") to copy,
0025  * make derivatives, distribute, use and display any portion of the Covered
0026  * Code in any form, with the right to sublicense such rights; and
0027  *
0028  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
0029  * license (with the right to sublicense), under only those claims of Intel
0030  * patents that are infringed by the Original Intel Code, to make, use, sell,
0031  * offer to sell, and import the Covered Code and derivative works thereof
0032  * solely to the minimum extent necessary to exercise the above copyright
0033  * license, and in no event shall the patent license extend to any additions
0034  * to or modifications of the Original Intel Code. No other license or right
0035  * is granted directly or by implication, estoppel or otherwise;
0036  *
0037  * The above copyright and patent license is granted only if the following
0038  * conditions are met:
0039  *
0040  * 3. Conditions
0041  *
0042  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
0043  * Redistribution of source code of any substantial portion of the Covered
0044  * Code or modification with rights to further distribute source must include
0045  * the above Copyright Notice, the above License, this list of Conditions,
0046  * and the following Disclaimer and Export Compliance provision. In addition,
0047  * Licensee must cause all Covered Code to which Licensee contributes to
0048  * contain a file documenting the changes Licensee made to create that Covered
0049  * Code and the date of any change. Licensee must include in that file the
0050  * documentation of any changes made by any predecessor Licensee. Licensee
0051  * must include a prominent statement that the modification is derived,
0052  * directly or indirectly, from Original Intel Code.
0053  *
0054  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
0055  * Redistribution of source code of any substantial portion of the Covered
0056  * Code or modification without rights to further distribute source must
0057  * include the following Disclaimer and Export Compliance provision in the
0058  * documentation and/or other materials provided with distribution. In
0059  * addition, Licensee may not authorize further sublicense of source of any
0060  * portion of the Covered Code, and must include terms to the effect that the
0061  * license from Licensee to its licensee is limited to the intellectual
0062  * property embodied in the software Licensee provides to its licensee, and
0063  * not to intellectual property embodied in modifications its licensee may
0064  * make.
0065  *
0066  * 3.3. Redistribution of Executable. Redistribution in executable form of any
0067  * substantial portion of the Covered Code or modification must reproduce the
0068  * above Copyright Notice, and the following Disclaimer and Export Compliance
0069  * provision in the documentation and/or other materials provided with the
0070  * distribution.
0071  *
0072  * 3.4. Intel retains all right, title, and interest in and to the Original
0073  * Intel Code.
0074  *
0075  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
0076  * Intel shall be used in advertising or otherwise to promote the sale, use or
0077  * other dealings in products derived from or relating to the Covered Code
0078  * without prior written authorization from Intel.
0079  *
0080  * 4. Disclaimer and Export Compliance
0081  *
0082  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
0083  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
0084  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
0085  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
0086  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
0087  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
0088  * PARTICULAR PURPOSE.
0089  *
0090  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
0091  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
0092  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
0093  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
0094  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
0095  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
0096  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
0097  * LIMITED REMEDY.
0098  *
0099  * 4.3. Licensee shall not export, either directly or indirectly, any of this
0100  * software or system incorporating such software without first obtaining any
0101  * required license or other approval from the U. S. Department of Commerce or
0102  * any other agency or department of the United States Government. In the
0103  * event Licensee exports any such software from the United States or
0104  * re-exports any such software from a foreign destination, Licensee shall
0105  * ensure that the distribution and export/re-export of the software is in
0106  * compliance with all laws, regulations, orders, or other restrictions of the
0107  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
0108  * any of its subsidiaries will export/re-export any technical data, process,
0109  * software, or service, directly or indirectly, to any country for which the
0110  * United States government or any agency thereof requires an export license,
0111  * other governmental approval, or letter of assurance, without first obtaining
0112  * such license, approval or letter.
0113  *
0114  *****************************************************************************
0115  *
0116  * Alternatively, you may choose to be licensed under the terms of the
0117  * following license:
0118  *
0119  * Redistribution and use in source and binary forms, with or without
0120  * modification, are permitted provided that the following conditions
0121  * are met:
0122  * 1. Redistributions of source code must retain the above copyright
0123  *    notice, this list of conditions, and the following disclaimer,
0124  *    without modification.
0125  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
0126  *    substantially similar to the "NO WARRANTY" disclaimer below
0127  *    ("Disclaimer") and any redistribution must be conditioned upon
0128  *    including a substantially similar Disclaimer requirement for further
0129  *    binary redistribution.
0130  * 3. Neither the names of the above-listed copyright holders nor the names
0131  *    of any contributors may be used to endorse or promote products derived
0132  *    from this software without specific prior written permission.
0133  *
0134  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0135  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0136  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0137  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0138  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0139  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0140  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0141  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0142  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0143  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0144  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0145  *
0146  * Alternatively, you may choose to be licensed under the terms of the
0147  * GNU General Public License ("GPL") version 2 as published by the Free
0148  * Software Foundation.
0149  *
0150  *****************************************************************************/
0151 
0152 #ifndef __ACINTERP_H__
0153 #define __ACINTERP_H__
0154 
0155 
0156 #define ACPI_WALK_OPERANDS          (&(WalkState->Operands [WalkState->NumOperands -1]))
0157 
0158 /* Macros for tables used for debug output */
0159 
0160 #define ACPI_EXD_OFFSET(f)          (UINT8) ACPI_OFFSET (ACPI_OPERAND_OBJECT,f)
0161 #define ACPI_EXD_NSOFFSET(f)        (UINT8) ACPI_OFFSET (ACPI_NAMESPACE_NODE,f)
0162 #define ACPI_EXD_TABLE_SIZE(name)   (sizeof(name) / sizeof (ACPI_EXDUMP_INFO))
0163 
0164 /*
0165  * If possible, pack the following structures to byte alignment, since we
0166  * don't care about performance for debug output. Two cases where we cannot
0167  * pack the structures:
0168  *
0169  * 1) Hardware does not support misaligned memory transfers
0170  * 2) Compiler does not support pointers within packed structures
0171  */
0172 #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED))
0173 #pragma pack(1)
0174 #endif
0175 
0176 typedef const struct acpi_exdump_info
0177 {
0178     UINT8                   Opcode;
0179     UINT8                   Offset;
0180     const char              *Name;
0181 
0182 } ACPI_EXDUMP_INFO;
0183 
0184 /* Values for the Opcode field above */
0185 
0186 #define ACPI_EXD_INIT                   0
0187 #define ACPI_EXD_TYPE                   1
0188 #define ACPI_EXD_UINT8                  2
0189 #define ACPI_EXD_UINT16                 3
0190 #define ACPI_EXD_UINT32                 4
0191 #define ACPI_EXD_UINT64                 5
0192 #define ACPI_EXD_LITERAL                6
0193 #define ACPI_EXD_POINTER                7
0194 #define ACPI_EXD_ADDRESS                8
0195 #define ACPI_EXD_STRING                 9
0196 #define ACPI_EXD_BUFFER                 10
0197 #define ACPI_EXD_PACKAGE                11
0198 #define ACPI_EXD_FIELD                  12
0199 #define ACPI_EXD_REFERENCE              13
0200 #define ACPI_EXD_LIST                   14 /* Operand object list */
0201 #define ACPI_EXD_HDLR_LIST              15 /* Address Handler list */
0202 #define ACPI_EXD_RGN_LIST               16 /* Region list */
0203 #define ACPI_EXD_NODE                   17 /* Namespace Node */
0204 
0205 /* restore default alignment */
0206 
0207 #pragma pack()
0208 
0209 
0210 /*
0211  * exconvrt - object conversion
0212  */
0213 ACPI_STATUS
0214 AcpiExConvertToInteger (
0215     ACPI_OPERAND_OBJECT     *ObjDesc,
0216     ACPI_OPERAND_OBJECT     **ResultDesc,
0217     UINT32                  ImplicitConversion);
0218 
0219 ACPI_STATUS
0220 AcpiExConvertToBuffer (
0221     ACPI_OPERAND_OBJECT     *ObjDesc,
0222     ACPI_OPERAND_OBJECT     **ResultDesc);
0223 
0224 ACPI_STATUS
0225 AcpiExConvertToString (
0226     ACPI_OPERAND_OBJECT     *ObjDesc,
0227     ACPI_OPERAND_OBJECT     **ResultDesc,
0228     UINT32                  Type);
0229 
0230 /* Types for ->String conversion */
0231 
0232 #define ACPI_EXPLICIT_BYTE_COPY         0x00000000
0233 #define ACPI_EXPLICIT_CONVERT_HEX       0x00000001
0234 #define ACPI_IMPLICIT_CONVERT_HEX       0x00000002
0235 #define ACPI_EXPLICIT_CONVERT_DECIMAL   0x00000003
0236 
0237 ACPI_STATUS
0238 AcpiExConvertToTargetType (
0239     ACPI_OBJECT_TYPE        DestinationType,
0240     ACPI_OPERAND_OBJECT     *SourceDesc,
0241     ACPI_OPERAND_OBJECT     **ResultDesc,
0242     ACPI_WALK_STATE         *WalkState);
0243 
0244 
0245 /*
0246  * exdebug - AML debug object
0247  */
0248 void
0249 AcpiExDoDebugObject (
0250     ACPI_OPERAND_OBJECT     *SourceDesc,
0251     UINT32                  Level,
0252     UINT32                  Index);
0253 
0254 void
0255 AcpiExStartTraceMethod (
0256     ACPI_NAMESPACE_NODE     *MethodNode,
0257     ACPI_OPERAND_OBJECT     *ObjDesc,
0258     ACPI_WALK_STATE         *WalkState);
0259 
0260 void
0261 AcpiExStopTraceMethod (
0262     ACPI_NAMESPACE_NODE     *MethodNode,
0263     ACPI_OPERAND_OBJECT     *ObjDesc,
0264     ACPI_WALK_STATE         *WalkState);
0265 
0266 void
0267 AcpiExStartTraceOpcode (
0268     ACPI_PARSE_OBJECT       *Op,
0269     ACPI_WALK_STATE         *WalkState);
0270 
0271 void
0272 AcpiExStopTraceOpcode (
0273     ACPI_PARSE_OBJECT       *Op,
0274     ACPI_WALK_STATE         *WalkState);
0275 
0276 void
0277 AcpiExTracePoint (
0278     ACPI_TRACE_EVENT_TYPE   Type,
0279     BOOLEAN                 Begin,
0280     UINT8                   *Aml,
0281     char                    *Pathname);
0282 
0283 
0284 /*
0285  * exfield - ACPI AML (p-code) execution - field manipulation
0286  */
0287 ACPI_STATUS
0288 AcpiExGetProtocolBufferLength (
0289     UINT32                  ProtocolId,
0290     UINT32                  *ReturnLength);
0291 
0292 ACPI_STATUS
0293 AcpiExCommonBufferSetup (
0294     ACPI_OPERAND_OBJECT     *ObjDesc,
0295     UINT32                  BufferLength,
0296     UINT32                  *DatumCount);
0297 
0298 ACPI_STATUS
0299 AcpiExWriteWithUpdateRule (
0300     ACPI_OPERAND_OBJECT     *ObjDesc,
0301     UINT64                  Mask,
0302     UINT64                  FieldValue,
0303     UINT32                  FieldDatumByteOffset);
0304 
0305 void
0306 AcpiExGetBufferDatum(
0307     UINT64                  *Datum,
0308     void                    *Buffer,
0309     UINT32                  BufferLength,
0310     UINT32                  ByteGranularity,
0311     UINT32                  BufferOffset);
0312 
0313 void
0314 AcpiExSetBufferDatum (
0315     UINT64                  MergedDatum,
0316     void                    *Buffer,
0317     UINT32                  BufferLength,
0318     UINT32                  ByteGranularity,
0319     UINT32                  BufferOffset);
0320 
0321 ACPI_STATUS
0322 AcpiExReadDataFromField (
0323     ACPI_WALK_STATE         *WalkState,
0324     ACPI_OPERAND_OBJECT     *ObjDesc,
0325     ACPI_OPERAND_OBJECT     **RetBufferDesc);
0326 
0327 ACPI_STATUS
0328 AcpiExWriteDataToField (
0329     ACPI_OPERAND_OBJECT     *SourceDesc,
0330     ACPI_OPERAND_OBJECT     *ObjDesc,
0331     ACPI_OPERAND_OBJECT     **ResultDesc);
0332 
0333 
0334 /*
0335  * exfldio - low level field I/O
0336  */
0337 ACPI_STATUS
0338 AcpiExExtractFromField (
0339     ACPI_OPERAND_OBJECT     *ObjDesc,
0340     void                    *Buffer,
0341     UINT32                  BufferLength);
0342 
0343 ACPI_STATUS
0344 AcpiExInsertIntoField (
0345     ACPI_OPERAND_OBJECT     *ObjDesc,
0346     void                    *Buffer,
0347     UINT32                  BufferLength);
0348 
0349 ACPI_STATUS
0350 AcpiExAccessRegion (
0351     ACPI_OPERAND_OBJECT     *ObjDesc,
0352     UINT32                  FieldDatumByteOffset,
0353     UINT64                  *Value,
0354     UINT32                  ReadWrite);
0355 
0356 
0357 /*
0358  * exmisc - misc support routines
0359  */
0360 ACPI_STATUS
0361 AcpiExGetObjectReference (
0362     ACPI_OPERAND_OBJECT     *ObjDesc,
0363     ACPI_OPERAND_OBJECT     **ReturnDesc,
0364     ACPI_WALK_STATE         *WalkState);
0365 
0366 ACPI_STATUS
0367 AcpiExConcatTemplate (
0368     ACPI_OPERAND_OBJECT     *ObjDesc,
0369     ACPI_OPERAND_OBJECT     *ObjDesc2,
0370     ACPI_OPERAND_OBJECT     **ActualReturnDesc,
0371     ACPI_WALK_STATE         *WalkState);
0372 
0373 ACPI_STATUS
0374 AcpiExDoConcatenate (
0375     ACPI_OPERAND_OBJECT     *ObjDesc,
0376     ACPI_OPERAND_OBJECT     *ObjDesc2,
0377     ACPI_OPERAND_OBJECT     **ActualReturnDesc,
0378     ACPI_WALK_STATE         *WalkState);
0379 
0380 ACPI_STATUS
0381 AcpiExDoLogicalNumericOp (
0382     UINT16                  Opcode,
0383     UINT64                  Integer0,
0384     UINT64                  Integer1,
0385     BOOLEAN                 *LogicalResult);
0386 
0387 ACPI_STATUS
0388 AcpiExDoLogicalOp (
0389     UINT16                  Opcode,
0390     ACPI_OPERAND_OBJECT     *Operand0,
0391     ACPI_OPERAND_OBJECT     *Operand1,
0392     BOOLEAN                 *LogicalResult);
0393 
0394 UINT64
0395 AcpiExDoMathOp (
0396     UINT16                  Opcode,
0397     UINT64                  Operand0,
0398     UINT64                  Operand1);
0399 
0400 ACPI_STATUS
0401 AcpiExCreateMutex (
0402     ACPI_WALK_STATE         *WalkState);
0403 
0404 ACPI_STATUS
0405 AcpiExCreateProcessor (
0406     ACPI_WALK_STATE         *WalkState);
0407 
0408 ACPI_STATUS
0409 AcpiExCreatePowerResource (
0410     ACPI_WALK_STATE         *WalkState);
0411 
0412 ACPI_STATUS
0413 AcpiExCreateRegion (
0414     UINT8                   *AmlStart,
0415     UINT32                  AmlLength,
0416     UINT8                   RegionSpace,
0417     ACPI_WALK_STATE         *WalkState);
0418 
0419 ACPI_STATUS
0420 AcpiExCreateEvent (
0421     ACPI_WALK_STATE         *WalkState);
0422 
0423 ACPI_STATUS
0424 AcpiExCreateAlias (
0425     ACPI_WALK_STATE         *WalkState);
0426 
0427 ACPI_STATUS
0428 AcpiExCreateMethod (
0429     UINT8                   *AmlStart,
0430     UINT32                  AmlLength,
0431     ACPI_WALK_STATE         *WalkState);
0432 
0433 
0434 /*
0435  * exconfig - dynamic table load/unload
0436  */
0437 ACPI_STATUS
0438 AcpiExLoadOp (
0439     ACPI_OPERAND_OBJECT     *ObjDesc,
0440     ACPI_OPERAND_OBJECT     *Target,
0441     ACPI_WALK_STATE         *WalkState);
0442 
0443 ACPI_STATUS
0444 AcpiExLoadTableOp (
0445     ACPI_WALK_STATE         *WalkState,
0446     ACPI_OPERAND_OBJECT     **ReturnDesc);
0447 
0448 ACPI_STATUS
0449 AcpiExUnloadTable (
0450     ACPI_OPERAND_OBJECT     *DdbHandle);
0451 
0452 
0453 /*
0454  * exmutex - mutex support
0455  */
0456 ACPI_STATUS
0457 AcpiExAcquireMutex (
0458     ACPI_OPERAND_OBJECT     *TimeDesc,
0459     ACPI_OPERAND_OBJECT     *ObjDesc,
0460     ACPI_WALK_STATE         *WalkState);
0461 
0462 ACPI_STATUS
0463 AcpiExAcquireMutexObject (
0464     UINT16                  Timeout,
0465     ACPI_OPERAND_OBJECT     *ObjDesc,
0466     ACPI_THREAD_ID          ThreadId);
0467 
0468 ACPI_STATUS
0469 AcpiExReleaseMutex (
0470     ACPI_OPERAND_OBJECT     *ObjDesc,
0471     ACPI_WALK_STATE         *WalkState);
0472 
0473 ACPI_STATUS
0474 AcpiExReleaseMutexObject (
0475     ACPI_OPERAND_OBJECT     *ObjDesc);
0476 
0477 void
0478 AcpiExReleaseAllMutexes (
0479     ACPI_THREAD_STATE       *Thread);
0480 
0481 void
0482 AcpiExUnlinkMutex (
0483     ACPI_OPERAND_OBJECT     *ObjDesc);
0484 
0485 
0486 /*
0487  * exprep - ACPI AML execution - prep utilities
0488  */
0489 ACPI_STATUS
0490 AcpiExPrepCommonFieldObject (
0491     ACPI_OPERAND_OBJECT     *ObjDesc,
0492     UINT8                   FieldFlags,
0493     UINT8                   FieldAttribute,
0494     UINT32                  FieldBitPosition,
0495     UINT32                  FieldBitLength);
0496 
0497 ACPI_STATUS
0498 AcpiExPrepFieldValue (
0499     ACPI_CREATE_FIELD_INFO  *Info);
0500 
0501 
0502 /*
0503  * exserial - FieldUnit support for serial address spaces
0504  */
0505 ACPI_STATUS
0506 AcpiExReadSerialBus (
0507     ACPI_OPERAND_OBJECT     *ObjDesc,
0508     ACPI_OPERAND_OBJECT     **ReturnBuffer);
0509 
0510 ACPI_STATUS
0511 AcpiExWriteSerialBus (
0512     ACPI_OPERAND_OBJECT     *SourceDesc,
0513     ACPI_OPERAND_OBJECT     *ObjDesc,
0514     ACPI_OPERAND_OBJECT     **ReturnBuffer);
0515 
0516 ACPI_STATUS
0517 AcpiExReadGpio (
0518     ACPI_OPERAND_OBJECT     *ObjDesc,
0519     void                    *Buffer);
0520 
0521 ACPI_STATUS
0522 AcpiExWriteGpio (
0523     ACPI_OPERAND_OBJECT     *SourceDesc,
0524     ACPI_OPERAND_OBJECT     *ObjDesc,
0525     ACPI_OPERAND_OBJECT     **ReturnBuffer);
0526 
0527 
0528 /*
0529  * exsystem - Interface to OS services
0530  */
0531 ACPI_STATUS
0532 AcpiExSystemDoNotifyOp (
0533     ACPI_OPERAND_OBJECT     *Value,
0534     ACPI_OPERAND_OBJECT     *ObjDesc);
0535 
0536 ACPI_STATUS
0537 AcpiExSystemDoSleep(
0538     UINT64                  Time);
0539 
0540 ACPI_STATUS
0541 AcpiExSystemDoStall (
0542     UINT32                  Time);
0543 
0544 ACPI_STATUS
0545 AcpiExSystemSignalEvent(
0546     ACPI_OPERAND_OBJECT     *ObjDesc);
0547 
0548 ACPI_STATUS
0549 AcpiExSystemWaitEvent(
0550     ACPI_OPERAND_OBJECT     *Time,
0551     ACPI_OPERAND_OBJECT     *ObjDesc);
0552 
0553 ACPI_STATUS
0554 AcpiExSystemResetEvent(
0555     ACPI_OPERAND_OBJECT     *ObjDesc);
0556 
0557 ACPI_STATUS
0558 AcpiExSystemWaitSemaphore (
0559     ACPI_SEMAPHORE          Semaphore,
0560     UINT16                  Timeout);
0561 
0562 ACPI_STATUS
0563 AcpiExSystemWaitMutex (
0564     ACPI_MUTEX              Mutex,
0565     UINT16                  Timeout);
0566 
0567 /*
0568  * exoparg1 - ACPI AML execution, 1 operand
0569  */
0570 ACPI_STATUS
0571 AcpiExOpcode_0A_0T_1R (
0572     ACPI_WALK_STATE         *WalkState);
0573 
0574 ACPI_STATUS
0575 AcpiExOpcode_1A_0T_0R (
0576     ACPI_WALK_STATE         *WalkState);
0577 
0578 ACPI_STATUS
0579 AcpiExOpcode_1A_0T_1R (
0580     ACPI_WALK_STATE         *WalkState);
0581 
0582 ACPI_STATUS
0583 AcpiExOpcode_1A_1T_1R (
0584     ACPI_WALK_STATE         *WalkState);
0585 
0586 ACPI_STATUS
0587 AcpiExOpcode_1A_1T_0R (
0588     ACPI_WALK_STATE         *WalkState);
0589 
0590 /*
0591  * exoparg2 - ACPI AML execution, 2 operands
0592  */
0593 ACPI_STATUS
0594 AcpiExOpcode_2A_0T_0R (
0595     ACPI_WALK_STATE         *WalkState);
0596 
0597 ACPI_STATUS
0598 AcpiExOpcode_2A_0T_1R (
0599     ACPI_WALK_STATE         *WalkState);
0600 
0601 ACPI_STATUS
0602 AcpiExOpcode_2A_1T_1R (
0603     ACPI_WALK_STATE         *WalkState);
0604 
0605 ACPI_STATUS
0606 AcpiExOpcode_2A_2T_1R (
0607     ACPI_WALK_STATE         *WalkState);
0608 
0609 
0610 /*
0611  * exoparg3 - ACPI AML execution, 3 operands
0612  */
0613 ACPI_STATUS
0614 AcpiExOpcode_3A_0T_0R (
0615     ACPI_WALK_STATE         *WalkState);
0616 
0617 ACPI_STATUS
0618 AcpiExOpcode_3A_1T_1R (
0619     ACPI_WALK_STATE         *WalkState);
0620 
0621 
0622 /*
0623  * exoparg6 - ACPI AML execution, 6 operands
0624  */
0625 ACPI_STATUS
0626 AcpiExOpcode_6A_0T_1R (
0627     ACPI_WALK_STATE         *WalkState);
0628 
0629 
0630 /*
0631  * exresolv - Object resolution and get value functions
0632  */
0633 ACPI_STATUS
0634 AcpiExResolveToValue (
0635     ACPI_OPERAND_OBJECT     **StackPtr,
0636     ACPI_WALK_STATE         *WalkState);
0637 
0638 ACPI_STATUS
0639 AcpiExResolveMultiple (
0640     ACPI_WALK_STATE         *WalkState,
0641     ACPI_OPERAND_OBJECT     *Operand,
0642     ACPI_OBJECT_TYPE        *ReturnType,
0643     ACPI_OPERAND_OBJECT     **ReturnDesc);
0644 
0645 
0646 /*
0647  * exresnte - resolve namespace node
0648  */
0649 ACPI_STATUS
0650 AcpiExResolveNodeToValue (
0651     ACPI_NAMESPACE_NODE     **StackPtr,
0652     ACPI_WALK_STATE         *WalkState);
0653 
0654 
0655 /*
0656  * exresop - resolve operand to value
0657  */
0658 ACPI_STATUS
0659 AcpiExResolveOperands (
0660     UINT16                  Opcode,
0661     ACPI_OPERAND_OBJECT     **StackPtr,
0662     ACPI_WALK_STATE         *WalkState);
0663 
0664 
0665 /*
0666  * exdump - Interpreter debug output routines
0667  */
0668 void
0669 AcpiExDumpOperand (
0670     ACPI_OPERAND_OBJECT     *ObjDesc,
0671     UINT32                  Depth);
0672 
0673 void
0674 AcpiExDumpOperands (
0675     ACPI_OPERAND_OBJECT     **Operands,
0676     const char              *OpcodeName,
0677     UINT32                  NumOpcodes);
0678 
0679 void
0680 AcpiExDumpObjectDescriptor (
0681     ACPI_OPERAND_OBJECT     *Object,
0682     UINT32                  Flags);
0683 
0684 void
0685 AcpiExDumpNamespaceNode (
0686     ACPI_NAMESPACE_NODE     *Node,
0687     UINT32                  Flags);
0688 
0689 
0690 /*
0691  * exnames - AML namestring support
0692  */
0693 ACPI_STATUS
0694 AcpiExGetNameString (
0695     ACPI_OBJECT_TYPE        DataType,
0696     UINT8                   *InAmlAddress,
0697     char                    **OutNameString,
0698     UINT32                  *OutNameLength);
0699 
0700 
0701 /*
0702  * exstore - Object store support
0703  */
0704 ACPI_STATUS
0705 AcpiExStore (
0706     ACPI_OPERAND_OBJECT     *ValDesc,
0707     ACPI_OPERAND_OBJECT     *DestDesc,
0708     ACPI_WALK_STATE         *WalkState);
0709 
0710 ACPI_STATUS
0711 AcpiExStoreObjectToNode (
0712     ACPI_OPERAND_OBJECT     *SourceDesc,
0713     ACPI_NAMESPACE_NODE     *Node,
0714     ACPI_WALK_STATE         *WalkState,
0715     UINT8                   ImplicitConversion);
0716 
0717 
0718 /*
0719  * exstoren - resolve/store object
0720  */
0721 ACPI_STATUS
0722 AcpiExResolveObject (
0723     ACPI_OPERAND_OBJECT     **SourceDescPtr,
0724     ACPI_OBJECT_TYPE        TargetType,
0725     ACPI_WALK_STATE         *WalkState);
0726 
0727 ACPI_STATUS
0728 AcpiExStoreObjectToObject (
0729     ACPI_OPERAND_OBJECT     *SourceDesc,
0730     ACPI_OPERAND_OBJECT     *DestDesc,
0731     ACPI_OPERAND_OBJECT     **NewDesc,
0732     ACPI_WALK_STATE         *WalkState);
0733 
0734 
0735 /*
0736  * exstorob - store object - buffer/string
0737  */
0738 ACPI_STATUS
0739 AcpiExStoreBufferToBuffer (
0740     ACPI_OPERAND_OBJECT     *SourceDesc,
0741     ACPI_OPERAND_OBJECT     *TargetDesc);
0742 
0743 ACPI_STATUS
0744 AcpiExStoreStringToString (
0745     ACPI_OPERAND_OBJECT     *SourceDesc,
0746     ACPI_OPERAND_OBJECT     *TargetDesc);
0747 
0748 
0749 /*
0750  * excopy - object copy
0751  */
0752 ACPI_STATUS
0753 AcpiExCopyIntegerToIndexField (
0754     ACPI_OPERAND_OBJECT     *SourceDesc,
0755     ACPI_OPERAND_OBJECT     *TargetDesc);
0756 
0757 ACPI_STATUS
0758 AcpiExCopyIntegerToBankField (
0759     ACPI_OPERAND_OBJECT     *SourceDesc,
0760     ACPI_OPERAND_OBJECT     *TargetDesc);
0761 
0762 ACPI_STATUS
0763 AcpiExCopyDataToNamedField (
0764     ACPI_OPERAND_OBJECT     *SourceDesc,
0765     ACPI_NAMESPACE_NODE     *Node);
0766 
0767 ACPI_STATUS
0768 AcpiExCopyIntegerToBufferField (
0769     ACPI_OPERAND_OBJECT     *SourceDesc,
0770     ACPI_OPERAND_OBJECT     *TargetDesc);
0771 
0772 
0773 /*
0774  * exutils - interpreter/scanner utilities
0775  */
0776 void
0777 AcpiExEnterInterpreter (
0778     void);
0779 
0780 void
0781 AcpiExExitInterpreter (
0782     void);
0783 
0784 BOOLEAN
0785 AcpiExTruncateFor32bitTable (
0786     ACPI_OPERAND_OBJECT     *ObjDesc);
0787 
0788 void
0789 AcpiExAcquireGlobalLock (
0790     UINT32                  Rule);
0791 
0792 void
0793 AcpiExReleaseGlobalLock (
0794     UINT32                  Rule);
0795 
0796 void
0797 AcpiExEisaIdToString (
0798     char                    *Dest,
0799     UINT64                  CompressedId);
0800 
0801 void
0802 AcpiExIntegerToString (
0803     char                    *Dest,
0804     UINT64                  Value);
0805 
0806 void
0807 AcpiExPciClsToString (
0808     char                    *Dest,
0809     UINT8                   ClassCode[3]);
0810 
0811 BOOLEAN
0812 AcpiIsValidSpaceId (
0813     UINT8                   SpaceId);
0814 
0815 
0816 /*
0817  * exregion - default OpRegion handlers
0818  */
0819 ACPI_STATUS
0820 AcpiExSystemMemorySpaceHandler (
0821     UINT32                  Function,
0822     ACPI_PHYSICAL_ADDRESS   Address,
0823     UINT32                  BitWidth,
0824     UINT64                  *Value,
0825     void                    *HandlerContext,
0826     void                    *RegionContext);
0827 
0828 ACPI_STATUS
0829 AcpiExSystemIoSpaceHandler (
0830     UINT32                  Function,
0831     ACPI_PHYSICAL_ADDRESS   Address,
0832     UINT32                  BitWidth,
0833     UINT64                  *Value,
0834     void                    *HandlerContext,
0835     void                    *RegionContext);
0836 
0837 ACPI_STATUS
0838 AcpiExPciConfigSpaceHandler (
0839     UINT32                  Function,
0840     ACPI_PHYSICAL_ADDRESS   Address,
0841     UINT32                  BitWidth,
0842     UINT64                  *Value,
0843     void                    *HandlerContext,
0844     void                    *RegionContext);
0845 
0846 ACPI_STATUS
0847 AcpiExCmosSpaceHandler (
0848     UINT32                  Function,
0849     ACPI_PHYSICAL_ADDRESS   Address,
0850     UINT32                  BitWidth,
0851     UINT64                  *Value,
0852     void                    *HandlerContext,
0853     void                    *RegionContext);
0854 
0855 ACPI_STATUS
0856 AcpiExPciBarSpaceHandler (
0857     UINT32                  Function,
0858     ACPI_PHYSICAL_ADDRESS   Address,
0859     UINT32                  BitWidth,
0860     UINT64                  *Value,
0861     void                    *HandlerContext,
0862     void                    *RegionContext);
0863 
0864 ACPI_STATUS
0865 AcpiExEmbeddedControllerSpaceHandler (
0866     UINT32                  Function,
0867     ACPI_PHYSICAL_ADDRESS   Address,
0868     UINT32                  BitWidth,
0869     UINT64                  *Value,
0870     void                    *HandlerContext,
0871     void                    *RegionContext);
0872 
0873 ACPI_STATUS
0874 AcpiExSmBusSpaceHandler (
0875     UINT32                  Function,
0876     ACPI_PHYSICAL_ADDRESS   Address,
0877     UINT32                  BitWidth,
0878     UINT64                  *Value,
0879     void                    *HandlerContext,
0880     void                    *RegionContext);
0881 
0882 
0883 ACPI_STATUS
0884 AcpiExDataTableSpaceHandler (
0885     UINT32                  Function,
0886     ACPI_PHYSICAL_ADDRESS   Address,
0887     UINT32                  BitWidth,
0888     UINT64                  *Value,
0889     void                    *HandlerContext,
0890     void                    *RegionContext);
0891 
0892 #endif /* __INTERP_H__ */