![]() |
mcdma
Vitis Drivers API Documentation
|
#include "xmcdma.h"#include "xparameters.h"#include "xdebug.h"#include "xmcdma_hw.h"#include "sleep.h"#include "xplatform_info.h"Macros | |
| #define | MCDMA_BASE_ADDR XPAR_XMCDMA_0_BASEADDR |
| Base address of the MCDMA device. More... | |
| #define | MEM_BASE_ADDR 0x01000000 |
| Base address for DMA buffers and BD space. More... | |
| #define | TX_BD_SPACE_BASE (MEM_BASE_ADDR) |
| Base address of the transmit BD space. More... | |
| #define | RX_BD_SPACE_BASE (MEM_BASE_ADDR + 0x10000000) |
| Base address of the receive BD space. More... | |
| #define | TX_BUFFER_BASE (MEM_BASE_ADDR + 0x20000000) |
| Base address of the transmit buffer. More... | |
| #define | RX_BUFFER_BASE (MEM_BASE_ADDR + 0x50000000) |
| Base address of the receive buffer. 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 | MAX_PKT_LEN 1024 |
| Maximum packet length in bytes. More... | |
| #define | BLOCK_SIZE_2MB 0x200000U |
| Two-megabyte block size for TLB attributes. More... | |
| #define | NUM_MAX_CHANNELS 16 |
| Maximum number of channels for pattern arrays. 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 | 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... | |