aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swiotlb.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-01-05 09:59:02 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-06 08:06:57 -0500
commit160c1d8e40866edfeae7d68816b7005d70acf391 (patch)
tree37dd78b2ea28a3953a46d401bd9657005eb444d7 /include/linux/swiotlb.h
parentf0402a262e1a4c03fc66b83659823bdcaac3c41a (diff)
x86, ia64: convert to use generic dma_map_ops struct
This converts X86 and IA64 to use include/linux/dma-mapping.h. It's a bit large but pretty boring. The major change for X86 is converting 'int dir' to 'enum dma_data_direction dir' in DMA mapping operations. The major changes for IA64 is using map_page and unmap_page instead of map_single and unmap_single. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Tony Luck <tony.luck@intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
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);