acutils.h revision 70243
1/******************************************************************************
2 *
3 * Name: accommon.h -- prototypes for the common (subsystem-wide) procedures
4 *       $Revision: 83 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 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 _ACCOMMON_H
118#define _ACCOMMON_H
119
120
121#define REF_INCREMENT       (UINT16) 0
122#define REF_DECREMENT       (UINT16) 1
123#define REF_FORCE_DELETE    (UINT16) 2
124
125/* AcpiCmDumpBuffer */
126
127#define DB_BYTE_DISPLAY     1
128#define DB_WORD_DISPLAY     2
129#define DB_DWORD_DISPLAY    4
130#define DB_QWORD_DISPLAY    8
131
132
133/* Global initialization interfaces */
134
135void
136AcpiCmInitGlobals (
137    void);
138
139void
140AcpiCmTerminate (
141    void);
142
143
144/*
145 * CmInit - miscellaneous initialization and shutdown
146 */
147
148ACPI_STATUS
149AcpiCmHardwareInitialize (
150    void);
151
152ACPI_STATUS
153AcpiCmSubsystemShutdown (
154    void);
155
156ACPI_STATUS
157AcpiCmValidateFadt (
158    void);
159
160/*
161 * CmGlobal - Global data structures and procedures
162 */
163
164#ifdef ACPI_DEBUG
165
166NATIVE_CHAR *
167AcpiCmGetMutexName (
168    UINT32                  MutexId);
169
170NATIVE_CHAR *
171AcpiCmGetTypeName (
172    UINT32                  Type);
173
174NATIVE_CHAR *
175AcpiCmGetRegionName (
176    UINT8                   SpaceId);
177
178#endif
179
180
181BOOLEAN
182AcpiCmValidObjectType (
183    UINT32                  Type);
184
185ACPI_OWNER_ID
186AcpiCmAllocateOwnerId (
187    UINT32                  IdType);
188
189
190/*
191 * CmClib - Local implementations of C library functions
192 */
193
194NATIVE_UINT
195AcpiCmStrlen (
196    const NATIVE_CHAR       *String);
197
198NATIVE_CHAR *
199AcpiCmStrcpy (
200    NATIVE_CHAR             *DstString,
201    const NATIVE_CHAR       *SrcString);
202
203NATIVE_CHAR *
204AcpiCmStrncpy (
205    NATIVE_CHAR             *DstString,
206    const NATIVE_CHAR       *SrcString,
207    NATIVE_UINT             Count);
208
209UINT32
210AcpiCmStrncmp (
211    const NATIVE_CHAR       *String1,
212    const NATIVE_CHAR       *String2,
213    NATIVE_UINT             Count);
214
215UINT32
216AcpiCmStrcmp (
217    const NATIVE_CHAR       *String1,
218    const NATIVE_CHAR       *String2);
219
220NATIVE_CHAR *
221AcpiCmStrcat (
222    NATIVE_CHAR             *DstString,
223    const NATIVE_CHAR       *SrcString);
224
225NATIVE_CHAR *
226AcpiCmStrncat (
227    NATIVE_CHAR             *DstString,
228    const NATIVE_CHAR       *SrcString,
229    NATIVE_UINT             Count);
230
231UINT32
232AcpiCmStrtoul (
233    const NATIVE_CHAR       *String,
234    NATIVE_CHAR             **Terminator,
235    UINT32                  Base);
236
237NATIVE_CHAR *
238AcpiCmStrstr (
239    NATIVE_CHAR             *String1,
240    NATIVE_CHAR             *String2);
241
242NATIVE_CHAR *
243AcpiCmStrupr (
244    NATIVE_CHAR             *SrcString);
245
246void *
247AcpiCmMemcpy (
248    void                    *Dest,
249    const void              *Src,
250    NATIVE_UINT             Count);
251
252void *
253AcpiCmMemset (
254    void                    *Dest,
255    UINT32                  Value,
256    NATIVE_UINT             Count);
257
258UINT32
259AcpiCmToUpper (
260    UINT32                  c);
261
262UINT32
263AcpiCmToLower (
264    UINT32                  c);
265
266
267/*
268 * CmCopy - Object construction and conversion interfaces
269 */
270
271ACPI_STATUS
272AcpiCmBuildSimpleObject(
273    ACPI_OPERAND_OBJECT     *Obj,
274    ACPI_OBJECT             *UserObj,
275    UINT8                   *DataSpace,
276    UINT32                  *BufferSpaceUsed);
277
278ACPI_STATUS
279AcpiCmBuildPackageObject (
280    ACPI_OPERAND_OBJECT     *Obj,
281    UINT8                   *Buffer,
282    UINT32                  *SpaceUsed);
283
284ACPI_STATUS
285AcpiCmBuildExternalObject (
286    ACPI_OPERAND_OBJECT     *Obj,
287    ACPI_BUFFER             *RetBuffer);
288
289ACPI_STATUS
290AcpiCmBuildInternalSimpleObject(
291    ACPI_OBJECT             *UserObj,
292    ACPI_OPERAND_OBJECT     *Obj);
293
294ACPI_STATUS
295AcpiCmBuildInternalObject (
296    ACPI_OBJECT             *Obj,
297    ACPI_OPERAND_OBJECT     *InternalObj);
298
299ACPI_STATUS
300AcpiCmCopyInternalSimpleObject (
301    ACPI_OPERAND_OBJECT     *SourceObj,
302    ACPI_OPERAND_OBJECT     *DestObj);
303
304ACPI_STATUS
305AcpiCmBuildCopyInternalPackageObject (
306    ACPI_OPERAND_OBJECT     *SourceObj,
307    ACPI_OPERAND_OBJECT     *DestObj);
308
309
310/*
311 * CmCreate - Object creation
312 */
313
314ACPI_STATUS
315AcpiCmUpdateObjectReference (
316    ACPI_OPERAND_OBJECT     *Object,
317    UINT16                  Action);
318
319ACPI_OPERAND_OBJECT  *
320_CmCreateInternalObject (
321    NATIVE_CHAR             *ModuleName,
322    UINT32                  LineNumber,
323    UINT32                  ComponentId,
324    OBJECT_TYPE_INTERNAL    Type);
325
326
327/*
328 * CmDebug - Debug interfaces
329 */
330
331UINT32
332GetDebugLevel (
333    void);
334
335void
336SetDebugLevel (
337    UINT32                  level);
338
339void
340FunctionTrace (
341    NATIVE_CHAR             *ModuleName,
342    UINT32                  LineNumber,
343    UINT32                  ComponentId,
344    NATIVE_CHAR             *FunctionName);
345
346void
347FunctionTracePtr (
348    NATIVE_CHAR             *ModuleName,
349    UINT32                  LineNumber,
350    UINT32                  ComponentId,
351    NATIVE_CHAR             *FunctionName,
352    void                    *Pointer);
353
354void
355FunctionTraceU32 (
356    NATIVE_CHAR             *ModuleName,
357    UINT32                  LineNumber,
358    UINT32                  ComponentId,
359    NATIVE_CHAR             *FunctionName,
360    UINT32                  Integer);
361
362void
363FunctionTraceStr (
364    NATIVE_CHAR             *ModuleName,
365    UINT32                  LineNumber,
366    UINT32                  ComponentId,
367    NATIVE_CHAR             *FunctionName,
368    NATIVE_CHAR             *String);
369
370void
371FunctionExit (
372    NATIVE_CHAR             *ModuleName,
373    UINT32                  LineNumber,
374    UINT32                  ComponentId,
375    NATIVE_CHAR             *FunctionName);
376
377void
378FunctionStatusExit (
379    NATIVE_CHAR             *ModuleName,
380    UINT32                  LineNumber,
381    UINT32                  ComponentId,
382    NATIVE_CHAR             *FunctionName,
383    ACPI_STATUS             Status);
384
385void
386FunctionValueExit (
387    NATIVE_CHAR             *ModuleName,
388    UINT32                  LineNumber,
389    UINT32                  ComponentId,
390    NATIVE_CHAR             *FunctionName,
391    NATIVE_UINT             Value);
392
393void
394FunctionPtrExit (
395    NATIVE_CHAR             *ModuleName,
396    UINT32                  LineNumber,
397    UINT32                  ComponentId,
398    NATIVE_CHAR             *FunctionName,
399    UINT8                   *Ptr);
400
401void
402DebugPrintPrefix (
403    NATIVE_CHAR             *ModuleName,
404    UINT32                  LineNumber);
405
406void
407DebugPrint (
408    NATIVE_CHAR             *ModuleName,
409    UINT32                  LineNumber,
410    UINT32                  ComponentId,
411    UINT32                  PrintLevel,
412    NATIVE_CHAR             *Format, ...);
413
414void
415DebugPrintRaw (
416    NATIVE_CHAR             *Format, ...);
417
418void
419_ReportInfo (
420    NATIVE_CHAR             *ModuleName,
421    UINT32                  LineNumber,
422    UINT32                  ComponentId);
423
424void
425_ReportError (
426    NATIVE_CHAR             *ModuleName,
427    UINT32                  LineNumber,
428    UINT32                  ComponentId);
429
430void
431_ReportWarning (
432    NATIVE_CHAR             *ModuleName,
433    UINT32                  LineNumber,
434    UINT32                  ComponentId);
435
436void
437AcpiCmDumpBuffer (
438    UINT8                   *Buffer,
439    UINT32                  Count,
440    UINT32                  Display,
441    UINT32                  componentId);
442
443
444/*
445 * CmDelete - Object deletion
446 */
447
448void
449AcpiCmDeleteInternalObj (
450    ACPI_OPERAND_OBJECT     *Object);
451
452void
453AcpiCmDeleteInternalPackageObject (
454    ACPI_OPERAND_OBJECT     *Object);
455
456void
457AcpiCmDeleteInternalSimpleObject (
458    ACPI_OPERAND_OBJECT     *Object);
459
460ACPI_STATUS
461AcpiCmDeleteInternalObjectList (
462    ACPI_OPERAND_OBJECT     **ObjList);
463
464
465/*
466 * CmEval - object evaluation
467 */
468
469/* Method name strings */
470
471#define METHOD_NAME__HID        "_HID"
472#define METHOD_NAME__UID        "_UID"
473#define METHOD_NAME__ADR        "_ADR"
474#define METHOD_NAME__STA        "_STA"
475#define METHOD_NAME__REG        "_REG"
476#define METHOD_NAME__SEG        "_SEG"
477#define METHOD_NAME__BBN        "_BBN"
478
479
480ACPI_STATUS
481AcpiCmEvaluateNumericObject (
482    NATIVE_CHAR             *ObjectName,
483    ACPI_NAMESPACE_NODE     *DeviceNode,
484    ACPI_INTEGER            *Address);
485
486ACPI_STATUS
487AcpiCmExecute_HID (
488    ACPI_NAMESPACE_NODE     *DeviceNode,
489    DEVICE_ID               *Hid);
490
491ACPI_STATUS
492AcpiCmExecute_STA (
493    ACPI_NAMESPACE_NODE     *DeviceNode,
494    UINT32                  *StatusFlags);
495
496ACPI_STATUS
497AcpiCmExecute_UID (
498    ACPI_NAMESPACE_NODE     *DeviceNode,
499    DEVICE_ID               *Uid);
500
501
502/*
503 * CmError - exception interfaces
504 */
505
506NATIVE_CHAR *
507AcpiCmFormatException (
508    ACPI_STATUS             Status);
509
510
511/*
512 * CmMutex - mutual exclusion interfaces
513 */
514
515ACPI_STATUS
516AcpiCmMutexInitialize (
517    void);
518
519void
520AcpiCmMutexTerminate (
521    void);
522
523ACPI_STATUS
524AcpiCmCreateMutex (
525    ACPI_MUTEX_HANDLE       MutexId);
526
527ACPI_STATUS
528AcpiCmDeleteMutex (
529    ACPI_MUTEX_HANDLE       MutexId);
530
531ACPI_STATUS
532AcpiCmAcquireMutex (
533    ACPI_MUTEX_HANDLE       MutexId);
534
535ACPI_STATUS
536AcpiCmReleaseMutex (
537    ACPI_MUTEX_HANDLE       MutexId);
538
539
540/*
541 * CmObject - internal object create/delete/cache routines
542 */
543
544void *
545_CmAllocateObjectDesc (
546    NATIVE_CHAR             *ModuleName,
547    UINT32                  LineNumber,
548    UINT32                  ComponentId);
549
550#define AcpiCmCreateInternalObject(t)   _CmCreateInternalObject(_THIS_MODULE,__LINE__,_COMPONENT,t)
551#define AcpiCmAllocateObjectDesc()      _CmAllocateObjectDesc(_THIS_MODULE,__LINE__,_COMPONENT)
552
553void
554AcpiCmDeleteObjectDesc (
555    ACPI_OPERAND_OBJECT     *Object);
556
557BOOLEAN
558AcpiCmValidInternalObject (
559    void                    *Object);
560
561
562/*
563 * CmRefCnt - Object reference count management
564 */
565
566void
567AcpiCmAddReference (
568    ACPI_OPERAND_OBJECT     *Object);
569
570void
571AcpiCmRemoveReference (
572    ACPI_OPERAND_OBJECT     *Object);
573
574/*
575 * CmSize - Object size routines
576 */
577
578ACPI_STATUS
579AcpiCmGetSimpleObjectSize (
580    ACPI_OPERAND_OBJECT     *Obj,
581    UINT32                  *ObjLength);
582
583ACPI_STATUS
584AcpiCmGetPackageObjectSize (
585    ACPI_OPERAND_OBJECT     *Obj,
586    UINT32                  *ObjLength);
587
588ACPI_STATUS
589AcpiCmGetObjectSize(
590    ACPI_OPERAND_OBJECT     *Obj,
591    UINT32                  *ObjLength);
592
593
594/*
595 * CmState - Generic state creation/cache routines
596 */
597
598void
599AcpiCmPushGenericState (
600    ACPI_GENERIC_STATE      **ListHead,
601    ACPI_GENERIC_STATE      *State);
602
603ACPI_GENERIC_STATE *
604AcpiCmPopGenericState (
605    ACPI_GENERIC_STATE      **ListHead);
606
607
608ACPI_GENERIC_STATE *
609AcpiCmCreateGenericState (
610    void);
611
612ACPI_GENERIC_STATE *
613AcpiCmCreateUpdateState (
614    ACPI_OPERAND_OBJECT     *Object,
615    UINT16                  Action);
616
617ACPI_STATUS
618AcpiCmCreateUpdateStateAndPush (
619    ACPI_OPERAND_OBJECT     *Object,
620    UINT16                  Action,
621    ACPI_GENERIC_STATE      **StateList);
622
623ACPI_GENERIC_STATE *
624AcpiCmCreateControlState (
625    void);
626
627void
628AcpiCmDeleteGenericState (
629    ACPI_GENERIC_STATE      *State);
630
631void
632AcpiCmDeleteGenericStateCache (
633    void);
634
635void
636AcpiCmDeleteObjectCache (
637    void);
638
639/*
640 * Cmutils
641 */
642
643BOOLEAN
644AcpiCmValidAcpiName (
645    UINT32                  Name);
646
647BOOLEAN
648AcpiCmValidAcpiCharacter (
649    NATIVE_CHAR             Character);
650
651ACPI_STATUS
652AcpiCmResolvePackageReferences (
653    ACPI_OPERAND_OBJECT     *ObjDesc);
654
655
656/*
657 * Memory allocation functions and related macros.
658 * Macros that expand to include filename and line number
659 */
660
661void *
662_CmAllocate (
663    UINT32                  Size,
664    UINT32                  Component,
665    NATIVE_CHAR             *Module,
666    UINT32                  Line);
667
668void *
669_CmCallocate (
670    UINT32                  Size,
671    UINT32                  Component,
672    NATIVE_CHAR             *Module,
673    UINT32                  Line);
674
675void
676_CmFree (
677    void                    *Address,
678    UINT32                  Component,
679    NATIVE_CHAR             *Module,
680    UINT32                  Line);
681
682void
683AcpiCmInitStaticObject (
684    ACPI_OPERAND_OBJECT     *ObjDesc);
685
686#define AcpiCmAllocate(a)               _CmAllocate(a,_COMPONENT,_THIS_MODULE,__LINE__)
687#define AcpiCmCallocate(a)              _CmCallocate(a, _COMPONENT,_THIS_MODULE,__LINE__)
688#define AcpiCmFree(a)                   _CmFree(a,_COMPONENT,_THIS_MODULE,__LINE__)
689
690#ifndef ACPI_DEBUG
691
692#define AcpiCmAddElementToAllocList(a,b,c,d,e,f)
693#define AcpiCmDeleteElementFromAllocList(a,b,c,d)
694#define AcpiCmDumpCurrentAllocations(a,b)
695#define AcpiCmDumpAllocationInfo()
696
697#define DECREMENT_OBJECT_METRICS(a)
698#define INCREMENT_OBJECT_METRICS(a)
699#define INITIALIZE_ALLOCATION_METRICS()
700#define DECREMENT_NAME_TABLE_METRICS(a)
701#define INCREMENT_NAME_TABLE_METRICS(a)
702
703#else
704
705#define INITIALIZE_ALLOCATION_METRICS() \
706    AcpiGbl_CurrentObjectCount = 0; \
707    AcpiGbl_CurrentObjectSize = 0; \
708    AcpiGbl_RunningObjectCount = 0; \
709    AcpiGbl_RunningObjectSize = 0; \
710    AcpiGbl_MaxConcurrentObjectCount = 0; \
711    AcpiGbl_MaxConcurrentObjectSize = 0; \
712    AcpiGbl_CurrentAllocSize = 0; \
713    AcpiGbl_CurrentAllocCount = 0; \
714    AcpiGbl_RunningAllocSize = 0; \
715    AcpiGbl_RunningAllocCount = 0; \
716    AcpiGbl_MaxConcurrentAllocSize = 0; \
717    AcpiGbl_MaxConcurrentAllocCount = 0; \
718    AcpiGbl_CurrentNodeCount = 0; \
719    AcpiGbl_CurrentNodeSize = 0; \
720    AcpiGbl_MaxConcurrentNodeCount = 0
721
722
723#define DECREMENT_OBJECT_METRICS(a) \
724    AcpiGbl_CurrentObjectCount--; \
725    AcpiGbl_CurrentObjectSize -= a
726
727#define INCREMENT_OBJECT_METRICS(a) \
728    AcpiGbl_CurrentObjectCount++; \
729    AcpiGbl_RunningObjectCount++; \
730    if (AcpiGbl_MaxConcurrentObjectCount < AcpiGbl_CurrentObjectCount) \
731    { \
732        AcpiGbl_MaxConcurrentObjectCount = AcpiGbl_CurrentObjectCount; \
733    } \
734    AcpiGbl_RunningObjectSize += a; \
735    AcpiGbl_CurrentObjectSize += a; \
736    if (AcpiGbl_MaxConcurrentObjectSize < AcpiGbl_CurrentObjectSize) \
737    { \
738        AcpiGbl_MaxConcurrentObjectSize = AcpiGbl_CurrentObjectSize; \
739    }
740
741#define DECREMENT_NAME_TABLE_METRICS(a) \
742    AcpiGbl_CurrentNodeCount--; \
743    AcpiGbl_CurrentNodeSize -= (a)
744
745#define INCREMENT_NAME_TABLE_METRICS(a) \
746    AcpiGbl_CurrentNodeCount++; \
747    AcpiGbl_CurrentNodeSize+= (a); \
748    if (AcpiGbl_MaxConcurrentNodeCount < AcpiGbl_CurrentNodeCount) \
749    { \
750        AcpiGbl_MaxConcurrentNodeCount = AcpiGbl_CurrentNodeCount; \
751    } \
752
753
754void
755AcpiCmDumpAllocationInfo (
756    void);
757
758void
759AcpiCmDumpCurrentAllocations (
760    UINT32                  Component,
761    NATIVE_CHAR             *Module);
762
763#endif
764
765
766#endif /* _ACCOMMON_H */
767