diff options
-rw-r--r-- | arch/arm64/include/asm/cacheflush.h | 10 | ||||
-rw-r--r-- | arch/arm64/mm/cache.S | 83 |
2 files changed, 0 insertions, 93 deletions
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index dad3b79b6fe..aa3132ab7f2 100644 --- a/arch/arm64/include/asm/cacheflush.h +++ b/arch/arm64/include/asm/cacheflush.h @@ -78,16 +78,6 @@ extern void __flush_dcache_area(void *addr, size_t len); extern void __flush_cache_user_range(unsigned long start, unsigned long end); /* - * These are private to the dma-mapping API. Do not use directly. - * Their sole purpose is to ensure that data held in the cache - * is visible to DMA, or data written by DMA to system memory is - * visible to the CPU. - */ -extern void dmac_map_area(const void *, size_t, int); -extern void dmac_unmap_area(const void *, size_t, int); -extern void dmac_flush_range(const void *, const void *); - -/* * Copy user data from/to a page which is mapped into a different * processes address space. Really, we want to allow our "user * space" model to handle this. diff --git a/arch/arm64/mm/cache.S b/arch/arm64/mm/cache.S index 3df0aa712c6..abe69b80cf7 100644 --- a/arch/arm64/mm/cache.S +++ b/arch/arm64/mm/cache.S @@ -166,86 +166,3 @@ ENTRY(__flush_dcache_area) dsb sy ret ENDPROC(__flush_dcache_area) - -/* - * dmac_inv_range(start,end) - * - * Invalidate the data cache within the specified region; we will be - * performing a DMA operation in this region and we want to purge old - * data in the cache. - * - * - start - virtual start address of region - * - end - virtual end address of region - */ -ENTRY(dmac_inv_range) - dcache_line_size x2, x3 - sub x3, x2, #1 - bic x0, x0, x3 - bic x1, x1, x3 -1: dc ivac, x0 // invalidate D / U line - add x0, x0, x2 - cmp x0, x1 - b.lo 1b - dsb sy - ret -ENDPROC(dmac_inv_range) - -/* - * dmac_clean_range(start,end) - * - start - virtual start address of region - * - end - virtual end address of region - */ -ENTRY(dmac_clean_range) - dcache_line_size x2, x3 - sub x3, x2, #1 - bic x0, x0, x3 -1: dc cvac, x0 // clean D / U line - add x0, x0, x2 - cmp x0, x1 - b.lo 1b - dsb sy - ret -ENDPROC(dmac_clean_range) - -/* - * dmac_flush_range(start,end) - * - start - virtual start address of region - * - end - virtual end address of region - */ -ENTRY(dmac_flush_range) - dcache_line_size x2, x3 - sub x3, x2, #1 - bic x0, x0, x3 -1: dc civac, x0 // clean & invalidate D / U line - add x0, x0, x2 - cmp x0, x1 - b.lo 1b - dsb sy - ret -ENDPROC(dmac_flush_range) - -/* - * dmac_map_area(start, size, dir) - * - start - kernel virtual start address - * - size - size of region - * - dir - DMA direction - */ -ENTRY(dmac_map_area) - add x1, x1, x0 - cmp x2, #DMA_FROM_DEVICE - b.eq dmac_inv_range - b dmac_clean_range -ENDPROC(dmac_map_area) - -/* - * dmac_unmap_area(start, size, dir) - * - start - kernel virtual start address - * - size - size of region - * - dir - DMA direction - */ -ENTRY(dmac_unmap_area) - add x1, x1, x0 - cmp x2, #DMA_TO_DEVICE - b.ne dmac_inv_range - ret -ENDPROC(dmac_unmap_area) |