1 /* SPDX-License-Identifier: GPL-2.0 */ 1 2 #ifndef DMA_H 3 #define DMA_H 4 5 #include <asm/glue-cache.h> 6 7 #ifndef MULTI_CACHE 8 #define dmac_map_area __glue 9 #define dmac_unmap_area __glue 10 11 /* 12 * These are private to the dma-mapping API. 13 * Their sole purpose is to ensure that data h 14 * is visible to DMA, or data written by DMA t 15 * visible to the CPU. 16 */ 17 extern void dmac_map_area(const void *, size_t 18 extern void dmac_unmap_area(const void *, size 19 20 #else 21 22 /* 23 * These are private to the dma-mapping API. 24 * Their sole purpose is to ensure that data h 25 * is visible to DMA, or data written by DMA t 26 * visible to the CPU. 27 */ 28 #define dmac_map_area cpu_ca 29 #define dmac_unmap_area cpu_ca 30 31 #endif 32 33 #endif 34
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.