acinterp.h revision 85756
1/******************************************************************************
2 *
3 * Name: acinterp.h - Interpreter subcomponent prototypes and defines
4 *       $Revision: 116 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.
13 * All rights reserved.
14 *
15 * 2. License
16 *
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights.  You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
20 * property rights.
21 *
22 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23 * copy of the source code appearing in this file ("Covered Code") an
24 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25 * base code distributed originally by Intel ("Original Intel Code") to copy,
26 * make derivatives, distribute, use and display any portion of the Covered
27 * Code in any form, with the right to sublicense such rights; and
28 *
29 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30 * license (with the right to sublicense), under only those claims of Intel
31 * patents that are infringed by the Original Intel Code, to make, use, sell,
32 * offer to sell, and import the Covered Code and derivative works thereof
33 * solely to the minimum extent necessary to exercise the above copyright
34 * license, and in no event shall the patent license extend to any additions
35 * to or modifications of the Original Intel Code.  No other license or right
36 * is granted directly or by implication, estoppel or otherwise;
37 *
38 * The above copyright and patent license is granted only if the following
39 * conditions are met:
40 *
41 * 3. Conditions
42 *
43 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44 * Redistribution of source code of any substantial portion of the Covered
45 * Code or modification with rights to further distribute source must include
46 * the above Copyright Notice, the above License, this list of Conditions,
47 * and the following Disclaimer and Export Compliance provision.  In addition,
48 * Licensee must cause all Covered Code to which Licensee contributes to
49 * contain a file documenting the changes Licensee made to create that Covered
50 * Code and the date of any change.  Licensee must include in that file the
51 * documentation of any changes made by any predecessor Licensee.  Licensee
52 * must include a prominent statement that the modification is derived,
53 * directly or indirectly, from Original Intel Code.
54 *
55 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56 * Redistribution of source code of any substantial portion of the Covered
57 * Code or modification without rights to further distribute source must
58 * include the following Disclaimer and Export Compliance provision in the
59 * documentation and/or other materials provided with distribution.  In
60 * addition, Licensee may not authorize further sublicense of source of any
61 * portion of the Covered Code, and must include terms to the effect that the
62 * license from Licensee to its licensee is limited to the intellectual
63 * property embodied in the software Licensee provides to its licensee, and
64 * not to intellectual property embodied in modifications its licensee may
65 * make.
66 *
67 * 3.3. Redistribution of Executable. Redistribution in executable form of any
68 * substantial portion of the Covered Code or modification must reproduce the
69 * above Copyright Notice, and the following Disclaimer and Export Compliance
70 * provision in the documentation and/or other materials provided with the
71 * distribution.
72 *
73 * 3.4. Intel retains all right, title, and interest in and to the Original
74 * Intel Code.
75 *
76 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77 * Intel shall be used in advertising or otherwise to promote the sale, use or
78 * other dealings in products derived from or relating to the Covered Code
79 * without prior written authorization from Intel.
80 *
81 * 4. Disclaimer and Export Compliance
82 *
83 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84 * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86 * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87 * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89 * PARTICULAR PURPOSE.
90 *
91 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98 * LIMITED REMEDY.
99 *
100 * 4.3. Licensee shall not export, either directly or indirectly, any of this
101 * software or system incorporating such software without first obtaining any
102 * required license or other approval from the U. S. Department of Commerce or
103 * any other agency or department of the United States Government.  In the
104 * event Licensee exports any such software from the United States or
105 * re-exports any such software from a foreign destination, Licensee shall
106 * ensure that the distribution and export/re-export of the software is in
107 * compliance with all laws, regulations, orders, or other restrictions of the
108 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109 * any of its subsidiaries will export/re-export any technical data, process,
110 * software, or service, directly or indirectly, to any country for which the
111 * United States government or any agency thereof requires an export license,
112 * other governmental approval, or letter of assurance, without first obtaining
113 * such license, approval or letter.
114 *
115 *****************************************************************************/
116
117#ifndef __ACINTERP_H__
118#define __ACINTERP_H__
119
120
121#define WALK_OPERANDS       &(WalkState->Operands [WalkState->NumOperands -1])
122
123
124/* Interpreter constants */
125
126#define AML_END_OF_BLOCK            -1
127#define PUSH_PKG_LENGTH             1
128#define DO_NOT_PUSH_PKG_LENGTH      0
129
130
131#define STACK_TOP                   0
132#define STACK_BOTTOM                (UINT32) -1
133
134/* Constants for global "WhenToParseMethods" */
135
136#define METHOD_PARSE_AT_INIT        0x0
137#define METHOD_PARSE_JUST_IN_TIME   0x1
138#define METHOD_DELETE_AT_COMPLETION 0x2
139
140
141ACPI_STATUS
142AcpiExResolveOperands (
143    UINT16                  Opcode,
144    ACPI_OPERAND_OBJECT     **StackPtr,
145    ACPI_WALK_STATE         *WalkState);
146
147
148/*
149 * amxface - External interpreter interfaces
150 */
151
152ACPI_STATUS
153AcpiExLoadTable (
154    ACPI_TABLE_TYPE         TableId);
155
156ACPI_STATUS
157AcpiExExecuteMethod (
158    ACPI_NAMESPACE_NODE     *MethodNode,
159    ACPI_OPERAND_OBJECT     **Params,
160    ACPI_OPERAND_OBJECT     **ReturnObjDesc);
161
162
163/*
164 * amconvrt - object conversion
165 */
166
167ACPI_STATUS
168AcpiExConvertToInteger (
169    ACPI_OPERAND_OBJECT     *ObjDesc,
170    ACPI_OPERAND_OBJECT     **ResultDesc,
171    ACPI_WALK_STATE         *WalkState);
172
173ACPI_STATUS
174AcpiExConvertToBuffer (
175    ACPI_OPERAND_OBJECT     *ObjDesc,
176    ACPI_OPERAND_OBJECT     **ResultDesc,
177    ACPI_WALK_STATE         *WalkState);
178
179ACPI_STATUS
180AcpiExConvertToString (
181    ACPI_OPERAND_OBJECT     *ObjDesc,
182    ACPI_OPERAND_OBJECT     **ResultDesc,
183    UINT32                  Base,
184    UINT32                  MaxLength,
185    ACPI_WALK_STATE         *WalkState);
186
187ACPI_STATUS
188AcpiExConvertToTargetType (
189    ACPI_OBJECT_TYPE8       DestinationType,
190    ACPI_OPERAND_OBJECT     **ObjDesc,
191    ACPI_WALK_STATE         *WalkState);
192
193
194/*
195 * amfield - ACPI AML (p-code) execution - field manipulation
196 */
197
198ACPI_STATUS
199AcpiExExtractFromField (
200    ACPI_OPERAND_OBJECT     *ObjDesc,
201    void                    *Buffer,
202    UINT32                  BufferLength);
203
204ACPI_STATUS
205AcpiExInsertIntoField (
206    ACPI_OPERAND_OBJECT     *ObjDesc,
207    void                    *Buffer,
208    UINT32                  BufferLength);
209
210ACPI_STATUS
211AcpiExSetupField (
212    ACPI_OPERAND_OBJECT     *ObjDesc,
213    UINT32                  FieldByteOffset);
214
215ACPI_STATUS
216AcpiExReadFieldDatum (
217    ACPI_OPERAND_OBJECT     *ObjDesc,
218    UINT32                  FieldByteOffset,
219    UINT32                  *Value);
220
221ACPI_STATUS
222AcpiExCommonAccessField (
223    UINT32                  Mode,
224    ACPI_OPERAND_OBJECT     *ObjDesc,
225    void                    *Buffer,
226    UINT32                  BufferLength);
227
228
229ACPI_STATUS
230AcpiExAccessIndexField (
231    UINT32                  Mode,
232    ACPI_OPERAND_OBJECT     *ObjDesc,
233    void                    *Buffer,
234    UINT32                  BufferLength);
235
236ACPI_STATUS
237AcpiExAccessBankField (
238    UINT32                  Mode,
239    ACPI_OPERAND_OBJECT     *ObjDesc,
240    void                    *Buffer,
241    UINT32                  BufferLength);
242
243ACPI_STATUS
244AcpiExAccessRegionField (
245    UINT32                  Mode,
246    ACPI_OPERAND_OBJECT     *ObjDesc,
247    void                    *Buffer,
248    UINT32                  BufferLength);
249
250
251ACPI_STATUS
252AcpiExAccessBufferField (
253    UINT32                  Mode,
254    ACPI_OPERAND_OBJECT     *ObjDesc,
255    void                    *Buffer,
256    UINT32                  BufferLength);
257
258ACPI_STATUS
259AcpiExReadDataFromField (
260    ACPI_OPERAND_OBJECT     *ObjDesc,
261    ACPI_OPERAND_OBJECT     **RetBufferDesc);
262
263ACPI_STATUS
264AcpiExWriteDataToField (
265    ACPI_OPERAND_OBJECT     *SourceDesc,
266    ACPI_OPERAND_OBJECT     *ObjDesc);
267
268/*
269 * ammisc - ACPI AML (p-code) execution - specific opcodes
270 */
271
272ACPI_STATUS
273AcpiExOpcode_3A_0T_0R (
274    ACPI_WALK_STATE         *WalkState);
275
276ACPI_STATUS
277AcpiExOpcode_3A_1T_1R (
278    ACPI_WALK_STATE         *WalkState);
279
280ACPI_STATUS
281AcpiExOpcode_6A_0T_1R (
282    ACPI_WALK_STATE         *WalkState);
283
284ACPI_STATUS
285AcpiExGetObjectReference (
286    ACPI_OPERAND_OBJECT     *ObjDesc,
287    ACPI_OPERAND_OBJECT     **ReturnDesc,
288    ACPI_WALK_STATE         *WalkState);
289
290ACPI_STATUS
291AcpiExDoConcatenate (
292    ACPI_OPERAND_OBJECT     *ObjDesc,
293    ACPI_OPERAND_OBJECT     *ObjDesc2,
294    ACPI_OPERAND_OBJECT     **ActualReturnDesc,
295    ACPI_WALK_STATE         *WalkState);
296
297BOOLEAN
298AcpiExDoLogicalOp (
299    UINT16                  Opcode,
300    ACPI_INTEGER            Operand0,
301    ACPI_INTEGER            Operand1);
302
303ACPI_INTEGER
304AcpiExDoMathOp (
305    UINT16                  Opcode,
306    ACPI_INTEGER            Operand0,
307    ACPI_INTEGER            Operand1);
308
309ACPI_STATUS
310AcpiExLoadOp (
311    ACPI_OPERAND_OBJECT     *RgnDesc,
312    ACPI_OPERAND_OBJECT     *DdbHandle);
313
314ACPI_STATUS
315AcpiExUnloadTable (
316    ACPI_OPERAND_OBJECT     *DdbHandle);
317
318ACPI_STATUS
319AcpiExCreateMutex (
320    ACPI_WALK_STATE         *WalkState);
321
322ACPI_STATUS
323AcpiExCreateProcessor (
324    ACPI_WALK_STATE         *WalkState);
325
326ACPI_STATUS
327AcpiExCreatePowerResource (
328    ACPI_WALK_STATE         *WalkState);
329
330ACPI_STATUS
331AcpiExCreateRegion (
332    UINT8                   *AmlStart,
333    UINT32                  AmlLength,
334    UINT8                   RegionSpace,
335    ACPI_WALK_STATE         *WalkState);
336
337ACPI_STATUS
338AcpiExCreateTableRegion (
339    ACPI_WALK_STATE         *WalkState);
340
341ACPI_STATUS
342AcpiExCreateEvent (
343    ACPI_WALK_STATE         *WalkState);
344
345ACPI_STATUS
346AcpiExCreateAlias (
347    ACPI_WALK_STATE         *WalkState);
348
349ACPI_STATUS
350AcpiExCreateMethod (
351    UINT8                   *AmlStart,
352    UINT32                  AmlLength,
353    ACPI_WALK_STATE         *WalkState);
354
355
356/*
357 * ammutex - mutex support
358 */
359
360ACPI_STATUS
361AcpiExAcquireMutex (
362    ACPI_OPERAND_OBJECT     *TimeDesc,
363    ACPI_OPERAND_OBJECT     *ObjDesc,
364    ACPI_WALK_STATE         *WalkState);
365
366ACPI_STATUS
367AcpiExReleaseMutex (
368    ACPI_OPERAND_OBJECT     *ObjDesc,
369    ACPI_WALK_STATE         *WalkState);
370
371ACPI_STATUS
372AcpiExReleaseAllMutexes (
373    ACPI_OPERAND_OBJECT     *MutexList);
374
375void
376AcpiExUnlinkMutex (
377    ACPI_OPERAND_OBJECT     *ObjDesc);
378
379
380/*
381 * amprep - ACPI AML (p-code) execution - prep utilities
382 */
383
384ACPI_STATUS
385AcpiExPrepCommonFieldObject (
386    ACPI_OPERAND_OBJECT     *ObjDesc,
387    UINT8                   FieldFlags,
388    UINT32                  FieldPosition,
389    UINT32                  FieldLength);
390
391ACPI_STATUS
392AcpiExPrepRegionFieldValue (
393    ACPI_NAMESPACE_NODE     *Node,
394    ACPI_HANDLE             Region,
395    UINT8                   FieldFlags,
396    UINT32                  FieldPosition,
397    UINT32                  FieldLength);
398
399ACPI_STATUS
400AcpiExPrepBankFieldValue (
401    ACPI_NAMESPACE_NODE     *Node,
402    ACPI_NAMESPACE_NODE     *RegionNode,
403    ACPI_NAMESPACE_NODE     *BankRegisterNode,
404    UINT32                  BankVal,
405    UINT8                   FieldFlags,
406    UINT32                  FieldPosition,
407    UINT32                  FieldLength);
408
409ACPI_STATUS
410AcpiExPrepIndexFieldValue (
411    ACPI_NAMESPACE_NODE     *Node,
412    ACPI_NAMESPACE_NODE     *IndexReg,
413    ACPI_NAMESPACE_NODE     *DataReg,
414    UINT8                   FieldFlags,
415    UINT32                  FieldPosition,
416    UINT32                  FieldLength);
417
418ACPI_STATUS
419AcpiExPrepFieldValue (
420    ACPI_CREATE_FIELD_INFO  *Info);
421
422/*
423 * amsystem - Interface to OS services
424 */
425
426ACPI_STATUS
427AcpiExSystemDoNotifyOp (
428    ACPI_OPERAND_OBJECT     *Value,
429    ACPI_OPERAND_OBJECT     *ObjDesc);
430
431void
432AcpiExSystemDoSuspend(
433    UINT32                  Time);
434
435void
436AcpiExSystemDoStall (
437    UINT32                  Time);
438
439ACPI_STATUS
440AcpiExSystemAcquireMutex(
441    ACPI_OPERAND_OBJECT     *Time,
442    ACPI_OPERAND_OBJECT     *ObjDesc);
443
444ACPI_STATUS
445AcpiExSystemReleaseMutex(
446    ACPI_OPERAND_OBJECT     *ObjDesc);
447
448ACPI_STATUS
449AcpiExSystemSignalEvent(
450    ACPI_OPERAND_OBJECT     *ObjDesc);
451
452ACPI_STATUS
453AcpiExSystemWaitEvent(
454    ACPI_OPERAND_OBJECT     *Time,
455    ACPI_OPERAND_OBJECT     *ObjDesc);
456
457ACPI_STATUS
458AcpiExSystemResetEvent(
459    ACPI_OPERAND_OBJECT     *ObjDesc);
460
461ACPI_STATUS
462AcpiExSystemWaitSemaphore (
463    ACPI_HANDLE             Semaphore,
464    UINT32                  Timeout);
465
466
467/*
468 * ammonadic - ACPI AML (p-code) execution, monadic operators
469 */
470
471ACPI_STATUS
472AcpiExOpcode_1A_0T_0R (
473    ACPI_WALK_STATE         *WalkState);
474
475ACPI_STATUS
476AcpiExOpcode_1A_0T_1R (
477    ACPI_WALK_STATE         *WalkState);
478
479ACPI_STATUS
480AcpiExOpcode_1A_1T_1R (
481    ACPI_WALK_STATE         *WalkState);
482
483ACPI_STATUS
484AcpiExOpcode_1A_1T_0R (
485    ACPI_WALK_STATE         *WalkState);
486
487/*
488 * amdyadic - ACPI AML (p-code) execution, dyadic operators
489 */
490
491ACPI_STATUS
492AcpiExOpcode_2A_0T_0R (
493    ACPI_WALK_STATE         *WalkState);
494
495ACPI_STATUS
496AcpiExOpcode_2A_0T_1R (
497    ACPI_WALK_STATE         *WalkState);
498
499ACPI_STATUS
500AcpiExOpcode_2A_1T_1R (
501    ACPI_WALK_STATE         *WalkState);
502
503ACPI_STATUS
504AcpiExOpcode_2A_2T_1R (
505    ACPI_WALK_STATE         *WalkState);
506
507
508/*
509 * amresolv  - Object resolution and get value functions
510 */
511
512ACPI_STATUS
513AcpiExResolveToValue (
514    ACPI_OPERAND_OBJECT     **StackPtr,
515    ACPI_WALK_STATE         *WalkState);
516
517ACPI_STATUS
518AcpiExResolveNodeToValue (
519    ACPI_NAMESPACE_NODE     **StackPtr,
520    ACPI_WALK_STATE         *WalkState);
521
522ACPI_STATUS
523AcpiExResolveObjectToValue (
524    ACPI_OPERAND_OBJECT     **StackPtr,
525    ACPI_WALK_STATE         *WalkState);
526
527ACPI_STATUS
528AcpiExGetBufferFieldValue (
529    ACPI_OPERAND_OBJECT     *FieldDesc,
530    ACPI_OPERAND_OBJECT     *ResultDesc);
531
532
533/*
534 * amdump - Scanner debug output routines
535 */
536
537void
538AcpiExShowHexValue (
539    UINT32                  ByteCount,
540    UINT8                   *AmlStart,
541    UINT32                  LeadSpace);
542
543
544ACPI_STATUS
545AcpiExDumpOperand (
546    ACPI_OPERAND_OBJECT     *EntryDesc);
547
548void
549AcpiExDumpOperands (
550    ACPI_OPERAND_OBJECT     **Operands,
551    OPERATING_MODE          InterpreterMode,
552    NATIVE_CHAR             *Ident,
553    UINT32                  NumLevels,
554    NATIVE_CHAR             *Note,
555    NATIVE_CHAR             *ModuleName,
556    UINT32                  LineNumber);
557
558void
559AcpiExDumpObjectDescriptor (
560    ACPI_OPERAND_OBJECT     *Object,
561    UINT32                  Flags);
562
563
564void
565AcpiExDumpNode (
566    ACPI_NAMESPACE_NODE     *Node,
567    UINT32                  Flags);
568
569
570/*
571 * amnames - interpreter/scanner name load/execute
572 */
573
574NATIVE_CHAR *
575AcpiExAllocateNameString (
576    UINT32                  PrefixCount,
577    UINT32                  NumNameSegs);
578
579UINT32
580AcpiExGoodChar (
581    UINT32                  Character);
582
583ACPI_STATUS
584AcpiExNameSegment (
585    UINT8                   **InAmlAddress,
586    NATIVE_CHAR             *NameString);
587
588ACPI_STATUS
589AcpiExGetNameString (
590    ACPI_OBJECT_TYPE8       DataType,
591    UINT8                   *InAmlAddress,
592    NATIVE_CHAR             **OutNameString,
593    UINT32                  *OutNameLength);
594
595ACPI_STATUS
596AcpiExDoName (
597    ACPI_OBJECT_TYPE        DataType,
598    OPERATING_MODE          LoadExecMode);
599
600
601/*
602 * amstore - Object store support
603 */
604
605ACPI_STATUS
606AcpiExStore (
607    ACPI_OPERAND_OBJECT     *ValDesc,
608    ACPI_OPERAND_OBJECT     *DestDesc,
609    ACPI_WALK_STATE         *WalkState);
610
611ACPI_STATUS
612AcpiExStoreObjectToIndex (
613    ACPI_OPERAND_OBJECT     *ValDesc,
614    ACPI_OPERAND_OBJECT     *DestDesc,
615    ACPI_WALK_STATE         *WalkState);
616
617ACPI_STATUS
618AcpiExStoreObjectToNode (
619    ACPI_OPERAND_OBJECT     *SourceDesc,
620    ACPI_NAMESPACE_NODE     *Node,
621    ACPI_WALK_STATE         *WalkState);
622
623ACPI_STATUS
624AcpiExStoreObjectToObject (
625    ACPI_OPERAND_OBJECT     *SourceDesc,
626    ACPI_OPERAND_OBJECT     *DestDesc,
627    ACPI_WALK_STATE         *WalkState);
628
629
630/*
631 *
632 */
633
634ACPI_STATUS
635AcpiExResolveObject (
636    ACPI_OPERAND_OBJECT     **SourceDescPtr,
637    ACPI_OBJECT_TYPE8       TargetType,
638    ACPI_WALK_STATE         *WalkState);
639
640ACPI_STATUS
641AcpiExStoreObject (
642    ACPI_OPERAND_OBJECT     *SourceDesc,
643    ACPI_OBJECT_TYPE8       TargetType,
644    ACPI_OPERAND_OBJECT     **TargetDescPtr,
645    ACPI_WALK_STATE         *WalkState);
646
647
648/*
649 * amcopy - object copy
650 */
651
652ACPI_STATUS
653AcpiExCopyBufferToBuffer (
654    ACPI_OPERAND_OBJECT     *SourceDesc,
655    ACPI_OPERAND_OBJECT     *TargetDesc);
656
657ACPI_STATUS
658AcpiExCopyStringToString (
659    ACPI_OPERAND_OBJECT     *SourceDesc,
660    ACPI_OPERAND_OBJECT     *TargetDesc);
661
662ACPI_STATUS
663AcpiExCopyIntegerToIndexField (
664    ACPI_OPERAND_OBJECT     *SourceDesc,
665    ACPI_OPERAND_OBJECT     *TargetDesc);
666
667ACPI_STATUS
668AcpiExCopyIntegerToBankField (
669    ACPI_OPERAND_OBJECT     *SourceDesc,
670    ACPI_OPERAND_OBJECT     *TargetDesc);
671
672ACPI_STATUS
673AcpiExCopyDataToNamedField (
674    ACPI_OPERAND_OBJECT     *SourceDesc,
675    ACPI_NAMESPACE_NODE     *Node);
676
677ACPI_STATUS
678AcpiExCopyIntegerToBufferField (
679    ACPI_OPERAND_OBJECT     *SourceDesc,
680    ACPI_OPERAND_OBJECT     *TargetDesc);
681
682/*
683 * amutils - interpreter/scanner utilities
684 */
685
686ACPI_STATUS
687AcpiExEnterInterpreter (
688    void);
689
690void
691AcpiExExitInterpreter (
692    void);
693
694void
695AcpiExTruncateFor32bitTable (
696    ACPI_OPERAND_OBJECT     *ObjDesc,
697    ACPI_WALK_STATE         *WalkState);
698
699BOOLEAN
700AcpiExValidateObjectType (
701    ACPI_OBJECT_TYPE        Type);
702
703BOOLEAN
704AcpiExAcquireGlobalLock (
705    UINT32                  Rule);
706
707ACPI_STATUS
708AcpiExReleaseGlobalLock (
709    BOOLEAN                 Locked);
710
711UINT32
712AcpiExDigitsNeeded (
713    ACPI_INTEGER            Value,
714    UINT32                  Base);
715
716ACPI_STATUS
717AcpiExEisaIdToString (
718    UINT32                  NumericId,
719    NATIVE_CHAR             *OutString);
720
721ACPI_STATUS
722AcpiExUnsignedIntegerToString (
723    ACPI_INTEGER            Value,
724    NATIVE_CHAR             *OutString);
725
726
727/*
728 * amregion - default OpRegion handlers
729 */
730
731ACPI_STATUS
732AcpiExSystemMemorySpaceHandler (
733    UINT32                  Function,
734    ACPI_PHYSICAL_ADDRESS   Address,
735    UINT32                  BitWidth,
736    UINT32                  *Value,
737    void                    *HandlerContext,
738    void                    *RegionContext);
739
740ACPI_STATUS
741AcpiExSystemIoSpaceHandler (
742    UINT32                  Function,
743    ACPI_PHYSICAL_ADDRESS   Address,
744    UINT32                  BitWidth,
745    UINT32                  *Value,
746    void                    *HandlerContext,
747    void                    *RegionContext);
748
749ACPI_STATUS
750AcpiExPciConfigSpaceHandler (
751    UINT32                  Function,
752    ACPI_PHYSICAL_ADDRESS   Address,
753    UINT32                  BitWidth,
754    UINT32                  *Value,
755    void                    *HandlerContext,
756    void                    *RegionContext);
757
758ACPI_STATUS
759AcpiExCmosSpaceHandler (
760    UINT32                  Function,
761    ACPI_PHYSICAL_ADDRESS   Address,
762    UINT32                  BitWidth,
763    UINT32                  *Value,
764    void                    *HandlerContext,
765    void                    *RegionContext);
766
767ACPI_STATUS
768AcpiExPciBarSpaceHandler (
769    UINT32                  Function,
770    ACPI_PHYSICAL_ADDRESS   Address,
771    UINT32                  BitWidth,
772    UINT32                  *Value,
773    void                    *HandlerContext,
774    void                    *RegionContext);
775
776ACPI_STATUS
777AcpiExEmbeddedControllerSpaceHandler (
778    UINT32                  Function,
779    ACPI_PHYSICAL_ADDRESS   Address,
780    UINT32                  BitWidth,
781    UINT32                  *Value,
782    void                    *HandlerContext,
783    void                    *RegionContext);
784
785ACPI_STATUS
786AcpiExSmBusSpaceHandler (
787    UINT32                  Function,
788    ACPI_PHYSICAL_ADDRESS   Address,
789    UINT32                  BitWidth,
790    UINT32                  *Value,
791    void                    *HandlerContext,
792    void                    *RegionContext);
793
794
795#endif /* __INTERP_H__ */
796