![]() |
xxvethernet
Vitis Drivers API Documentation
|
#include "xxxvethernet_example.h"#include "xmcdma.h"#include "xil_cache.h"#include "xil_exception.h"#include "stdio.h"#include "stdlib.h"#include "xinterrupt_wrap.h"Macros | |
| #define | XXVETHERNET_BASEADDR XPAR_XXXVETHERNET_0_BASEADDR |
| Base address of the Xxv Ethernet device. More... | |
| #define | RXBD_CNT 1024 |
| Number of RxBDs to use. More... | |
| #define | TXBD_CNT 1024 |
| Number of TxBDs to use. More... | |
| #define | BD_ALIGNMENT 64 |
| Byte alignment of buffer descriptors. More... | |
| #define | PAYLOAD_SIZE 1500 |
| Payload size used in examples. More... | |
| #define | IP_VERSION_4 0x800 |
| Ethernet type/length value for IPv4 frames. More... | |
| #define | IP_HEADER_VERSION 0x04 |
| IPv4 version field value in the IP header. More... | |
| #define | IP_HEADER_LEN_IN_WORDS 0x05 |
| IP header length in 32-bit words. More... | |
| #define | IP_HEADER_LENGTH 20 |
| IP header length in bytes. More... | |
| #define | IP_HEADER_PROTOCOL_TCP 0x6 |
| IP protocol value for TCP packets. More... | |
| #define | IP_HEADER_PROTOCOL_UDP 0x17 |
| IP protocol value for UDP packets. More... | |
| #define | TCP_HEADER_LEN_IN_WORDS 0x5 |
| TCP header length in 32-bit words. More... | |
| #define | TCP_HEADER_LENGTH 20 |
| TCP header length in bytes. More... | |
| #define | RXBD_SPACE_BYTES (RXBD_CNT * 64 * 16) |
| Bytes reserved for receive BD space. More... | |
| #define | TXBD_SPACE_BYTES (TXBD_CNT * 64 * 16) |
| Bytes reserved for transmit BD space. More... | |
| #define | BLOCK_SIZE_2MB 0x200000U |
| Two-megabyte block size for TLB attributes. More... | |
| #define | INTC XScuGic |
| Interrupt controller driver type for SCU GIC. More... | |
| #define | INTC_HANDLER XScuGic_InterruptHandler |
| Interrupt handler for SCU GIC. More... | |
Functions | |
| int | UsxgmiiSgDmaIntrExample (XXxvEthernet *XxvEthernetInstancePtr, XMcdma *DmaInstancePtr, UINTPTR XxvBaseAddress) |
| Demonstrates USXGMII send and receive in interrupt-driven MCDMA mode. More... | |
| int | UsxgmiiSgDmaIntrSingleFrameExample (XXxvEthernet *XxvEthernetInstancePtr, XMcdma *DmaInstancePtr, u8 ChanId) |
| Sends and receives a single USXGMII frame in interrupt-driven MCDMA mode. More... | |
| int | main (void) |
| Runs the main entry point of the Xxv Ethernet example. More... | |
| void | AxiEthernetSetMAC (char *MacAddr, u8 ChanTdest) |
| Programs a channel-specific destination MAC address. More... | |