diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-13 05:42:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:29 -0400 |
commit | c46917bb53a546f60c7d3103407fe953c418dd5b (patch) | |
tree | 5598017157d88b70d3ec9905acb020303913c0e8 /drivers/net/wireless/ath/ath9k/debug.h | |
parent | cd9bf689600e62d84449d65b3d25fb6d2757589e (diff) |
atheros: add common debug printing
ath9k uses this for now, ath9k_htc is expected to re-use this
as well. We lave ath5k as is, but it certainly can also be
converted later.
The ath9k module parameter and debugfs entry is kept.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/debug.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/debug.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/net/wireless/ath/ath9k/debug.h b/drivers/net/wireless/ath/ath9k/debug.h index c9c1aac95ae..749e85d5755 100644 --- a/drivers/net/wireless/ath/ath9k/debug.h +++ b/drivers/net/wireless/ath/ath9k/debug.h | |||
@@ -19,26 +19,6 @@ | |||
19 | 19 | ||
20 | #include "hw.h" | 20 | #include "hw.h" |
21 | 21 | ||
22 | enum ATH_DEBUG { | ||
23 | ATH_DBG_RESET = 0x00000001, | ||
24 | ATH_DBG_QUEUE = 0x00000002, | ||
25 | ATH_DBG_EEPROM = 0x00000004, | ||
26 | ATH_DBG_CALIBRATE = 0x00000008, | ||
27 | ATH_DBG_INTERRUPT = 0x00000010, | ||
28 | ATH_DBG_REGULATORY = 0x00000020, | ||
29 | ATH_DBG_ANI = 0x00000040, | ||
30 | ATH_DBG_XMIT = 0x00000080, | ||
31 | ATH_DBG_BEACON = 0x00000100, | ||
32 | ATH_DBG_CONFIG = 0x00000200, | ||
33 | ATH_DBG_FATAL = 0x00000400, | ||
34 | ATH_DBG_PS = 0x00000800, | ||
35 | ATH_DBG_HWTIMER = 0x00001000, | ||
36 | ATH_DBG_BTCOEX = 0x00002000, | ||
37 | ATH_DBG_ANY = 0xffffffff | ||
38 | }; | ||
39 | |||
40 | #define DBG_DEFAULT (ATH_DBG_FATAL) | ||
41 | |||
42 | struct ath_txq; | 22 | struct ath_txq; |
43 | struct ath_buf; | 23 | struct ath_buf; |
44 | 24 | ||
@@ -142,7 +122,6 @@ struct ath_stats { | |||
142 | }; | 122 | }; |
143 | 123 | ||
144 | struct ath9k_debug { | 124 | struct ath9k_debug { |
145 | int debug_mask; | ||
146 | struct dentry *debugfs_phy; | 125 | struct dentry *debugfs_phy; |
147 | struct dentry *debugfs_debug; | 126 | struct dentry *debugfs_debug; |
148 | struct dentry *debugfs_dma; | 127 | struct dentry *debugfs_dma; |
@@ -153,7 +132,6 @@ struct ath9k_debug { | |||
153 | struct ath_stats stats; | 132 | struct ath_stats stats; |
154 | }; | 133 | }; |
155 | 134 | ||
156 | void DPRINTF(struct ath_hw *ah, int dbg_mask, const char *fmt, ...); | ||
157 | int ath9k_init_debug(struct ath_hw *ah); | 135 | int ath9k_init_debug(struct ath_hw *ah); |
158 | void ath9k_exit_debug(struct ath_hw *ah); | 136 | void ath9k_exit_debug(struct ath_hw *ah); |
159 | 137 | ||
@@ -168,11 +146,6 @@ void ath_debug_stat_retries(struct ath_softc *sc, int rix, | |||
168 | 146 | ||
169 | #else | 147 | #else |
170 | 148 | ||
171 | static inline void DPRINTF(struct ath_hw *ah, int dbg_mask, | ||
172 | const char *fmt, ...) | ||
173 | { | ||
174 | } | ||
175 | |||
176 | static inline int ath9k_init_debug(struct ath_hw *ah) | 149 | static inline int ath9k_init_debug(struct ath_hw *ah) |
177 | { | 150 | { |
178 | return 0; | 151 | return 0; |