summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/core.h
diff options
context:
space:
mode:
authorSujith2008-11-28 17:50:23 +0100
committerJohn W. Linville2008-12-05 15:35:09 +0100
commit826d268091f0e0ecc50103f648b6183eb3efe04d (patch)
tree16f9f535377f47501fac33e9f72a70ae7b47a0fb /drivers/net/wireless/ath9k/core.h
parentath9k: Remove includes that are not needed (diff)
downloadkernel-qcow2-linux-826d268091f0e0ecc50103f648b6183eb3efe04d.tar.gz
kernel-qcow2-linux-826d268091f0e0ecc50103f648b6183eb3efe04d.tar.xz
kernel-qcow2-linux-826d268091f0e0ecc50103f648b6183eb3efe04d.zip
ath9k: Add initial layout for an ath9k specific debugfs mechanism
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/core.h')
-rw-r--r--drivers/net/wireless/ath9k/core.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath9k/core.h b/drivers/net/wireless/ath9k/core.h
index 44938793d6ef..5b755582b33e 100644
--- a/drivers/net/wireless/ath9k/core.h
+++ b/drivers/net/wireless/ath9k/core.h
@@ -88,8 +88,15 @@ enum ATH_DEBUG {
#ifdef CONFIG_ATH9K_DEBUG
+struct ath9k_debug {
+ int debug_mask;
+ struct dentry *debugfs_root;
+ struct dentry *debugfs_phy;
+};
+
void DPRINTF(struct ath_softc *sc, int dbg_mask, const char *fmt, ...);
-void ath9k_init_debug(struct ath_softc *sc);
+int ath9k_init_debug(struct ath_softc *sc);
+void ath9k_exit_debug(struct ath_softc *sc);
#else
@@ -98,11 +105,16 @@ static inline void DPRINTF(struct ath_softc *sc, int dbg_mask,
{
}
-static inline ath9k_init_debug(struct ath_softc *sc)
+static inline int ath9k_init_debug(struct ath_softc *sc)
{
+ return 0;
}
-#endif
+static inline void ath9k_exit_debug(struct ath_softc *sc)
+{
+}
+
+#endif /* CONFIG_ATH9K_DEBUG */
struct ath_config {
u32 ath_aggr_prot;
@@ -619,7 +631,7 @@ struct ath_softc {
u8 sc_bssidmask[ETH_ALEN];
#ifdef CONFIG_ATH9K_DEBUG
- int sc_debug;
+ struct ath9k_debug sc_debug;
#endif
u32 sc_intrstatus;
u32 sc_flags; /* SC_OP_* */