Logo Search packages:      
Sourcecode: linux version File versions  Download package

uint32_t dmacHw_getDmaControllerAttribute ( dmacHw_HANDLE_t  handle,
dmacHw_CONTROLLER_ATTRIB_e  attr 
)

Provides DMA controller attributes.

Returns:
DMA controller attributes
Note:
None

Definition at line 895 of file dmacHw.c.

References GetFifoSize().

      {
      dmacHw_CBLK_t *pCblk = dmacHw_HANDLE_TO_CBLK(handle);

      switch (attr) {
      case dmacHw_CONTROLLER_ATTRIB_CHANNEL_NUM:
            return dmacHw_GET_NUM_CHANNEL(pCblk->module);
      case dmacHw_CONTROLLER_ATTRIB_CHANNEL_MAX_BLOCK_SIZE:
            return (1 <<
                   (dmacHw_GET_MAX_BLOCK_SIZE
                    (pCblk->module, pCblk->module) + 2)) - 8;
      case dmacHw_CONTROLLER_ATTRIB_MASTER_INTF_NUM:
            return dmacHw_GET_NUM_INTERFACE(pCblk->module);
      case dmacHw_CONTROLLER_ATTRIB_CHANNEL_BUS_WIDTH:
            return 32 << dmacHw_GET_CHANNEL_DATA_WIDTH(pCblk->module,
                                             pCblk->channel);
      case dmacHw_CONTROLLER_ATTRIB_CHANNEL_FIFO_SIZE:
            return GetFifoSize(handle);
      }
      dmacHw_ASSERT(0);
      return 0;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index