aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-v6.S
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-11-26 11:19:58 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-02-15 10:22:20 -0500
commita9c9147eb9b1dba0ce567a41897c7773b4d1b0bc (patch)
tree178938c909f4717c2e599d6f3de954d7ee8a7f21 /arch/arm/mm/cache-v6.S
parent93f1d629e22b08642eb713ad96ac2cb9ade0641c (diff)
ARM: dma-mapping: provide per-cpu type map/unmap functions
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-By: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm/mm/cache-v6.S')
-rw-r--r--arch/arm/mm/cache-v6.S26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-v6.S b/arch/arm/mm/cache-v6.S
index 4ba0a24ce6f5..6f926dd0e0f7 100644
--- a/arch/arm/mm/cache-v6.S
+++ b/arch/arm/mm/cache-v6.S
@@ -263,6 +263,30 @@ ENTRY(v6_dma_flush_range)
263 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer 263 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
264 mov pc, lr 264 mov pc, lr
265 265
266/*
267 * dma_map_area(start, size, dir)
268 * - start - kernel virtual start address
269 * - size - size of region
270 * - dir - DMA direction
271 */
272ENTRY(v6_dma_map_area)
273 add r1, r1, r0
274 cmp r2, #DMA_TO_DEVICE
275 beq v6_dma_clean_range
276 bcs v6_dma_inv_range
277 b v6_dma_flush_range
278ENDPROC(v6_dma_map_area)
279
280/*
281 * dma_unmap_area(start, size, dir)
282 * - start - kernel virtual start address
283 * - size - size of region
284 * - dir - DMA direction
285 */
286ENTRY(v6_dma_unmap_area)
287 mov pc, lr
288ENDPROC(v6_dma_unmap_area)
289
266 __INITDATA 290 __INITDATA
267 291
268 .type v6_cache_fns, #object 292 .type v6_cache_fns, #object
@@ -273,6 +297,8 @@ ENTRY(v6_cache_fns)
273 .long v6_coherent_kern_range 297 .long v6_coherent_kern_range
274 .long v6_coherent_user_range 298 .long v6_coherent_user_range
275 .long v6_flush_kern_dcache_area 299 .long v6_flush_kern_dcache_area
300 .long v6_dma_map_area
301 .long v6_dma_unmap_area
276 .long v6_dma_inv_range 302 .long v6_dma_inv_range
277 .long v6_dma_clean_range 303 .long v6_dma_clean_range
278 .long v6_dma_flush_range 304 .long v6_dma_flush_range