aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/debug.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-09-02 03:32:04 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-09-02 03:32:04 -0400
commitbdf5396be177b689c00ae6ebed00d13fafaed36e (patch)
treeb185c185ab024aca98871ce06d4a3fbc37c4b5ab /drivers/net/wireless/ath/ath6kl/debug.h
parentd748753cd71f4504129fc6bd2262e0c5e4abe62f (diff)
ath6kl: add firmware log support
Firmware sends binary logs with WMIX_DBGLOG_EVENTID event. Create a buffer which stores the latest logs and which can be copied from fwlog debugfs file with cp command. To save memory firmware log support is enabled only when CONFIG_ATH6KL_DEBUG is enabled. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/debug.h')
-rw-r--r--drivers/net/wireless/ath/ath6kl/debug.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/debug.h b/drivers/net/wireless/ath/ath6kl/debug.h
index e8c9ea9ce02..f0d64711b41 100644
--- a/drivers/net/wireless/ath/ath6kl/debug.h
+++ b/drivers/net/wireless/ath/ath6kl/debug.h
@@ -78,7 +78,10 @@ void ath6kl_dump_registers(struct ath6kl_device *dev,
78 struct ath6kl_irq_proc_registers *irq_proc_reg, 78 struct ath6kl_irq_proc_registers *irq_proc_reg,
79 struct ath6kl_irq_enable_reg *irq_en_reg); 79 struct ath6kl_irq_enable_reg *irq_en_reg);
80void dump_cred_dist_stats(struct htc_target *target); 80void dump_cred_dist_stats(struct htc_target *target);
81void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len);
81int ath6kl_debug_init(struct ath6kl *ar); 82int ath6kl_debug_init(struct ath6kl *ar);
83void ath6kl_debug_cleanup(struct ath6kl *ar);
84
82#else 85#else
83static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask, 86static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask,
84 const char *fmt, ...) 87 const char *fmt, ...)
@@ -101,9 +104,19 @@ static inline void ath6kl_dump_registers(struct ath6kl_device *dev,
101static inline void dump_cred_dist_stats(struct htc_target *target) 104static inline void dump_cred_dist_stats(struct htc_target *target)
102{ 105{
103} 106}
107
108void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len)
109{
110}
111
104static inline int ath6kl_debug_init(struct ath6kl *ar) 112static inline int ath6kl_debug_init(struct ath6kl *ar)
105{ 113{
106 return 0; 114 return 0;
107} 115}
116
117void ath6kl_debug_cleanup(struct ath6kl *ar)
118{
119}
120
108#endif 121#endif
109#endif 122#endif