17c478bd9Sstevel@tonic-gate /****************************************************************************** 27c478bd9Sstevel@tonic-gate * 37c478bd9Sstevel@tonic-gate * Name: acinterp.h - Interpreter subcomponent prototypes and defines 4*30082d0cSmyers * $Revision: 1.164 $ 57c478bd9Sstevel@tonic-gate * 67c478bd9Sstevel@tonic-gate *****************************************************************************/ 77c478bd9Sstevel@tonic-gate 87c478bd9Sstevel@tonic-gate /****************************************************************************** 97c478bd9Sstevel@tonic-gate * 107c478bd9Sstevel@tonic-gate * 1. Copyright Notice 117c478bd9Sstevel@tonic-gate * 12*30082d0cSmyers * Some or all of this work - Copyright (c) 1999 - 2006, Intel Corp. 137c478bd9Sstevel@tonic-gate * All rights reserved. 147c478bd9Sstevel@tonic-gate * 157c478bd9Sstevel@tonic-gate * 2. License 167c478bd9Sstevel@tonic-gate * 177c478bd9Sstevel@tonic-gate * 2.1. This is your license from Intel Corp. under its intellectual property 187c478bd9Sstevel@tonic-gate * rights. You may have additional license terms from the party that provided 197c478bd9Sstevel@tonic-gate * you this software, covering your right to use that party's intellectual 207c478bd9Sstevel@tonic-gate * property rights. 217c478bd9Sstevel@tonic-gate * 227c478bd9Sstevel@tonic-gate * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 237c478bd9Sstevel@tonic-gate * copy of the source code appearing in this file ("Covered Code") an 247c478bd9Sstevel@tonic-gate * irrevocable, perpetual, worldwide license under Intel's copyrights in the 257c478bd9Sstevel@tonic-gate * base code distributed originally by Intel ("Original Intel Code") to copy, 267c478bd9Sstevel@tonic-gate * make derivatives, distribute, use and display any portion of the Covered 277c478bd9Sstevel@tonic-gate * Code in any form, with the right to sublicense such rights; and 287c478bd9Sstevel@tonic-gate * 297c478bd9Sstevel@tonic-gate * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 307c478bd9Sstevel@tonic-gate * license (with the right to sublicense), under only those claims of Intel 317c478bd9Sstevel@tonic-gate * patents that are infringed by the Original Intel Code, to make, use, sell, 327c478bd9Sstevel@tonic-gate * offer to sell, and import the Covered Code and derivative works thereof 337c478bd9Sstevel@tonic-gate * solely to the minimum extent necessary to exercise the above copyright 347c478bd9Sstevel@tonic-gate * license, and in no event shall the patent license extend to any additions 357c478bd9Sstevel@tonic-gate * to or modifications of the Original Intel Code. No other license or right 367c478bd9Sstevel@tonic-gate * is granted directly or by implication, estoppel or otherwise; 377c478bd9Sstevel@tonic-gate * 387c478bd9Sstevel@tonic-gate * The above copyright and patent license is granted only if the following 397c478bd9Sstevel@tonic-gate * conditions are met: 407c478bd9Sstevel@tonic-gate * 417c478bd9Sstevel@tonic-gate * 3. Conditions 427c478bd9Sstevel@tonic-gate * 437c478bd9Sstevel@tonic-gate * 3.1. Redistribution of Source with Rights to Further Distribute Source. 447c478bd9Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 457c478bd9Sstevel@tonic-gate * Code or modification with rights to further distribute source must include 467c478bd9Sstevel@tonic-gate * the above Copyright Notice, the above License, this list of Conditions, 477c478bd9Sstevel@tonic-gate * and the following Disclaimer and Export Compliance provision. In addition, 487c478bd9Sstevel@tonic-gate * Licensee must cause all Covered Code to which Licensee contributes to 497c478bd9Sstevel@tonic-gate * contain a file documenting the changes Licensee made to create that Covered 507c478bd9Sstevel@tonic-gate * Code and the date of any change. Licensee must include in that file the 517c478bd9Sstevel@tonic-gate * documentation of any changes made by any predecessor Licensee. Licensee 527c478bd9Sstevel@tonic-gate * must include a prominent statement that the modification is derived, 537c478bd9Sstevel@tonic-gate * directly or indirectly, from Original Intel Code. 547c478bd9Sstevel@tonic-gate * 557c478bd9Sstevel@tonic-gate * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 567c478bd9Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 577c478bd9Sstevel@tonic-gate * Code or modification without rights to further distribute source must 587c478bd9Sstevel@tonic-gate * include the following Disclaimer and Export Compliance provision in the 597c478bd9Sstevel@tonic-gate * documentation and/or other materials provided with distribution. In 607c478bd9Sstevel@tonic-gate * addition, Licensee may not authorize further sublicense of source of any 617c478bd9Sstevel@tonic-gate * portion of the Covered Code, and must include terms to the effect that the 627c478bd9Sstevel@tonic-gate * license from Licensee to its licensee is limited to the intellectual 637c478bd9Sstevel@tonic-gate * property embodied in the software Licensee provides to its licensee, and 647c478bd9Sstevel@tonic-gate * not to intellectual property embodied in modifications its licensee may 657c478bd9Sstevel@tonic-gate * make. 667c478bd9Sstevel@tonic-gate * 677c478bd9Sstevel@tonic-gate * 3.3. Redistribution of Executable. Redistribution in executable form of any 687c478bd9Sstevel@tonic-gate * substantial portion of the Covered Code or modification must reproduce the 697c478bd9Sstevel@tonic-gate * above Copyright Notice, and the following Disclaimer and Export Compliance 707c478bd9Sstevel@tonic-gate * provision in the documentation and/or other materials provided with the 717c478bd9Sstevel@tonic-gate * distribution. 727c478bd9Sstevel@tonic-gate * 737c478bd9Sstevel@tonic-gate * 3.4. Intel retains all right, title, and interest in and to the Original 747c478bd9Sstevel@tonic-gate * Intel Code. 757c478bd9Sstevel@tonic-gate * 767c478bd9Sstevel@tonic-gate * 3.5. Neither the name Intel nor any other trademark owned or controlled by 777c478bd9Sstevel@tonic-gate * Intel shall be used in advertising or otherwise to promote the sale, use or 787c478bd9Sstevel@tonic-gate * other dealings in products derived from or relating to the Covered Code 797c478bd9Sstevel@tonic-gate * without prior written authorization from Intel. 807c478bd9Sstevel@tonic-gate * 817c478bd9Sstevel@tonic-gate * 4. Disclaimer and Export Compliance 827c478bd9Sstevel@tonic-gate * 837c478bd9Sstevel@tonic-gate * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 847c478bd9Sstevel@tonic-gate * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 857c478bd9Sstevel@tonic-gate * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 867c478bd9Sstevel@tonic-gate * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 877c478bd9Sstevel@tonic-gate * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 887c478bd9Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 897c478bd9Sstevel@tonic-gate * PARTICULAR PURPOSE. 907c478bd9Sstevel@tonic-gate * 917c478bd9Sstevel@tonic-gate * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 927c478bd9Sstevel@tonic-gate * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 937c478bd9Sstevel@tonic-gate * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 947c478bd9Sstevel@tonic-gate * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 957c478bd9Sstevel@tonic-gate * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 967c478bd9Sstevel@tonic-gate * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 977c478bd9Sstevel@tonic-gate * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 987c478bd9Sstevel@tonic-gate * LIMITED REMEDY. 997c478bd9Sstevel@tonic-gate * 1007c478bd9Sstevel@tonic-gate * 4.3. Licensee shall not export, either directly or indirectly, any of this 1017c478bd9Sstevel@tonic-gate * software or system incorporating such software without first obtaining any 1027c478bd9Sstevel@tonic-gate * required license or other approval from the U. S. Department of Commerce or 1037c478bd9Sstevel@tonic-gate * any other agency or department of the United States Government. In the 1047c478bd9Sstevel@tonic-gate * event Licensee exports any such software from the United States or 1057c478bd9Sstevel@tonic-gate * re-exports any such software from a foreign destination, Licensee shall 1067c478bd9Sstevel@tonic-gate * ensure that the distribution and export/re-export of the software is in 1077c478bd9Sstevel@tonic-gate * compliance with all laws, regulations, orders, or other restrictions of the 1087c478bd9Sstevel@tonic-gate * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1097c478bd9Sstevel@tonic-gate * any of its subsidiaries will export/re-export any technical data, process, 1107c478bd9Sstevel@tonic-gate * software, or service, directly or indirectly, to any country for which the 1117c478bd9Sstevel@tonic-gate * United States government or any agency thereof requires an export license, 1127c478bd9Sstevel@tonic-gate * other governmental approval, or letter of assurance, without first obtaining 1137c478bd9Sstevel@tonic-gate * such license, approval or letter. 1147c478bd9Sstevel@tonic-gate * 1157c478bd9Sstevel@tonic-gate *****************************************************************************/ 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate #ifndef __ACINTERP_H__ 1187c478bd9Sstevel@tonic-gate #define __ACINTERP_H__ 1197c478bd9Sstevel@tonic-gate 1207c478bd9Sstevel@tonic-gate 121*30082d0cSmyers #define ACPI_WALK_OPERANDS (&(WalkState->Operands [WalkState->NumOperands -1])) 122*30082d0cSmyers 123*30082d0cSmyers /* Macros for tables used for debug output */ 124*30082d0cSmyers 125*30082d0cSmyers #define ACPI_EXD_OFFSET(f) (UINT8) ACPI_OFFSET (ACPI_OPERAND_OBJECT,f) 126*30082d0cSmyers #define ACPI_EXD_NSOFFSET(f) (UINT8) ACPI_OFFSET (ACPI_NAMESPACE_NODE,f) 127*30082d0cSmyers #define ACPI_EXD_TABLE_SIZE(name) (sizeof(name) / sizeof (ACPI_EXDUMP_INFO)) 128*30082d0cSmyers 129*30082d0cSmyers /* 130*30082d0cSmyers * If possible, pack the following structure to byte alignment, since we 131*30082d0cSmyers * don't care about performance for debug output 132*30082d0cSmyers */ 133*30082d0cSmyers #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED 134*30082d0cSmyers #pragma pack(1) 135*30082d0cSmyers #endif 136*30082d0cSmyers 137*30082d0cSmyers typedef const struct acpi_exdump_info 138*30082d0cSmyers { 139*30082d0cSmyers UINT8 Opcode; 140*30082d0cSmyers UINT8 Offset; 141*30082d0cSmyers char *Name; 142*30082d0cSmyers 143*30082d0cSmyers } ACPI_EXDUMP_INFO; 144*30082d0cSmyers 145*30082d0cSmyers /* Values for the Opcode field above */ 146*30082d0cSmyers 147*30082d0cSmyers #define ACPI_EXD_INIT 0 148*30082d0cSmyers #define ACPI_EXD_TYPE 1 149*30082d0cSmyers #define ACPI_EXD_UINT8 2 150*30082d0cSmyers #define ACPI_EXD_UINT16 3 151*30082d0cSmyers #define ACPI_EXD_UINT32 4 152*30082d0cSmyers #define ACPI_EXD_UINT64 5 153*30082d0cSmyers #define ACPI_EXD_LITERAL 6 154*30082d0cSmyers #define ACPI_EXD_POINTER 7 155*30082d0cSmyers #define ACPI_EXD_ADDRESS 8 156*30082d0cSmyers #define ACPI_EXD_STRING 9 157*30082d0cSmyers #define ACPI_EXD_BUFFER 10 158*30082d0cSmyers #define ACPI_EXD_PACKAGE 11 159*30082d0cSmyers #define ACPI_EXD_FIELD 12 160*30082d0cSmyers #define ACPI_EXD_REFERENCE 13 161*30082d0cSmyers 162*30082d0cSmyers /* restore default alignment */ 163*30082d0cSmyers 164*30082d0cSmyers #pragma pack() 1657c478bd9Sstevel@tonic-gate 1667c478bd9Sstevel@tonic-gate 1677c478bd9Sstevel@tonic-gate /* 1687c478bd9Sstevel@tonic-gate * exconvrt - object conversion 1697c478bd9Sstevel@tonic-gate */ 1707c478bd9Sstevel@tonic-gate ACPI_STATUS 1717c478bd9Sstevel@tonic-gate AcpiExConvertToInteger ( 1727c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 1737c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ResultDesc, 1747c478bd9Sstevel@tonic-gate UINT32 Flags); 1757c478bd9Sstevel@tonic-gate 1767c478bd9Sstevel@tonic-gate ACPI_STATUS 1777c478bd9Sstevel@tonic-gate AcpiExConvertToBuffer ( 1787c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 1797c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ResultDesc); 1807c478bd9Sstevel@tonic-gate 1817c478bd9Sstevel@tonic-gate ACPI_STATUS 1827c478bd9Sstevel@tonic-gate AcpiExConvertToString ( 1837c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 1847c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ResultDesc, 1857c478bd9Sstevel@tonic-gate UINT32 Type); 1867c478bd9Sstevel@tonic-gate 1877c478bd9Sstevel@tonic-gate /* Types for ->String conversion */ 1887c478bd9Sstevel@tonic-gate 1897c478bd9Sstevel@tonic-gate #define ACPI_EXPLICIT_BYTE_COPY 0x00000000 1907c478bd9Sstevel@tonic-gate #define ACPI_EXPLICIT_CONVERT_HEX 0x00000001 1917c478bd9Sstevel@tonic-gate #define ACPI_IMPLICIT_CONVERT_HEX 0x00000002 1927c478bd9Sstevel@tonic-gate #define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003 1937c478bd9Sstevel@tonic-gate 1947c478bd9Sstevel@tonic-gate ACPI_STATUS 1957c478bd9Sstevel@tonic-gate AcpiExConvertToTargetType ( 1967c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE DestinationType, 1977c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 1987c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ResultDesc, 1997c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 2007c478bd9Sstevel@tonic-gate 2017c478bd9Sstevel@tonic-gate 2027c478bd9Sstevel@tonic-gate /* 2037c478bd9Sstevel@tonic-gate * exfield - ACPI AML (p-code) execution - field manipulation 2047c478bd9Sstevel@tonic-gate */ 2057c478bd9Sstevel@tonic-gate ACPI_STATUS 2067c478bd9Sstevel@tonic-gate AcpiExCommonBufferSetup ( 2077c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2087c478bd9Sstevel@tonic-gate UINT32 BufferLength, 2097c478bd9Sstevel@tonic-gate UINT32 *DatumCount); 2107c478bd9Sstevel@tonic-gate 2117c478bd9Sstevel@tonic-gate ACPI_STATUS 2127c478bd9Sstevel@tonic-gate AcpiExWriteWithUpdateRule ( 2137c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2147c478bd9Sstevel@tonic-gate ACPI_INTEGER Mask, 2157c478bd9Sstevel@tonic-gate ACPI_INTEGER FieldValue, 2167c478bd9Sstevel@tonic-gate UINT32 FieldDatumByteOffset); 2177c478bd9Sstevel@tonic-gate 2187c478bd9Sstevel@tonic-gate void 2197c478bd9Sstevel@tonic-gate AcpiExGetBufferDatum( 2207c478bd9Sstevel@tonic-gate ACPI_INTEGER *Datum, 2217c478bd9Sstevel@tonic-gate void *Buffer, 2227c478bd9Sstevel@tonic-gate UINT32 BufferLength, 2237c478bd9Sstevel@tonic-gate UINT32 ByteGranularity, 2247c478bd9Sstevel@tonic-gate UINT32 BufferOffset); 2257c478bd9Sstevel@tonic-gate 2267c478bd9Sstevel@tonic-gate void 2277c478bd9Sstevel@tonic-gate AcpiExSetBufferDatum ( 2287c478bd9Sstevel@tonic-gate ACPI_INTEGER MergedDatum, 2297c478bd9Sstevel@tonic-gate void *Buffer, 2307c478bd9Sstevel@tonic-gate UINT32 BufferLength, 2317c478bd9Sstevel@tonic-gate UINT32 ByteGranularity, 2327c478bd9Sstevel@tonic-gate UINT32 BufferOffset); 2337c478bd9Sstevel@tonic-gate 2347c478bd9Sstevel@tonic-gate ACPI_STATUS 2357c478bd9Sstevel@tonic-gate AcpiExReadDataFromField ( 2367c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 2377c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2387c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **RetBufferDesc); 2397c478bd9Sstevel@tonic-gate 2407c478bd9Sstevel@tonic-gate ACPI_STATUS 2417c478bd9Sstevel@tonic-gate AcpiExWriteDataToField ( 2427c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 2437c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2447c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ResultDesc); 2457c478bd9Sstevel@tonic-gate 2467c478bd9Sstevel@tonic-gate 2477c478bd9Sstevel@tonic-gate /* 2487c478bd9Sstevel@tonic-gate * exfldio - low level field I/O 2497c478bd9Sstevel@tonic-gate */ 2507c478bd9Sstevel@tonic-gate ACPI_STATUS 2517c478bd9Sstevel@tonic-gate AcpiExExtractFromField ( 2527c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2537c478bd9Sstevel@tonic-gate void *Buffer, 2547c478bd9Sstevel@tonic-gate UINT32 BufferLength); 2557c478bd9Sstevel@tonic-gate 2567c478bd9Sstevel@tonic-gate ACPI_STATUS 2577c478bd9Sstevel@tonic-gate AcpiExInsertIntoField ( 2587c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2597c478bd9Sstevel@tonic-gate void *Buffer, 2607c478bd9Sstevel@tonic-gate UINT32 BufferLength); 2617c478bd9Sstevel@tonic-gate 2627c478bd9Sstevel@tonic-gate ACPI_STATUS 2637c478bd9Sstevel@tonic-gate AcpiExAccessRegion ( 2647c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2657c478bd9Sstevel@tonic-gate UINT32 FieldDatumByteOffset, 2667c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 2677c478bd9Sstevel@tonic-gate UINT32 ReadWrite); 2687c478bd9Sstevel@tonic-gate 2697c478bd9Sstevel@tonic-gate 2707c478bd9Sstevel@tonic-gate /* 2717c478bd9Sstevel@tonic-gate * exmisc - misc support routines 2727c478bd9Sstevel@tonic-gate */ 2737c478bd9Sstevel@tonic-gate ACPI_STATUS 2747c478bd9Sstevel@tonic-gate AcpiExGetObjectReference ( 2757c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2767c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ReturnDesc, 2777c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 2787c478bd9Sstevel@tonic-gate 2797c478bd9Sstevel@tonic-gate ACPI_STATUS 2807c478bd9Sstevel@tonic-gate AcpiExConcatTemplate ( 2817c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2827c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc2, 2837c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ActualReturnDesc, 2847c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 2857c478bd9Sstevel@tonic-gate 2867c478bd9Sstevel@tonic-gate ACPI_STATUS 2877c478bd9Sstevel@tonic-gate AcpiExDoConcatenate ( 2887c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 2897c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc2, 2907c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ActualReturnDesc, 2917c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 2927c478bd9Sstevel@tonic-gate 2937c478bd9Sstevel@tonic-gate ACPI_STATUS 2947c478bd9Sstevel@tonic-gate AcpiExDoLogicalNumericOp ( 2957c478bd9Sstevel@tonic-gate UINT16 Opcode, 2967c478bd9Sstevel@tonic-gate ACPI_INTEGER Integer0, 2977c478bd9Sstevel@tonic-gate ACPI_INTEGER Integer1, 2987c478bd9Sstevel@tonic-gate BOOLEAN *LogicalResult); 2997c478bd9Sstevel@tonic-gate 3007c478bd9Sstevel@tonic-gate ACPI_STATUS 3017c478bd9Sstevel@tonic-gate AcpiExDoLogicalOp ( 3027c478bd9Sstevel@tonic-gate UINT16 Opcode, 3037c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Operand0, 3047c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Operand1, 3057c478bd9Sstevel@tonic-gate BOOLEAN *LogicalResult); 3067c478bd9Sstevel@tonic-gate 3077c478bd9Sstevel@tonic-gate ACPI_INTEGER 3087c478bd9Sstevel@tonic-gate AcpiExDoMathOp ( 3097c478bd9Sstevel@tonic-gate UINT16 Opcode, 3107c478bd9Sstevel@tonic-gate ACPI_INTEGER Operand0, 3117c478bd9Sstevel@tonic-gate ACPI_INTEGER Operand1); 3127c478bd9Sstevel@tonic-gate 3137c478bd9Sstevel@tonic-gate ACPI_STATUS 3147c478bd9Sstevel@tonic-gate AcpiExCreateMutex ( 3157c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3167c478bd9Sstevel@tonic-gate 3177c478bd9Sstevel@tonic-gate ACPI_STATUS 3187c478bd9Sstevel@tonic-gate AcpiExCreateProcessor ( 3197c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3207c478bd9Sstevel@tonic-gate 3217c478bd9Sstevel@tonic-gate ACPI_STATUS 3227c478bd9Sstevel@tonic-gate AcpiExCreatePowerResource ( 3237c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3247c478bd9Sstevel@tonic-gate 3257c478bd9Sstevel@tonic-gate ACPI_STATUS 3267c478bd9Sstevel@tonic-gate AcpiExCreateRegion ( 3277c478bd9Sstevel@tonic-gate UINT8 *AmlStart, 3287c478bd9Sstevel@tonic-gate UINT32 AmlLength, 3297c478bd9Sstevel@tonic-gate UINT8 RegionSpace, 3307c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3317c478bd9Sstevel@tonic-gate 3327c478bd9Sstevel@tonic-gate ACPI_STATUS 3337c478bd9Sstevel@tonic-gate AcpiExCreateTableRegion ( 3347c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3357c478bd9Sstevel@tonic-gate 3367c478bd9Sstevel@tonic-gate ACPI_STATUS 3377c478bd9Sstevel@tonic-gate AcpiExCreateEvent ( 3387c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3397c478bd9Sstevel@tonic-gate 3407c478bd9Sstevel@tonic-gate ACPI_STATUS 3417c478bd9Sstevel@tonic-gate AcpiExCreateAlias ( 3427c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3437c478bd9Sstevel@tonic-gate 3447c478bd9Sstevel@tonic-gate ACPI_STATUS 3457c478bd9Sstevel@tonic-gate AcpiExCreateMethod ( 3467c478bd9Sstevel@tonic-gate UINT8 *AmlStart, 3477c478bd9Sstevel@tonic-gate UINT32 AmlLength, 3487c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3497c478bd9Sstevel@tonic-gate 3507c478bd9Sstevel@tonic-gate 3517c478bd9Sstevel@tonic-gate /* 3527c478bd9Sstevel@tonic-gate * exconfig - dynamic table load/unload 3537c478bd9Sstevel@tonic-gate */ 3547c478bd9Sstevel@tonic-gate ACPI_STATUS 3557c478bd9Sstevel@tonic-gate AcpiExLoadOp ( 3567c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 3577c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Target, 3587c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3597c478bd9Sstevel@tonic-gate 3607c478bd9Sstevel@tonic-gate ACPI_STATUS 3617c478bd9Sstevel@tonic-gate AcpiExLoadTableOp ( 3627c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 3637c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ReturnDesc); 3647c478bd9Sstevel@tonic-gate 3657c478bd9Sstevel@tonic-gate ACPI_STATUS 3667c478bd9Sstevel@tonic-gate AcpiExUnloadTable ( 3677c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *DdbHandle); 3687c478bd9Sstevel@tonic-gate 3697c478bd9Sstevel@tonic-gate 3707c478bd9Sstevel@tonic-gate /* 3717c478bd9Sstevel@tonic-gate * exmutex - mutex support 3727c478bd9Sstevel@tonic-gate */ 3737c478bd9Sstevel@tonic-gate ACPI_STATUS 3747c478bd9Sstevel@tonic-gate AcpiExAcquireMutex ( 3757c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *TimeDesc, 3767c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 3777c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3787c478bd9Sstevel@tonic-gate 3797c478bd9Sstevel@tonic-gate ACPI_STATUS 3807c478bd9Sstevel@tonic-gate AcpiExReleaseMutex ( 3817c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 3827c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3837c478bd9Sstevel@tonic-gate 3847c478bd9Sstevel@tonic-gate void 3857c478bd9Sstevel@tonic-gate AcpiExReleaseAllMutexes ( 3867c478bd9Sstevel@tonic-gate ACPI_THREAD_STATE *Thread); 3877c478bd9Sstevel@tonic-gate 3887c478bd9Sstevel@tonic-gate void 3897c478bd9Sstevel@tonic-gate AcpiExUnlinkMutex ( 3907c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 3917c478bd9Sstevel@tonic-gate 3927c478bd9Sstevel@tonic-gate 3937c478bd9Sstevel@tonic-gate /* 3947c478bd9Sstevel@tonic-gate * exprep - ACPI AML execution - prep utilities 3957c478bd9Sstevel@tonic-gate */ 3967c478bd9Sstevel@tonic-gate ACPI_STATUS 3977c478bd9Sstevel@tonic-gate AcpiExPrepCommonFieldObject ( 3987c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 3997c478bd9Sstevel@tonic-gate UINT8 FieldFlags, 4007c478bd9Sstevel@tonic-gate UINT8 FieldAttribute, 4017c478bd9Sstevel@tonic-gate UINT32 FieldBitPosition, 4027c478bd9Sstevel@tonic-gate UINT32 FieldBitLength); 4037c478bd9Sstevel@tonic-gate 4047c478bd9Sstevel@tonic-gate ACPI_STATUS 4057c478bd9Sstevel@tonic-gate AcpiExPrepFieldValue ( 4067c478bd9Sstevel@tonic-gate ACPI_CREATE_FIELD_INFO *Info); 4077c478bd9Sstevel@tonic-gate 4087c478bd9Sstevel@tonic-gate 4097c478bd9Sstevel@tonic-gate /* 4107c478bd9Sstevel@tonic-gate * exsystem - Interface to OS services 4117c478bd9Sstevel@tonic-gate */ 4127c478bd9Sstevel@tonic-gate ACPI_STATUS 4137c478bd9Sstevel@tonic-gate AcpiExSystemDoNotifyOp ( 4147c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Value, 4157c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 4167c478bd9Sstevel@tonic-gate 4177c478bd9Sstevel@tonic-gate ACPI_STATUS 4187c478bd9Sstevel@tonic-gate AcpiExSystemDoSuspend( 4197c478bd9Sstevel@tonic-gate ACPI_INTEGER Time); 4207c478bd9Sstevel@tonic-gate 4217c478bd9Sstevel@tonic-gate ACPI_STATUS 4227c478bd9Sstevel@tonic-gate AcpiExSystemDoStall ( 4237c478bd9Sstevel@tonic-gate UINT32 Time); 4247c478bd9Sstevel@tonic-gate 4257c478bd9Sstevel@tonic-gate ACPI_STATUS 4267c478bd9Sstevel@tonic-gate AcpiExSystemAcquireMutex( 4277c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Time, 4287c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 4297c478bd9Sstevel@tonic-gate 4307c478bd9Sstevel@tonic-gate ACPI_STATUS 4317c478bd9Sstevel@tonic-gate AcpiExSystemReleaseMutex( 4327c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 4337c478bd9Sstevel@tonic-gate 4347c478bd9Sstevel@tonic-gate ACPI_STATUS 4357c478bd9Sstevel@tonic-gate AcpiExSystemSignalEvent( 4367c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 4377c478bd9Sstevel@tonic-gate 4387c478bd9Sstevel@tonic-gate ACPI_STATUS 4397c478bd9Sstevel@tonic-gate AcpiExSystemWaitEvent( 4407c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Time, 4417c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 4427c478bd9Sstevel@tonic-gate 4437c478bd9Sstevel@tonic-gate ACPI_STATUS 4447c478bd9Sstevel@tonic-gate AcpiExSystemResetEvent( 4457c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 4467c478bd9Sstevel@tonic-gate 4477c478bd9Sstevel@tonic-gate ACPI_STATUS 4487c478bd9Sstevel@tonic-gate AcpiExSystemWaitSemaphore ( 4497c478bd9Sstevel@tonic-gate ACPI_HANDLE Semaphore, 4507c478bd9Sstevel@tonic-gate UINT16 Timeout); 4517c478bd9Sstevel@tonic-gate 4527c478bd9Sstevel@tonic-gate 4537c478bd9Sstevel@tonic-gate /* 4547c478bd9Sstevel@tonic-gate * exoparg1 - ACPI AML execution, 1 operand 4557c478bd9Sstevel@tonic-gate */ 4567c478bd9Sstevel@tonic-gate ACPI_STATUS 4577c478bd9Sstevel@tonic-gate AcpiExOpcode_0A_0T_1R ( 4587c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4597c478bd9Sstevel@tonic-gate 4607c478bd9Sstevel@tonic-gate ACPI_STATUS 4617c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_0T_0R ( 4627c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4637c478bd9Sstevel@tonic-gate 4647c478bd9Sstevel@tonic-gate ACPI_STATUS 4657c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_0T_1R ( 4667c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4677c478bd9Sstevel@tonic-gate 4687c478bd9Sstevel@tonic-gate ACPI_STATUS 4697c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_1T_1R ( 4707c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4717c478bd9Sstevel@tonic-gate 4727c478bd9Sstevel@tonic-gate ACPI_STATUS 4737c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_1T_0R ( 4747c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4757c478bd9Sstevel@tonic-gate 4767c478bd9Sstevel@tonic-gate /* 4777c478bd9Sstevel@tonic-gate * exoparg2 - ACPI AML execution, 2 operands 4787c478bd9Sstevel@tonic-gate */ 4797c478bd9Sstevel@tonic-gate ACPI_STATUS 4807c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_0T_0R ( 4817c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4827c478bd9Sstevel@tonic-gate 4837c478bd9Sstevel@tonic-gate ACPI_STATUS 4847c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_0T_1R ( 4857c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4867c478bd9Sstevel@tonic-gate 4877c478bd9Sstevel@tonic-gate ACPI_STATUS 4887c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_1T_1R ( 4897c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4907c478bd9Sstevel@tonic-gate 4917c478bd9Sstevel@tonic-gate ACPI_STATUS 4927c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_2T_1R ( 4937c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 4947c478bd9Sstevel@tonic-gate 4957c478bd9Sstevel@tonic-gate 4967c478bd9Sstevel@tonic-gate /* 4977c478bd9Sstevel@tonic-gate * exoparg3 - ACPI AML execution, 3 operands 4987c478bd9Sstevel@tonic-gate */ 4997c478bd9Sstevel@tonic-gate ACPI_STATUS 5007c478bd9Sstevel@tonic-gate AcpiExOpcode_3A_0T_0R ( 5017c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 5027c478bd9Sstevel@tonic-gate 5037c478bd9Sstevel@tonic-gate ACPI_STATUS 5047c478bd9Sstevel@tonic-gate AcpiExOpcode_3A_1T_1R ( 5057c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 5067c478bd9Sstevel@tonic-gate 5077c478bd9Sstevel@tonic-gate 5087c478bd9Sstevel@tonic-gate /* 5097c478bd9Sstevel@tonic-gate * exoparg6 - ACPI AML execution, 6 operands 5107c478bd9Sstevel@tonic-gate */ 5117c478bd9Sstevel@tonic-gate ACPI_STATUS 5127c478bd9Sstevel@tonic-gate AcpiExOpcode_6A_0T_1R ( 5137c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 5147c478bd9Sstevel@tonic-gate 5157c478bd9Sstevel@tonic-gate 5167c478bd9Sstevel@tonic-gate /* 5177c478bd9Sstevel@tonic-gate * exresolv - Object resolution and get value functions 5187c478bd9Sstevel@tonic-gate */ 5197c478bd9Sstevel@tonic-gate ACPI_STATUS 5207c478bd9Sstevel@tonic-gate AcpiExResolveToValue ( 5217c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **StackPtr, 5227c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 5237c478bd9Sstevel@tonic-gate 5247c478bd9Sstevel@tonic-gate ACPI_STATUS 5257c478bd9Sstevel@tonic-gate AcpiExResolveMultiple ( 5267c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 5277c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Operand, 5287c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE *ReturnType, 5297c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **ReturnDesc); 5307c478bd9Sstevel@tonic-gate 5317c478bd9Sstevel@tonic-gate 5327c478bd9Sstevel@tonic-gate /* 5337c478bd9Sstevel@tonic-gate * exresnte - resolve namespace node 5347c478bd9Sstevel@tonic-gate */ 5357c478bd9Sstevel@tonic-gate ACPI_STATUS 5367c478bd9Sstevel@tonic-gate AcpiExResolveNodeToValue ( 5377c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE **StackPtr, 5387c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 5397c478bd9Sstevel@tonic-gate 5407c478bd9Sstevel@tonic-gate 5417c478bd9Sstevel@tonic-gate /* 5427c478bd9Sstevel@tonic-gate * exresop - resolve operand to value 5437c478bd9Sstevel@tonic-gate */ 5447c478bd9Sstevel@tonic-gate ACPI_STATUS 5457c478bd9Sstevel@tonic-gate AcpiExResolveOperands ( 5467c478bd9Sstevel@tonic-gate UINT16 Opcode, 5477c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **StackPtr, 5487c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 5497c478bd9Sstevel@tonic-gate 5507c478bd9Sstevel@tonic-gate 5517c478bd9Sstevel@tonic-gate /* 5527c478bd9Sstevel@tonic-gate * exdump - Interpreter debug output routines 5537c478bd9Sstevel@tonic-gate */ 5547c478bd9Sstevel@tonic-gate void 5557c478bd9Sstevel@tonic-gate AcpiExDumpOperand ( 5567c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc, 5577c478bd9Sstevel@tonic-gate UINT32 Depth); 5587c478bd9Sstevel@tonic-gate 5597c478bd9Sstevel@tonic-gate void 5607c478bd9Sstevel@tonic-gate AcpiExDumpOperands ( 5617c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **Operands, 5627c478bd9Sstevel@tonic-gate ACPI_INTERPRETER_MODE InterpreterMode, 5637c478bd9Sstevel@tonic-gate char *Ident, 5647c478bd9Sstevel@tonic-gate UINT32 NumLevels, 5657c478bd9Sstevel@tonic-gate char *Note, 5667c478bd9Sstevel@tonic-gate char *ModuleName, 5677c478bd9Sstevel@tonic-gate UINT32 LineNumber); 5687c478bd9Sstevel@tonic-gate 5697c478bd9Sstevel@tonic-gate void 5707c478bd9Sstevel@tonic-gate AcpiExDumpObjectDescriptor ( 5717c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Object, 5727c478bd9Sstevel@tonic-gate UINT32 Flags); 5737c478bd9Sstevel@tonic-gate 5747c478bd9Sstevel@tonic-gate void 575*30082d0cSmyers AcpiExDumpNamespaceNode ( 5767c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 5777c478bd9Sstevel@tonic-gate UINT32 Flags); 5787c478bd9Sstevel@tonic-gate 5797c478bd9Sstevel@tonic-gate 5807c478bd9Sstevel@tonic-gate /* 5817c478bd9Sstevel@tonic-gate * exnames - AML namestring support 5827c478bd9Sstevel@tonic-gate */ 5837c478bd9Sstevel@tonic-gate ACPI_STATUS 5847c478bd9Sstevel@tonic-gate AcpiExGetNameString ( 5857c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE DataType, 5867c478bd9Sstevel@tonic-gate UINT8 *InAmlAddress, 5877c478bd9Sstevel@tonic-gate char **OutNameString, 5887c478bd9Sstevel@tonic-gate UINT32 *OutNameLength); 5897c478bd9Sstevel@tonic-gate 5907c478bd9Sstevel@tonic-gate 5917c478bd9Sstevel@tonic-gate /* 5927c478bd9Sstevel@tonic-gate * exstore - Object store support 5937c478bd9Sstevel@tonic-gate */ 5947c478bd9Sstevel@tonic-gate ACPI_STATUS 5957c478bd9Sstevel@tonic-gate AcpiExStore ( 5967c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ValDesc, 5977c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *DestDesc, 5987c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 5997c478bd9Sstevel@tonic-gate 6007c478bd9Sstevel@tonic-gate ACPI_STATUS 6017c478bd9Sstevel@tonic-gate AcpiExStoreObjectToNode ( 6027c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6037c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 6047c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 6057c478bd9Sstevel@tonic-gate UINT8 ImplicitConversion); 6067c478bd9Sstevel@tonic-gate 6077c478bd9Sstevel@tonic-gate #define ACPI_IMPLICIT_CONVERSION TRUE 6087c478bd9Sstevel@tonic-gate #define ACPI_NO_IMPLICIT_CONVERSION FALSE 6097c478bd9Sstevel@tonic-gate 6107c478bd9Sstevel@tonic-gate 6117c478bd9Sstevel@tonic-gate /* 6127c478bd9Sstevel@tonic-gate * exstoren - resolve/store object 6137c478bd9Sstevel@tonic-gate */ 6147c478bd9Sstevel@tonic-gate ACPI_STATUS 6157c478bd9Sstevel@tonic-gate AcpiExResolveObject ( 6167c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **SourceDescPtr, 6177c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE TargetType, 6187c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 6197c478bd9Sstevel@tonic-gate 6207c478bd9Sstevel@tonic-gate ACPI_STATUS 6217c478bd9Sstevel@tonic-gate AcpiExStoreObjectToObject ( 6227c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6237c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *DestDesc, 6247c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT **NewDesc, 6257c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 6267c478bd9Sstevel@tonic-gate 6277c478bd9Sstevel@tonic-gate 6287c478bd9Sstevel@tonic-gate /* 6297c478bd9Sstevel@tonic-gate * exstorob - store object - buffer/string 6307c478bd9Sstevel@tonic-gate */ 6317c478bd9Sstevel@tonic-gate ACPI_STATUS 6327c478bd9Sstevel@tonic-gate AcpiExStoreBufferToBuffer ( 6337c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6347c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *TargetDesc); 6357c478bd9Sstevel@tonic-gate 6367c478bd9Sstevel@tonic-gate ACPI_STATUS 6377c478bd9Sstevel@tonic-gate AcpiExStoreStringToString ( 6387c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6397c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *TargetDesc); 6407c478bd9Sstevel@tonic-gate 6417c478bd9Sstevel@tonic-gate 6427c478bd9Sstevel@tonic-gate /* 6437c478bd9Sstevel@tonic-gate * excopy - object copy 6447c478bd9Sstevel@tonic-gate */ 6457c478bd9Sstevel@tonic-gate ACPI_STATUS 6467c478bd9Sstevel@tonic-gate AcpiExCopyIntegerToIndexField ( 6477c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6487c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *TargetDesc); 6497c478bd9Sstevel@tonic-gate 6507c478bd9Sstevel@tonic-gate ACPI_STATUS 6517c478bd9Sstevel@tonic-gate AcpiExCopyIntegerToBankField ( 6527c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6537c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *TargetDesc); 6547c478bd9Sstevel@tonic-gate 6557c478bd9Sstevel@tonic-gate ACPI_STATUS 6567c478bd9Sstevel@tonic-gate AcpiExCopyDataToNamedField ( 6577c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6587c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 6597c478bd9Sstevel@tonic-gate 6607c478bd9Sstevel@tonic-gate ACPI_STATUS 6617c478bd9Sstevel@tonic-gate AcpiExCopyIntegerToBufferField ( 6627c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *SourceDesc, 6637c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *TargetDesc); 6647c478bd9Sstevel@tonic-gate 6657c478bd9Sstevel@tonic-gate 6667c478bd9Sstevel@tonic-gate /* 6677c478bd9Sstevel@tonic-gate * exutils - interpreter/scanner utilities 6687c478bd9Sstevel@tonic-gate */ 6697c478bd9Sstevel@tonic-gate ACPI_STATUS 6707c478bd9Sstevel@tonic-gate AcpiExEnterInterpreter ( 6717c478bd9Sstevel@tonic-gate void); 6727c478bd9Sstevel@tonic-gate 6737c478bd9Sstevel@tonic-gate void 6747c478bd9Sstevel@tonic-gate AcpiExExitInterpreter ( 6757c478bd9Sstevel@tonic-gate void); 6767c478bd9Sstevel@tonic-gate 6777c478bd9Sstevel@tonic-gate void 6787c478bd9Sstevel@tonic-gate AcpiExTruncateFor32bitTable ( 6797c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 6807c478bd9Sstevel@tonic-gate 6817c478bd9Sstevel@tonic-gate BOOLEAN 6827c478bd9Sstevel@tonic-gate AcpiExAcquireGlobalLock ( 6837c478bd9Sstevel@tonic-gate UINT32 Rule); 6847c478bd9Sstevel@tonic-gate 6857c478bd9Sstevel@tonic-gate void 6867c478bd9Sstevel@tonic-gate AcpiExReleaseGlobalLock ( 6877c478bd9Sstevel@tonic-gate BOOLEAN Locked); 6887c478bd9Sstevel@tonic-gate 6897c478bd9Sstevel@tonic-gate void 6907c478bd9Sstevel@tonic-gate AcpiExEisaIdToString ( 6917c478bd9Sstevel@tonic-gate UINT32 NumericId, 6927c478bd9Sstevel@tonic-gate char *OutString); 6937c478bd9Sstevel@tonic-gate 6947c478bd9Sstevel@tonic-gate void 6957c478bd9Sstevel@tonic-gate AcpiExUnsignedIntegerToString ( 6967c478bd9Sstevel@tonic-gate ACPI_INTEGER Value, 6977c478bd9Sstevel@tonic-gate char *OutString); 6987c478bd9Sstevel@tonic-gate 6997c478bd9Sstevel@tonic-gate 7007c478bd9Sstevel@tonic-gate /* 7017c478bd9Sstevel@tonic-gate * exregion - default OpRegion handlers 7027c478bd9Sstevel@tonic-gate */ 7037c478bd9Sstevel@tonic-gate ACPI_STATUS 7047c478bd9Sstevel@tonic-gate AcpiExSystemMemorySpaceHandler ( 7057c478bd9Sstevel@tonic-gate UINT32 Function, 7067c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7077c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7087c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7097c478bd9Sstevel@tonic-gate void *HandlerContext, 7107c478bd9Sstevel@tonic-gate void *RegionContext); 7117c478bd9Sstevel@tonic-gate 7127c478bd9Sstevel@tonic-gate ACPI_STATUS 7137c478bd9Sstevel@tonic-gate AcpiExSystemIoSpaceHandler ( 7147c478bd9Sstevel@tonic-gate UINT32 Function, 7157c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7167c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7177c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7187c478bd9Sstevel@tonic-gate void *HandlerContext, 7197c478bd9Sstevel@tonic-gate void *RegionContext); 7207c478bd9Sstevel@tonic-gate 7217c478bd9Sstevel@tonic-gate ACPI_STATUS 7227c478bd9Sstevel@tonic-gate AcpiExPciConfigSpaceHandler ( 7237c478bd9Sstevel@tonic-gate UINT32 Function, 7247c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7257c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7267c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7277c478bd9Sstevel@tonic-gate void *HandlerContext, 7287c478bd9Sstevel@tonic-gate void *RegionContext); 7297c478bd9Sstevel@tonic-gate 7307c478bd9Sstevel@tonic-gate ACPI_STATUS 7317c478bd9Sstevel@tonic-gate AcpiExCmosSpaceHandler ( 7327c478bd9Sstevel@tonic-gate UINT32 Function, 7337c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7347c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7357c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7367c478bd9Sstevel@tonic-gate void *HandlerContext, 7377c478bd9Sstevel@tonic-gate void *RegionContext); 7387c478bd9Sstevel@tonic-gate 7397c478bd9Sstevel@tonic-gate ACPI_STATUS 7407c478bd9Sstevel@tonic-gate AcpiExPciBarSpaceHandler ( 7417c478bd9Sstevel@tonic-gate UINT32 Function, 7427c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7437c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7447c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7457c478bd9Sstevel@tonic-gate void *HandlerContext, 7467c478bd9Sstevel@tonic-gate void *RegionContext); 7477c478bd9Sstevel@tonic-gate 7487c478bd9Sstevel@tonic-gate ACPI_STATUS 7497c478bd9Sstevel@tonic-gate AcpiExEmbeddedControllerSpaceHandler ( 7507c478bd9Sstevel@tonic-gate UINT32 Function, 7517c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7527c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7537c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7547c478bd9Sstevel@tonic-gate void *HandlerContext, 7557c478bd9Sstevel@tonic-gate void *RegionContext); 7567c478bd9Sstevel@tonic-gate 7577c478bd9Sstevel@tonic-gate ACPI_STATUS 7587c478bd9Sstevel@tonic-gate AcpiExSmBusSpaceHandler ( 7597c478bd9Sstevel@tonic-gate UINT32 Function, 7607c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7617c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7627c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7637c478bd9Sstevel@tonic-gate void *HandlerContext, 7647c478bd9Sstevel@tonic-gate void *RegionContext); 7657c478bd9Sstevel@tonic-gate 7667c478bd9Sstevel@tonic-gate 7677c478bd9Sstevel@tonic-gate ACPI_STATUS 7687c478bd9Sstevel@tonic-gate AcpiExDataTableSpaceHandler ( 7697c478bd9Sstevel@tonic-gate UINT32 Function, 7707c478bd9Sstevel@tonic-gate ACPI_PHYSICAL_ADDRESS Address, 7717c478bd9Sstevel@tonic-gate UINT32 BitWidth, 7727c478bd9Sstevel@tonic-gate ACPI_INTEGER *Value, 7737c478bd9Sstevel@tonic-gate void *HandlerContext, 7747c478bd9Sstevel@tonic-gate void *RegionContext); 7757c478bd9Sstevel@tonic-gate 7767c478bd9Sstevel@tonic-gate #endif /* __INTERP_H__ */ 777