summaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorAl Viro2017-04-07 01:35:03 +0200
committerAl Viro2017-04-07 01:35:03 +0200
commitfccfb9950836524d79260448fba6131f6b1d73c3 (patch)
treea6fef32e330852138d9e7bd12d7b3dd97c4360c3 /include/xen
parentgeneric ...copy_..._user primitives (diff)
parentmm, page_alloc: Add missing check for memory holes (diff)
downloadkernel-qcow2-linux-fccfb9950836524d79260448fba6131f6b1d73c3.tar.gz
kernel-qcow2-linux-fccfb9950836524d79260448fba6131f6b1d73c3.tar.xz
kernel-qcow2-linux-fccfb9950836524d79260448fba6131f6b1d73c3.zip
Merge commit 'b4fb8f66f1ae2e167d06c12d018025a8d4d3ba7e' into uaccess.ia64
backmerge of mainline ia64 fix
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/swiotlb-xen.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/xen/swiotlb-xen.h b/include/xen/swiotlb-xen.h
index a0083be5d529..1f6d78f044b6 100644
--- a/include/xen/swiotlb-xen.h
+++ b/include/xen/swiotlb-xen.h
@@ -2,6 +2,7 @@
#define __LINUX_SWIOTLB_XEN_H
#include <linux/dma-direction.h>
+#include <linux/scatterlist.h>
#include <linux/swiotlb.h>
extern int xen_swiotlb_init(int verbose, bool early);
@@ -55,4 +56,14 @@ xen_swiotlb_dma_supported(struct device *hwdev, u64 mask);
extern int
xen_swiotlb_set_dma_mask(struct device *dev, u64 dma_mask);
+
+extern int
+xen_swiotlb_dma_mmap(struct device *dev, struct vm_area_struct *vma,
+ void *cpu_addr, dma_addr_t dma_addr, size_t size,
+ unsigned long attrs);
+
+extern int
+xen_swiotlb_get_sgtable(struct device *dev, struct sg_table *sgt,
+ void *cpu_addr, dma_addr_t handle, size_t size,
+ unsigned long attrs);
#endif /* __LINUX_SWIOTLB_XEN_H */