diff options
author | Becky Bruce <beckyb@kernel.crashing.org> | 2009-04-08 09:09:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-08 16:18:38 +0200 |
commit | 42d7c5e353cef9062129b0de3ec9ddf10567b9ca (patch) | |
tree | 4467abd8266c4ca8830e128dca6e838d912bb6d8 /include/linux/swiotlb.h | |
parent | 380d687833aee098c4a2c3b35beaefe1c1f48d01 (diff) | |
download | kernel_samsung_espresso10-42d7c5e353cef9062129b0de3ec9ddf10567b9ca.zip kernel_samsung_espresso10-42d7c5e353cef9062129b0de3ec9ddf10567b9ca.tar.gz kernel_samsung_espresso10-42d7c5e353cef9062129b0de3ec9ddf10567b9ca.tar.bz2 |
swiotlb: change swiotlb_bus_to[phys,virt] prototypes
Add a hwdev argument that is needed on some architectures
in order to access a per-device offset that is taken into
account when producing a physical address (also needed to
get from bus address to virtual address because the physical
address is an intermediate step).
Also make swiotlb_bus_to_virt weak so architectures can
override it.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Cc: jeremy@goop.org
Cc: ian.campbell@citrix.com
LKML-Reference: <1239199761-22886-8-git-send-email-galak@kernel.crashing.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r-- | include/linux/swiotlb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index ac9ff54..cb1a663 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -29,7 +29,8 @@ extern void *swiotlb_alloc(unsigned order, unsigned long nslabs); 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 phys_addr_t swiotlb_bus_to_phys(struct device *hwdev, + dma_addr_t address); extern int swiotlb_arch_range_needs_mapping(phys_addr_t paddr, size_t size); |