aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00.h
diff options
context:
space:
mode:
authorGertjan van Wingerde <gwingerde@kpnplanet.nl>2008-06-16 13:56:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-26 16:49:15 -0400
commit30caa6e3d586442f7c3ad081260ee1b22bb123de (patch)
tree094bc3a12f31bc418b95a366d3602f1ab34b75bf /drivers/net/wireless/rt2x00/rt2x00.h
parent14a3bf89212b5c758bd39bb4afc972c4ba6d599f (diff)
rt2x00: Centralize allocation of RX skbs.
In preparation of replacing the statically allocated DMA buffers with dynamically mapped skbs, centralize the allocation of RX skbs to rt2x00queue.c and let rt2x00pci already use them. 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.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 8d45235ecc36..08e8b0a005a6 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -899,10 +899,16 @@ static inline u16 get_duration_res(const unsigned int size, const u8 rate)
899} 899}
900 900
901/** 901/**
902 * rt2x00queue_alloc_rxskb - allocate a skb for RX purposes. 902 * rt2x00queue_alloc_skb - allocate a skb.
903 * @queue: The queue for which the skb will be applicable. 903 * @queue: The queue for which the skb will be applicable.
904 */ 904 */
905struct sk_buff *rt2x00queue_alloc_rxskb(struct data_queue *queue); 905struct sk_buff *rt2x00queue_alloc_skb(struct data_queue *queue);
906
907/**
908 * rt2x00queue_free_skb - free a skb
909 * @skb: The skb to free.
910 */
911void rt2x00queue_free_skb(struct sk_buff *skb);
906 912
907/** 913/**
908 * rt2x00queue_create_tx_descriptor - Create TX descriptor from mac80211 input 914 * rt2x00queue_create_tx_descriptor - Create TX descriptor from mac80211 input