axivdma
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xaxivdma_channel.c File Reference
#include "xaxivdma_hw.h"
#include "xaxivdma_i.h"
#include "xstatus.h"
#include "xaxivdma.h"

Macros

#define XAXIVDMA_RESET_POLLING   1000
 Maximum poll loops when waiting for channel reset completion. More...
 
#define XAXIVDMA_VIRT_TO_PHYS(VirtAddr)   (VirtAddr)
 Translates a virtual address to a physical address. More...
 
#define XAxiVdma_ChannelHiFrmAddrEnable(Channel)
 Sets the channel to enable access to higher Frame Buffer Addresses (SG=0). More...
 
#define XAxiVdma_ChannelHiFrmAddrDisable(Channel)
 Sets the channel to disable access higher Frame Buffer Addresses (SG=0). More...
 

Functions

void XAxiVdma_ChannelInit (XAxiVdma_Channel *Channel)
 Initializes a channel of a DMA engine. More...
 
int XAxiVdma_ChannelResetNotDone (XAxiVdma_Channel *Channel)
 Provides function checks whether reset operation is done. More...
 
void XAxiVdma_ChannelReset (XAxiVdma_Channel *Channel)
 Provides function resets one DMA channel. More...
 
int XAxiVdma_ChannelIsRunning (XAxiVdma_Channel *Channel)
 Checks whether a DMA channel is running. More...
 
int XAxiVdma_ChannelIsBusy (XAxiVdma_Channel *Channel)
 Checks whether a DMA channel is busy. More...
 
u32 XAxiVdma_ChannelErrors (XAxiVdma_Channel *Channel)
 Returns the error bits for a DMA channel. More...
 
void XAxiVdma_ClearChannelErrors (XAxiVdma_Channel *Channel, u32 ErrorMask)
 Clears selected error bits for a DMA channel. More...
 
u32 XAxiVdma_ChannelGetStatus (XAxiVdma_Channel *Channel)
 Gets the current status of a channel. More...
 
int XAxiVdma_ChannelStartParking (XAxiVdma_Channel *Channel)
 Sets the channel to run in parking mode. More...
 
void XAxiVdma_ChannelStopParking (XAxiVdma_Channel *Channel)
 Sets the channel to run in circular mode, exiting parking mode. More...
 
void XAxiVdma_ChannelStartFrmCntEnable (XAxiVdma_Channel *Channel)
 Sets the channel to run in frame count enable mode. More...
 
int XAxiVdma_ChannelSetBdAddrs (XAxiVdma_Channel *Channel, UINTPTR BdAddrPhys, UINTPTR BdAddrVirt)
 Sets BD addresses to a different memory region. More...
 
int XAxiVdma_ChannelStartTransfer (XAxiVdma_Channel *Channel, XAxiVdma_ChannelSetup *ChannelCfgPtr)
 Starts a transfer. More...
 
int XAxiVdma_ChannelConfig (XAxiVdma_Channel *Channel, XAxiVdma_ChannelSetup *ChannelCfgPtr)
 Configures one DMA channel using the configuration structure. More...
 
int XAxiVdma_ChannelSetBufferAddr (XAxiVdma_Channel *Channel, UINTPTR *BufferAddrSet, int NumFrames)
 Configures buffer addresses for one DMA channel. More...
 
int XAxiVdma_ChannelStart (XAxiVdma_Channel *Channel)
 Starts one DMA channel. More...
 
void XAxiVdma_ChannelStop (XAxiVdma_Channel *Channel)
 Stops one DMA channel. More...
 
void XAxiVdma_ChannelRegisterDump (XAxiVdma_Channel *Channel)
 Dumps registers from one DMA channel. More...
 
int XAxiVdma_ChannelSetFrmCnt (XAxiVdma_Channel *Channel, u8 FrmCnt, u8 DlyCnt)
 Sets the frame counter and delay counter for one channel. More...
 
void XAxiVdma_ChannelGetFrmCnt (XAxiVdma_Channel *Channel, u8 *FrmCnt, u8 *DlyCnt)
 Gets the frame counter and delay counter for both channels. More...
 
void XAxiVdma_ChannelEnableIntr (XAxiVdma_Channel *Channel, u32 IntrType)
 Enables interrupts for a channel. More...
 
void XAxiVdma_ChannelDisableIntr (XAxiVdma_Channel *Channel, u32 IntrType)
 Disables interrupts for a channel. More...
 
u32 XAxiVdma_ChannelGetPendingIntr (XAxiVdma_Channel *Channel)
 Gets pending interrupts of a channel. More...
 
void XAxiVdma_ChannelIntrClear (XAxiVdma_Channel *Channel, u32 IntrType)
 Clears interrupts of a channel. More...
 
u32 XAxiVdma_ChannelGetEnabledIntr (XAxiVdma_Channel *Channel)
 Gets the enabled interrupts of a channel. More...