You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
799 B
30 lines
799 B
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef DMA_H
|
|
#define DMA_H
|
|
|
|
#include <asm/glue-cache.h>
|
|
|
|
#ifndef MULTI_CACHE
|
|
/*
|
|
* 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);
|
|
|
|
#else
|
|
|
|
/*
|
|
* 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.
|
|
*/
|
|
#define dmac_map_area cpu_cache.dma_map_area
|
|
#define dmac_unmap_area cpu_cache.dma_unmap_area
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|