summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/hw_ops.h
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-12-12 10:15:08 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-04-12 05:44:00 (GMT)
commitb14684a00439b7b154e63be9446fba19281b8bbc (patch)
treed50511456cdd9f09dc81fc2efaedde73839c3eca /drivers/net/wireless/ti/wlcore/hw_ops.h
parentcd70f6a48b3fbb841a127361ee4ac0752f9d29a2 (diff)
downloadlinux-fsl-qoriq-b14684a00439b7b154e63be9446fba19281b8bbc.tar.xz
wlcore/wl12xx: add prepare_read hw op for Rx data
The only difference in the read_data operations is that some chips need to prepare the data to be read before reading. So instead of having a mandatory read_data operation, we now have an option prepare_data operation that only needs to be implemented for chips that require it. In the wl12xx lower driver, we only set the prepare_data operation for wl127x chips. Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/hw_ops.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/hw_ops.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/hw_ops.h b/drivers/net/wireless/ti/wlcore/hw_ops.h
index fe6b839..148dc4e 100644
--- a/drivers/net/wireless/ti/wlcore/hw_ops.h
+++ b/drivers/net/wireless/ti/wlcore/hw_ops.h
@@ -65,4 +65,11 @@ wlcore_hw_get_rx_buf_align(struct wl1271 *wl, u32 rx_desc)
return wl->ops->get_rx_buf_align(wl, rx_desc);
}
+static inline void
+wlcore_hw_prepare_read(struct wl1271 *wl, u32 rx_desc, u32 len)
+{
+ if (wl->ops->prepare_read)
+ wl->ops->prepare_read(wl, rx_desc, len);
+}
+
#endif