Go to the source code of this file.
#define CHAN_ALLOCATION_ASCENDING 0 /* zero to seven */ |
#define CHAN_ALLOCATION_DESCENDING 1 /* seven to zero */ |
#define CHAN_PRIORITY_ASCENDING 0 /* chan0 highest */ |
#define CHAN_PRIORITY_DESCENDING 1 /* chan7 highest */ |
#define DWC_CFGH_DST_PER |
( |
|
x | ) |
((x) << 11) |
#define DWC_CFGH_FCMODE (1 << 0) |
#define DWC_CFGH_FIFO_MODE (1 << 1) |
#define DWC_CFGH_PROTCTL |
( |
|
x | ) |
((x) << 2) |
#define DWC_CFGH_SRC_PER |
( |
|
x | ) |
((x) << 7) |
#define DWC_CFGL_LOCK_BUS (1 << 16) /* busmaster lockout */ |
#define DWC_CFGL_LOCK_BUS_BLOCK (1 << 14) |
#define DWC_CFGL_LOCK_BUS_XACT (2 << 14) |
#define DWC_CFGL_LOCK_BUS_XFER (0 << 14) /* scope of LOCK_BUS */ |
#define DWC_CFGL_LOCK_CH (1 << 15) /* channel lockout */ |
#define DWC_CFGL_LOCK_CH_BLOCK (1 << 12) |
#define DWC_CFGL_LOCK_CH_XACT (2 << 12) |
#define DWC_CFGL_LOCK_CH_XFER (0 << 12) /* scope of LOCK_CH */ |
- Enumerator:
DW_DMA_MSIZE_1 |
|
DW_DMA_MSIZE_4 |
|
DW_DMA_MSIZE_8 |
|
DW_DMA_MSIZE_16 |
|
DW_DMA_MSIZE_32 |
|
DW_DMA_MSIZE_64 |
|
DW_DMA_MSIZE_128 |
|
DW_DMA_MSIZE_256 |
|
Definition at line 42 of file dw_dmac.h.
dw_dma_cyclic_free - free a prepared cyclic DMA transfer : the DMA channel to free
Definition at line 1413 of file dw_dmac.c.
dw_dma_cyclic_prep - prepare the cyclic DMA transfer : the DMA channel to prepare : physical DMA address where the buffer starts : total number of bytes for the entire buffer : number of bytes for each period : transfer direction, to or from device
Must be called before trying to start the transfer. Returns a valid struct dw_cyclic_desc if successful or an ERR_PTR(-errno) if not successful.
Definition at line 1260 of file dw_dmac.c.
dw_dma_cyclic_start - start the cyclic DMA transfer : the DMA channel to start
Must be called with soft interrupts disabled. Returns zero on success or -errno on failure.
Definition at line 1191 of file dw_dmac.c.
dw_dma_cyclic_stop - stop the cyclic DMA transfer : the DMA channel to stop
Must be called with soft interrupts disabled.
Definition at line 1235 of file dw_dmac.c.