diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-14 21:24:21 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-16 22:45:39 +0200 |
commit | 2b63a41d14245345d6c498506c5634613afa80c0 (patch) | |
tree | 57fd8b8779ded0436c29a495cb522c30ffc91ae4 /drivers/net/wireless/ath/ath9k/hw.h | |
parent | ath9k_hw: do not recalculate the descriptor checksum in ar9003_hw_fill_txdesc (diff) | |
download | linux-2b63a41d14245345d6c498506c5634613afa80c0.tar.xz linux-2b63a41d14245345d6c498506c5634613afa80c0.zip |
ath9k_hw: add a new API for setting tx descriptors
Instead of using lots of different functions with long argument lists,
pull all the necessary information from one struct. This makes the code
easier to read and eliminates the need for copying data between multiple
linked descriptors.
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/hw.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 780cd0268ae1..0efe0134ff4a 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h @@ -616,6 +616,8 @@ struct ath_hw_ops { u8 rxchainmask, bool longcal); bool (*get_isr)(struct ath_hw *ah, enum ath9k_int *masked); + void (*set_txdesc)(struct ath_hw *ah, void *ds, + struct ath_tx_info *i); void (*fill_txdesc)(struct ath_hw *ah, void *ds, u32 seglen, bool is_firstseg, bool is_is_lastseg, const void *ds0, dma_addr_t buf_addr, |