diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/debug.h')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.h | 42 |
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 | ||
69 | struct ath5k_dbg_info { | 69 | struct 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 | ||
137 | void | 129 | void |
138 | ath5k_debug_init(void); | ||
139 | |||
140 | void | ||
141 | ath5k_debug_init_device(struct ath5k_softc *sc); | 130 | ath5k_debug_init_device(struct ath5k_softc *sc); |
142 | 131 | ||
143 | void | 132 | void |
144 | ath5k_debug_finish(void); | ||
145 | |||
146 | void | ||
147 | ath5k_debug_finish_device(struct ath5k_softc *sc); | ||
148 | |||
149 | void | ||
150 | ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah); | 133 | ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah); |
151 | 134 | ||
152 | void | 135 | void |
153 | ath5k_debug_dump_bands(struct ath5k_softc *sc); | 136 | ath5k_debug_dump_bands(struct ath5k_softc *sc); |
154 | 137 | ||
155 | void | 138 | void |
156 | ath5k_debug_dump_skb(struct ath5k_softc *sc, | ||
157 | struct sk_buff *skb, const char *prefix, int tx); | ||
158 | |||
159 | void | ||
160 | ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf); | 139 | ath5k_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 | ||
173 | static inline void | 152 | static inline void |
174 | ath5k_debug_init(void) {} | ||
175 | |||
176 | static inline void | ||
177 | ath5k_debug_init_device(struct ath5k_softc *sc) {} | 153 | ath5k_debug_init_device(struct ath5k_softc *sc) {} |
178 | 154 | ||
179 | static inline void | 155 | static inline void |
180 | ath5k_debug_finish(void) {} | ||
181 | |||
182 | static inline void | ||
183 | ath5k_debug_finish_device(struct ath5k_softc *sc) {} | ||
184 | |||
185 | static inline void | ||
186 | ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah) {} | 156 | ath5k_debug_printrxbuffs(struct ath5k_softc *sc, struct ath5k_hw *ah) {} |
187 | 157 | ||
188 | static inline void | 158 | static inline void |
189 | ath5k_debug_dump_bands(struct ath5k_softc *sc) {} | 159 | ath5k_debug_dump_bands(struct ath5k_softc *sc) {} |
190 | 160 | ||
191 | static inline void | 161 | static inline void |
192 | ath5k_debug_dump_skb(struct ath5k_softc *sc, | ||
193 | struct sk_buff *skb, const char *prefix, int tx) {} | ||
194 | |||
195 | static inline void | ||
196 | ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf) {} | 162 | ath5k_debug_printtxbuf(struct ath5k_softc *sc, struct ath5k_buf *bf) {} |
197 | 163 | ||
198 | #endif /* ifdef CONFIG_ATH5K_DEBUG */ | 164 | #endif /* ifdef CONFIG_ATH5K_DEBUG */ |