12 #ifndef __METAL_DMA__H__
13 #define __METAL_DMA__H__
16 #include <metal/sys.h>
26 #define METAL_DMA_DEV_R 1
27 #define METAL_DMA_DEV_W 2
28 #define METAL_DMA_DEV_WR 3
void metal_dma_unmap(struct metal_device *dev, uint32_t dir, struct metal_sg *sg, int nents)
Unmap DMA memory After the memory is DMA unmapped, the memory should be accessed by the CPU but not t...
Definition: dma.c:39
int metal_dma_map(struct metal_device *dev, uint32_t dir, struct metal_sg *sg_in, int nents_in, struct metal_sg *sg_out)
Map memory for DMA transaction.
Definition: dma.c:14