X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fnetdma.h;h=f28c6e064e8f9d7ba5ebbf9ba5b928b05236d15f;hb=a483ab1dddf86a0e8924e94cf838eed602602b39;hp=cbfe89d7e5d09ca1f2d498ef9a6db07c0f75d54a;hpb=db21733488f84a596faaad0d05430b3f51804692;p=linux-2.6-omap-h63xx.git diff --git a/include/net/netdma.h b/include/net/netdma.h index cbfe89d7e5d..f28c6e064e8 100644 --- a/include/net/netdma.h +++ b/include/net/netdma.h @@ -20,19 +20,24 @@ */ #ifndef NETDMA_H #define NETDMA_H -#include #ifdef CONFIG_NET_DMA #include +#include static inline struct dma_chan *get_softnet_dma(void) { struct dma_chan *chan; rcu_read_lock(); - chan = rcu_dereference(__get_cpu_var(softnet_data.net_dma)); + chan = rcu_dereference(__get_cpu_var(softnet_data).net_dma); if (chan) dma_chan_get(chan); rcu_read_unlock(); return chan; } + +int dma_skb_copy_datagram_iovec(struct dma_chan* chan, + struct sk_buff *skb, int offset, struct iovec *to, + size_t len, struct dma_pinned_list *pinned_list); + #endif /* CONFIG_NET_DMA */ #endif /* NETDMA_H */