aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/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/mac.c
parent3f3a1c8031fd87a7d0195d0a8e8101d04c283fcc (diff)
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/mac.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/mac.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/mac.c b/drivers/net/wireless/ath/ath9k/mac.c
index 0c9c378616c6..a8dab23622f1 100644
--- a/drivers/net/wireless/ath/ath9k/mac.c
+++ b/drivers/net/wireless/ath/ath9k/mac.c
@@ -21,12 +21,25 @@ static void ar9002_hw_rx_enable(struct ath_hw *ah)
21 REG_WRITE(ah, AR_CR, AR_CR_RXE); 21 REG_WRITE(ah, AR_CR, AR_CR_RXE);
22} 22}
23 23
24static void ar9002_hw_set_desc_link(void *ds, u32 ds_link)
25{
26 ((struct ath_desc *) ds)->ds_link = ds_link;
27}
28
29static void ar9002_hw_get_desc_link(void *ds, u32 **ds_link)
30{
31 *ds_link = &((struct ath_desc *)ds)->ds_link;
32}
33
24void ar9002_hw_attach_mac_ops(struct ath_hw *ah) 34void ar9002_hw_attach_mac_ops(struct ath_hw *ah)
25{ 35{
26 struct ath_hw_ops *ops = ath9k_hw_ops(ah); 36 struct ath_hw_ops *ops = ath9k_hw_ops(ah);
27 37
28 ops->rx_enable = ar9002_hw_rx_enable; 38 ops->rx_enable = ar9002_hw_rx_enable;
39 ops->set_desc_link = ar9002_hw_set_desc_link;
40 ops->get_desc_link = ar9002_hw_get_desc_link;
29} 41}
42
30static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah, 43static void ath9k_hw_set_txq_interrupts(struct ath_hw *ah,
31 struct ath9k_tx_queue_info *qi) 44 struct ath9k_tx_queue_info *qi)
32{ 45{