aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-v3.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-v3.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-v3.S')
-rw-r--r--arch/arm/mm/cache-v3.S24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-v3.S b/arch/arm/mm/cache-v3.S
index 2a482731ea36..6df52dc014be 100644
--- a/arch/arm/mm/cache-v3.S
+++ b/arch/arm/mm/cache-v3.S
@@ -121,6 +121,28 @@ ENTRY(v3_dma_flush_range)
121ENTRY(v3_dma_clean_range) 121ENTRY(v3_dma_clean_range)
122 mov pc, lr 122 mov pc, lr
123 123
124/*
125 * dma_unmap_area(start, size, dir)
126 * - start - kernel virtual start address
127 * - size - size of region
128 * - dir - DMA direction
129 */
130ENTRY(v3_dma_unmap_area)
131 teq r2, #DMA_TO_DEVICE
132 bne v3_dma_inv_range
133 /* FALLTHROUGH */
134
135/*
136 * dma_map_area(start, size, dir)
137 * - start - kernel virtual start address
138 * - size - size of region
139 * - dir - DMA direction
140 */
141ENTRY(v3_dma_map_area)
142 mov pc, lr
143ENDPROC(v3_dma_unmap_area)
144ENDPROC(v3_dma_map_area)
145
124 __INITDATA 146 __INITDATA
125 147
126 .type v3_cache_fns, #object 148 .type v3_cache_fns, #object
@@ -131,6 +153,8 @@ ENTRY(v3_cache_fns)
131 .long v3_coherent_kern_range 153 .long v3_coherent_kern_range
132 .long v3_coherent_user_range 154 .long v3_coherent_user_range
133 .long v3_flush_kern_dcache_area 155 .long v3_flush_kern_dcache_area
156 .long v3_dma_map_area
157 .long v3_dma_unmap_area
134 .long v3_dma_inv_range 158 .long v3_dma_inv_range
135 .long v3_dma_clean_range 159 .long v3_dma_clean_range
136 .long v3_dma_flush_range 160 .long v3_dma_flush_range