summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-12-22 10:26:05 -0800
committerIngo Molnar <mingo@elte.hu>2008-12-28 09:54:52 +0100
commit70a7d3cc1308a55104fbe505d76f2aca8a4cf53e (patch)
tree2e4542f668d8b431140f0682c9d1aebbe7bf30eb /include
parenta08636690d06b2e36cfb4c2b3ee133a81c47e1e0 (diff)
downloadlinux-70a7d3cc1308a55104fbe505d76f2aca8a4cf53e.tar.gz
linux-70a7d3cc1308a55104fbe505d76f2aca8a4cf53e.tar.bz2
linux-70a7d3cc1308a55104fbe505d76f2aca8a4cf53e.zip
swiotlb: add hwdev to swiotlb_phys_to_bus() / swiotlb_sg_to_bus()
Impact: extend functions with a (yet unused) parameter, update callsites Some architectures need it - in preparation for highmem swiotlb. Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r--include/linux/swiotlb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index 325af1de0351..dedd3c0cfe30 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -27,7 +27,8 @@ swiotlb_init(void);
extern void *swiotlb_alloc_boot(size_t bytes, unsigned long nslabs);
extern void *swiotlb_alloc(unsigned order, unsigned long nslabs);
-extern dma_addr_t swiotlb_phys_to_bus(phys_addr_t address);
+extern dma_addr_t swiotlb_phys_to_bus(struct device *hwdev,
+ phys_addr_t address);
extern phys_addr_t swiotlb_bus_to_phys(dma_addr_t address);
extern int swiotlb_arch_range_needs_mapping(void *ptr, size_t size);