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

📄 testdebug.h

📁 一个Linux下的软猫驱动
💻 H
📖 第 1 页 / 共 5 页
字号:
/* * Copyright (c) 2003-2004 Linuxant inc. * Copyright (c) 2001-2004 Conexant Systems, Inc. *  * 1.   Permitted use. Redistribution and use in source and binary forms, * without modification, are only permitted under the terms set forth herein. *  * 2.   Disclaimer of Warranties. LINUXANT, ITS SUPPLIERS, AND OTHER CONTRIBUTORS * MAKE NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOFTWARE FOR ANY PURPOSE. * IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTIES OF ANY KIND. * LINUXANT AND OTHER CONTRIBUTORS DISCLAIMS ALL WARRANTIES WITH REGARD * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE, GOOD TITLE AND AGAINST INFRINGEMENT. *  * This software has not been formally tested, and there is no guarantee that * it is free of errors including, but not limited to, bugs, defects, * interrupted operation, or unexpected results. Any use of this software is * at user's own risk. *  * 3.   No Liability. *  * (a) Linuxant, its suppliers, or contributors shall not be responsible for * any loss or damage to users, customers, or any third parties for any reason * whatsoever, and LINUXANT, ITS SUPPLIERS OR CONTRIBUTORS SHALL NOT BE LIABLE * FOR ANY ACTUAL, DIRECT, INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL, OR * CONSEQUENTIAL (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED, WHETHER IN CONTRACT, STRICT OR OTHER LEGAL THEORY OF * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY * OF SUCH DAMAGE. *  * (b) User agrees to hold Linuxant, its suppliers, and contributors harmless * from any liability, loss, cost, damage or expense, including attorney's fees, * as a result of any claims which may be made by any person, including * but not limited to User, its agents and employees, its customers, or * any third parties that arise out of or result from the manufacture, * delivery, actual or alleged ownership, performance, use, operation * or possession of the software furnished hereunder, whether such claims * are based on negligence, breach of contract, absolute liability or any * other legal theory. *  * 4.   Notices. User hereby agrees not to remove, alter or destroy any * copyright, trademark, credits, other proprietary notices or confidential * legends placed upon, contained within or associated with the Software, * and shall include all such unaltered copyright, trademark, credits, * other proprietary notices or confidential legends on or in every copy of * the Software. *  * 5.   Reverse-engineering. User hereby agrees not to reverse engineer, * decompile, or disassemble the portions of this software provided solely * in object form, nor attempt in any manner to obtain their source-code. *  * 6.   Redistribution. Redistribution of this software is only permitted * for exact copies (without modification) of versions explicitly marked * and officially released by Linuxant with the word "free" in their name. * Redistribution or disclosure of other versions, derivatives or license key * information is expressly prohibited without explicit written approval signed * by an authorized Linuxant officer. *  * 7.   Performance. V.92 modems are designed to be capable of receiving data at * up to 56Kbps with compatible phone line and server equipment, and transmitting * data at up to 31.2Kbps. V.90 modems are designed to be capable of receiving * data at up to 56 Kbps from a compatible service provider and transmitting data * at up to about 28.8 Kbps. Public networks currently limit download speeds to * about 53Kbps. The free version of the drivers is limited to 14.4Kbps. * Actual speeds vary and are often less than the maximum possible. *  *  *//****************************************************************************************File Name:			TestDebug.hFile Description:		*****************************************************************************************//************************************************************************************************************************************************************************************                                                                                   ******                                 Copyright (c) 2000 - 2004                         ******                                                                                   ******                                Conexant Systems, Inc.                             ******                             Personal Computing Division                           ******                                                                                   ******                                 All Rights Reserved                               ******                                                                                   *************************************************************************************************************************************************************************************/#ifndef __TESTDEBUG_H__#define __TESTDEBUG_H__#if (OCT_SW_MODEM == 1)#include "osservices.h"#endif /* OCT_SW_MODEM */#ifdef ENABLE_BLAM_SCR    #ifdef  NO_BLAM_SUPPORT        #undef NO_BLAM_SUPPORT    #endif#else    #ifndef NO_BLAM_SUPPORT        #define NO_BLAM_SUPPORT    #endif#endif#if !defined NO_BLAM_SUPPORT && !defined USE_TRACE    #define USE_TRACE#endif/*#if defined(USE_TRACE) || defined(USE_TRACE_ONLY)*/#ifdef USE_TRACE_ONLY#undef ulTraceMask#undef ulLogThread#define ulTraceMask (USE_TRACE_ONLY)#define ulLogThread 0xdeadbeef#else    extern unsigned long ulTraceMask;    extern unsigned long ulLogThread;#endif    #define	T__FATAL_ERROR	0x80000000    #define T__ERROR		0x40000000    #define T__ASSERT		0x20000000	/*arbitrary at the moment */	#define MAX_NUM_RTRACE_IDS 1024    enum OFFSET_DEFINITION {		SCR_CLIENTS_OFFSET	=	0,		CONTROLLER_OFFSET	=	128,		FAX_OFFSET			=	256,		DATA_OFFSET			=	512	};    	/*NOTE:  New trace types can be added into this enum anywhere and tracing should */	/*       work after a recompile.  However, the BLAM application uses this enum */	/*       to create its database and has trouble parsing comments within it so */	/*       at the present time PLEASE ADD NO COMMENTS WITHIN THIS ENUM!!! */	/*       ALSO: Note that any changes to this enum needs corresponding (order */	/*       dependent changes tot he BLAM_Filters_Default list below.... */        /* NEW NOTE:  It is important to keep the order of definitions in this enum in sync           with the BLAM_FILTERS_DEFAULTS definition of defaults below.  This means you will most likely           find it EASIER to add any new categrories at the END rather than have to fiddle with adjusting           the BLAM_FILTERS_DEFAULTS definition        */	enum RTRACE_GROUP {        T__DUMMY,                            /*ALL/DUMMY*/		T__CALLPROG,                         /*ALL/Controller/Callprogress*/		T__SESSIONMGR,                       /*ALL/Manager/Session*/		T__STREAMMGR,                        /*ALL/Manager/Stream*/		T__DATASESSION,                      /*ALL/Session/Data*/		T__MNP,	                             /*ALL/EC/MNP*/		T__V42,	                             /*ALL/EC/V42*/		T__V42BIS,                           /*ALL/EC/V42B*/		T__FAXSESSION,	                     /*ALL/Session/Fax*/		T__FAXPIM,                           /*ALL/Controller/FaxPim*/		T__ATPARSER,                         /*ALL/Controller/ATParser*/		T__COMMCTRL,                         /*ALL/Controller/ComCtrl*/		T__UTILS,                            /*ALL/Controller/Utils*/		T__RTMGR,                            /*ALL/Manager/RT*/		T__CONFIGMGR,                        /*ALL/Manager/Config*/		T__V8BIS,                            /*ALL/Session/V8Bis*/		T__STATMGR,	                         /*ALL/Manager/Stat*/		T__V8,                               /*ALL/Session/V8*/		T__PROFILE,                          /*ALL/Profile*/		T__NVMMGR,                           /*ALL/Manager/NVM*/		T__TESTSESSION,                      /*ALL/Session/Test*/		T__CALLERID,                         /*ALL/V92/CallerID*/		T__MOH,                              /*ALL/V92/MOH*/		T__QC,                               /*ALL/V92/QC*/		T__DIAG,                             /*ALL/Session/Diag*/    	T__CW,                               /*ALL/V92/CW*/    	T__DEVMGR,                           /*ALL/Devmgr*/    	T__AUTOMODE_EL,                      /*ALL/Devmgr/Automode_El*/    	T__DATA_EL,                          /*ALL/Devmgr/Data_El*/        T__DEVMGR_PTT,                       /*ALL/Devmgr/PTT*/    	T__DIALER_EL,                        /*ALL/Devmgr/Dialer_El*/    	T__RINGDET,                          /*ALL/Devmgr/RingDet*/    	T__TONEEL,                           /*ALL/Devmgr/Tone_El*/        T__HDLC,                             /*ALL/HDLC*/        T__SIGNAL,                           /*ALL/Devmgr/SignalMgr*/        T__SOFT_FAX_EL,                      /*ALL/FAX_EL*/        T__CAESAR,                           /*ALL/Caesar*/                                    /*****************************************************************************//*********************************   F S K   *********************************//*****************************************************************************/#ifdef NO_BLAM_SUPPORT#define T__FSK_CONFIGURE                  "ALL/FSK/Configure"#else        T__FSK_CONFIGURE,                /*ALL/FSK/Configure*/#endif#ifdef NO_BLAM_SUPPORT#define T__FSK_ANSWER_RX                  "ALL/FSK/Answer/Rx"#else        T__FSK_ANSWER_RX,                /*ALL/FSK/Answer/Rx*/#endif#ifdef NO_BLAM_SUPPORT#define T__FSK_CALLER_RX                  "ALL/FSK/Caller/Rx"#else        T__FSK_CALLER_RX,                /*ALL/FSK/Caller/Rx*/#endif#ifdef NO_BLAM_SUPPORT#define T__FSK_ANSWER_TX                  "ALL/FSK/Answer/Tx"#else        T__FSK_ANSWER_TX,                /*ALL/FSK/Answer/Tx*/#endif#ifdef NO_BLAM_SUPPORT#define T__FSK_CALLER_TX                  "ALL/FSK/Caller/Tx"#else        T__FSK_CALLER_TX,                /*ALL/FSK/Caller/Tx*/#endif#ifdef NO_BLAM_SUPPORT#define T__ANSDET                         "ALL/AnsDet"#else        T__ANSDET,                       /*ALL/AnsDet*/#endif#ifdef NO_BLAM_SUPPORT#define T__TONEDET                        "ALL/ToneDet"#else        T__TONEDET,                      /*ALL/ToneDet*/#endif/*****************************************************************************//*********************************   V 2 2   *********************************//*****************************************************************************/#ifdef NO_BLAM_SUPPORT#define T__V22_CONFIGURE                  "ALL/V22/Configure"#else        T__V22_CONFIGURE,                /*ALL/V22/Configure*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_RUNTIMECOMMAND             "ALL/V22/RunTimeCommand"#else        T__V22_RUNTIMECOMMAND,           /*ALL/V22/RunTimeCommand*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_MESSAGES            "ALL/V22/Answer/Messages"#else        T__V22_ANSWER_MESSAGES,          /*ALL/V22/Answer/Messages*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_MESSAGES            "ALL/V22/Caller/Messages"#else        T__V22_CALLER_MESSAGES,          /*ALL/V22/Caller/Messages*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_FRED                "ALL/V22/Answer/Fred"#else        T__V22_ANSWER_FRED,              /*ALL/V22/Answer/Fred*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_FRED_STATES         "ALL/V22/Answer/Fred/States"#else        T__V22_ANSWER_FRED_STATES,       /*ALL/V22/Answer/Fred/States*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_FRED_SUMMARY        "ALL/V22/Answer/Fred/Summary"#else        T__V22_ANSWER_FRED_SUMMARY,      /*ALL/V22/Answer/Fred/Summary*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_RX_STATES           "ALL/V22/Answer/Rx/States"#else        T__V22_ANSWER_RX_STATES,         /*ALL/V22/Answer/Rx/States*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_RX_RATES            "ALL/V22/Answer/Rx/Rates"#else        T__V22_ANSWER_RX_RATES,          /*ALL/V22/Answer/Rx/Rates*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_RX_MSE              "ALL/V22/Answer/Rx/Mse"#else        T__V22_ANSWER_RX_MSE,            /*ALL/V22/Answer/Rx/Mse*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_RX_EQ              "ALL/V22/Answer/Rx/Eq"#else        T__V22_ANSWER_RX_EQ,            /*ALL/V22/Answer/Rx/Eq*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_RX_MISC             "ALL/V22/Answer/Rx/Misc"#else        T__V22_ANSWER_RX_MISC,           /*ALL/V22/Answer/Rx/Misc*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_RX_TIMEOUTS         "ALL/V22/Answer/Rx/Timeouts"#else        T__V22_ANSWER_RX_TIMEOUTS,       /*ALL/V22/Answer/Rx/Timeouts*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_FRED                "ALL/V22/Caller/Fred"#else        T__V22_CALLER_FRED,              /*ALL/V22/Caller/Fred*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_FRED_STATES         "ALL/V22/Caller/Fred/States"#else        T__V22_CALLER_FRED_STATES,       /*ALL/V22/Caller/Fred/States*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_FRED_SUMMARY        "ALL/V22/Caller/Fred/Summary"#else        T__V22_CALLER_FRED_SUMMARY,      /*ALL/V22/Caller/Fred/Summary*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_RX_STATES           "ALL/V22/Caller/Rx/States"#else        T__V22_CALLER_RX_STATES,         /*ALL/V22/Caller/Rx/States*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_RX_RATES            "ALL/V22/Caller/Rx/Rates"#else        T__V22_CALLER_RX_RATES,          /*ALL/V22/Caller/Rx/Rates*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_RX_MSE              "ALL/V22/Caller/Rx/Mse"#else        T__V22_CALLER_RX_MSE,            /*ALL/V22/Caller/Rx/Mse*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_RX_EQ              "ALL/V22/Caller/Rx/Eq"#else        T__V22_CALLER_RX_EQ,            /*ALL/V22/Caller/Rx/Eq*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_RX_MISC             "ALL/V22/Caller/Rx/Misc"#else        T__V22_CALLER_RX_MISC,           /*ALL/V22/Caller/Rx/Misc*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_CALLER_RX_TIMEOUTS         "ALL/V22/Caller/Rx/Timeouts"#else        T__V22_CALLER_RX_TIMEOUTS,       /*ALL/V22/Caller/Rx/Timeouts*/#endif#ifdef NO_BLAM_SUPPORT#define T__V22_ANSWER_TX_STATES           "ALL/V22/Answer/Tx/States"

⌨️ 快捷键说明

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