aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/hif-ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/hif-ops.h')
-rw-r--r--drivers/net/wireless/ath/ath6kl/hif-ops.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/hif-ops.h b/drivers/net/wireless/ath/ath6kl/hif-ops.h
index 21b1575dd9f3..95e73030a2c6 100644
--- a/drivers/net/wireless/ath/ath6kl/hif-ops.h
+++ b/drivers/net/wireless/ath/ath6kl/hif-ops.h
@@ -18,10 +18,16 @@
18#define HIF_OPS_H 18#define HIF_OPS_H
19 19
20#include "hif.h" 20#include "hif.h"
21#include "debug.h"
21 22
22static inline int hif_read_write_sync(struct ath6kl *ar, u32 addr, u8 *buf, 23static inline int hif_read_write_sync(struct ath6kl *ar, u32 addr, u8 *buf,
23 u32 len, u32 request) 24 u32 len, u32 request)
24{ 25{
26 ath6kl_dbg(ATH6KL_DBG_HIF,
27 "hif %s sync addr 0x%x buf 0x%p len %d request 0x%x\n",
28 (request & HIF_WRITE) ? "write" : "read",
29 addr, buf, len, request);
30
25 return ar->hif_ops->read_write_sync(ar, addr, buf, len, request); 31 return ar->hif_ops->read_write_sync(ar, addr, buf, len, request);
26} 32}
27 33
@@ -29,16 +35,24 @@ static inline int hif_write_async(struct ath6kl *ar, u32 address, u8 *buffer,
29 u32 length, u32 request, 35 u32 length, u32 request,
30 struct htc_packet *packet) 36 struct htc_packet *packet)
31{ 37{
38 ath6kl_dbg(ATH6KL_DBG_HIF,
39 "hif write async addr 0x%x buf 0x%p len %d request 0x%x\n",
40 address, buffer, length, request);
41
32 return ar->hif_ops->write_async(ar, address, buffer, length, 42 return ar->hif_ops->write_async(ar, address, buffer, length,
33 request, packet); 43 request, packet);
34} 44}
35static inline void ath6kl_hif_irq_enable(struct ath6kl *ar) 45static inline void ath6kl_hif_irq_enable(struct ath6kl *ar)
36{ 46{
47 ath6kl_dbg(ATH6KL_DBG_HIF, "hif irq enable\n");
48
37 return ar->hif_ops->irq_enable(ar); 49 return ar->hif_ops->irq_enable(ar);
38} 50}
39 51
40static inline void ath6kl_hif_irq_disable(struct ath6kl *ar) 52static inline void ath6kl_hif_irq_disable(struct ath6kl *ar)
41{ 53{
54 ath6kl_dbg(ATH6KL_DBG_HIF, "hif irq disable\n");
55
42 return ar->hif_ops->irq_disable(ar); 56 return ar->hif_ops->irq_disable(ar);
43} 57}
44 58
@@ -71,11 +85,15 @@ static inline void ath6kl_hif_cleanup_scatter(struct ath6kl *ar)
71 85
72static inline int ath6kl_hif_suspend(struct ath6kl *ar) 86static inline int ath6kl_hif_suspend(struct ath6kl *ar)
73{ 87{
88 ath6kl_dbg(ATH6KL_DBG_HIF, "hif suspend\n");
89
74 return ar->hif_ops->suspend(ar); 90 return ar->hif_ops->suspend(ar);
75} 91}
76 92
77static inline int ath6kl_hif_resume(struct ath6kl *ar) 93static inline int ath6kl_hif_resume(struct ath6kl *ar)
78{ 94{
95 ath6kl_dbg(ATH6KL_DBG_HIF, "hif resume\n");
96
79 return ar->hif_ops->resume(ar); 97 return ar->hif_ops->resume(ar);
80} 98}
81#endif 99#endif