aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-v7.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-v7.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-v7.S')
-rw-r--r--arch/arm/mm/cache-v7.S26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S
index 9073db849fb4..e30d8bc67182 100644
--- a/arch/arm/mm/cache-v7.S
+++ b/arch/arm/mm/cache-v7.S
@@ -271,6 +271,30 @@ ENTRY(v7_dma_flush_range)
271 mov pc, lr 271 mov pc, lr
272ENDPROC(v7_dma_flush_range) 272ENDPROC(v7_dma_flush_range)
273 273
274/*
275 * dma_map_area(start, size, dir)
276 * - start - kernel virtual start address
277 * - size - size of region
278 * - dir - DMA direction
279 */
280ENTRY(v7_dma_map_area)
281 add r1, r1, r0
282 cmp r2, #DMA_TO_DEVICE
283 beq v7_dma_clean_range
284 bcs v7_dma_inv_range
285 b v7_dma_flush_range
286ENDPROC(v7_dma_map_area)
287
288/*
289 * dma_unmap_area(start, size, dir)
290 * - start - kernel virtual start address
291 * - size - size of region
292 * - dir - DMA direction
293 */
294ENTRY(v7_dma_unmap_area)
295 mov pc, lr
296ENDPROC(v7_dma_unmap_area)
297
274 __INITDATA 298 __INITDATA
275 299
276 .type v7_cache_fns, #object 300 .type v7_cache_fns, #object
@@ -281,6 +305,8 @@ ENTRY(v7_cache_fns)
281 .long v7_coherent_kern_range 305 .long v7_coherent_kern_range
282 .long v7_coherent_user_range 306 .long v7_coherent_user_range
283 .long v7_flush_kern_dcache_area 307 .long v7_flush_kern_dcache_area
308 .long v7_dma_map_area
309 .long v7_dma_unmap_area
284 .long v7_dma_inv_range 310 .long v7_dma_inv_range
285 .long v7_dma_clean_range 311 .long v7_dma_clean_range
286 .long v7_dma_flush_range 312 .long v7_dma_flush_range