Changes for 16-bit code.

date	2001.04.27.17.34.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:16:43 +00:00
parent 128e9dc0bf
commit 4f9dccfb4c

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Name: accommon.h -- prototypes for the common (subsystem-wide) procedures
* $Revision: 1.96 $
* $Revision: 1.99 $
*
*****************************************************************************/
@ -345,7 +345,7 @@ _CmCreateInternalObject (
NATIVE_CHAR *ModuleName,
UINT32 LineNumber,
UINT32 ComponentId,
OBJECT_TYPE_INTERNAL Type);
ACPI_OBJECT_TYPE8 Type);
/*
@ -510,7 +510,7 @@ AcpiCmEvaluateNumericObject (
ACPI_STATUS
AcpiCmExecute_HID (
ACPI_NAMESPACE_NODE *DeviceNode,
DEVICE_ID *Hid);
ACPI_DEVICE_ID *Hid);
ACPI_STATUS
AcpiCmExecute_STA (
@ -520,7 +520,7 @@ AcpiCmExecute_STA (
ACPI_STATUS
AcpiCmExecute_UID (
ACPI_NAMESPACE_NODE *DeviceNode,
DEVICE_ID *Uid);
ACPI_DEVICE_ID *Uid);
/*
@ -693,8 +693,8 @@ ACPI_STATUS
AcpiCmResolvePackageReferences (
ACPI_OPERAND_OBJECT *ObjDesc);
#ifdef ACPI_DEBUG
#ifdef ACPI_DEBUG
void
AcpiCmDisplayInitPathname (
ACPI_HANDLE ObjHandle,
@ -733,74 +733,8 @@ void
AcpiCmInitStaticObject (
ACPI_OPERAND_OBJECT *ObjDesc);
#define AcpiCmAllocate(a) _CmAllocate(a,_COMPONENT,_THIS_MODULE,__LINE__)
#define AcpiCmCallocate(a) _CmCallocate(a, _COMPONENT,_THIS_MODULE,__LINE__)
#define AcpiCmFree(a) _CmFree(a,_COMPONENT,_THIS_MODULE,__LINE__)
#ifndef ACPI_DEBUG_TRACK_ALLOCATIONS
#define AcpiCmAddElementToAllocList(a,b,c,d,e,f)
#define AcpiCmDeleteElementFromAllocList(a,b,c,d)
#define AcpiCmDumpCurrentAllocations(a,b)
#define AcpiCmDumpAllocationInfo()
#define DECREMENT_OBJECT_METRICS(a)
#define INCREMENT_OBJECT_METRICS(a)
#define INITIALIZE_ALLOCATION_METRICS()
#define DECREMENT_NAME_TABLE_METRICS(a)
#define INCREMENT_NAME_TABLE_METRICS(a)
#else
#define INITIALIZE_ALLOCATION_METRICS() \
AcpiGbl_CurrentObjectCount = 0; \
AcpiGbl_CurrentObjectSize = 0; \
AcpiGbl_RunningObjectCount = 0; \
AcpiGbl_RunningObjectSize = 0; \
AcpiGbl_MaxConcurrentObjectCount = 0; \
AcpiGbl_MaxConcurrentObjectSize = 0; \
AcpiGbl_CurrentAllocSize = 0; \
AcpiGbl_CurrentAllocCount = 0; \
AcpiGbl_RunningAllocSize = 0; \
AcpiGbl_RunningAllocCount = 0; \
AcpiGbl_MaxConcurrentAllocSize = 0; \
AcpiGbl_MaxConcurrentAllocCount = 0; \
AcpiGbl_CurrentNodeCount = 0; \
AcpiGbl_CurrentNodeSize = 0; \
AcpiGbl_MaxConcurrentNodeCount = 0
#define DECREMENT_OBJECT_METRICS(a) \
AcpiGbl_CurrentObjectCount--; \
AcpiGbl_CurrentObjectSize -= a
#define INCREMENT_OBJECT_METRICS(a) \
AcpiGbl_CurrentObjectCount++; \
AcpiGbl_RunningObjectCount++; \
if (AcpiGbl_MaxConcurrentObjectCount < AcpiGbl_CurrentObjectCount) \
{ \
AcpiGbl_MaxConcurrentObjectCount = AcpiGbl_CurrentObjectCount; \
} \
AcpiGbl_RunningObjectSize += a; \
AcpiGbl_CurrentObjectSize += a; \
if (AcpiGbl_MaxConcurrentObjectSize < AcpiGbl_CurrentObjectSize) \
{ \
AcpiGbl_MaxConcurrentObjectSize = AcpiGbl_CurrentObjectSize; \
}
#define DECREMENT_NAME_TABLE_METRICS(a) \
AcpiGbl_CurrentNodeCount--; \
AcpiGbl_CurrentNodeSize -= (a)
#define INCREMENT_NAME_TABLE_METRICS(a) \
AcpiGbl_CurrentNodeCount++; \
AcpiGbl_CurrentNodeSize+= (a); \
if (AcpiGbl_MaxConcurrentNodeCount < AcpiGbl_CurrentNodeCount) \
{ \
AcpiGbl_MaxConcurrentNodeCount = AcpiGbl_CurrentNodeCount; \
} \
#ifdef ACPI_DEBUG_TRACK_ALLOCATIONS
void
AcpiCmDumpAllocationInfo (
void);
@ -809,8 +743,12 @@ void
AcpiCmDumpCurrentAllocations (
UINT32 Component,
NATIVE_CHAR *Module);
#endif
#define AcpiCmAllocate(a) _CmAllocate(a,_COMPONENT,_THIS_MODULE,__LINE__)
#define AcpiCmCallocate(a) _CmCallocate(a, _COMPONENT,_THIS_MODULE,__LINE__)
#define AcpiCmFree(a) _CmFree(a,_COMPONENT,_THIS_MODULE,__LINE__)
#endif /* _ACCOMMON_H */