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

📄 zddebug.h

📁 ZYDAS zd1211b driver for Linux2.4
💻 H
字号:
#ifndef _ZD_DEBUG_#define _ZD_DEBUG_#include <linux/string.h>#include <stdarg.h>#include <linux/netdevice.h>#include <linux/skbuff.h>#include "zd1205.h"#define ZD_DEBUG//#define WPA_DEBUG//#define DEBUG_DUMP_ASSOC_REQ#ifdef ZD_DEBUG#define ZD1211DEBUG(n, args...) do { if (macp->dbg_flag>(n)) printk(KERN_DEBUG "zd1211:" args); } while(0)#define ZENTER(n) do { if (macp->dbg_flag>(n))	printk(KERN_DEBUG "%s: (enter) %s, %s line %i\n", "zd1205", __FUNCTION__,__FILE__,__LINE__); } while(0)#define ZEXIT(n) do { if (macp->dbg_flag>(n))printk(KERN_DEBUG "%s: (exit) %s, %s line %i\n", "zd1205", __FUNCTION__,__FILE__,__LINE__); } while(0)#else#define ZD1211DEBUG(n, args...) do { } while (0)#define ZENTER(n) //do {} while (0)#define ZEXIT(n) //do {} while (0)#endif#ifdef WPA_DEBUG#define WPADEBUG(args...) do { printk(KERN_ERR args); } while(0)#else#define WPADEBUG(args...) do { } while (0)#endif#ifdef WPADATA_DEBUG#define WPADATADEBUG(bData, args...) do { if (bData) printk(KERN_DEBUG args); } while (0)#else#define WPADATADEBUG(bData, args...) do { } while (0)#endifextern  U32 mDebugFlag;int zd1205_zd_dbg_ioctl(struct zd1205_private *macp, struct zdap_ioctl *zdreq);void zd1205_set_sniffer_mode(struct zd1205_private *macp);void zd1205_dump_regs(struct zd1205_private *macp);void zd1205_dump_cnters(struct zd1205_private *macp);void zd1205_dump_rfds(struct zd1205_private *macp);#endif

⌨️ 快捷键说明

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