Linux 5.7.6
[linux/fpc-iii.git] / arch / arm / mm / dma.h
blobaaef64b7f1775367ec5b2fe31e33acb252d81488
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef DMA_H
3 #define DMA_H
5 #include <asm/glue-cache.h>
7 #ifndef MULTI_CACHE
8 #define dmac_map_area __glue(_CACHE,_dma_map_area)
9 #define dmac_unmap_area __glue(_CACHE,_dma_unmap_area)
12 * These are private to the dma-mapping API. Do not use directly.
13 * Their sole purpose is to ensure that data held in the cache
14 * is visible to DMA, or data written by DMA to system memory is
15 * visible to the CPU.
17 extern void dmac_map_area(const void *, size_t, int);
18 extern void dmac_unmap_area(const void *, size_t, int);
20 #else
23 * These are private to the dma-mapping API. Do not use directly.
24 * Their sole purpose is to ensure that data held in the cache
25 * is visible to DMA, or data written by DMA to system memory is
26 * visible to the CPU.
28 #define dmac_map_area cpu_cache.dma_map_area
29 #define dmac_unmap_area cpu_cache.dma_unmap_area
31 #endif
33 #endif