![]() |
mcdma
Vitis Drivers API Documentation
|
#include "xmcdma.h"#include "xparameters.h"#include "xdebug.h"#include "xmcdma_hw.h"#include "xil_util.h"#include "xplatform_info.h"#include "xinterrupt_wrap.h"Macros | |
| #define | MCDMA_BASE_ADDR XPAR_XMCDMA_0_BASEADDR |
| Base address of the MCDMA device. More... | |
| #define | NUMBER_OF_BDS_PER_PKT 10 |
| Number of buffer descriptors per packet. More... | |
| #define | NUMBER_OF_PKTS_TO_TRANSFER 100 |
| Number of packets to transfer in the test. More... | |
| #define | NUMBER_OF_BDS_TO_TRANSFER |
| Total buffer descriptors to transfer. More... | |
| #define | PACKETS_PER_IRQ 50 |
| Number of packets processed per interrupt. More... | |
| #define | MAX_PKT_LEN 1024 |
| Maximum packet length in bytes. More... | |
| #define | BLOCK_SIZE_2MB 0x200000U |
| Two-megabyte block size for TLB attributes. More... | |
| #define | TEST_START_VALUE 0xC |
| Starting value used to fill and verify test data. 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 | MAX_CHANNELS 16 |
| Maximum number of MCDMA channels. More... | |
| #define | TX_BUFFER_SIZE (NUMBER_OF_BDS_TO_TRANSFER * MAX_PKT_LEN * MAX_CHANNELS ) |
| Transmit buffer size in bytes. More... | |
| #define | RX_BUFFER_SIZE (NUMBER_OF_BDS_TO_TRANSFER * MAX_PKT_LEN * MAX_CHANNELS ) |
| Receive buffer size in bytes. More... | |
| #define | TX_BD_SPACE_SIZE (NUMBER_OF_BDS_TO_TRANSFER * sizeof(XMcdma_Bd) * MAX_CHANNELS) |
| Transmit BD space size in bytes. More... | |
| #define | RX_BD_SPACE_SIZE (NUMBER_OF_BDS_TO_TRANSFER * sizeof(XMcdma_Bd) * MAX_CHANNELS) |
| Receive BD space size in bytes. More... | |
Functions | |
| int | main (void) |
| Runs the MCDMA interrupt-mode example entry point. More... | |