dmaps
Xilinx Vitis Drivers API Documentation
xdmaps.c File Reference

Functions

int XDmaPs_CfgInitialize (XDmaPs *InstPtr, XDmaPs_Config *Config, u32 EffectiveAddr)
 Initializes a specific XDmaPs instance such that it is ready to be used.
 
int XDmaPs_ResetManager (XDmaPs *InstPtr)
 Reset the DMA Manager.
 
int XDmaPs_ResetChannel (XDmaPs *InstPtr, unsigned int Channel)
 Reset the specified DMA Channel.
 
void XDmaPs_FaultISR (XDmaPs *InstPtr)
 Driver fault interrupt service routine This is the one that connects the GIC.
 
int XDmaPs_SetDoneHandler (XDmaPs *InstPtr, unsigned Channel, XDmaPsDoneHandler DoneHandler, void *CallbackRef)
 Set the done handler for a channel.
 
int XDmaPs_SetFaultHandler (XDmaPs *InstPtr, XDmaPsFaultHandler FaultHandler, void *CallbackRef)
 Set the fault handler for a channel.
 
int XDmaPs_Instr_DMARMB (char *DmaProg)
 Construction function for DMARMB instruction.
 
int XDmaPs_Instr_DMAWMB (char *DmaProg)
 Construction function for DMAWMB instruction.
 
u32 XDmaPs_ToCCRValue (XDmaPs_ChanCtrl *ChanCtrl)
 Conversion function from PL330 bus transfer descriptors to CCR value.
 
int XDmaPs_ConstructSingleLoop (char *DmaProgStart, int CacheLength, char *DmaProgLoopStart, int LoopCount)
 Construct a loop with only DMALD and DMAST as the body using loop counter 0.
 
int XDmaPs_ConstructNestedLoop (char *DmaProgStart, int CacheLength, char *DmaProgLoopStart, unsigned int LoopCountOuter, unsigned int LoopCountInner)
 Construct a nested loop with only DMALD and DMAST in the inner loop body.
 
int XDmaPs_GenDmaProg (XDmaPs *InstPtr, unsigned int Channel, XDmaPs_Cmd *Cmd)
 Generate a DMA program based for the DMA command, the buffer will be pointed by the GeneratedDmaProg field of the command.
 
int XDmaPs_FreeDmaProg (XDmaPs *InstPtr, unsigned int Channel, XDmaPs_Cmd *Cmd)
 Free the DMA program buffer that is pointed by the GeneratedDmaProg field of the command.
 
int XDmaPs_Start (XDmaPs *InstPtr, unsigned int Channel, XDmaPs_Cmd *Cmd, int HoldDmaProg)
 Start a DMA command.
 
int XDmaPs_IsActive (XDmaPs *InstPtr, unsigned int Channel)
 Checks whether the DMA channel is active or idle.
 
void XDmaPs_DoneISR_0 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 0.
 
void XDmaPs_DoneISR_1 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 1.
 
void XDmaPs_DoneISR_2 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 2.
 
void XDmaPs_DoneISR_3 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 3.
 
void XDmaPs_DoneISR_4 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 4.
 
void XDmaPs_DoneISR_5 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 5.
 
void XDmaPs_DoneISR_6 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 6.
 
void XDmaPs_DoneISR_7 (XDmaPs *InstPtr)
 Driver done interrupt service routine for channel 7.
 
void XDmaPs_Print_DmaProg (XDmaPs_Cmd *Cmd)
 Print the Dma Prog Contents.