aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swiotlb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r--include/linux/swiotlb.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index dedd3c0cfe30..0567c3d8633b 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -66,36 +66,38 @@ swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents,
66 66
67extern int 67extern int
68swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems, 68swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl, int nelems,
69 int dir, struct dma_attrs *attrs); 69 enum dma_data_direction dir, struct dma_attrs *attrs);
70 70
71extern void 71extern void
72swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl, 72swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl,
73 int nelems, int dir, struct dma_attrs *attrs); 73 int nelems, enum dma_data_direction dir,
74 struct dma_attrs *attrs);
74 75
75extern void 76extern void
76swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr, 77swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr,
77 size_t size, int dir); 78 size_t size, enum dma_data_direction dir);
78 79
79extern void 80extern void
80swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg, 81swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg,
81 int nelems, int dir); 82 int nelems, enum dma_data_direction dir);
82 83
83extern void 84extern void
84swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr, 85swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr,
85 size_t size, int dir); 86 size_t size, enum dma_data_direction dir);
86 87
87extern void 88extern void
88swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, 89swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg,
89 int nelems, int dir); 90 int nelems, enum dma_data_direction dir);
90 91
91extern void 92extern void
92swiotlb_sync_single_range_for_cpu(struct device *hwdev, dma_addr_t dev_addr, 93swiotlb_sync_single_range_for_cpu(struct device *hwdev, dma_addr_t dev_addr,
93 unsigned long offset, size_t size, int dir); 94 unsigned long offset, size_t size,
95 enum dma_data_direction dir);
94 96
95extern void 97extern void
96swiotlb_sync_single_range_for_device(struct device *hwdev, dma_addr_t dev_addr, 98swiotlb_sync_single_range_for_device(struct device *hwdev, dma_addr_t dev_addr,
97 unsigned long offset, size_t size, 99 unsigned long offset, size_t size,
98 int dir); 100 enum dma_data_direction dir);
99 101
100extern int 102extern int
101swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr); 103swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr);