⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testdebug.h

📁 一个Linux下的软猫驱动
💻 H
📖 第 1 页 / 共 5 页
字号:
#ifdef NO_BLAM_SUPPORT#define D__V92_SESSION_CFG                     "V92Session.cfg"#else        D__V92_SESSION_CFG,              /*/v90/V92Session.cfg*/#endif#ifdef NO_BLAM_SUPPORT#define D__V92_SESSION_SMP                     "V92Session.smp"#else        D__V92_SESSION_SMP,              /*/v90/V92Session.smp*/#endif#ifdef NO_BLAM_SUPPORT#define D__V92_SESSION_TXO                     "V92Session.txo"#else        D__V92_SESSION_TXO,              /*/v90/V92Session.txo*/#endif#ifdef NO_BLAM_SUPPORT#define D__V92_SESSION_RLN                     "V92Session.rln"#else        D__V92_SESSION_RLN,              /*/v90/V92Session.rln*/#endif#ifdef NO_BLAM_SUPPORT#define D__V92_SESSION_TLN                     "V92Session.tln"#else        D__V92_SESSION_TLN,              /*/v90/V92Session.tln*/#endif#ifdef NO_BLAM_SUPPORT#define D__V92_SESSION_CMD                     "V92Session.cmd"#else        D__V92_SESSION_CMD,              /*/v90/V92Session.cmd*/#endif#ifdef NO_BLAM_SUPPORT#define D__V92_SESSION_BIT                     "V92Session.bit"#else        D__V92_SESSION_BIT,              /*/v90/V92Session.bit*/#endif/*****************************************************************************//*********************************   V 8     *********************************//*****************************************************************************/    #ifdef NO_BLAM_SUPPORT#define D__V8_SESSION_CFG                     "V8Session.cfg"#else        D__V8_SESSION_CFG,               /*/v8/V8Session.cfg*/#endif#ifdef NO_BLAM_SUPPORT#define D__V8_SESSION_RXI                     "V8Session.rxi"#else        D__V8_SESSION_RXI,               /*/v8/V8Session.rxi*/#endif#ifdef NO_BLAM_SUPPORT#define D__V8_SESSION_TX8                     "V8Session.tx8"#else        D__V8_SESSION_TX8,               /*/v8/V8Session.tx8*/#endif        #ifdef NO_BLAM_SUPPORT#define D__V8_SESSION_RLN                     "V8Session.rln"#else        D__V8_SESSION_RLN,               /*/v8/V8Session.rln*/#endif#ifdef NO_BLAM_SUPPORT#define D__V8_SESSION_TLN                     "V8Session.tln"#else        D__V8_SESSION_TLN,               /*/v8/V8Session.tln*/#endif#ifdef NO_BLAM_SUPPORT#define D__V8_SESSION_CMD                     "V8Session.cmd"#else        D__V8_SESSION_CMD,               /*/v8/V8Session.cmd*/#endif/*****************************************************************************//*********************************   E C     *********************************//*****************************************************************************/   #ifdef NO_BLAM_SUPPORT#define D__EC_RX_INPUT_R16                    "EC_RxInput.r16"#else        D__EC_RX_INPUT_R16,              /*/ec/EC_RxInput.r16*/#endif#ifdef NO_BLAM_SUPPORT#define D__EC_RX_OUTPUT_R16                   "EC_RxOutput.r16"#else        D__EC_RX_OUTPUT_R16,             /*/ec/EC_RxOutput.r16*/#endif#ifdef NO_BLAM_SUPPORT#define D__EC_TX_R16                          "EC_Tx.r16"#else        D__EC_TX_R16,                    /*/ec/EC_Tx.r16*/#endif#ifdef NO_BLAM_SUPPORT#define D__EC_NE_COEFFS_R32                   "EC_NeCoeffs.r32"#else        D__EC_NE_COEFFS_R32,             /*/ec/EC_NeCoeffs.r32*/#endif#ifdef NO_BLAM_SUPPORT#define D__EC_FE_COEFFS_R32                   "EC_FeCoeffs.r32"#else        D__EC_FE_COEFFS_R32,             /*/ec/EC_FeCoeffs.r32*/#endif/*****************************************************************************//*********************************   Q A M   *********************************//*****************************************************************************/    #ifdef NO_BLAM_SUPPORT#define D__QAM_TX1_SYMBOLS_C16                 "QamTx1_Symbols.c16"#else        D__QAM_TX1_SYMBOLS_C16,          /*/qam/QamTx1_Symbols.c16*/#endif#ifdef NO_BLAM_SUPPORT#define D__QAM_TX2_SHAPING_OUT_C16             "QamTx2_ShapingOut.c16"#else        D__QAM_TX2_SHAPING_OUT_C16,      /*/qam/QamTx2_ShapingOut.c16*/#endif#ifdef NO_BLAM_SUPPORT#define D__QAM_TX3_MODULATOR_OUT_R16           "QamTx3_ModulatorOut.r16"#else        D__QAM_TX3_MODULATOR_OUT_R16,    /*/qam/QamTx3_ModulatorOut.r16*/#endif#ifdef NO_BLAM_SUPPORT#define D__QAM_TX4_TX_SAMPLES_R16              "QamTx4_TxSamples.r16"#else        D__QAM_TX4_TX_SAMPLES_R16,       /*/qam/QamTx4_TxSamples.r16*/#endif	    DMP_FILES_TOTAL	} DMP_FILES_T;#if !defined NO_BLAM_SUPPORT/*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// *//*   Background Logging Definitions .... *//* *//*		NOTE:	PLEASE, any changes made in TRACE message mask definitions should *//*				be made also in enum and defaults defined below.  *//* *//*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// *//*///////////////////////////////////////////////////////////////////////////// */#ifndef FILEIDNUM#warning FILEIDNUM not defined#define FILEIDNUM 1000#endif#if defined BLAM22	#include "rpt_io.h"	/* */	/*used to initialize Global Severity filter at port open */	/* */	#define BLAM_SEVERITY_DEFAULT (T__FATAL_ERROR|T__ERROR)    /*The FOllowing list is used to initialize trace ON/OFF defaults */	/*for all of the above enum elements at port open time.  This list may */	/*be overridden by soft defaults (such as registry....).   */	/* */	/*NOTE:		Any change to the above list MUST have a corresponding change to  */	/*			this list...and THIS list IS order dependent -- it is used */	/*          to initialize an array of filter criteria values...!!!!! */	/*This macro is used to initialize the default tracing behavior.  It MUST be kept */	/*current with the enum above and is order dependent.  It initialized each bit for each */	/*trace category. */	#define BLAM_FILTERS_DEFAULTS 	{						\					/*00*/	DO_LOG_MSG_INIT(T__CALLPROG)		\					/*01*/|	DO_LOG_MSG_INIT(T__SESSIONMGR)		\					/*02*/|	DO_LOG_MSG_INIT(T__STREAMMGR)		\					/*03*/|	DO_LOG_MSG_INIT(T__DATASESSION)		\					/*04*/|	DO_LOG_MSG_INIT(T__MNP)			\					/*05*/|	DO_LOG_MSG_INIT(T__V42)			\					/*06*/|	DO_LOG_MSG_INIT(T__V42BIS)		\					/*07*/|	DO_LOG_MSG_INIT(T__FAXSESSION)		\					/*08*/|	DO_LOG_MSG_INIT(T__FAXPIM)		\					/*10*/|	DO_LOG_MSG_INIT(T__ATPARSER)		\					/*11*/|	DO_LOG_MSG_INIT(T__COMMCTRL)		\					/*12*/|	NO_LOG_MSG_INIT(T__UTILS)		\					/*13*/|	NO_LOG_MSG_INIT(T__RTMGR)		\					/*14*/|	NO_LOG_MSG_INIT(T__CONFIGMGR)		\					/*15*/|	NO_LOG_MSG_INIT(T__V8BIS)		\					/*16*/|	NO_LOG_MSG_INIT(T__STATMGR)		\					/*17*/|	NO_LOG_MSG_INIT(T__HAL)			\					/*18*/|	NO_LOG_MSG_INIT(T__HALOS)		\					/*19*/|	NO_LOG_MSG_INIT(T__HALSCRIPT)		\					/*20*/|	NO_LOG_MSG_INIT(T__PORT)		\					/*21*/|	NO_LOG_MSG_INIT(T__V8)			\					/*22*/|	NO_LOG_MSG_INIT(T__PROFILE)		\					/*23*/|	NO_LOG_MSG_INIT(T__NVMMGR)		\					/*24*/|	NO_LOG_MSG_INIT(T__TESTSESSION)		\					/*25*/|	NO_LOG_MSG_INIT(T__DRIVER)		\					/*26*/|	NO_LOG_MSG_INIT(T__CALLERID)		\					/*27*/|	NO_LOG_MSG_INIT(T__MOH)			\					/*28*/|	NO_LOG_MSG_INIT(T__QC)			\					/*29*/|	NO_LOG_MSG_INIT(T__DIAG)		\          			/*30*/| NO_LOG_MSG_INIT(T__CW)			\                    /*31*/| DO_LOG_MSG_INIT(T__DEVMGR)          \              ,						\                    /*00*/	DO_LOG_MSG_INIT(T__AUTOMODE_EL) 	\                    /*01*/|	DO_LOG_MSG_INIT(T__DATA_EL) 	\                    /*02*/|	DO_LOG_MSG_INIT(T__DEVMGR_PTT) \                    /*03*/|	DO_LOG_MSG_INIT(T__DIALER_EL) \                    /*04*/|	DO_LOG_MSG_INIT(T__RINGDET) \                    /*05*/|	DO_LOG_MSG_INIT(T__TONEEL)  \                    /*06*/|	NO_LOG_MSG_INIT(T__HDLC)     	\                    /*07*/|	NO_LOG_MSG_INIT(T__FAX_EL)     	\                    /*08*/| DO_LOG_MSG_INIT(T__CAESAR)\                    /*09*/| DO_LOG_MSG_INIT(T__ERROR)\                    /*11*/|	DO_LOG_MSG_INIT(T__SIGNAL)		\                    \					}		#define DMP_BLAM_FILTERS_DEFAULTS 	{						\					/*00*/	DO_LOG_MSG_INIT(DEV_MGR_RX_SAMPLES)		\					/*01*/|	DO_LOG_MSG_INIT(DEV_MGR_TX_SAMPLES)		\					/*02*/|	DO_LOG_MSG_INIT(V17_SESSION_CONFIG)		\					/*03*/|	DO_LOG_MSG_INIT(V17_SESSION_COMMANDS)		\					/*04*/|	DO_LOG_MSG_INIT(V17_SESSION_RX_SAMPLES)			\					/*05*/|	DO_LOG_MSG_INIT(V17_SESSION_TX_SAMPLES)			\					/*06*/|	DO_LOG_MSG_INIT(V17_SESSION_RX_BUFLEN)		\					/*07*/|	DO_LOG_MSG_INIT(V17_SESSION_TX_BUFLEN)		\					/*08*/|	DO_LOG_MSG_INIT(V17_SESSION_TX_BITS)		\					/*09*/|	DO_LOG_MSG_INIT(V32_SESSION_CONFIG)		\					/*10*/|	DO_LOG_MSG_INIT(V32_SESSION_COMMANDS)		\					/*11*/|	DO_LOG_MSG_INIT(V32_SESSION_RX_BUFLEN)		\					/*12*/|	DO_LOG_MSG_INIT(V32_SESSION_RX_BUFLEN)		\					/*13*/|	DO_LOG_MSG_INIT(V32_SESSION_TX_BUFLEN)		\					/*14*/|	DO_LOG_MSG_INIT(V32_SESSION_TX_BITS)		\					}    #define RTRACE0(TypeAndSeverity, unusedLoggingThread, str)  RPT_Write(                      \					(TypeAndSeverity),        \					((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13), \					(UINT32)0)	#define RTRACE1(TypeAndSeverity, unusedLoggingThread, str, arg1)  RPT_Write(                         \					(TypeAndSeverity),                     \					(((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13) | (1 <<29)), \					(UINT32)arg1)		#define RTRACE2(TypeAndSeverity, unusedLoggingThread, str, arg1, arg2)  RPT_Write(                   \					(TypeAndSeverity),                     \					(((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13) | (2 <<29)), \					(UINT32)arg1, (UINT32)arg2)	#define RTRACE3(TypeAndSeverity, unusedLoggingThread, str, arg1, arg2, arg3)  RPT_Write(              \					(TypeAndSeverity),                      \					(((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13) | (3 <<29)),  \					(UINT32)arg1, (UINT32)arg2, (UINT32)arg3)	#define RTRACE4(TypeAndSeverity, unusedLoggingThread, str, arg1, arg2, arg3, arg4)  RPT_Write(       \					(TypeAndSeverity),                     \					(((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13) | (4 <<29)), \					(UINT32)arg1, (UINT32)arg2, (UINT32)arg3, (UINT32)arg4)	#define RTRACE5(TypeAndSeverity, unusedLoggingThread, str, arg1, arg2, arg3, arg4, arg5)  RPT_Write(        \					(TypeAndSeverity),                            \					(((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13) | (5 <<29)),        \					(UINT32)arg1, (UINT32)arg2, (UINT32)arg3, (UINT32)arg4, (UINT32)arg5)							#define RTRACE6(TypeAndSeverity, unusedLoggingThread, str, arg1, arg2, arg3, arg4, arg5, arg6)  RPT_Write(                \					(TypeAndSeverity),                                          \					(((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13) | (6 <<29)),                      \					(UINT32)arg1, (UINT32)arg2, (UINT32)arg3, (UINT32)arg4, (UINT32)arg5, (UINT32)arg6)	#define RTRACE7(TypeAndSeverity, unusedLoggingThread, str, arg1, arg2, arg3, arg4, arg5, arg6, arg7)  RPT_Write(                        \					(TypeAndSeverity),                                                        \					(((__LINE__) & LINE_NUM_MASK) | (FILEIDNUM << 13) | (7 <<29)),                                    \					(UINT32)arg1, (UINT32)arg2, (UINT32)arg3, (UINT32)arg4, (UINT32)arg5, (UINT32)arg6, (UINT32)arg7)    #define RTRACE_DUMP(TypeAndSeverity, unusedLoggingThread, BufferAddress, Size)  RPT_Write( \					(TypeAndSeverity),       \					(RTRACE_DUMP_CODE << 13),                        \					(UINT32)BufferAddress,                           \					(UINT32)Size)    #define RDUMP(TypeAndSeverity, BufferAddress, Size)  RPT_Write( \			    (TypeAndSeverity),                                  \			    (RDUMP_CODE << 13),                                 \			    (UINT32)BufferAddress,                              \			    (UINT32)Size)    #define RTRACE_EOS(TypeAndSeverity, unusedLoggingThread)  RPT_Write(     \			    (TypeAndSeverity), \			    (RTRACE_EOS_CODE << 13))    #define RDUMP_EOS(TypeAndSeverity, unusedLoggingThread)  RPT_Write(      \			    (TypeAndSeverity), \			    (RDUMP_EOS_CODE << 13))    #define TRACE( x, y )#endif /* defined BLAM22 */#else     /* !defined NO_BLAM_SUPPORT */#if ((defined SCR) && (OS_TYPE == OS_STB))	#include "rpt_io.h"	#define DW_CLIENT_ID ((UINT32)0)	#define Num_Messages 0	#define BLAM_SEVERITY_DEFAULT 0	#include "octopus/include/dbgscr_wrapper.h"    #define RTRACE0(TypeAndSeverity, LoggingThread, str) DbgScrWrap_Write( str )	#define RTRACE1(TypeAndSeverity, LoggingThread, str, arg1) DbgScrWrap_Write( str, arg1 )	#define RTRACE2(TypeAndSeverity, LoggingThread, str, arg1, arg2) DbgScrWrap_Write( str, arg1, arg2 )	#define RTRACE3(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3) DbgScrWrap_Write( str, arg1, arg2, arg3 )	#define RTRACE4(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4 )	#define RTRACE5(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4, arg5) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4, arg5 )	#define RTRACE6(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4, arg5, arg6) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4, arg5, arg6 )	#define RTRACE7(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4, arg5, arg6, arg7) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4, arg5, arg6, arg7 )    #define SCR_RTL_PRINT0(TypeAndSeverity, LoggingThread, str) DbgScrWrap_Write( str )	#define SCR_RTL_PRINT1(TypeAndSeverity, LoggingThread, str, arg1) DbgScrWrap_Write( str, arg1 )	#define SCR_RTL_PRINT2(TypeAndSeverity, LoggingThread, str, arg1, arg2) DbgScrWrap_Write( str, arg1, arg2 )	#define SCR_RTL_PRINT3(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3) DbgScrWrap_Write( str, arg1, arg2, arg3 )	#define SCR_RTL_PRINT4(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4 )	#define SCR_RTL_PRINT5(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4, arg5) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4, arg5 )	#define SCR_RTL_PRINT6(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4, arg5, arg6) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4, arg5, arg6 )	#define SCR_RTL_PRINT7(TypeAndSeverity, LoggingThread, str, arg1, arg2, arg3, arg4, arg5, arg6, arg7) DbgScrWrap_Write( str, arg1, arg2, arg3, arg4, arg5, arg6, arg7 )#ifdef DPRINTF#undef DPRINTF#endif	#define DPRINTF( x ) DbgScrWrap_Write x	#define TRACE(x, y ) DbgScrWrap_Write y#else  /* ((defined SCR) && (OS_TYPE == OS_STB)) */#if ( OS_TYPE == OS_STB )	#define TRACE(x, y ) #else    #define TRACE(mask,printf)  {                                           \                                    if ((mask) & ulTraceMask)               \                                    {                                       \                                        UINT32 dwTime = OsGetSystemTime();  \                                        OsDebugPrintf ("%07u.%03u: ", dwTime/1000, dwTime%10

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -