#include <stdint.h>
#include <metal/sys.h>
Go to the source code of this file.
|
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. After the memory is DMA mapped, the memory should be accessed by the DMA device but not the CPU.
|
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.
|