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