![]() |
axicdma
Vitis Drivers API Documentation
|
#include "xaxicdma.h"#include "xdebug.h"#include "xenv.h"#include "xil_cache.h"#include "xparameters.h"#include "sleep.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 128 |
| 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 1 |
| Number of buffer descriptors to transfer in this test. More... | |
| #define | RESET_LOOP_COUNT 10 |
| Number of times to poll for reset completion. More... | |
| #define | POLL_TIMEOUT_COUNTER 1000000U |
| Maximum poll iterations before a transfer times out. 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_SgPollExample (XAxiCdma *InstancePtr, UINTPTR BaseAddress) |
| Demonstrates scatter-gather transfer through polling. More... | |
| int | main (void) |
| Runs the example entry point, sets up UART16550 if available, invokes the example function, and reports the execution status. More... | |