axicdma
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Groups Pages
xaxicdma_example_sg_intr.c File Reference
#include "xaxicdma.h"
#include "xdebug.h"
#include "xil_exception.h"
#include "xil_cache.h"
#include "xparameters.h"
#include "xil_util.h"
#include "xinterrupt_wrap.h"
#include "xpseudo_asm_gcc.h"
#include "xil_mmu.h"

Macros

#define AXICDMA_BASE_ADDR   XPAR_XAXICDMA_0_BASEADDR
 Base address of the AXI CDMA device under test. More...
 
#define MAX_PKT_LEN   1024
 Maximum packet length in bytes for each buffer descriptor. More...
 
#define MARK_UNCACHEABLE   0x701
 Memory attribute used to mark buffers as uncacheable on AArch64. More...
 
#define NUMBER_OF_BDS_TO_TRANSFER   30
 Number of buffer descriptors to transfer in this test. More...
 
#define COALESCING_COUNT   5
 Interrupt coalescing count programmed into the DMA engine. More...
 
#define DELAY_COUNT   5
 Interrupt delay counter programmed into the DMA engine. More...
 
#define POLL_TIMEOUT_COUNTER   1000000U
 Maximum poll iterations before a transfer times out. More...
 
#define NUMBER_OF_EVENTS   1
 Number of interrupt events expected to complete the test. More...
 
#define BD_SPACE_SIZE   (64 * sizeof(XAxiCdma_Bd))
 BD space size. More...
 
#define SG_BUFFER_SIZE   (MAX_PKT_LEN * NUMBER_OF_BDS_TO_TRANSFER)
 SG buffer size. More...
 

Functions

void xil_printf (const char *format,...)
 Prints a formatted message when DEBUG is not defined. More...
 
int XAxiCdma_SgIntrExample (XAxiCdma *InstancePtr, UINTPTR BaseAddress)
 Demonstrates scatter-gather transfer through interrupt. More...
 
int main (void)
 Runs the example entry point, sets up UART16550 if available, invokes the example function, and reports the execution status. More...