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

void mxc_dma_set_bd_intr ( int  channel,
int  bd_index,
int  bd_intr 
)

Configures the BD_INTR bit on a buffer descriptor parameters.

Parameters:
channel channel number
bd_index index of buffer descriptor to set
bd_intr flag to set or clear the BD_INTR bit
Returns:
0 on success, error code on fail

Definition at line 867 of file sdma.c.

{
      unsigned long param;

      iapi_IoCtl(sdma_data[channel].cd,
               (bd_index << BD_NUM_OFFSET) |
               IAPI_CHANGE_GET_STATUS, (unsigned long)&param);

      if (bd_intr) {
            param |= BD_INTR;
      } else {
            param &= ~BD_INTR;
      }
      iapi_IoCtl(sdma_data[channel].cd,
               (bd_index << BD_NUM_OFFSET) | IAPI_CHANGE_SET_STATUS, param);

}


Generated by  Doxygen 1.6.0   Back to index