acinterp.h revision 77424
1/******************************************************************************
2 *
3 * Name: acinterp.h - Interpreter subcomponent prototypes and defines
4 *       $Revision: 102 $
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_WALK_STATE         *WalkState);
171
172ACPI_STATUS
173AcpiExConvertToBuffer (
174    ACPI_OPERAND_OBJECT     **ObjDesc,
175    ACPI_WALK_STATE         *WalkState);
176
177ACPI_STATUS
178AcpiExConvertToString (
179    ACPI_OPERAND_OBJECT     **ObjDesc,
180    ACPI_WALK_STATE         *WalkState);
181
182ACPI_STATUS
183AcpiExConvertToTargetType (
184    ACPI_OBJECT_TYPE8       DestinationType,
185    ACPI_OPERAND_OBJECT     **ObjDesc,
186    ACPI_WALK_STATE         *WalkState);
187
188
189/*
190 * amfield - ACPI AML (p-code) execution - field manipulation
191 */
192
193ACPI_STATUS
194AcpiExExtractFromField (
195    ACPI_OPERAND_OBJECT     *ObjDesc,
196    void                    *Buffer,
197    UINT32                  BufferLength);
198
199ACPI_STATUS
200AcpiExInsertIntoField (
201    ACPI_OPERAND_OBJECT     *ObjDesc,
202    void                    *Buffer,
203    UINT32                  BufferLength);
204
205ACPI_STATUS
206AcpiExSetupField (
207    ACPI_OPERAND_OBJECT     *ObjDesc,
208    UINT32                  FieldByteOffset);
209
210ACPI_STATUS
211AcpiExReadFieldDatum (
212    ACPI_OPERAND_OBJECT     *ObjDesc,
213    UINT32                  FieldByteOffset,
214    UINT32                  *Value);
215
216ACPI_STATUS
217AcpiExCommonAccessField (
218    UINT32                  Mode,
219    ACPI_OPERAND_OBJECT     *ObjDesc,
220    void                    *Buffer,
221    UINT32                  BufferLength);
222
223
224ACPI_STATUS
225AcpiExAccessIndexField (
226    UINT32                  Mode,
227    ACPI_OPERAND_OBJECT     *ObjDesc,
228    void                    *Buffer,
229    UINT32                  BufferLength);
230
231ACPI_STATUS
232AcpiExAccessBankField (
233    UINT32                  Mode,
234    ACPI_OPERAND_OBJECT     *ObjDesc,
235    void                    *Buffer,
236    UINT32                  BufferLength);
237
238ACPI_STATUS
239AcpiExAccessRegionField (
240    UINT32                  Mode,
241    ACPI_OPERAND_OBJECT     *ObjDesc,
242    void                    *Buffer,
243    UINT32                  BufferLength);
244
245
246ACPI_STATUS
247AcpiExAccessBufferField (
248    UINT32                  Mode,
249    ACPI_OPERAND_OBJECT     *ObjDesc,
250    void                    *Buffer,
251    UINT32                  BufferLength);
252
253ACPI_STATUS
254AcpiExReadDataFromField (
255    ACPI_OPERAND_OBJECT     *ObjDesc,
256    ACPI_OPERAND_OBJECT     **RetBufferDesc);
257
258ACPI_STATUS
259AcpiExWriteDataToField (
260    ACPI_OPERAND_OBJECT     *SourceDesc,
261    ACPI_OPERAND_OBJECT     *ObjDesc);
262
263/*
264 * ammisc - ACPI AML (p-code) execution - specific opcodes
265 */
266
267ACPI_STATUS
268AcpiExCreateBufferField (
269    UINT8                   *AmlPtr,
270    UINT32                  AmlLength,
271    ACPI_NAMESPACE_NODE     *Node,
272    ACPI_WALK_STATE         *WalkState);
273
274ACPI_STATUS
275AcpiExReconfiguration (
276    UINT16                  Opcode,
277    ACPI_WALK_STATE         *WalkState);
278
279ACPI_STATUS
280AcpiExFatal (
281    ACPI_WALK_STATE         *WalkState);
282
283ACPI_STATUS
284AcpiExIndex (
285    ACPI_WALK_STATE         *WalkState,
286    ACPI_OPERAND_OBJECT     **ReturnDesc);
287
288ACPI_STATUS
289AcpiExMatch (
290    ACPI_WALK_STATE         *WalkState,
291    ACPI_OPERAND_OBJECT     **ReturnDesc);
292
293ACPI_STATUS
294AcpiExCreateMutex (
295    ACPI_WALK_STATE         *WalkState);
296
297ACPI_STATUS
298AcpiExCreateProcessor (
299    ACPI_PARSE_OBJECT       *Op,
300    ACPI_NAMESPACE_NODE     *ProcessorNode);
301
302ACPI_STATUS
303AcpiExCreatePowerResource (
304    ACPI_PARSE_OBJECT       *Op,
305    ACPI_NAMESPACE_NODE     *PowerNode);
306
307ACPI_STATUS
308AcpiExCreateRegion (
309    UINT8                   *AmlPtr,
310    UINT32                  AmlLength,
311    UINT8                   RegionSpace,
312    ACPI_WALK_STATE         *WalkState);
313
314ACPI_STATUS
315AcpiExCreateEvent (
316    ACPI_WALK_STATE         *WalkState);
317
318ACPI_STATUS
319AcpiExCreateAlias (
320    ACPI_WALK_STATE         *WalkState);
321
322ACPI_STATUS
323AcpiExCreateMethod (
324    UINT8                   *AmlPtr,
325    UINT32                  AmlLength,
326    UINT32                  MethodFlags,
327    ACPI_NAMESPACE_NODE     *Method);
328
329
330/*
331 * ammutex - mutex support
332 */
333
334ACPI_STATUS
335AcpiExAcquireMutex (
336    ACPI_OPERAND_OBJECT     *TimeDesc,
337    ACPI_OPERAND_OBJECT     *ObjDesc,
338    ACPI_WALK_STATE         *WalkState);
339
340ACPI_STATUS
341AcpiExReleaseMutex (
342    ACPI_OPERAND_OBJECT     *ObjDesc,
343    ACPI_WALK_STATE         *WalkState);
344
345ACPI_STATUS
346AcpiExReleaseAllMutexes (
347    ACPI_OPERAND_OBJECT     *MutexList);
348
349void
350AcpiExUnlinkMutex (
351    ACPI_OPERAND_OBJECT     *ObjDesc);
352
353
354/*
355 * amprep - ACPI AML (p-code) execution - prep utilities
356 */
357
358ACPI_STATUS
359AcpiExPrepCommonFieldObject (
360    ACPI_OPERAND_OBJECT     *ObjDesc,
361    UINT8                   FieldFlags,
362    UINT32                  FieldPosition,
363    UINT32                  FieldLength);
364
365ACPI_STATUS
366AcpiExPrepRegionFieldValue (
367    ACPI_NAMESPACE_NODE     *Node,
368    ACPI_HANDLE             Region,
369    UINT8                   FieldFlags,
370    UINT32                  FieldPosition,
371    UINT32                  FieldLength);
372
373ACPI_STATUS
374AcpiExPrepBankFieldValue (
375    ACPI_NAMESPACE_NODE     *Node,
376    ACPI_NAMESPACE_NODE     *RegionNode,
377    ACPI_NAMESPACE_NODE     *BankRegisterNode,
378    UINT32                  BankVal,
379    UINT8                   FieldFlags,
380    UINT32                  FieldPosition,
381    UINT32                  FieldLength);
382
383ACPI_STATUS
384AcpiExPrepIndexFieldValue (
385    ACPI_NAMESPACE_NODE     *Node,
386    ACPI_NAMESPACE_NODE     *IndexReg,
387    ACPI_NAMESPACE_NODE     *DataReg,
388    UINT8                   FieldFlags,
389    UINT32                  FieldPosition,
390    UINT32                  FieldLength);
391
392
393/*
394 * amsystem - Interface to OS services
395 */
396
397ACPI_STATUS
398AcpiExSystemDoNotifyOp (
399    ACPI_OPERAND_OBJECT     *Value,
400    ACPI_OPERAND_OBJECT     *ObjDesc);
401
402void
403AcpiExSystemDoSuspend(
404    UINT32                  Time);
405
406void
407AcpiExSystemDoStall (
408    UINT32                  Time);
409
410ACPI_STATUS
411AcpiExSystemAcquireMutex(
412    ACPI_OPERAND_OBJECT     *Time,
413    ACPI_OPERAND_OBJECT     *ObjDesc);
414
415ACPI_STATUS
416AcpiExSystemReleaseMutex(
417    ACPI_OPERAND_OBJECT     *ObjDesc);
418
419ACPI_STATUS
420AcpiExSystemSignalEvent(
421    ACPI_OPERAND_OBJECT     *ObjDesc);
422
423ACPI_STATUS
424AcpiExSystemWaitEvent(
425    ACPI_OPERAND_OBJECT     *Time,
426    ACPI_OPERAND_OBJECT     *ObjDesc);
427
428ACPI_STATUS
429AcpiExSystemResetEvent(
430    ACPI_OPERAND_OBJECT     *ObjDesc);
431
432ACPI_STATUS
433AcpiExSystemWaitSemaphore (
434    ACPI_HANDLE             Semaphore,
435    UINT32                  Timeout);
436
437
438/*
439 * ammonadic - ACPI AML (p-code) execution, monadic operators
440 */
441
442ACPI_STATUS
443AcpiExMonadic1 (
444    UINT16                  Opcode,
445    ACPI_WALK_STATE         *WalkState);
446
447ACPI_STATUS
448AcpiExMonadic2 (
449    UINT16                  Opcode,
450    ACPI_WALK_STATE         *WalkState,
451    ACPI_OPERAND_OBJECT     **ReturnDesc);
452
453ACPI_STATUS
454AcpiExMonadic2R (
455    UINT16                  Opcode,
456    ACPI_WALK_STATE         *WalkState,
457    ACPI_OPERAND_OBJECT     **ReturnDesc);
458
459
460/*
461 * amdyadic - ACPI AML (p-code) execution, dyadic operators
462 */
463
464ACPI_STATUS
465AcpiExDyadic1 (
466    UINT16                  Opcode,
467    ACPI_WALK_STATE         *WalkState);
468
469ACPI_STATUS
470AcpiExDyadic2 (
471    UINT16                  Opcode,
472    ACPI_WALK_STATE         *WalkState,
473    ACPI_OPERAND_OBJECT     **ReturnDesc);
474
475ACPI_STATUS
476AcpiExDyadic2R (
477    UINT16                  Opcode,
478    ACPI_WALK_STATE         *WalkState,
479    ACPI_OPERAND_OBJECT     **ReturnDesc);
480
481ACPI_STATUS
482AcpiExDyadic2S (
483    UINT16                  Opcode,
484    ACPI_WALK_STATE         *WalkState,
485    ACPI_OPERAND_OBJECT     **ReturnDesc);
486
487
488/*
489 * amresolv  - Object resolution and get value functions
490 */
491
492ACPI_STATUS
493AcpiExResolveToValue (
494    ACPI_OPERAND_OBJECT     **StackPtr,
495    ACPI_WALK_STATE         *WalkState);
496
497ACPI_STATUS
498AcpiExResolveNodeToValue (
499    ACPI_NAMESPACE_NODE     **StackPtr,
500    ACPI_WALK_STATE         *WalkState);
501
502ACPI_STATUS
503AcpiExResolveObjectToValue (
504    ACPI_OPERAND_OBJECT     **StackPtr,
505    ACPI_WALK_STATE         *WalkState);
506
507ACPI_STATUS
508AcpiExGetBufferFieldValue (
509    ACPI_OPERAND_OBJECT     *FieldDesc,
510    ACPI_OPERAND_OBJECT     *ResultDesc);
511
512
513/*
514 * amdump - Scanner debug output routines
515 */
516
517void
518AcpiExShowHexValue (
519    UINT32                  ByteCount,
520    UINT8                   *AmlPtr,
521    UINT32                  LeadSpace);
522
523
524ACPI_STATUS
525AcpiExDumpOperand (
526    ACPI_OPERAND_OBJECT     *EntryDesc);
527
528void
529AcpiExDumpOperands (
530    ACPI_OPERAND_OBJECT     **Operands,
531    OPERATING_MODE          InterpreterMode,
532    NATIVE_CHAR             *Ident,
533    UINT32                  NumLevels,
534    NATIVE_CHAR             *Note,
535    NATIVE_CHAR             *ModuleName,
536    UINT32                  LineNumber);
537
538void
539AcpiExDumpObjectDescriptor (
540    ACPI_OPERAND_OBJECT     *Object,
541    UINT32                  Flags);
542
543
544void
545AcpiExDumpNode (
546    ACPI_NAMESPACE_NODE     *Node,
547    UINT32                  Flags);
548
549
550/*
551 * amnames - interpreter/scanner name load/execute
552 */
553
554NATIVE_CHAR *
555AcpiExAllocateNameString (
556    UINT32                  PrefixCount,
557    UINT32                  NumNameSegs);
558
559UINT32
560AcpiExGoodChar (
561    UINT32                  Character);
562
563ACPI_STATUS
564AcpiExNameSegment (
565    UINT8                   **InAmlAddress,
566    NATIVE_CHAR             *NameString);
567
568ACPI_STATUS
569AcpiExGetNameString (
570    ACPI_OBJECT_TYPE8       DataType,
571    UINT8                   *InAmlAddress,
572    NATIVE_CHAR             **OutNameString,
573    UINT32                  *OutNameLength);
574
575ACPI_STATUS
576AcpiExDoName (
577    ACPI_OBJECT_TYPE        DataType,
578    OPERATING_MODE          LoadExecMode);
579
580
581/*
582 * amstore - Object store support
583 */
584
585ACPI_STATUS
586AcpiExStore (
587    ACPI_OPERAND_OBJECT     *ValDesc,
588    ACPI_OPERAND_OBJECT     *DestDesc,
589    ACPI_WALK_STATE         *WalkState);
590
591ACPI_STATUS
592AcpiExStoreObjectToIndex (
593    ACPI_OPERAND_OBJECT     *ValDesc,
594    ACPI_OPERAND_OBJECT     *DestDesc,
595    ACPI_WALK_STATE         *WalkState);
596
597ACPI_STATUS
598AcpiExStoreObjectToNode (
599    ACPI_OPERAND_OBJECT     *SourceDesc,
600    ACPI_NAMESPACE_NODE     *Node,
601    ACPI_WALK_STATE         *WalkState);
602
603ACPI_STATUS
604AcpiExStoreObjectToObject (
605    ACPI_OPERAND_OBJECT     *SourceDesc,
606    ACPI_OPERAND_OBJECT     *DestDesc,
607    ACPI_WALK_STATE         *WalkState);
608
609
610/*
611 *
612 */
613
614ACPI_STATUS
615AcpiExResolveObject (
616    ACPI_OPERAND_OBJECT     **SourceDescPtr,
617    ACPI_OBJECT_TYPE8       TargetType,
618    ACPI_WALK_STATE         *WalkState);
619
620ACPI_STATUS
621AcpiExStoreObject (
622    ACPI_OPERAND_OBJECT     *SourceDesc,
623    ACPI_OBJECT_TYPE8       TargetType,
624    ACPI_OPERAND_OBJECT     **TargetDescPtr,
625    ACPI_WALK_STATE         *WalkState);
626
627
628/*
629 * amcopy - object copy
630 */
631
632ACPI_STATUS
633AcpiExCopyBufferToBuffer (
634    ACPI_OPERAND_OBJECT     *SourceDesc,
635    ACPI_OPERAND_OBJECT     *TargetDesc);
636
637ACPI_STATUS
638AcpiExCopyStringToString (
639    ACPI_OPERAND_OBJECT     *SourceDesc,
640    ACPI_OPERAND_OBJECT     *TargetDesc);
641
642ACPI_STATUS
643AcpiExCopyIntegerToIndexField (
644    ACPI_OPERAND_OBJECT     *SourceDesc,
645    ACPI_OPERAND_OBJECT     *TargetDesc);
646
647ACPI_STATUS
648AcpiExCopyIntegerToBankField (
649    ACPI_OPERAND_OBJECT     *SourceDesc,
650    ACPI_OPERAND_OBJECT     *TargetDesc);
651
652ACPI_STATUS
653AcpiExCopyDataToNamedField (
654    ACPI_OPERAND_OBJECT     *SourceDesc,
655    ACPI_NAMESPACE_NODE     *Node);
656
657ACPI_STATUS
658AcpiExCopyIntegerToBufferField (
659    ACPI_OPERAND_OBJECT     *SourceDesc,
660    ACPI_OPERAND_OBJECT     *TargetDesc);
661
662/*
663 * amutils - interpreter/scanner utilities
664 */
665
666ACPI_STATUS
667AcpiExEnterInterpreter (
668    void);
669
670void
671AcpiExExitInterpreter (
672    void);
673
674void
675AcpiExTruncateFor32bitTable (
676    ACPI_OPERAND_OBJECT     *ObjDesc,
677    ACPI_WALK_STATE         *WalkState);
678
679BOOLEAN
680AcpiExValidateObjectType (
681    ACPI_OBJECT_TYPE        Type);
682
683BOOLEAN
684AcpiExAcquireGlobalLock (
685    UINT32                  Rule);
686
687ACPI_STATUS
688AcpiExReleaseGlobalLock (
689    BOOLEAN                 Locked);
690
691UINT32
692AcpiExDigitsNeeded (
693    ACPI_INTEGER            Value,
694    UINT32                  Base);
695
696ACPI_STATUS
697AcpiExEisaIdToString (
698    UINT32                  NumericId,
699    NATIVE_CHAR             *OutString);
700
701ACPI_STATUS
702AcpiExUnsignedIntegerToString (
703    ACPI_INTEGER            Value,
704    NATIVE_CHAR             *OutString);
705
706
707/*
708 * amregion - default OpRegion handlers
709 */
710
711ACPI_STATUS
712AcpiExSystemMemorySpaceHandler (
713    UINT32                  Function,
714    ACPI_PHYSICAL_ADDRESS   Address,
715    UINT32                  BitWidth,
716    UINT32                  *Value,
717    void                    *HandlerContext,
718    void                    *RegionContext);
719
720ACPI_STATUS
721AcpiExSystemIoSpaceHandler (
722    UINT32                  Function,
723    ACPI_PHYSICAL_ADDRESS   Address,
724    UINT32                  BitWidth,
725    UINT32                  *Value,
726    void                    *HandlerContext,
727    void                    *RegionContext);
728
729ACPI_STATUS
730AcpiExPciConfigSpaceHandler (
731    UINT32                  Function,
732    ACPI_PHYSICAL_ADDRESS   Address,
733    UINT32                  BitWidth,
734    UINT32                  *Value,
735    void                    *HandlerContext,
736    void                    *RegionContext);
737
738ACPI_STATUS
739AcpiExEmbeddedControllerSpaceHandler (
740    UINT32                  Function,
741    ACPI_PHYSICAL_ADDRESS   Address,
742    UINT32                  BitWidth,
743    UINT32                  *Value,
744    void                    *HandlerContext,
745    void                    *RegionContext);
746
747ACPI_STATUS
748AcpiExSmBusSpaceHandler (
749    UINT32                  Function,
750    ACPI_PHYSICAL_ADDRESS   Address,
751    UINT32                  BitWidth,
752    UINT32                  *Value,
753    void                    *HandlerContext,
754    void                    *RegionContext);
755
756
757#endif /* __INTERP_H__ */
758