@@ -36,11 +36,6 @@ struct DRV_EXT {
char szString[MAXREGPATHLENGTH];
};
-/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask CFG_debugMask = { NULL, NULL }; /* CFG debug Mask */
-#endif
-
/*
* ======== CFG_Exit ========
* Purpose:
@@ -253,7 +248,6 @@ DSP_STATUS CFG_GetObject(OUT u32 *pdwValue, u32 dwType)
bool CFG_Init(void)
{
struct CFG_DSPRES dspResources;
- GT_create(&CFG_debugMask, "CF"); /* CF for ConFig */
dspResources.uChipType = DSPTYPE_64;
dspResources.cChips = 1;
@@ -90,11 +90,6 @@ struct TIMER_OBJECT {
struct timer_list timer;
};
-/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask CLK_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
-
/*
* ======== CLK_Exit ========
* Purpose:
@@ -125,7 +120,6 @@ bool CLK_Init(void)
static struct platform_device dspbridge_device;
struct clk *clk_handle;
int i = 0;
- GT_create(&CLK_debugMask, "CK"); /* CK for CLK */
dspbridge_device.dev.bus = &platform_bus_type;
@@ -28,11 +28,6 @@
/* ----------------------------------- This */
#include <dspbridge/dbg.h>
-/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask DBG_debugMask = { NULL, NULL }; /* GT trace var. */
-#endif
-
#if (defined(CONFIG_BRIDGE_DEBUG) || defined(DDSP_DEBUG_PRODUCT)) && GT_TRACE
/*
@@ -42,8 +37,6 @@ static struct GT_Mask DBG_debugMask = { NULL, NULL }; /* GT trace var. */
*/
bool DBG_Init(void)
{
- GT_create(&DBG_debugMask, "WD"); /* for WmD (link driver) debug */
-
return true;
}
@@ -69,7 +62,7 @@ DSP_STATUS DBG_Trace(u8 bLevel, char *pstrFormat, ...)
va_end(va);
- if (bLevel & *(DBG_debugMask).flags)
+ if (bLevel)
printk(pstrFormat, arg1, arg2, arg3, arg4, arg5, arg6);
return DSP_SOK;
@@ -36,10 +36,6 @@
#define MEM_512MB 0x1fffffff
/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask MEM_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
-
static bool extPhysMemPoolEnabled;
struct extPhysMemPool {
@@ -271,6 +267,5 @@ void MEM_FreePhysMem(void *pVirtualAddress, u32 pPhysicalAddress,
*/
bool MEM_Init(void)
{
- GT_create(&MEM_debugMask, "MM"); /* MM for MeM module */
return true;
}
@@ -66,11 +66,6 @@ struct NOTIFICATION {
struct SYNC_OBJECT *hSync;
};
-/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask NTFY_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
-
/* ----------------------------------- Function Prototypes */
static void DeleteNotify(struct NOTIFICATION *pNotify);
@@ -158,8 +153,6 @@ void NTFY_Exit(void)
*/
bool NTFY_Init(void)
{
- GT_create(&NTFY_debugMask, "NY"); /* "NY" for NtfY */
-
return true;
}
@@ -35,10 +35,6 @@
#include <dspbridge/reg.h>
#include <regsup.h>
-#if GT_TRACE
-struct GT_Mask REG_debugMask = { NULL, NULL }; /* GT trace var. */
-#endif
-
/*
* ======== REG_DeleteValue ========
* Deletes a registry entry value. NOTE: A registry entry value is not the
@@ -118,8 +114,6 @@ bool REG_Init(void)
{
bool fInit;
- GT_create(®_debugMask, "RG"); /* RG for ReG */
-
fInit = regsupInit();
return fInit;
@@ -45,10 +45,6 @@ struct RegValue {
/* Pointer to the registry support key */
static struct LST_LIST regKey, *pRegKey = ®Key;
-#if GT_TRACE
-extern struct GT_Mask REG_debugMask; /* GT trace var. */
-#endif
-
/*
* ======== regsupInit ========
* Purpose:
@@ -38,11 +38,6 @@
/* ----------------------------------- This */
#include <dspbridge/services.h>
-/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask SERVICES_debugMask = { NULL, NULL }; /* GT trace var. */
-#endif
-
/*
* ======== SERVICES_Exit ========
* Purpose:
@@ -75,7 +70,6 @@ bool SERVICES_Init(void)
bool fREG, fSYNC, fCLK, fNTFY;
GT_init();
- GT_create(&SERVICES_debugMask, "OS"); /* OS for OSal */
/* Perform required initialization of SERVICES modules. */
fMEM = MEM_Init();
@@ -67,11 +67,6 @@ struct SYNC_DPCCSOBJECT {
s32 count;
} ;
-/* ----------------------------------- Globals */
-#if GT_TRACE
-static struct GT_Mask SYNC_debugMask = { NULL, NULL }; /* GT trace variable */
-#endif
-
static int test_and_set(volatile void *ptr, int val)
{
int ret = val;
@@ -123,8 +118,6 @@ void SYNC_Exit(void)
*/
bool SYNC_Init(void)
{
- GT_create(&SYNC_debugMask, "SY"); /* SY for SYnc */
-
return true;
}