Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

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.

Parameters:
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.
Returns:
this function returns a negative number on error if the callback could not be set for the channel or 0 on success
This function is provided if the driver would like to set/change its callback function.

Parameters:
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.
Returns:
this function returns an error if the callback could not be set for the channel

Definition at line 655 of file dma_sdma.c.

{
      return -ENODEV;
}


Generated by  Doxygen 1.6.0   Back to index