acutils.h revision 91116
1/******************************************************************************
2 *
3 * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
4 *       $Revision: 129 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2002, 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 _ACUTILS_H
118#define _ACUTILS_H
119
120
121typedef
122ACPI_STATUS (*ACPI_PKG_CALLBACK) (
123    UINT8                   ObjectType,
124    ACPI_OPERAND_OBJECT     *SourceObject,
125    ACPI_GENERIC_STATE      *State,
126    void                    *Context);
127
128
129ACPI_STATUS
130AcpiUtWalkPackageTree (
131    ACPI_OPERAND_OBJECT     *SourceObject,
132    void                    *TargetObject,
133    ACPI_PKG_CALLBACK       WalkCallback,
134    void                    *Context);
135
136
137typedef struct acpi_pkg_info
138{
139    UINT8                   *FreeSpace;
140    ACPI_SIZE               Length;
141    UINT32                  ObjectSpace;
142    UINT32                  NumPackages;
143} ACPI_PKG_INFO;
144
145#define REF_INCREMENT       (UINT16) 0
146#define REF_DECREMENT       (UINT16) 1
147#define REF_FORCE_DELETE    (UINT16) 2
148
149/* AcpiUtDumpBuffer */
150
151#define DB_BYTE_DISPLAY     1
152#define DB_WORD_DISPLAY     2
153#define DB_DWORD_DISPLAY    4
154#define DB_QWORD_DISPLAY    8
155
156
157/* Global initialization interfaces */
158
159void
160AcpiUtInitGlobals (
161    void);
162
163void
164AcpiUtTerminate (
165    void);
166
167
168/*
169 * UtInit - miscellaneous initialization and shutdown
170 */
171
172ACPI_STATUS
173AcpiUtHardwareInitialize (
174    void);
175
176ACPI_STATUS
177AcpiUtSubsystemShutdown (
178    void);
179
180ACPI_STATUS
181AcpiUtValidateFadt (
182    void);
183
184/*
185 * UtGlobal - Global data structures and procedures
186 */
187
188#ifdef ACPI_DEBUG
189
190NATIVE_CHAR *
191AcpiUtGetMutexName (
192    UINT32                  MutexId);
193
194NATIVE_CHAR *
195AcpiUtGetTypeName (
196    ACPI_OBJECT_TYPE        Type);
197
198#endif
199
200
201NATIVE_CHAR *
202AcpiUtGetRegionName (
203    UINT8                   SpaceId);
204
205NATIVE_CHAR *
206AcpiUtGetEventName (
207    UINT32                  EventId);
208
209UINT8
210AcpiUtHexToAsciiChar (
211    ACPI_INTEGER            Integer,
212    UINT32                  Position);
213
214BOOLEAN
215AcpiUtValidObjectType (
216    ACPI_OBJECT_TYPE        Type);
217
218ACPI_OWNER_ID
219AcpiUtAllocateOwnerId (
220    UINT32                  IdType);
221
222
223/*
224 * UtClib - Local implementations of C library functions
225 */
226
227#ifndef ACPI_USE_SYSTEM_CLIBRARY
228
229UINT32
230AcpiUtStrlen (
231    const NATIVE_CHAR       *String);
232
233NATIVE_CHAR *
234AcpiUtStrcpy (
235    NATIVE_CHAR             *DstString,
236    const NATIVE_CHAR       *SrcString);
237
238NATIVE_CHAR *
239AcpiUtStrncpy (
240    NATIVE_CHAR             *DstString,
241    const NATIVE_CHAR       *SrcString,
242    NATIVE_UINT             Count);
243
244UINT32
245AcpiUtStrncmp (
246    const NATIVE_CHAR       *String1,
247    const NATIVE_CHAR       *String2,
248    NATIVE_UINT             Count);
249
250UINT32
251AcpiUtStrcmp (
252    const NATIVE_CHAR       *String1,
253    const NATIVE_CHAR       *String2);
254
255NATIVE_CHAR *
256AcpiUtStrcat (
257    NATIVE_CHAR             *DstString,
258    const NATIVE_CHAR       *SrcString);
259
260NATIVE_CHAR *
261AcpiUtStrncat (
262    NATIVE_CHAR             *DstString,
263    const NATIVE_CHAR       *SrcString,
264    NATIVE_UINT             Count);
265
266UINT32
267AcpiUtStrtoul (
268    const NATIVE_CHAR       *String,
269    NATIVE_CHAR             **Terminator,
270    UINT32                  Base);
271
272NATIVE_CHAR *
273AcpiUtStrstr (
274    NATIVE_CHAR             *String1,
275    NATIVE_CHAR             *String2);
276
277void *
278AcpiUtMemcpy (
279    void                    *Dest,
280    const void              *Src,
281    NATIVE_UINT             Count);
282
283void *
284AcpiUtMemset (
285    void                    *Dest,
286    NATIVE_UINT             Value,
287    NATIVE_UINT             Count);
288
289UINT32
290AcpiUtToUpper (
291    UINT32                  c);
292
293UINT32
294AcpiUtToLower (
295    UINT32                  c);
296
297#endif /* ACPI_USE_SYSTEM_CLIBRARY */
298
299/*
300 * UtCopy - Object construction and conversion interfaces
301 */
302
303ACPI_STATUS
304AcpiUtBuildSimpleObject(
305    ACPI_OPERAND_OBJECT     *Obj,
306    ACPI_OBJECT             *UserObj,
307    UINT8                   *DataSpace,
308    UINT32                  *BufferSpaceUsed);
309
310ACPI_STATUS
311AcpiUtBuildPackageObject (
312    ACPI_OPERAND_OBJECT     *Obj,
313    UINT8                   *Buffer,
314    UINT32                  *SpaceUsed);
315
316ACPI_STATUS
317AcpiUtCopyIobjectToEobject (
318    ACPI_OPERAND_OBJECT     *Obj,
319    ACPI_BUFFER             *RetBuffer);
320
321ACPI_STATUS
322AcpiUtCopyEsimpleToIsimple(
323    ACPI_OBJECT             *UserObj,
324    ACPI_OPERAND_OBJECT     **ReturnObj);
325
326ACPI_STATUS
327AcpiUtCopyEobjectToIobject (
328    ACPI_OBJECT             *Obj,
329    ACPI_OPERAND_OBJECT     **InternalObj);
330
331ACPI_STATUS
332AcpiUtCopyISimpleToIsimple (
333    ACPI_OPERAND_OBJECT     *SourceObj,
334    ACPI_OPERAND_OBJECT     *DestObj);
335
336ACPI_STATUS
337AcpiUtCopyIpackageToIpackage (
338    ACPI_OPERAND_OBJECT     *SourceObj,
339    ACPI_OPERAND_OBJECT     *DestObj,
340    ACPI_WALK_STATE         *WalkState);
341
342ACPI_STATUS
343AcpiUtCopySimpleObject (
344    ACPI_OPERAND_OBJECT     *SourceDesc,
345    ACPI_OPERAND_OBJECT     *DestDesc);
346
347ACPI_STATUS
348AcpiUtCopyIobjectToIobject (
349    ACPI_OPERAND_OBJECT     *SourceDesc,
350    ACPI_OPERAND_OBJECT     **DestDesc,
351    ACPI_WALK_STATE         *WalkState);
352
353
354/*
355 * UtCreate - Object creation
356 */
357
358ACPI_STATUS
359AcpiUtUpdateObjectReference (
360    ACPI_OPERAND_OBJECT     *Object,
361    UINT16                  Action);
362
363
364/*
365 * UtDebug - Debug interfaces
366 */
367
368void
369AcpiUtInitStackPtrTrace (
370    void);
371
372void
373AcpiUtTrackStackPtr (
374    void);
375
376void
377AcpiUtTrace (
378    UINT32                  LineNumber,
379    ACPI_DEBUG_PRINT_INFO   *DbgInfo);
380
381void
382AcpiUtTracePtr (
383    UINT32                  LineNumber,
384    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
385    void                    *Pointer);
386
387void
388AcpiUtTraceU32 (
389    UINT32                  LineNumber,
390    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
391    UINT32                  Integer);
392
393void
394AcpiUtTraceStr (
395    UINT32                  LineNumber,
396    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
397    NATIVE_CHAR             *String);
398
399void
400AcpiUtExit (
401    UINT32                  LineNumber,
402    ACPI_DEBUG_PRINT_INFO   *DbgInfo);
403
404void
405AcpiUtStatusExit (
406    UINT32                  LineNumber,
407    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
408    ACPI_STATUS             Status);
409
410void
411AcpiUtValueExit (
412    UINT32                  LineNumber,
413    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
414    ACPI_INTEGER            Value);
415
416void
417AcpiUtPtrExit (
418    UINT32                  LineNumber,
419    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
420    UINT8                   *Ptr);
421
422void
423AcpiUtReportInfo (
424    NATIVE_CHAR             *ModuleName,
425    UINT32                  LineNumber,
426    UINT32                  ComponentId);
427
428void
429AcpiUtReportError (
430    NATIVE_CHAR             *ModuleName,
431    UINT32                  LineNumber,
432    UINT32                  ComponentId);
433
434void
435AcpiUtReportWarning (
436    NATIVE_CHAR             *ModuleName,
437    UINT32                  LineNumber,
438    UINT32                  ComponentId);
439
440void
441AcpiUtDumpBuffer (
442    UINT8                   *Buffer,
443    UINT32                  Count,
444    UINT32                  Display,
445    UINT32                  componentId);
446
447void
448AcpiUtDebugPrint (
449    UINT32                  RequestedDebugLevel,
450    UINT32                  LineNumber,
451    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
452    char                    *Format,
453    ...) ACPI_PRINTF_LIKE_FUNC;
454
455void
456AcpiUtDebugPrintRaw (
457    UINT32                  RequestedDebugLevel,
458    UINT32                  LineNumber,
459    ACPI_DEBUG_PRINT_INFO   *DbgInfo,
460    char                    *Format,
461    ...) ACPI_PRINTF_LIKE_FUNC;
462
463
464/*
465 * UtDelete - Object deletion
466 */
467
468void
469AcpiUtDeleteInternalObj (
470    ACPI_OPERAND_OBJECT     *Object);
471
472void
473AcpiUtDeleteInternalPackageObject (
474    ACPI_OPERAND_OBJECT     *Object);
475
476void
477AcpiUtDeleteInternalSimpleObject (
478    ACPI_OPERAND_OBJECT     *Object);
479
480ACPI_STATUS
481AcpiUtDeleteInternalObjectList (
482    ACPI_OPERAND_OBJECT     **ObjList);
483
484
485/*
486 * UtEval - object evaluation
487 */
488
489/* Method name strings */
490
491#define METHOD_NAME__HID        "_HID"
492#define METHOD_NAME__CID        "_CID"
493#define METHOD_NAME__UID        "_UID"
494#define METHOD_NAME__ADR        "_ADR"
495#define METHOD_NAME__STA        "_STA"
496#define METHOD_NAME__REG        "_REG"
497#define METHOD_NAME__SEG        "_SEG"
498#define METHOD_NAME__BBN        "_BBN"
499#define METHOD_NAME__PRT        "_PRT"
500
501
502ACPI_STATUS
503AcpiUtEvaluateNumericObject (
504    NATIVE_CHAR             *ObjectName,
505    ACPI_NAMESPACE_NODE     *DeviceNode,
506    ACPI_INTEGER            *Address);
507
508ACPI_STATUS
509AcpiUtExecute_HID (
510    ACPI_NAMESPACE_NODE     *DeviceNode,
511    ACPI_DEVICE_ID          *Hid);
512
513ACPI_STATUS
514AcpiUtExecute_CID (
515    ACPI_NAMESPACE_NODE     *DeviceNode,
516    ACPI_DEVICE_ID          *Cid);
517
518ACPI_STATUS
519AcpiUtExecute_STA (
520    ACPI_NAMESPACE_NODE     *DeviceNode,
521    UINT32                  *StatusFlags);
522
523ACPI_STATUS
524AcpiUtExecute_UID (
525    ACPI_NAMESPACE_NODE     *DeviceNode,
526    ACPI_DEVICE_ID          *Uid);
527
528
529/*
530 * UtMutex - mutual exclusion interfaces
531 */
532
533ACPI_STATUS
534AcpiUtMutexInitialize (
535    void);
536
537void
538AcpiUtMutexTerminate (
539    void);
540
541ACPI_STATUS
542AcpiUtCreateMutex (
543    ACPI_MUTEX_HANDLE       MutexId);
544
545ACPI_STATUS
546AcpiUtDeleteMutex (
547    ACPI_MUTEX_HANDLE       MutexId);
548
549ACPI_STATUS
550AcpiUtAcquireMutex (
551    ACPI_MUTEX_HANDLE       MutexId);
552
553ACPI_STATUS
554AcpiUtReleaseMutex (
555    ACPI_MUTEX_HANDLE       MutexId);
556
557
558/*
559 * UtObject - internal object create/delete/cache routines
560 */
561
562ACPI_OPERAND_OBJECT  *
563AcpiUtCreateInternalObjectDbg (
564    NATIVE_CHAR             *ModuleName,
565    UINT32                  LineNumber,
566    UINT32                  ComponentId,
567    ACPI_OBJECT_TYPE        Type);
568
569void *
570AcpiUtAllocateObjectDescDbg (
571    NATIVE_CHAR             *ModuleName,
572    UINT32                  LineNumber,
573    UINT32                  ComponentId);
574
575#define AcpiUtCreateInternalObject(t)   AcpiUtCreateInternalObjectDbg (_THIS_MODULE,__LINE__,_COMPONENT,t)
576#define AcpiUtAllocateObjectDesc()      AcpiUtAllocateObjectDescDbg (_THIS_MODULE,__LINE__,_COMPONENT)
577
578void
579AcpiUtDeleteObjectDesc (
580    ACPI_OPERAND_OBJECT     *Object);
581
582BOOLEAN
583AcpiUtValidInternalObject (
584    void                    *Object);
585
586
587/*
588 * UtRefCnt - Object reference count management
589 */
590
591void
592AcpiUtAddReference (
593    ACPI_OPERAND_OBJECT     *Object);
594
595void
596AcpiUtRemoveReference (
597    ACPI_OPERAND_OBJECT     *Object);
598
599/*
600 * UtSize - Object size routines
601 */
602
603ACPI_STATUS
604AcpiUtGetSimpleObjectSize (
605    ACPI_OPERAND_OBJECT     *Obj,
606    ACPI_SIZE               *ObjLength);
607
608ACPI_STATUS
609AcpiUtGetPackageObjectSize (
610    ACPI_OPERAND_OBJECT     *Obj,
611    ACPI_SIZE               *ObjLength);
612
613ACPI_STATUS
614AcpiUtGetObjectSize(
615    ACPI_OPERAND_OBJECT     *Obj,
616    ACPI_SIZE               *ObjLength);
617
618
619/*
620 * UtState - Generic state creation/cache routines
621 */
622
623void
624AcpiUtPushGenericState (
625    ACPI_GENERIC_STATE      **ListHead,
626    ACPI_GENERIC_STATE      *State);
627
628ACPI_GENERIC_STATE *
629AcpiUtPopGenericState (
630    ACPI_GENERIC_STATE      **ListHead);
631
632
633ACPI_GENERIC_STATE *
634AcpiUtCreateGenericState (
635    void);
636
637ACPI_THREAD_STATE *
638AcpiUtCreateThreadState (
639    void);
640
641ACPI_GENERIC_STATE *
642AcpiUtCreateUpdateState (
643    ACPI_OPERAND_OBJECT     *Object,
644    UINT16                  Action);
645
646ACPI_GENERIC_STATE *
647AcpiUtCreatePkgState (
648    void                    *InternalObject,
649    void                    *ExternalObject,
650    UINT16                  Index);
651
652ACPI_STATUS
653AcpiUtCreateUpdateStateAndPush (
654    ACPI_OPERAND_OBJECT     *Object,
655    UINT16                  Action,
656    ACPI_GENERIC_STATE      **StateList);
657
658ACPI_STATUS
659AcpiUtCreatePkgStateAndPush (
660    void                    *InternalObject,
661    void                    *ExternalObject,
662    UINT16                  Index,
663    ACPI_GENERIC_STATE      **StateList);
664
665ACPI_GENERIC_STATE *
666AcpiUtCreateControlState (
667    void);
668
669void
670AcpiUtDeleteGenericState (
671    ACPI_GENERIC_STATE      *State);
672
673void
674AcpiUtDeleteGenericStateCache (
675    void);
676
677void
678AcpiUtDeleteObjectCache (
679    void);
680
681/*
682 * utmisc
683 */
684
685ACPI_STATUS
686AcpiUtDivide (
687    ACPI_INTEGER            *InDividend,
688    ACPI_INTEGER            *InDivisor,
689    ACPI_INTEGER            *OutQuotient,
690    ACPI_INTEGER            *OutRemainder);
691
692ACPI_STATUS
693AcpiUtShortDivide (
694    ACPI_INTEGER            *InDividend,
695    UINT32                  Divisor,
696    ACPI_INTEGER            *OutQuotient,
697    UINT32                  *OutRemainder);
698
699BOOLEAN
700AcpiUtValidAcpiName (
701    UINT32                  Name);
702
703BOOLEAN
704AcpiUtValidAcpiCharacter (
705    NATIVE_CHAR             Character);
706
707NATIVE_CHAR *
708AcpiUtStrupr (
709    NATIVE_CHAR             *SrcString);
710
711ACPI_STATUS
712AcpiUtResolvePackageReferences (
713    ACPI_OPERAND_OBJECT     *ObjDesc);
714
715UINT8 *
716AcpiUtGetResourceEndTag (
717    ACPI_OPERAND_OBJECT     *ObjDesc);
718
719UINT8
720AcpiUtGenerateChecksum (
721    UINT8                   *Buffer,
722    UINT32                  Length);
723
724#ifdef ACPI_DEBUG
725void
726AcpiUtDisplayInitPathname (
727    ACPI_HANDLE             ObjHandle,
728    char                    *Path);
729
730#endif
731
732
733/*
734 * Utalloc - memory allocation and object caching
735 */
736
737void *
738AcpiUtAcquireFromCache (
739    UINT32                  ListId);
740
741void
742AcpiUtReleaseToCache (
743    UINT32                  ListId,
744    void                    *Object);
745
746void
747AcpiUtDeleteGenericCache (
748    UINT32                  ListId);
749
750ACPI_STATUS
751AcpiUtValidateBuffer (
752    ACPI_BUFFER             *Buffer);
753
754ACPI_STATUS
755AcpiUtInitializeBuffer (
756    ACPI_BUFFER             *Buffer,
757    ACPI_SIZE               RequiredLength);
758
759
760/* Memory allocation functions */
761
762void *
763AcpiUtAllocate (
764    ACPI_SIZE               Size,
765    UINT32                  Component,
766    NATIVE_CHAR             *Module,
767    UINT32                  Line);
768
769void *
770AcpiUtCallocate (
771    ACPI_SIZE               Size,
772    UINT32                  Component,
773    NATIVE_CHAR             *Module,
774    UINT32                  Line);
775
776
777#ifdef ACPI_DBG_TRACK_ALLOCATIONS
778
779void *
780AcpiUtAllocateAndTrack (
781    ACPI_SIZE               Size,
782    UINT32                  Component,
783    NATIVE_CHAR             *Module,
784    UINT32                  Line);
785
786void *
787AcpiUtCallocateAndTrack (
788    ACPI_SIZE               Size,
789    UINT32                  Component,
790    NATIVE_CHAR             *Module,
791    UINT32                  Line);
792
793void
794AcpiUtFreeAndTrack (
795    void                    *Address,
796    UINT32                  Component,
797    NATIVE_CHAR             *Module,
798    UINT32                  Line);
799ACPI_STATUS
800AcpiUtTrackAllocation (
801    UINT32                  ListId,
802    ACPI_DEBUG_MEM_BLOCK    *Address,
803    ACPI_SIZE               Size,
804    UINT8                   AllocType,
805    UINT32                  Component,
806    NATIVE_CHAR             *Module,
807    UINT32                  Line);
808
809ACPI_STATUS
810AcpiUtRemoveAllocation (
811    UINT32                  ListId,
812    ACPI_DEBUG_MEM_BLOCK    *Address,
813    UINT32                  Component,
814    NATIVE_CHAR             *Module,
815    UINT32                  Line);
816
817void
818AcpiUtDumpAllocationInfo (
819    void);
820
821void
822AcpiUtDumpAllocations (
823    UINT32                  Component,
824    NATIVE_CHAR             *Module);
825#endif
826
827
828#endif /* _ACUTILS_H */
829