xref: /illumos-gate/usr/src/uts/intel/sys/acpi/acinterp.h (revision db2bae30)
17c478bd9Sstevel@tonic-gate /******************************************************************************
27c478bd9Sstevel@tonic-gate  *
37c478bd9Sstevel@tonic-gate  * Name: acinterp.h - Interpreter subcomponent prototypes and defines
4*db2bae30SDana Myers  *       $Revision: 1.173 $
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*db2bae30SDana Myers  * Some or all of this work - Copyright (c) 1999 - 2008, 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 
12130082d0cSmyers #define ACPI_WALK_OPERANDS          (&(WalkState->Operands [WalkState->NumOperands -1]))
12230082d0cSmyers 
12330082d0cSmyers /* Macros for tables used for debug output */
12430082d0cSmyers 
12530082d0cSmyers #define ACPI_EXD_OFFSET(f)          (UINT8) ACPI_OFFSET (ACPI_OPERAND_OBJECT,f)
12630082d0cSmyers #define ACPI_EXD_NSOFFSET(f)        (UINT8) ACPI_OFFSET (ACPI_NAMESPACE_NODE,f)
12730082d0cSmyers #define ACPI_EXD_TABLE_SIZE(name)   (sizeof(name) / sizeof (ACPI_EXDUMP_INFO))
12830082d0cSmyers 
12930082d0cSmyers /*
13027f7c583Smyers  * If possible, pack the following structures to byte alignment, since we
13127f7c583Smyers  * don't care about performance for debug output. Two cases where we cannot
13227f7c583Smyers  * pack the structures:
13327f7c583Smyers  *
13427f7c583Smyers  * 1) Hardware does not support misaligned memory transfers
13527f7c583Smyers  * 2) Compiler does not support pointers within packed structures
13630082d0cSmyers  */
13727f7c583Smyers #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED))
13830082d0cSmyers #pragma pack(1)
13930082d0cSmyers #endif
14030082d0cSmyers 
14130082d0cSmyers typedef const struct acpi_exdump_info
14230082d0cSmyers {
14330082d0cSmyers     UINT8                   Opcode;
14430082d0cSmyers     UINT8                   Offset;
14530082d0cSmyers     char                    *Name;
14630082d0cSmyers 
14730082d0cSmyers } ACPI_EXDUMP_INFO;
14830082d0cSmyers 
14930082d0cSmyers /* Values for the Opcode field above */
15030082d0cSmyers 
15130082d0cSmyers #define ACPI_EXD_INIT                   0
15230082d0cSmyers #define ACPI_EXD_TYPE                   1
15330082d0cSmyers #define ACPI_EXD_UINT8                  2
15430082d0cSmyers #define ACPI_EXD_UINT16                 3
15530082d0cSmyers #define ACPI_EXD_UINT32                 4
15630082d0cSmyers #define ACPI_EXD_UINT64                 5
15730082d0cSmyers #define ACPI_EXD_LITERAL                6
15830082d0cSmyers #define ACPI_EXD_POINTER                7
15930082d0cSmyers #define ACPI_EXD_ADDRESS                8
16030082d0cSmyers #define ACPI_EXD_STRING                 9
16130082d0cSmyers #define ACPI_EXD_BUFFER                 10
16230082d0cSmyers #define ACPI_EXD_PACKAGE                11
16330082d0cSmyers #define ACPI_EXD_FIELD                  12
16430082d0cSmyers #define ACPI_EXD_REFERENCE              13
16530082d0cSmyers 
16630082d0cSmyers /* restore default alignment */
16730082d0cSmyers 
16830082d0cSmyers #pragma pack()
1697c478bd9Sstevel@tonic-gate 
1707c478bd9Sstevel@tonic-gate 
1717c478bd9Sstevel@tonic-gate /*
1727c478bd9Sstevel@tonic-gate  * exconvrt - object conversion
1737c478bd9Sstevel@tonic-gate  */
1747c478bd9Sstevel@tonic-gate ACPI_STATUS
1757c478bd9Sstevel@tonic-gate AcpiExConvertToInteger (
1767c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
1777c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ResultDesc,
1787c478bd9Sstevel@tonic-gate     UINT32                  Flags);
1797c478bd9Sstevel@tonic-gate 
1807c478bd9Sstevel@tonic-gate ACPI_STATUS
1817c478bd9Sstevel@tonic-gate AcpiExConvertToBuffer (
1827c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
1837c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ResultDesc);
1847c478bd9Sstevel@tonic-gate 
1857c478bd9Sstevel@tonic-gate ACPI_STATUS
1867c478bd9Sstevel@tonic-gate AcpiExConvertToString (
1877c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
1887c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ResultDesc,
1897c478bd9Sstevel@tonic-gate     UINT32                  Type);
1907c478bd9Sstevel@tonic-gate 
1917c478bd9Sstevel@tonic-gate /* Types for ->String conversion */
1927c478bd9Sstevel@tonic-gate 
1937c478bd9Sstevel@tonic-gate #define ACPI_EXPLICIT_BYTE_COPY         0x00000000
1947c478bd9Sstevel@tonic-gate #define ACPI_EXPLICIT_CONVERT_HEX       0x00000001
1957c478bd9Sstevel@tonic-gate #define ACPI_IMPLICIT_CONVERT_HEX       0x00000002
1967c478bd9Sstevel@tonic-gate #define ACPI_EXPLICIT_CONVERT_DECIMAL   0x00000003
1977c478bd9Sstevel@tonic-gate 
1987c478bd9Sstevel@tonic-gate ACPI_STATUS
1997c478bd9Sstevel@tonic-gate AcpiExConvertToTargetType (
2007c478bd9Sstevel@tonic-gate     ACPI_OBJECT_TYPE        DestinationType,
2017c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
2027c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ResultDesc,
2037c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
2047c478bd9Sstevel@tonic-gate 
2057c478bd9Sstevel@tonic-gate 
2067c478bd9Sstevel@tonic-gate /*
2077c478bd9Sstevel@tonic-gate  * exfield - ACPI AML (p-code) execution - field manipulation
2087c478bd9Sstevel@tonic-gate  */
2097c478bd9Sstevel@tonic-gate ACPI_STATUS
2107c478bd9Sstevel@tonic-gate AcpiExCommonBufferSetup (
2117c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2127c478bd9Sstevel@tonic-gate     UINT32                  BufferLength,
2137c478bd9Sstevel@tonic-gate     UINT32                  *DatumCount);
2147c478bd9Sstevel@tonic-gate 
2157c478bd9Sstevel@tonic-gate ACPI_STATUS
2167c478bd9Sstevel@tonic-gate AcpiExWriteWithUpdateRule (
2177c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2187c478bd9Sstevel@tonic-gate     ACPI_INTEGER            Mask,
2197c478bd9Sstevel@tonic-gate     ACPI_INTEGER            FieldValue,
2207c478bd9Sstevel@tonic-gate     UINT32                  FieldDatumByteOffset);
2217c478bd9Sstevel@tonic-gate 
2227c478bd9Sstevel@tonic-gate void
2237c478bd9Sstevel@tonic-gate AcpiExGetBufferDatum(
2247c478bd9Sstevel@tonic-gate     ACPI_INTEGER            *Datum,
2257c478bd9Sstevel@tonic-gate     void                    *Buffer,
2267c478bd9Sstevel@tonic-gate     UINT32                  BufferLength,
2277c478bd9Sstevel@tonic-gate     UINT32                  ByteGranularity,
2287c478bd9Sstevel@tonic-gate     UINT32                  BufferOffset);
2297c478bd9Sstevel@tonic-gate 
2307c478bd9Sstevel@tonic-gate void
2317c478bd9Sstevel@tonic-gate AcpiExSetBufferDatum (
2327c478bd9Sstevel@tonic-gate     ACPI_INTEGER            MergedDatum,
2337c478bd9Sstevel@tonic-gate     void                    *Buffer,
2347c478bd9Sstevel@tonic-gate     UINT32                  BufferLength,
2357c478bd9Sstevel@tonic-gate     UINT32                  ByteGranularity,
2367c478bd9Sstevel@tonic-gate     UINT32                  BufferOffset);
2377c478bd9Sstevel@tonic-gate 
2387c478bd9Sstevel@tonic-gate ACPI_STATUS
2397c478bd9Sstevel@tonic-gate AcpiExReadDataFromField (
2407c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
2417c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2427c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **RetBufferDesc);
2437c478bd9Sstevel@tonic-gate 
2447c478bd9Sstevel@tonic-gate ACPI_STATUS
2457c478bd9Sstevel@tonic-gate AcpiExWriteDataToField (
2467c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
2477c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2487c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ResultDesc);
2497c478bd9Sstevel@tonic-gate 
2507c478bd9Sstevel@tonic-gate 
2517c478bd9Sstevel@tonic-gate /*
2527c478bd9Sstevel@tonic-gate  * exfldio - low level field I/O
2537c478bd9Sstevel@tonic-gate  */
2547c478bd9Sstevel@tonic-gate ACPI_STATUS
2557c478bd9Sstevel@tonic-gate AcpiExExtractFromField (
2567c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2577c478bd9Sstevel@tonic-gate     void                    *Buffer,
2587c478bd9Sstevel@tonic-gate     UINT32                  BufferLength);
2597c478bd9Sstevel@tonic-gate 
2607c478bd9Sstevel@tonic-gate ACPI_STATUS
2617c478bd9Sstevel@tonic-gate AcpiExInsertIntoField (
2627c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2637c478bd9Sstevel@tonic-gate     void                    *Buffer,
2647c478bd9Sstevel@tonic-gate     UINT32                  BufferLength);
2657c478bd9Sstevel@tonic-gate 
2667c478bd9Sstevel@tonic-gate ACPI_STATUS
2677c478bd9Sstevel@tonic-gate AcpiExAccessRegion (
2687c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2697c478bd9Sstevel@tonic-gate     UINT32                  FieldDatumByteOffset,
2707c478bd9Sstevel@tonic-gate     ACPI_INTEGER            *Value,
2717c478bd9Sstevel@tonic-gate     UINT32                  ReadWrite);
2727c478bd9Sstevel@tonic-gate 
2737c478bd9Sstevel@tonic-gate 
2747c478bd9Sstevel@tonic-gate /*
2757c478bd9Sstevel@tonic-gate  * exmisc - misc support routines
2767c478bd9Sstevel@tonic-gate  */
2777c478bd9Sstevel@tonic-gate ACPI_STATUS
2787c478bd9Sstevel@tonic-gate AcpiExGetObjectReference (
2797c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2807c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ReturnDesc,
2817c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
2827c478bd9Sstevel@tonic-gate 
2837c478bd9Sstevel@tonic-gate ACPI_STATUS
2847c478bd9Sstevel@tonic-gate AcpiExConcatTemplate (
2857c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2867c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc2,
2877c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ActualReturnDesc,
2887c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
2897c478bd9Sstevel@tonic-gate 
2907c478bd9Sstevel@tonic-gate ACPI_STATUS
2917c478bd9Sstevel@tonic-gate AcpiExDoConcatenate (
2927c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
2937c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc2,
2947c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ActualReturnDesc,
2957c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
2967c478bd9Sstevel@tonic-gate 
2977c478bd9Sstevel@tonic-gate ACPI_STATUS
2987c478bd9Sstevel@tonic-gate AcpiExDoLogicalNumericOp (
2997c478bd9Sstevel@tonic-gate     UINT16                  Opcode,
3007c478bd9Sstevel@tonic-gate     ACPI_INTEGER            Integer0,
3017c478bd9Sstevel@tonic-gate     ACPI_INTEGER            Integer1,
3027c478bd9Sstevel@tonic-gate     BOOLEAN                 *LogicalResult);
3037c478bd9Sstevel@tonic-gate 
3047c478bd9Sstevel@tonic-gate ACPI_STATUS
3057c478bd9Sstevel@tonic-gate AcpiExDoLogicalOp (
3067c478bd9Sstevel@tonic-gate     UINT16                  Opcode,
3077c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *Operand0,
3087c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *Operand1,
3097c478bd9Sstevel@tonic-gate     BOOLEAN                 *LogicalResult);
3107c478bd9Sstevel@tonic-gate 
3117c478bd9Sstevel@tonic-gate ACPI_INTEGER
3127c478bd9Sstevel@tonic-gate AcpiExDoMathOp (
3137c478bd9Sstevel@tonic-gate     UINT16                  Opcode,
3147c478bd9Sstevel@tonic-gate     ACPI_INTEGER            Operand0,
3157c478bd9Sstevel@tonic-gate     ACPI_INTEGER            Operand1);
3167c478bd9Sstevel@tonic-gate 
3177c478bd9Sstevel@tonic-gate ACPI_STATUS
3187c478bd9Sstevel@tonic-gate AcpiExCreateMutex (
3197c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
3207c478bd9Sstevel@tonic-gate 
3217c478bd9Sstevel@tonic-gate ACPI_STATUS
3227c478bd9Sstevel@tonic-gate AcpiExCreateProcessor (
3237c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
3247c478bd9Sstevel@tonic-gate 
3257c478bd9Sstevel@tonic-gate ACPI_STATUS
3267c478bd9Sstevel@tonic-gate AcpiExCreatePowerResource (
3277c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
3287c478bd9Sstevel@tonic-gate 
3297c478bd9Sstevel@tonic-gate ACPI_STATUS
3307c478bd9Sstevel@tonic-gate AcpiExCreateRegion (
3317c478bd9Sstevel@tonic-gate     UINT8                   *AmlStart,
3327c478bd9Sstevel@tonic-gate     UINT32                  AmlLength,
3337c478bd9Sstevel@tonic-gate     UINT8                   RegionSpace,
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 
379*db2bae30SDana Myers ACPI_STATUS
380*db2bae30SDana Myers AcpiExAcquireMutexObject (
381*db2bae30SDana Myers     UINT16                  Timeout,
382*db2bae30SDana Myers     ACPI_OPERAND_OBJECT     *ObjDesc,
383*db2bae30SDana Myers     ACPI_THREAD_ID          ThreadId);
384*db2bae30SDana Myers 
3857c478bd9Sstevel@tonic-gate ACPI_STATUS
3867c478bd9Sstevel@tonic-gate AcpiExReleaseMutex (
3877c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
3887c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
3897c478bd9Sstevel@tonic-gate 
390*db2bae30SDana Myers ACPI_STATUS
391*db2bae30SDana Myers AcpiExReleaseMutexObject (
392*db2bae30SDana Myers     ACPI_OPERAND_OBJECT     *ObjDesc);
393*db2bae30SDana Myers 
3947c478bd9Sstevel@tonic-gate void
3957c478bd9Sstevel@tonic-gate AcpiExReleaseAllMutexes (
3967c478bd9Sstevel@tonic-gate     ACPI_THREAD_STATE       *Thread);
3977c478bd9Sstevel@tonic-gate 
3987c478bd9Sstevel@tonic-gate void
3997c478bd9Sstevel@tonic-gate AcpiExUnlinkMutex (
4007c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
4017c478bd9Sstevel@tonic-gate 
4027c478bd9Sstevel@tonic-gate 
4037c478bd9Sstevel@tonic-gate /*
4047c478bd9Sstevel@tonic-gate  * exprep - ACPI AML execution - prep utilities
4057c478bd9Sstevel@tonic-gate  */
4067c478bd9Sstevel@tonic-gate ACPI_STATUS
4077c478bd9Sstevel@tonic-gate AcpiExPrepCommonFieldObject (
4087c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
4097c478bd9Sstevel@tonic-gate     UINT8                   FieldFlags,
4107c478bd9Sstevel@tonic-gate     UINT8                   FieldAttribute,
4117c478bd9Sstevel@tonic-gate     UINT32                  FieldBitPosition,
4127c478bd9Sstevel@tonic-gate     UINT32                  FieldBitLength);
4137c478bd9Sstevel@tonic-gate 
4147c478bd9Sstevel@tonic-gate ACPI_STATUS
4157c478bd9Sstevel@tonic-gate AcpiExPrepFieldValue (
4167c478bd9Sstevel@tonic-gate     ACPI_CREATE_FIELD_INFO  *Info);
4177c478bd9Sstevel@tonic-gate 
4187c478bd9Sstevel@tonic-gate 
4197c478bd9Sstevel@tonic-gate /*
4207c478bd9Sstevel@tonic-gate  * exsystem - Interface to OS services
4217c478bd9Sstevel@tonic-gate  */
4227c478bd9Sstevel@tonic-gate ACPI_STATUS
4237c478bd9Sstevel@tonic-gate AcpiExSystemDoNotifyOp (
4247c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *Value,
4257c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
4267c478bd9Sstevel@tonic-gate 
4277c478bd9Sstevel@tonic-gate ACPI_STATUS
4287c478bd9Sstevel@tonic-gate AcpiExSystemDoSuspend(
4297c478bd9Sstevel@tonic-gate     ACPI_INTEGER            Time);
4307c478bd9Sstevel@tonic-gate 
4317c478bd9Sstevel@tonic-gate ACPI_STATUS
4327c478bd9Sstevel@tonic-gate AcpiExSystemDoStall (
4337c478bd9Sstevel@tonic-gate     UINT32                  Time);
4347c478bd9Sstevel@tonic-gate 
4357c478bd9Sstevel@tonic-gate ACPI_STATUS
4367c478bd9Sstevel@tonic-gate AcpiExSystemSignalEvent(
4377c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
4387c478bd9Sstevel@tonic-gate 
4397c478bd9Sstevel@tonic-gate ACPI_STATUS
4407c478bd9Sstevel@tonic-gate AcpiExSystemWaitEvent(
4417c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *Time,
4427c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
4437c478bd9Sstevel@tonic-gate 
4447c478bd9Sstevel@tonic-gate ACPI_STATUS
4457c478bd9Sstevel@tonic-gate AcpiExSystemResetEvent(
4467c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
4477c478bd9Sstevel@tonic-gate 
4487c478bd9Sstevel@tonic-gate ACPI_STATUS
4497c478bd9Sstevel@tonic-gate AcpiExSystemWaitSemaphore (
45027f7c583Smyers     ACPI_SEMAPHORE          Semaphore,
4517c478bd9Sstevel@tonic-gate     UINT16                  Timeout);
4527c478bd9Sstevel@tonic-gate 
45327f7c583Smyers ACPI_STATUS
45427f7c583Smyers AcpiExSystemWaitMutex (
45527f7c583Smyers     ACPI_MUTEX              Mutex,
45627f7c583Smyers     UINT16                  Timeout);
4577c478bd9Sstevel@tonic-gate 
4587c478bd9Sstevel@tonic-gate /*
4597c478bd9Sstevel@tonic-gate  * exoparg1 - ACPI AML execution, 1 operand
4607c478bd9Sstevel@tonic-gate  */
4617c478bd9Sstevel@tonic-gate ACPI_STATUS
4627c478bd9Sstevel@tonic-gate AcpiExOpcode_0A_0T_1R (
4637c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4647c478bd9Sstevel@tonic-gate 
4657c478bd9Sstevel@tonic-gate ACPI_STATUS
4667c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_0T_0R (
4677c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4687c478bd9Sstevel@tonic-gate 
4697c478bd9Sstevel@tonic-gate ACPI_STATUS
4707c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_0T_1R (
4717c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4727c478bd9Sstevel@tonic-gate 
4737c478bd9Sstevel@tonic-gate ACPI_STATUS
4747c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_1T_1R (
4757c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4767c478bd9Sstevel@tonic-gate 
4777c478bd9Sstevel@tonic-gate ACPI_STATUS
4787c478bd9Sstevel@tonic-gate AcpiExOpcode_1A_1T_0R (
4797c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4807c478bd9Sstevel@tonic-gate 
4817c478bd9Sstevel@tonic-gate /*
4827c478bd9Sstevel@tonic-gate  * exoparg2 - ACPI AML execution, 2 operands
4837c478bd9Sstevel@tonic-gate  */
4847c478bd9Sstevel@tonic-gate ACPI_STATUS
4857c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_0T_0R (
4867c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4877c478bd9Sstevel@tonic-gate 
4887c478bd9Sstevel@tonic-gate ACPI_STATUS
4897c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_0T_1R (
4907c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4917c478bd9Sstevel@tonic-gate 
4927c478bd9Sstevel@tonic-gate ACPI_STATUS
4937c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_1T_1R (
4947c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4957c478bd9Sstevel@tonic-gate 
4967c478bd9Sstevel@tonic-gate ACPI_STATUS
4977c478bd9Sstevel@tonic-gate AcpiExOpcode_2A_2T_1R (
4987c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
4997c478bd9Sstevel@tonic-gate 
5007c478bd9Sstevel@tonic-gate 
5017c478bd9Sstevel@tonic-gate /*
5027c478bd9Sstevel@tonic-gate  * exoparg3 - ACPI AML execution, 3 operands
5037c478bd9Sstevel@tonic-gate  */
5047c478bd9Sstevel@tonic-gate ACPI_STATUS
5057c478bd9Sstevel@tonic-gate AcpiExOpcode_3A_0T_0R (
5067c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
5077c478bd9Sstevel@tonic-gate 
5087c478bd9Sstevel@tonic-gate ACPI_STATUS
5097c478bd9Sstevel@tonic-gate AcpiExOpcode_3A_1T_1R (
5107c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
5117c478bd9Sstevel@tonic-gate 
5127c478bd9Sstevel@tonic-gate 
5137c478bd9Sstevel@tonic-gate /*
5147c478bd9Sstevel@tonic-gate  * exoparg6 - ACPI AML execution, 6 operands
5157c478bd9Sstevel@tonic-gate  */
5167c478bd9Sstevel@tonic-gate ACPI_STATUS
5177c478bd9Sstevel@tonic-gate AcpiExOpcode_6A_0T_1R (
5187c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
5197c478bd9Sstevel@tonic-gate 
5207c478bd9Sstevel@tonic-gate 
5217c478bd9Sstevel@tonic-gate /*
5227c478bd9Sstevel@tonic-gate  * exresolv - Object resolution and get value functions
5237c478bd9Sstevel@tonic-gate  */
5247c478bd9Sstevel@tonic-gate ACPI_STATUS
5257c478bd9Sstevel@tonic-gate AcpiExResolveToValue (
5267c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **StackPtr,
5277c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
5287c478bd9Sstevel@tonic-gate 
5297c478bd9Sstevel@tonic-gate ACPI_STATUS
5307c478bd9Sstevel@tonic-gate AcpiExResolveMultiple (
5317c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
5327c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *Operand,
5337c478bd9Sstevel@tonic-gate     ACPI_OBJECT_TYPE        *ReturnType,
5347c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ReturnDesc);
5357c478bd9Sstevel@tonic-gate 
5367c478bd9Sstevel@tonic-gate 
5377c478bd9Sstevel@tonic-gate /*
5387c478bd9Sstevel@tonic-gate  * exresnte - resolve namespace node
5397c478bd9Sstevel@tonic-gate  */
5407c478bd9Sstevel@tonic-gate ACPI_STATUS
5417c478bd9Sstevel@tonic-gate AcpiExResolveNodeToValue (
5427c478bd9Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     **StackPtr,
5437c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
5447c478bd9Sstevel@tonic-gate 
5457c478bd9Sstevel@tonic-gate 
5467c478bd9Sstevel@tonic-gate /*
5477c478bd9Sstevel@tonic-gate  * exresop - resolve operand to value
5487c478bd9Sstevel@tonic-gate  */
5497c478bd9Sstevel@tonic-gate ACPI_STATUS
5507c478bd9Sstevel@tonic-gate AcpiExResolveOperands (
5517c478bd9Sstevel@tonic-gate     UINT16                  Opcode,
5527c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **StackPtr,
5537c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
5547c478bd9Sstevel@tonic-gate 
5557c478bd9Sstevel@tonic-gate 
5567c478bd9Sstevel@tonic-gate /*
5577c478bd9Sstevel@tonic-gate  * exdump - Interpreter debug output routines
5587c478bd9Sstevel@tonic-gate  */
5597c478bd9Sstevel@tonic-gate void
5607c478bd9Sstevel@tonic-gate AcpiExDumpOperand (
5617c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
5627c478bd9Sstevel@tonic-gate     UINT32                  Depth);
5637c478bd9Sstevel@tonic-gate 
5647c478bd9Sstevel@tonic-gate void
5657c478bd9Sstevel@tonic-gate AcpiExDumpOperands (
5667c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **Operands,
567*db2bae30SDana Myers     const char              *OpcodeName,
568*db2bae30SDana Myers     UINT32                  NumOpcodes);
5697c478bd9Sstevel@tonic-gate 
5707c478bd9Sstevel@tonic-gate void
5717c478bd9Sstevel@tonic-gate AcpiExDumpObjectDescriptor (
5727c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *Object,
5737c478bd9Sstevel@tonic-gate     UINT32                  Flags);
5747c478bd9Sstevel@tonic-gate 
5757c478bd9Sstevel@tonic-gate void
57630082d0cSmyers AcpiExDumpNamespaceNode (
5777c478bd9Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *Node,
5787c478bd9Sstevel@tonic-gate     UINT32                  Flags);
5797c478bd9Sstevel@tonic-gate 
5807c478bd9Sstevel@tonic-gate 
5817c478bd9Sstevel@tonic-gate /*
5827c478bd9Sstevel@tonic-gate  * exnames - AML namestring support
5837c478bd9Sstevel@tonic-gate  */
5847c478bd9Sstevel@tonic-gate ACPI_STATUS
5857c478bd9Sstevel@tonic-gate AcpiExGetNameString (
5867c478bd9Sstevel@tonic-gate     ACPI_OBJECT_TYPE        DataType,
5877c478bd9Sstevel@tonic-gate     UINT8                   *InAmlAddress,
5887c478bd9Sstevel@tonic-gate     char                    **OutNameString,
5897c478bd9Sstevel@tonic-gate     UINT32                  *OutNameLength);
5907c478bd9Sstevel@tonic-gate 
5917c478bd9Sstevel@tonic-gate 
5927c478bd9Sstevel@tonic-gate /*
5937c478bd9Sstevel@tonic-gate  * exstore - Object store support
5947c478bd9Sstevel@tonic-gate  */
5957c478bd9Sstevel@tonic-gate ACPI_STATUS
5967c478bd9Sstevel@tonic-gate AcpiExStore (
5977c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ValDesc,
5987c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *DestDesc,
5997c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
6007c478bd9Sstevel@tonic-gate 
6017c478bd9Sstevel@tonic-gate ACPI_STATUS
6027c478bd9Sstevel@tonic-gate AcpiExStoreObjectToNode (
6037c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6047c478bd9Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *Node,
6057c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
6067c478bd9Sstevel@tonic-gate     UINT8                   ImplicitConversion);
6077c478bd9Sstevel@tonic-gate 
6087c478bd9Sstevel@tonic-gate #define ACPI_IMPLICIT_CONVERSION        TRUE
6097c478bd9Sstevel@tonic-gate #define ACPI_NO_IMPLICIT_CONVERSION     FALSE
6107c478bd9Sstevel@tonic-gate 
6117c478bd9Sstevel@tonic-gate 
6127c478bd9Sstevel@tonic-gate /*
6137c478bd9Sstevel@tonic-gate  * exstoren - resolve/store object
6147c478bd9Sstevel@tonic-gate  */
6157c478bd9Sstevel@tonic-gate ACPI_STATUS
6167c478bd9Sstevel@tonic-gate AcpiExResolveObject (
6177c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **SourceDescPtr,
6187c478bd9Sstevel@tonic-gate     ACPI_OBJECT_TYPE        TargetType,
6197c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
6207c478bd9Sstevel@tonic-gate 
6217c478bd9Sstevel@tonic-gate ACPI_STATUS
6227c478bd9Sstevel@tonic-gate AcpiExStoreObjectToObject (
6237c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6247c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *DestDesc,
6257c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **NewDesc,
6267c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
6277c478bd9Sstevel@tonic-gate 
6287c478bd9Sstevel@tonic-gate 
6297c478bd9Sstevel@tonic-gate /*
6307c478bd9Sstevel@tonic-gate  * exstorob - store object - buffer/string
6317c478bd9Sstevel@tonic-gate  */
6327c478bd9Sstevel@tonic-gate ACPI_STATUS
6337c478bd9Sstevel@tonic-gate AcpiExStoreBufferToBuffer (
6347c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6357c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *TargetDesc);
6367c478bd9Sstevel@tonic-gate 
6377c478bd9Sstevel@tonic-gate ACPI_STATUS
6387c478bd9Sstevel@tonic-gate AcpiExStoreStringToString (
6397c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6407c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *TargetDesc);
6417c478bd9Sstevel@tonic-gate 
6427c478bd9Sstevel@tonic-gate 
6437c478bd9Sstevel@tonic-gate /*
6447c478bd9Sstevel@tonic-gate  * excopy - object copy
6457c478bd9Sstevel@tonic-gate  */
6467c478bd9Sstevel@tonic-gate ACPI_STATUS
6477c478bd9Sstevel@tonic-gate AcpiExCopyIntegerToIndexField (
6487c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6497c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *TargetDesc);
6507c478bd9Sstevel@tonic-gate 
6517c478bd9Sstevel@tonic-gate ACPI_STATUS
6527c478bd9Sstevel@tonic-gate AcpiExCopyIntegerToBankField (
6537c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6547c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *TargetDesc);
6557c478bd9Sstevel@tonic-gate 
6567c478bd9Sstevel@tonic-gate ACPI_STATUS
6577c478bd9Sstevel@tonic-gate AcpiExCopyDataToNamedField (
6587c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6597c478bd9Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *Node);
6607c478bd9Sstevel@tonic-gate 
6617c478bd9Sstevel@tonic-gate ACPI_STATUS
6627c478bd9Sstevel@tonic-gate AcpiExCopyIntegerToBufferField (
6637c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SourceDesc,
6647c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *TargetDesc);
6657c478bd9Sstevel@tonic-gate 
6667c478bd9Sstevel@tonic-gate 
6677c478bd9Sstevel@tonic-gate /*
6687c478bd9Sstevel@tonic-gate  * exutils - interpreter/scanner utilities
6697c478bd9Sstevel@tonic-gate  */
670*db2bae30SDana Myers void
6717c478bd9Sstevel@tonic-gate AcpiExEnterInterpreter (
6727c478bd9Sstevel@tonic-gate     void);
6737c478bd9Sstevel@tonic-gate 
6747c478bd9Sstevel@tonic-gate void
6757c478bd9Sstevel@tonic-gate AcpiExExitInterpreter (
6767c478bd9Sstevel@tonic-gate     void);
6777c478bd9Sstevel@tonic-gate 
678*db2bae30SDana Myers void
679*db2bae30SDana Myers AcpiExReacquireInterpreter (
680*db2bae30SDana Myers     void);
681*db2bae30SDana Myers 
682*db2bae30SDana Myers void
683*db2bae30SDana Myers AcpiExRelinquishInterpreter (
684*db2bae30SDana Myers     void);
685*db2bae30SDana Myers 
6867c478bd9Sstevel@tonic-gate void
6877c478bd9Sstevel@tonic-gate AcpiExTruncateFor32bitTable (
6887c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
6897c478bd9Sstevel@tonic-gate 
690*db2bae30SDana Myers void
6917c478bd9Sstevel@tonic-gate AcpiExAcquireGlobalLock (
6927c478bd9Sstevel@tonic-gate     UINT32                  Rule);
6937c478bd9Sstevel@tonic-gate 
6947c478bd9Sstevel@tonic-gate void
6957c478bd9Sstevel@tonic-gate AcpiExReleaseGlobalLock (
696*db2bae30SDana Myers     UINT32                  Rule);
6977c478bd9Sstevel@tonic-gate 
6987c478bd9Sstevel@tonic-gate void
6997c478bd9Sstevel@tonic-gate AcpiExEisaIdToString (
7007c478bd9Sstevel@tonic-gate     UINT32                  NumericId,
7017c478bd9Sstevel@tonic-gate     char                    *OutString);
7027c478bd9Sstevel@tonic-gate 
7037c478bd9Sstevel@tonic-gate void
7047c478bd9Sstevel@tonic-gate AcpiExUnsignedIntegerToString (
7057c478bd9Sstevel@tonic-gate     ACPI_INTEGER            Value,
7067c478bd9Sstevel@tonic-gate     char                    *OutString);
7077c478bd9Sstevel@tonic-gate 
7087c478bd9Sstevel@tonic-gate 
7097c478bd9Sstevel@tonic-gate /*
7107c478bd9Sstevel@tonic-gate  * exregion - default OpRegion handlers
7117c478bd9Sstevel@tonic-gate  */
7127c478bd9Sstevel@tonic-gate ACPI_STATUS
7137c478bd9Sstevel@tonic-gate AcpiExSystemMemorySpaceHandler (
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 AcpiExSystemIoSpaceHandler (
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 AcpiExPciConfigSpaceHandler (
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 AcpiExCmosSpaceHandler (
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 AcpiExPciBarSpaceHandler (
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 AcpiExEmbeddedControllerSpaceHandler (
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 ACPI_STATUS
7677c478bd9Sstevel@tonic-gate AcpiExSmBusSpaceHandler (
7687c478bd9Sstevel@tonic-gate     UINT32                  Function,
7697c478bd9Sstevel@tonic-gate     ACPI_PHYSICAL_ADDRESS   Address,
7707c478bd9Sstevel@tonic-gate     UINT32                  BitWidth,
7717c478bd9Sstevel@tonic-gate     ACPI_INTEGER            *Value,
7727c478bd9Sstevel@tonic-gate     void                    *HandlerContext,
7737c478bd9Sstevel@tonic-gate     void                    *RegionContext);
7747c478bd9Sstevel@tonic-gate 
7757c478bd9Sstevel@tonic-gate 
7767c478bd9Sstevel@tonic-gate ACPI_STATUS
7777c478bd9Sstevel@tonic-gate AcpiExDataTableSpaceHandler (
7787c478bd9Sstevel@tonic-gate     UINT32                  Function,
7797c478bd9Sstevel@tonic-gate     ACPI_PHYSICAL_ADDRESS   Address,
7807c478bd9Sstevel@tonic-gate     UINT32                  BitWidth,
7817c478bd9Sstevel@tonic-gate     ACPI_INTEGER            *Value,
7827c478bd9Sstevel@tonic-gate     void                    *HandlerContext,
7837c478bd9Sstevel@tonic-gate     void                    *RegionContext);
7847c478bd9Sstevel@tonic-gate 
7857c478bd9Sstevel@tonic-gate #endif /* __INTERP_H__ */
786