diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-09-02 03:32:04 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-09-02 03:32:04 -0400 |
commit | bdf5396be177b689c00ae6ebed00d13fafaed36e (patch) | |
tree | b185c185ab024aca98871ce06d4a3fbc37c4b5ab /drivers/net/wireless/ath/ath6kl/debug.h | |
parent | d748753cd71f4504129fc6bd2262e0c5e4abe62f (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.h | 13 |
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 e8c9ea9ce02c..f0d64711b410 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); |
80 | void dump_cred_dist_stats(struct htc_target *target); | 80 | void dump_cred_dist_stats(struct htc_target *target); |
81 | void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len); | ||
81 | int ath6kl_debug_init(struct ath6kl *ar); | 82 | int ath6kl_debug_init(struct ath6kl *ar); |
83 | void ath6kl_debug_cleanup(struct ath6kl *ar); | ||
84 | |||
82 | #else | 85 | #else |
83 | static inline int ath6kl_dbg(enum ATH6K_DEBUG_MASK dbg_mask, | 86 | static 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, | |||
101 | static inline void dump_cred_dist_stats(struct htc_target *target) | 104 | static inline void dump_cred_dist_stats(struct htc_target *target) |
102 | { | 105 | { |
103 | } | 106 | } |
107 | |||
108 | void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len) | ||
109 | { | ||
110 | } | ||
111 | |||
104 | static inline int ath6kl_debug_init(struct ath6kl *ar) | 112 | static inline int ath6kl_debug_init(struct ath6kl *ar) |
105 | { | 113 | { |
106 | return 0; | 114 | return 0; |
107 | } | 115 | } |
116 | |||
117 | void ath6kl_debug_cleanup(struct ath6kl *ar) | ||
118 | { | ||
119 | } | ||
120 | |||
108 | #endif | 121 | #endif |
109 | #endif | 122 | #endif |