Logo Search packages:      
Sourcecode: linux version File versions

void mxc_dma_set_bd_intr ( int  channel,
int  bd_index,
int  bd_intr 

Configures the BD_INTR bit on a buffer descriptor parameters.

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

Definition at line 783 of file sdma.c.

      unsigned long param;

               (bd_index << BD_NUM_OFFSET) |
               IAPI_CHANGE_GET_STATUS, (unsigned long)&param);

      if (bd_intr) {
            param |= BD_INTR;
      } else {
            param &= ~BD_INTR;
               (bd_index << BD_NUM_OFFSET) | IAPI_CHANGE_SET_STATUS, param);


Generated by  Doxygen 1.6.0   Back to index