diff options
author | Gertjan van Wingerde <gwingerde@kpnplanet.nl> | 2008-06-06 16:54:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:17:57 -0400 |
commit | 239c249d06b0c68ae06b10d9d6ad1f8e7f39452b (patch) | |
tree | 6d59d08b738406c525f084d043b9dfd91e711fb1 /drivers/net/wireless/rt2x00/rt2x00.h | |
parent | d56d453a1dd85aff08fe6965f395049725fdb04e (diff) |
rt2x00: Centralize RX packet alignment handling in rt2x00lib.
When rt2x00pci will be switched over to dynamically mapped skb's
instead of statically allocated DMA buffers, it no longer can handle
alignment of RX packets in a copy step, and needs to implement the
same scheme as rt2x00usb does.
In order to make the patch on dynamically mapped skb's smaller,
already centralize the alignment handling into rt2x00lib. This allows
us to move more code in rt2x00lib, and thus remove code duplication
between rt2x00usb and rt2x00pci.
Signed-off-by: Gertjan van Wingerde <gwingerde@kpnplanet.nl>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index 938d375027be..0da8f972a1b2 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -930,6 +930,12 @@ static inline u16 get_duration_res(const unsigned int size, const u8 rate) | |||
930 | } | 930 | } |
931 | 931 | ||
932 | /** | 932 | /** |
933 | * rt2x00queue_alloc_rxskb - allocate a skb for RX purposes. | ||
934 | * @queue: The queue for which the skb will be applicable. | ||
935 | */ | ||
936 | struct sk_buff *rt2x00queue_alloc_rxskb(struct data_queue *queue); | ||
937 | |||
938 | /** | ||
933 | * rt2x00queue_create_tx_descriptor - Create TX descriptor from mac80211 input | 939 | * rt2x00queue_create_tx_descriptor - Create TX descriptor from mac80211 input |
934 | * @entry: The entry which will be used to transfer the TX frame. | 940 | * @entry: The entry which will be used to transfer the TX frame. |
935 | * @txdesc: rt2x00 TX descriptor which will be initialized by this function. | 941 | * @txdesc: rt2x00 TX descriptor which will be initialized by this function. |