diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2009-01-09 18:32:09 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-11 04:54:34 +0100 |
commit | 0b8698ab5847cbe25775083659f00c658a8161c9 (patch) | |
tree | 045bd39ac0d8c3bdd67d35bb5517f6b885183f57 /include/linux/swiotlb.h | |
parent | 0811a433c61e85f895018239c4466a36311cd5de (diff) | |
download | linux-stable-0b8698ab5847cbe25775083659f00c658a8161c9.tar.gz linux-stable-0b8698ab5847cbe25775083659f00c658a8161c9.tar.bz2 linux-stable-0b8698ab5847cbe25775083659f00c658a8161c9.zip |
swiotlb: range_needs_mapping should take a physical address.
The swiotlb_arch_range_needs_mapping() hook should take a physical
address rather than a virtual address in order to support highmem pages.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r-- | include/linux/swiotlb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 493dc17e7c87..ac9ff54f7cb3 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -31,7 +31,7 @@ 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); +extern int swiotlb_arch_range_needs_mapping(phys_addr_t paddr, size_t size); extern void *swiotlb_alloc_coherent(struct device *hwdev, size_t size, |