diff options
author | Andrii Anisov <andrii_anisov@epam.com> | 2017-02-07 18:58:03 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad@kernel.org> | 2017-02-13 20:15:12 +0100 |
commit | 69369f52d28a34c84acb6f2a8a585e743441566a (patch) | |
tree | 35828ab0424eca7d166ab8a78a60aec2ce937d10 /include/xen | |
parent | swiotlb-xen: implement xen_swiotlb_dma_mmap callback (diff) | |
download | linux-69369f52d28a34c84acb6f2a8a585e743441566a.tar.xz linux-69369f52d28a34c84acb6f2a8a585e743441566a.zip |
swiotlb-xen: implement xen_swiotlb_get_sgtable callback
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
Diffstat (limited to 'include/xen')
-rw-r--r-- | include/xen/swiotlb-xen.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xen/swiotlb-xen.h b/include/xen/swiotlb-xen.h index a315c876aaa9..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); @@ -60,4 +61,9 @@ 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 */ |