MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- ------------------------------------------------------- 1.00a jz 04/18/10 First release 2.01a rkv 01/25/11 Replaced with "\r\n" in place on "\n\r" in printf statements Changed XAxiCdma_CfgInitialize to use EffectiveAddress. 2.02a srt 01/18/13 Added support for Key Hole feature (CR: 687217).
#include "xaxicdma.h"
#include "xaxicdma_i.h"
Functions | |
u32 | XAxiCdma_GetError (XAxiCdma *InstancePtr) |
void | XAxiCdma_Reset (XAxiCdma *InstancePtr) |
int | XAxiCdma_ResetIsDone (XAxiCdma *InstancePtr) |
int | XAxiCdma_CfgInitialize (XAxiCdma *InstancePtr, XAxiCdma_Config *CfgPtr, u32 EffectiveAddr) |
int | XAxiCdma_IsBusy (XAxiCdma *InstancePtr) |
int | XAxiCdma_SelectKeyHole (XAxiCdma *InstancePtr, u32 Direction, u32 Select) |
int | XAxiCdma_SimpleTransfer (XAxiCdma *InstancePtr, u32 SrcAddr, u32 DstAddr, int Length, XAxiCdma_CallBackFn SimpleCallBack, void *CallBackRef) |
int | XAxiCdma_SetCoalesce (XAxiCdma *InstancePtr, u32 Counter, u32 Delay) |
void | XAxiCdma_GetCoalesce (XAxiCdma *InstancePtr, u32 *CounterPtr, u32 *DelayPtr) |
void | XAxiCdma_DumpRegisters (XAxiCdma *InstancePtr) |
|
This function initializes the driver. It should be called before any other function calls to the driver. It sets up the driver according to the hardware build. It resets the hardware at the end.
|
|
This function dumps the registers of this DMA instance
|
|
This function gets the current setting of the interrupt coalescing threshold counter and the delay counter.
|
|
This function gets the status on error bits.
|
|
This function checks whether the hardware is doing transfer
|
|
This function conducts hardware reset Current transfer will finish gracefully. However, all queued SG transfers that have not started will be flushed from the hardware.
|
|
This function checks whether the hardware reset is done
|
|
This function configures KeyHole Write/Read Feature
|
|
This function tries to set the interrupt coalescing threshold counter and the delay counter. If to set only one of the counters, set the value of the other counter to be XAXICDMA_COALESCE_NO_CHANGE.
|
|
This function does one simple transfer submission It checks in the following sequence:
|