diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-07-09 21:05:02 -0400 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2009-07-28 01:19:20 -0400 |
commit | 862d196b27bd30a5ab8109d5cdb37980d81b1fe9 (patch) | |
tree | 4fe582aeb7ef93fe769b63150f983fbb8eae918f /include/linux/swiotlb.h | |
parent | 8d4f5339d1ee4027c07e6b2a1cfa9dc41b0d383b (diff) |
swiotlb: use phys_to_dma and dma_to_phys
This converts swiotlb to use phys_to_dma and dma_to_phys instead of
swiotlb_phys_to_bus() and swiotlb_bus_to_phys().
swiotlb_phys_to_bus() and swiotlb_bus_to_phys() are not necessary so
this patch also removes them.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Becky Bruce <beckyb@kernel.crashing.org>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r-- | include/linux/swiotlb.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index a977da24f17c..73b1f1cec423 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h | |||
@@ -23,11 +23,6 @@ struct scatterlist; | |||
23 | extern void | 23 | extern void |
24 | swiotlb_init(void); | 24 | swiotlb_init(void); |
25 | 25 | ||
26 | extern dma_addr_t swiotlb_phys_to_bus(struct device *hwdev, | ||
27 | phys_addr_t address); | ||
28 | extern phys_addr_t swiotlb_bus_to_phys(struct device *hwdev, | ||
29 | dma_addr_t address); | ||
30 | |||
31 | extern void | 26 | extern void |
32 | *swiotlb_alloc_coherent(struct device *hwdev, size_t size, | 27 | *swiotlb_alloc_coherent(struct device *hwdev, size_t size, |
33 | dma_addr_t *dma_handle, gfp_t flags); | 28 | dma_addr_t *dma_handle, gfp_t flags); |