|
Defines |
#define | __LIBDMA_H__ 1 |
#define | SYSDMA_REGISTER 1 |
#define | DMAOPT_COPY (1<<0u) |
#define | DMAOPT_READ (1<<1u) |
#define | DMAOPT_WRITE (1<<2u) |
#define | SYSDMA_UNREGISTER 2 |
#define | SYSDMA_RESET 3 |
#define | SYSDMA_DUMP 5 |
Enumerations |
enum | t_dma_register_suberrno_codes {
DMA_REGISTER_BAD_CHANNEL = 100,
DMA_REGISTER_CHANNEL_NOT_AVAIL,
DMA_REGISTER_BAD_LEN,
DMA_REGISTER_NOT_SHARED_RW,
DMA_REGISTER_BAD_DMA_BLOCK,
DMA_REGISTER_NOT_DMA_MEM
} |
Functions |
int | dma_register (int channel, char *dmabuf, int dmaoff, int dmalen, u_int32_t dmaopt) |
int | dma_write (int channel, char *buf, int len) |
int | dma_read (int channel, char *buf, int len) |
int | dma_unregister (int channel) |
int | dma_reset (int channel, int dmaoff, int dmalen) |
int | dma_dump (void) |