aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath6kl/target.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-09-02 10:32:05 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2011-09-02 10:32:05 +0300
commitbc07ddb29a7b71ad009bcd84bee4c93908cf22b6 (patch)
tree4167151044211d1bea3e407ccd40b4e7a270f642 /drivers/net/wireless/ath/ath6kl/target.h
parentaddb44be036dd5fc814be770ec4b90f08c820e76 (diff)
ath6kl: read fwlog from firmware ring buffer
Firmare sends the logs only when it's internal ring buffer is full. But if firmware crashes we need to retrieve the latest logs through diagnose window. This is now done everytime the debugfs file is read. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/target.h')
-rw-r--r--drivers/net/wireless/ath/ath6kl/target.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/target.h b/drivers/net/wireless/ath/ath6kl/target.h
index 6c66a08e179..dd8b953cbfc 100644
--- a/drivers/net/wireless/ath/ath6kl/target.h
+++ b/drivers/net/wireless/ath/ath6kl/target.h
@@ -343,4 +343,18 @@ struct host_interest {
#define ATH6KL_FWLOG_PAYLOAD_SIZE 1500
+struct ath6kl_dbglog_buf {
+ __le32 next;
+ __le32 buffer_addr;
+ __le32 bufsize;
+ __le32 length;
+ __le32 count;
+ __le32 free;
+} __packed;
+
+struct ath6kl_dbglog_hdr {
+ __le32 dbuf_addr;
+ __le32 dropped;
+} __packed;
+
#endif