Logo Search packages:      
Sourcecode: linux version File versions

int mxc_dma_callback_set ( int  channel_num,
mxc_dma_callback_t  callback,
void *  arg 

This function is provided if the driver would like to set/change its callback function.

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
callback a callback function to provide notification on transfer completion, user could specify NULL if he does not wish to be notified
arg an argument that gets passed in to the callback function, used by the user to do any driver specific operations.
this function returns a negative number on error if the callback could not be set for the channel or 0 on success

Definition at line 642 of file dma_sdma.c.

Referenced by mxcuart_initdma(), and spdif_configure_dma_channel().

      return -ENODEV;

Generated by  Doxygen 1.6.0   Back to index