DMA primitives for libmetal. More...
#include <stdint.h>#include <metal/sys.h>Go to the source code of this file.
Data Structures | |
| struct | metal_sg |
| scatter/gather list element structure More... | |
Macros | |
| #define | METAL_DMA_DEV_R 1 |
| DMA direction, device read. More... | |
| #define | METAL_DMA_DEV_W 2 |
| DMA direction, device write. More... | |
| #define | METAL_DMA_DEV_WR 3 |
| DMA direction, device read/write. More... | |
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... | |
DMA primitives for libmetal.