📄 igxbug.h
字号:
/******************* (c) Marvell Semiconductor, Inc., 2004 ********************
*
*
* Purpose: Debugging macros
*
*
* $Author: Zhangb $
*
* $Date: 2007/03/28 09:31:44 $
*
* $Revision: 1.2 $
*
*****************************************************************************/
#ifndef _IXBUG_H_
#define _IXBUG_H_
#ifndef DEFINE_DEBUG_VARS
extern ULONG DebugLevel; // this must be defined somewhere in drvr.
#endif
//#define DBG
#define DBBASE 0x378 // base address for debug strobe output for analyzer snooping
#define DBLINE1 0x01 // bit 0 is parallel port pin 1
#define DBLINE2 0x02 // bit 1 is parallel port pin 14
#define DBLINE3 0x04 // bit 2 is parallel port pin 16
#define DBLINE4 0x08 // bit 3 is parallel port pin 17
#define DBG_NONE 0x00000000 // No debug - all off.
#define DBG_ERROR 0x00000001 // Debug for ERRORS
#define DBG_WARNING 0x00000002 // Debug for Warnings.
#define DBG_LOAD 0x00000004 // Debug for driver load
#define DBG_UNLOAD 0x00000008 // Debug for driver unload.
#define DBG_ISR 0x00000010 // Debug for ISR messages.
#define DBG_HWIF 0x00000020 // Debug for Hw interface.
#define DBG_TXDATA 0x00000040 // Transmit data path debug
#define DBG_RXDATA 0x00000080 // Receive data path debug.
#define DBG_FWDL 0x00000100 // debug fw download.
#define DBG_CMDRESP 0x00000200 // Debug fw command/responses.
#define DBG_REGS 0x00000400 // Debug register dumps.
#define DBG_OID 0x00000800 // Debug OIDS
#define DBG_MACEVENT 0x00001000 // Debug MAC events.
#define DBG_TIMERS 0x00002000 // Debug timers.
#define DBG_WEP 0x00004000 // Wep related debug
#define DBG_PNP 0x00008000 // Plug-n-play related debug.
#define DBG_TXDATADUMP 0x00010000 // detailed dump of tx data.
#define DBG_RXDATADUMP 0x00020000 // detailed dump of tx data.
#define DBG_SCAN 0x00040000 // Debug scan operation.
#define DBG_POWERSAVE 0x00080000 // Debug for power save option.
#define DBG_L2ROAMING 0x00100000
//#define DBG_THRESH 0x00100000 // debug for frag and rts threshold parms.
//#define DBG_PREAMBLE 0x00200000 // debug for preamble parameter.
#define DBG_DEBUGUSE 0x00200000
#define DBG_DATARATE 0x00400000 // Link speed/data rate debug.
#define DBG_POWER 0x00800000 // debug power management.
#define DBG_DEEPSLEEP 0x08000000 // debug DeepSleep
#define DBG_ADHOCAES 0x10000000 // debug Adhoc aes
#define DBG_HOSTSLEEP 0x02000000
#define DBG_NEWCMD 0x20000000 // debug new command structure
#define DBG_NEWPS 0x40000000 // debug the new PS structure
#define DBG_ALLEN 0x80000000
// Ran out of debug message
/*#define DBG_T1 0x01000000 // Our various time stamps.. up to 6.
#define DBG_T2 0x02000000 // ||
#define DBG_T3 0x04000000 // ||
#define DBG_T4 0x08000000 // ||
#define DBG_T5 0x10000000 // ||
#define DBG_T6 0x20000000 // \/
*/
/*
#define DBG_T1 0x01000000 // Our various time stamps.. up to 6.
#define DBG_T2 0x02000000 // ||
#define DBG_T3 0x04000000 // ||
#define DBG_T4 0x08000000 // ||
#define DBG_T5 0x10000000 // ||
#define DBG_T6 0x20000000 // \/
*/
#define DBG_T1 0x00000000 // Our various time stamps.. up to 6.
#define DBG_T2 0x00000000 // ||
#define DBG_T3 0x00000000 // ||
#define DBG_T4 0x00000000 // ||
#define DBG_T5 0x00000000 // ||
#define DBG_T6 0x00000000 // \/
//#define DBG_QOS 0x01000000
//#define DBG_WPA 0x02000000
#define DBG_QOS 0x00080000 // KP
#define DBG_WPA 0x00080000
//#define DBG_CRLF 0x40000000 // add some cr lfs before this message.
//#define DBG_RAW 0x80000000 // raw debug output
#define DBG_CRLF 0x00000000 // add some cr lfs before this message.
#define DBG_RAW 0x00000000 // raw debug output
#define DBG_IOCTL 0x04000000
#define DBG_ALL 0xffffffff // All debug enabled.
#define DBG_DONTCARE (DBG_RAW | DBG_CRLF) // either of these by themselves should not cause debug to print.
#define DBG_TIMESTAMPS ( DBG_T1 | DBG_T2 | DBG_T3 | DBG_T4 | DBG_T5 | DBG_T6 )
#define DBG_DEFAULT (DBG_NONE \
| DBG_ERROR \
| DBG_WARNING \
| DBG_NONE) //DBG_ALL
/*
| DBG_TXDATADUMP\
\\
| DBG_MACEVENT\
| DBG_CMDRESP \
| DBG_OID \
*/
/*
| DBG_CMDRESP \
| DBG_ALLEN \
| DBG_MACEVENT\
| DBG_TXDATA\
*/
/*
#define DBG_DEFAULT (DBG_NONE \
| DBG_ERROR \
| DBG_WARNING \
| DBG_CMDRESP \
| DBG_WEP \
| DBG_NONE)
*/
/*
#define DBG_DEFAULT (DBG_NONE \
| DBG_ERROR \
| DBG_WARNING \
| DBG_CMDRESP \
| DBG_ISR \
| DBG_LOAD \
| DBG_NEWPS \
| DBG_WPA \
| DBG_NEWCMD \
| DBG_SCAN \
| DBG_TXDATA \
| DBG_RXDATA \
| DBG_NONE)
*/
/*
#define DBG_DEFAULT (DBG_NONE \
| DBG_ERROR \
| DBG_WARNING \
| DBG_CMDRESP \
| DBG_MACEVENT \
| DBG_OID \
| DBG_ISR \
| DBG_LOAD \
| DBG_UNLOAD \
| DBG_NEWPS \
| DBG_WPA \
| DBG_NEWCMD \
| DBG_PNP \
| DBG_SCAN \
| DBG_TXDATA \
| DBG_RXDATA \
| DBG_RXDATADUMP \
| DBG_L2ROAMING \
| DBG_NONE)
*/
//#define DBG_DEFAULT (DBG_NONE \
//| DBG_ERROR \
//| DBG_WARNING \
//| DBG_CMDRESP \
//| DBG_MACEVENT \
//| DBG_OID \
//| DBG_LOAD \
//| DBG_UNLOAD \
//| DBG_DEEPSLEEP \
//| DBG_WPA \
//| DBG_SCAN \
//| DBG_NONE)
/*#define DBG_DEFAULT (DBG_NONE \
| DBG_ERROR \
| DBG_WARNING \
| DBG_NONE)*/
//--------------------------------------------------------------------------------
// PJG: Add any of these to above define and uncomment to enable area of debug.
//--------------------------------------------------------------------------------
//| DBG_DATARATE \
//| DBG_TXDATA \
//| DBG_CMDRESP \
//| DBG_ALL \
//| DBG_PNP \
//| DBG_LOAD \
//| DBG_UNLOAD \
//| DBG_POWER \
//| DBG_TXDATA \
//| DBG_RXDATA \
//| DBG_ISR \
//| DBG_TXDATADUMP \
//| DBG_TIMESTAMPS \
//| DBG_WEP \
//| DBG_SCAN \
//| DBG_CMDRESP \
//| DBG_OID \
//| DBG_MACEVENT \
//| DBG_TIMERS \
//| DBG_FWDL \
//| DBG_REGS \
//| DBG_HWIF \
//| DBG_TXDATADUMP \
//| DBG_RXDATADUMP \
//| DBG_TXDATA \
//| DBG_RXDATA \
//| DBG_POWERSAVE \
//| DBG_L2ROAMING \
//| DBG_DATARATE \
//| DBG_WPA \
//| DBG_QOS \
#ifdef DBG
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -