libmetal  353
dma.c File Reference

Libmetal DMA primitives definitions. More...

#include <metal/errno.h>
#include <string.h>
#include <metal/device.h>
#include <metal/log.h>
#include <metal/dma.h>
#include <metal/atomic.h>

Functions

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. More...
 
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 the DMA device. More...
 

Detailed Description

Libmetal DMA primitives definitions.