aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/swiotlb.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2008-12-16 15:17:31 -0500
committerIngo Molnar <mingo@elte.hu>2008-12-17 12:58:13 -0500
commitb81ea27b2329bf44b30c427800954f845896d476 (patch)
tree84bbfc80477c3561ee601c1c05dcc0917ced196b /include/linux/swiotlb.h
parente08e1f7adba522378e8d2ae941bf25443866136d (diff)
swiotlb: add arch hook to force mapping
Impact: generalize the sw-IOTLB range checks Some architectures require special rules to determine whether a range needs mapping or not. This adds a weak function for architectures to override. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/swiotlb.h')
-rw-r--r--include/linux/swiotlb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index 694f1839cbc0..325af1de0351 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -30,6 +30,8 @@ extern void *swiotlb_alloc(unsigned order, unsigned long nslabs);
30extern dma_addr_t swiotlb_phys_to_bus(phys_addr_t address); 30extern dma_addr_t swiotlb_phys_to_bus(phys_addr_t address);
31extern phys_addr_t swiotlb_bus_to_phys(dma_addr_t address); 31extern phys_addr_t swiotlb_bus_to_phys(dma_addr_t address);
32 32
33extern int swiotlb_arch_range_needs_mapping(void *ptr, size_t size);
34
33extern void 35extern void
34*swiotlb_alloc_coherent(struct device *hwdev, size_t size, 36*swiotlb_alloc_coherent(struct device *hwdev, size_t size,
35 dma_addr_t *dma_handle, gfp_t flags); 37 dma_addr_t *dma_handle, gfp_t flags);