summaryrefslogtreecommitdiff
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-09-11 04:51:14 -0700
committerDavid S. Miller <davem@davemloft.net>2008-09-11 04:51:14 -0700
commita40c24a13366e324bc0ff8c3bb107db89312c984 (patch)
treee09838bb9becdc16220b8d1bbc67b67010543190 /include/linux/skbuff.h
parent271bff7afbb2cbaa81e744006ad2fff1f3e10b1b (diff)
downloadlinux-3.10-a40c24a13366e324bc0ff8c3bb107db89312c984.tar.gz
linux-3.10-a40c24a13366e324bc0ff8c3bb107db89312c984.tar.bz2
linux-3.10-a40c24a13366e324bc0ff8c3bb107db89312c984.zip
net: Add SKB DMA mapping helper functions.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 4b2be23903c..aa80ad9cbc8 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -359,6 +359,14 @@ struct sk_buff {
#include <asm/system.h>
+#ifdef CONFIG_HAS_DMA
+#include <linux/dma-mapping.h>
+extern int skb_dma_map(struct device *dev, struct sk_buff *skb,
+ enum dma_data_direction dir);
+extern void skb_dma_unmap(struct device *dev, struct sk_buff *skb,
+ enum dma_data_direction dir);
+#endif
+
extern void kfree_skb(struct sk_buff *skb);
extern void __kfree_skb(struct sk_buff *skb);
extern struct sk_buff *__alloc_skb(unsigned int size,