diff options
Diffstat (limited to 'arch/arm/mm/cache-v3.S')
-rw-r--r-- | arch/arm/mm/cache-v3.S | 24 |
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) | |||
121 | ENTRY(v3_dma_clean_range) | 121 | ENTRY(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 | */ | ||
130 | ENTRY(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 | */ | ||
141 | ENTRY(v3_dma_map_area) | ||
142 | mov pc, lr | ||
143 | ENDPROC(v3_dma_unmap_area) | ||
144 | ENDPROC(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 |