aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_mac.h
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vasanth@atheros.com>2010-04-15 17:38:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 15:43:22 -0400
commitad7b806065f5791696a1c9a4c2665f6421cbbf05 (patch)
tree89c106bfc49e6407e51a3c2dabfec0feff3090b7 /drivers/net/wireless/ath/ath9k/ar9003_mac.h
parentae3bb6d4628dae7ead588263177a0674221fea78 (diff)
ath9k_hw: Add few routines for rx edma support
* Set rx buf size in register 0x60 * Set rxdp on the respective hw rx queue (HP and LP queues) * Process rx descriptor Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com> Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar9003_mac.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_mac.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.h b/drivers/net/wireless/ath/ath9k/ar9003_mac.h
index 2a9d80e9e0c7..b22f78c320c5 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mac.h
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.h
@@ -17,6 +17,11 @@
17#ifndef AR9003_MAC_H 17#ifndef AR9003_MAC_H
18#define AR9003_MAC_H 18#define AR9003_MAC_H
19 19
20#define AR_DescId 0xffff0000
21#define AR_DescId_S 16
22#define AR_CtrlStat 0x00004000
23#define AR_TxRxDesc 0x00008000
24
20struct ar9003_rxs { 25struct ar9003_rxs {
21 u32 ds_info; 26 u32 ds_info;
22 u32 status1; 27 u32 status1;
@@ -33,5 +38,12 @@ struct ar9003_rxs {
33} __packed; 38} __packed;
34 39
35void ar9003_hw_attach_mac_ops(struct ath_hw *hw); 40void ar9003_hw_attach_mac_ops(struct ath_hw *hw);
41void ath9k_hw_set_rx_bufsize(struct ath_hw *ah, u16 buf_size);
42void ath9k_hw_addrxbuf_edma(struct ath_hw *ah, u32 rxdp,
43 enum ath9k_rx_qtype qtype);
44
45int ath9k_hw_process_rxdesc_edma(struct ath_hw *ah,
46 struct ath_rx_status *rxs,
47 void *buf_addr);
36 48
37#endif 49#endif