summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_mac.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2010-04-15 17:38:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:25 -0400
commit87d5efbbd6b6df6111404f9c12ad1b9a957498c5 (patch)
tree2de4bc70056715cdb9324cd86c354ce921654f4d /drivers/net/wireless/ath/ath9k/ar9003_mac.c
parent3f3a1c8031fd87a7d0195d0a8e8101d04c283fcc (diff)
downloadblackbird-op-linux-87d5efbbd6b6df6111404f9c12ad1b9a957498c5.tar.gz
blackbird-op-linux-87d5efbbd6b6df6111404f9c12ad1b9a957498c5.zip
ath9k_hw: Add abstraction to set/get link pointer
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_mac.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mac.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
index 20890060ee2c..f28adb23ac83 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
@@ -20,11 +20,23 @@ static void ar9003_hw_rx_enable(struct ath_hw *hw)
REG_WRITE(hw, AR_CR, 0);
}
+static void ar9003_hw_set_desc_link(void *ds, u32 ds_link)
+{
+ ((struct ar9003_txc *) ds)->link = ds_link;
+}
+
+static void ar9003_hw_get_desc_link(void *ds, u32 **ds_link)
+{
+ *ds_link = &((struct ar9003_txc *) ds)->link;
+}
+
void ar9003_hw_attach_mac_ops(struct ath_hw *hw)
{
struct ath_hw_ops *ops = ath9k_hw_ops(hw);
ops->rx_enable = ar9003_hw_rx_enable;
+ ops->set_desc_link = ar9003_hw_set_desc_link;
+ ops->get_desc_link = ar9003_hw_get_desc_link;
}
void ath9k_hw_set_rx_bufsize(struct ath_hw *ah, u16 buf_size)
OpenPOWER on IntegriCloud