@@ -47,11 +47,6 @@
/* ----------------------------------- Globals */
static u32 cRefs;
-#if GT_TRACE
-static struct GT_Mask CHNL_DebugMask = { NULL, NULL }; /* WCD CHNL Mask */
-#endif
-
-
/*
* ======== CHNL_Create ========
@@ -165,11 +160,6 @@ bool CHNL_Init(void)
DBC_Require(cRefs >= 0);
- if (cRefs == 0) {
- DBC_Assert(!CHNL_DebugMask.flags);
- GT_create(&CHNL_DebugMask, "CH"); /* "CH" for CHannel */
- }
-
if (fRetval)
cRefs++;
@@ -144,10 +144,6 @@ struct CMM_MNODE {
/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask CMM_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
-
static u32 cRefs; /* module reference count */
/* ----------------------------------- Function Prototypes */
@@ -525,11 +521,6 @@ bool CMM_Init(void)
bool fRetval = true;
DBC_Require(cRefs >= 0);
- if (cRefs == 0) {
- /* Set the Trace mask */
- /* "CM" for Comm Memory manager */
- GT_create(&CMM_debugMask, "CM");
- }
if (fRetval)
cRefs++;
@@ -76,10 +76,6 @@ struct COD_LIBRARYOBJ {
static u32 cRefs = 0L;
-#if GT_TRACE
-static struct GT_Mask COD_debugMask = { NULL, NULL };
-#endif
-
static struct DBLL_Fxns dbllFxns = {
(DBLL_CloseFxn) DBLL_close,
(DBLL_CreateFxn) DBLL_create,
@@ -478,11 +474,6 @@ bool COD_Init(void)
DBC_Require(cRefs >= 0);
- if (cRefs == 0) {
- DBC_Assert(!COD_debugMask.flags);
- GT_create(&COD_debugMask, "CO");
- }
-
if (fRetVal)
cRefs++;
@@ -199,10 +199,6 @@ static u16 nameHash(void *name, u16 maxBucket);
static bool nameMatch(void *name, void *sp);
static void symDelete(void *sp);
-#if GT_TRACE
-static struct GT_Mask DBLL_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
-
static u32 cRefs; /* module reference count */
/* Symbol Redefinition */
@@ -302,12 +298,8 @@ void DBLL_exit(void)
cRefs--;
- if (cRefs == 0) {
+ if (cRefs == 0)
GH_exit();
-#if GT_TRACE
- DBLL_debugMask.flags = NULL;
-#endif
- }
DBC_Ensure(cRefs >= 0);
}
@@ -455,11 +447,8 @@ bool DBLL_init(void)
{
DBC_Require(cRefs >= 0);
- if (cRefs == 0) {
- DBC_Assert(!DBLL_debugMask.flags);
- GT_create(&DBLL_debugMask, "DL"); /* "DL" for dbDL */
+ if (cRefs == 0)
GH_init();
- }
cRefs++;
@@ -89,9 +89,6 @@ struct DEV_OBJECT {
/* ----------------------------------- Globals */
static u32 cRefs; /* Module reference count */
-#if GT_TRACE
-static struct GT_Mask debugMask = { NULL, NULL }; /* For debugging */
-#endif
/* ----------------------------------- Function Prototypes */
static DSP_STATUS FxnNotImplemented(int arg, ...);
@@ -775,9 +772,6 @@ bool DEV_Init(void)
DBC_Require(cRefs >= 0);
if (cRefs == 0) {
- /* Set the Trace mask */
- DBC_Assert(!debugMask.flags);
- GT_create(&debugMask, "DV"); /* "DV" for DeVice */
fCmm = CMM_Init();
fDmm = DMM_Init();
@@ -63,10 +63,6 @@ struct DMM_OBJECT {
/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask DMM_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
-
static u32 cRefs; /* module reference count */
struct MapPage {
u32 RegionSize:15;
@@ -258,12 +254,6 @@ bool DMM_Init(void)
DBC_Require(cRefs >= 0);
- if (cRefs == 0) {
- /* Set the Trace mask */
- /*"DM" for Dymanic Memory Manager */
- GT_create(&DMM_debugMask, "DM");
- }
-
if (fRetval)
cRefs++;
@@ -43,10 +43,6 @@
/* ----------------------------------- Globals */
static u32 cRefs;
-#if GT_TRACE
-static struct GT_Mask IO_DebugMask = { NULL, NULL }; /* WCD IO Mask */
-#endif
-
/*
* ======== IO_Create ========
* Purpose:
@@ -140,11 +136,6 @@ bool IO_Init(void)
DBC_Require(cRefs >= 0);
- if (cRefs == 0) {
- DBC_Assert(!IO_DebugMask.flags);
- GT_create(&IO_DebugMask, "IO"); /* "IO" for IO */
- }
-
if (fRetval)
cRefs++;
@@ -42,9 +42,6 @@
#include <dspbridge/msg.h>
/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask MSG_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
static u32 cRefs; /* module reference count */
/*
@@ -128,11 +125,6 @@ bool MSG_Init(void)
{
DBC_Require(cRefs >= 0);
- if (cRefs == 0) {
- DBC_Assert(!MSG_debugMask.flags);
- GT_create(&MSG_debugMask, "MS"); /* "MS" for MSg */
- }
-
cRefs++;
DBC_Ensure(cRefs >= 0);
@@ -78,9 +78,6 @@ struct WCD_Cmd {
} ;
/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask WCD_debugMask = { NULL, NULL }; /* Core VxD Mask */
-#endif
static u32 WCD_cRefs;
/*
@@ -304,9 +301,6 @@ bool WCD_Init(void)
bool fMGR, fPROC, fNODE, fDISP, fSTRM, fRMM;
if (WCD_cRefs == 0) {
- /* initialize debugging module */
- DBC_Assert(!WCD_debugMask.flags);
- GT_create(&WCD_debugMask, "CD"); /* CD for class driver */
/* initialize class driver and other modules */
fDRV = DRV_Init();
fMGR = MGR_Init();