diff options
author | David S. Miller <davem@davemloft.net> | 2008-09-11 07:51:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-11 07:51:14 -0400 |
commit | a40c24a13366e324bc0ff8c3bb107db89312c984 (patch) | |
tree | e09838bb9becdc16220b8d1bbc67b67010543190 /include | |
parent | 271bff7afbb2cbaa81e744006ad2fff1f3e10b1b (diff) |
net: Add SKB DMA mapping helper functions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 4b2be23903c4..aa80ad9cbc88 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -359,6 +359,14 @@ struct sk_buff { | |||
359 | 359 | ||
360 | #include <asm/system.h> | 360 | #include <asm/system.h> |
361 | 361 | ||
362 | #ifdef CONFIG_HAS_DMA | ||
363 | #include <linux/dma-mapping.h> | ||
364 | extern int skb_dma_map(struct device *dev, struct sk_buff *skb, | ||
365 | enum dma_data_direction dir); | ||
366 | extern void skb_dma_unmap(struct device *dev, struct sk_buff *skb, | ||
367 | enum dma_data_direction dir); | ||
368 | #endif | ||
369 | |||
362 | extern void kfree_skb(struct sk_buff *skb); | 370 | extern void kfree_skb(struct sk_buff *skb); |
363 | extern void __kfree_skb(struct sk_buff *skb); | 371 | extern void __kfree_skb(struct sk_buff *skb); |
364 | extern struct sk_buff *__alloc_skb(unsigned int size, | 372 | extern struct sk_buff *__alloc_skb(unsigned int size, |