Logo Search packages:      
Sourcecode: linux version File versions

int mxc_request_dma ( int *  channel,
const char *  devicename 
)

Allocates dma channel. If channel's value is 0, then the function allocates a free channel dynamically and sets its value to channel. Else allocates requested channel if it is free. If the channel is busy or no free channels (in dynamic allocation) -EBUSY returned.

Parameters:
channel pointer to channel number
devicename device name
Returns:
0 on success, error code on fail

Definition at line 558 of file dma_sdma.c.

{
      return -ENODEV;
}


Generated by  Doxygen 1.6.0   Back to index