aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.h')
-rw-r--r--drivers/net/wireless/ath/ath5k/debug.h42
1 files changed, 4 insertions, 38 deletions
diff --git a/drivers/net/wireless/ath/ath5k/debug.h b/drivers/net/wireless/ath/ath5k/debug.h
index 606ae94a9157..193dd2d4ea3c 100644
--- a/drivers/net/wireless/ath/ath5k/debug.h
+++ b/drivers/net/wireless/ath/ath5k/debug.h
@@ -68,16 +68,6 @@ struct ath5k_buf;
68 68
69struct ath5k_dbg_info { 69struct ath5k_dbg_info {
70 unsigned int level; /* debug level */ 70 unsigned int level; /* debug level */
71 /* debugfs entries */
72 struct dentry *debugfs_phydir;
73 struct dentry *debugfs_debug;
74 struct dentry *debugfs_registers;
75 struct dentry *debugfs_beacon;
76 struct dentry *debugfs_reset;
77 struct dentry *debugfs_antenna;
78 struct dentry *debugfs_frameerrors;
79 struct dentry *debugfs_ani;
80 struct dentry *debugfs_queue;
81}; 71};
82 72
83/** 73/**
@@ -94,7 +84,9 @@ struct ath5k_dbg_info {
94 * @ATH5K_DEBUG_DUMP_RX: print received skb content 84 * @ATH5K_DEBUG_DUMP_RX: print received skb content
95 * @ATH5K_DEBUG_DUMP_TX: print transmit skb content 85 * @ATH5K_DEBUG_DUMP_TX: print transmit skb content
96 * @ATH5K_DEBUG_DUMPBANDS: dump bands 86 * @ATH5K_DEBUG_DUMPBANDS: dump bands
87 * @ATH5K_DEBUG_DMA: debug dma start/stop
97 * @ATH5K_DEBUG_TRACE: trace function calls 88 * @ATH5K_DEBUG_TRACE: trace function calls
89 * @ATH5K_DEBUG_DESC: descriptor setup
98 * @ATH5K_DEBUG_ANY: show at any debug level 90 * @ATH5K_DEBUG_ANY: show at any debug level
99 * 91 *
100 * The debug level is used to control the amount and type of debugging output 92 * The debug level is used to control the amount and type of debugging output
@@ -113,10 +105,10 @@ enum ath5k_debug_level {
113 ATH5K_DEBUG_CALIBRATE = 0x00000020, 105 ATH5K_DEBUG_CALIBRATE = 0x00000020,
114 ATH5K_DEBUG_TXPOWER = 0x00000040, 106 ATH5K_DEBUG_TXPOWER = 0x00000040,
115 ATH5K_DEBUG_LED = 0x00000080, 107 ATH5K_DEBUG_LED = 0x00000080,
116 ATH5K_DEBUG_DUMP_RX = 0x00000100,
117 ATH5K_DEBUG_DUMP_TX = 0x00000200,
118 ATH5K_DEBUG_DUMPBANDS = 0x00000400, 108 ATH5K_DEBUG_DUMPBANDS = 0x00000400,
109 ATH5K_DEBUG_DMA = 0x00000800,
119 ATH5K_DEBUG_ANI = 0x00002000, 110 ATH5K_DEBUG_ANI = 0x00002000,
111 ATH5K_DEBUG_DESC = 0x00004000,
120 ATH5K_DEBUG_ANY = 0xffffffff 112 ATH5K_DEBUG_ANY = 0xffffffff
121}; 113};
122 114
@@ -135,28 +127,15 @@ enum ath5k_debug_level {
135 } while (0) 127 } while (0)
136 128
137void 129void
138ath5k_debug_init(void);
139
140void
141ath5k_debug_init_device(struct ath5k_softc *sc); 130ath5k_debug_init_device(struct ath5k_softc *sc);
142 131
143void 132void
144ath5k_debug_finish(void);
145
146void
147ath5k_debug_finish_device(struct ath5k_softc *sc);
148
149void
150ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah); 133ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah);
151 134
152void 135void
153ath5k_debug_dump_bands(struct ath5k_softc *sc); 136ath5k_debug_dump_bands(struct ath5k_softc *sc);
154 137
155void 138void
156ath5k_debug_dump_skb(struct ath5k_softc *sc,
157 struct sk_buff *skb, const char *prefix, int tx);
158
159void
160ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf); 139ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf);
161 140
162#else /* no debugging */ 141#else /* no debugging */
@@ -171,28 +150,15 @@ ATH5K_DBG_UNLIMIT(struct ath5k_softc *sc, unsigned int m, const char *fmt, ...)
171{} 150{}
172 151
173static inline void 152static inline void
174ath5k_debug_init(void) {}
175
176static inline void
177ath5k_debug_init_device(struct ath5k_softc *sc) {} 153ath5k_debug_init_device(struct ath5k_softc *sc) {}
178 154
179static inline void 155static inline void
180ath5k_debug_finish(void) {}
181
182static inline void
183ath5k_debug_finish_device(struct ath5k_softc *sc) {}
184
185static inline void
186ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah) {} 156ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah) {}
187 157
188static inline void 158static inline void
189ath5k_debug_dump_bands(struct ath5k_softc *sc) {} 159ath5k_debug_dump_bands(struct ath5k_softc *sc) {}
190 160
191static inline void 161static inline void
192ath5k_debug_dump_skb(struct ath5k_softc *sc,
193 struct sk_buff *skb, const char *prefix, int tx) {}
194
195static inline void
196ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf) {} 162ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf) {}
197 163
198#endif /* ifdef CONFIG_ATH5K_DEBUG */ 164#endif /* ifdef CONFIG_ATH5K_DEBUG */