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

Functions | Variables

dmacHw.c File Reference

Low level DMA controller driver routines. More...

#include <csp/stdint.h>
#include <csp/string.h>
#include <stddef.h>
#include <csp/dmacHw.h>
#include <mach/csp/dmacHw_reg.h>
#include <mach/csp/dmacHw_priv.h>
#include <mach/csp/chipcHw_inline.h>
Include dependency graph for dmacHw.c:

Go to the source code of this file.


int dmacHw_configChannel (dmacHw_HANDLE_t handle, dmacHw_CONFIG_t *pConfig)
 Configure DMA channel.
uint32_t dmacHw_descriptorLen (uint32_t descCnt)
 Finds amount of memory required to form a descriptor ring.
void dmacHw_exitDma (void)
 Exit function for DMA.
dmacHw_HANDLE_t dmacHw_getChannelHandle (dmacHw_ID_t channelId)
 Gets a handle to a DMA channel.
uint32_t dmacHw_getDmaControllerAttribute (dmacHw_HANDLE_t handle, dmacHw_CONTROLLER_ATTRIB_e attr)
 Provides DMA controller attributes.
int dmacHw_initChannel (dmacHw_HANDLE_t handle)
 Initializes a DMA channel for use.
int dmacHw_initDescriptor (void *pDescriptorVirt, uint32_t descriptorPhyAddr, uint32_t len, uint32_t num)
 Initializes descriptor ring.
void dmacHw_initDma (void)
 Initializes DMA.
void dmacHw_initiateTransfer (dmacHw_HANDLE_t handle, dmacHw_CONFIG_t *pConfig, void *pDescriptor)
 Program channel register to initiate transfer.
int dmacHw_setDataDescriptor (dmacHw_CONFIG_t *pConfig, void *pDescriptor, void *pSrcAddr, void *pDstAddr, size_t dataLen)
 Set descriptors for known data length.
dmacHw_TRANSFER_STATUS_e dmacHw_transferCompleted (dmacHw_HANDLE_t handle)
 Indicates whether DMA transfer is in progress or completed.
static uint32_t GetFifoSize (dmacHw_HANDLE_t handle)
 Get maximum FIFO for a DMA channel.


uint32_t dmaChannelCount_0 = dmacHw_MAX_CHANNEL_COUNT / 2
uint32_t dmaChannelCount_1 = dmacHw_MAX_CHANNEL_COUNT / 2
dmacHw_CBLK_t dmacHw_gCblk [dmacHw_MAX_CHANNEL_COUNT]

Detailed Description

Low level DMA controller driver routines.


These routines provide basic DMA functionality only.

Definition in file dmacHw.c.

Generated by  Doxygen 1.6.0   Back to index