Logo Search packages:      
Sourcecode: linux version File versions

int mxc_dma_request ( mxc_dma_device_t  channel_id,
char *  dev_name 
)

This function is generally called by the driver at open time. The DMA driver would do any initialization steps that is required to get the channel ready for data transfer.

Parameters:
channel_id a pre-defined id. The peripheral driver would specify the id associated with its peripheral. This would be used by the DMA driver to identify the peripheral requesting DMA and do the necessary setup on the channel associated with the particular peripheral. The DMA driver could use static or dynamic DMA channel allocation.
dev_name module name or device name
Returns:
returns a negative number on error if request for a DMA channel did not succeed, returns the channel number to be used on success.

Definition at line 620 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