axicdma
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Groups Pages
xaxicdma_example_hybrid_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.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 BUFFER_BYTESIZE   128
 Length in bytes of the source and destination DMA buffers. 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))
 Source and Destination buffer for DMA transfer. 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_HybridIntrExample (XAxiCdma *InstancePtr, UINTPTR BaseAddress)
 Demonstrates hybrid interrupt transfers with the following transfers: a simple transfer a multiple BD scatter gather transfer another simple transfer. More...
 
int main (void)
 Runs the example entry point, sets up UART16550 if available, invokes the example function, and reports the execution status. More...
 

Variables

u32 * TransmitBufferPtr
 Pointer to transmit buffer. More...
 
u32 * ReceiveBufferPtr
 Pointer to receive buffer. More...