Logo Search packages:      
Sourcecode: linux version File versions

int mxc_dma_config ( int  channel_num,
mxc_dma_requestbuf_t dma_buf,
int  num_buf,
mxc_dma_mode_t  mode 

This function would just configure the buffers specified by the user into dma channel. The caller must call mxc_dma_enable to start this transfer.

channel_num the channel number returned at request time. This would be used by the DMA driver to identify the calling driver and do the necessary cleanup on the channel associated with the particular peripheral
dma_buf an array of physical addresses to the user defined buffers. The caller must guarantee the dma_buf is available until the transfer is completed.
num_buf number of buffers in the array
mode specifies whether this is READ or WRITE operation
This function returns a negative number on error if buffer could not be added with DMA for transfer. On Success, it returns 0

Definition at line 630 of file dma_sdma.c.

Referenced by dma_tx_do_tasklet(), mxcuart_dmaread_callback(), mxcuart_initdma(), mxcuart_start_tx(), spdif_start_rx(), and spdif_start_tx().

      return -ENODEV;

Generated by  Doxygen 1.6.0   Back to index