axiethernet
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
xaxiethernet_example_util.c File Reference
#include "xaxiethernet_example.h"
#include "sleep.h"

Macros

#define PHY_DETECT_REG   1
 MII status register used to detect the PHY. More...
 
#define PHY_DETECT_MASK   0x1808
 PHY detect register feature mask. More...
 
#define PHY_R0_DFT_SPD_2500   0x0040
 Default PHY speed bits for 2500 Mbps. More...
 

Functions

void AxiEthernetUtilFrameHdrFormatMAC (EthernetFrame *FramePtr, char *DestAddr)
 Formats an Ethernet frame header with the destination MAC address. More...
 
void AxiEthernetUtilFrameHdrFormatType (EthernetFrame *FramePtr, u16 FrameType)
 Formats an Ethernet frame header with the EtherType value. More...
 
void AxiEthernetUtilFrameSetPayloadData (EthernetFrame *FramePtr, int PayloadSize)
 Fills an Ethernet frame payload with test data. More...
 
void AxiEthernetUtilFrameHdrVlanFormatVid (EthernetFrame *FramePtr, u32 VlanNumber, u32 Vid)
 Formats a VLAN Ethernet frame header with the VLAN ID. More...
 
void AxiEthernetUtilFrameHdrVlanFormatType (EthernetFrame *FramePtr, u16 FrameType, u32 VlanNumber)
 Formats a VLAN Ethernet frame header with the EtherType value. More...
 
void AxiEthernetUtilFrameSetVlanPayloadData (EthernetFrame *FramePtr, int PayloadSize, u32 VlanNumber)
 Fills a VLAN Ethernet frame payload with test data. More...
 
int AxiEthernetUtilFrameVerify (EthernetFrame *CheckFrame, EthernetFrame *ActualFrame)
 Verifies that two Ethernet frames contain the same data. More...
 
void AxiEthernetUtilFrameMemClear (EthernetFrame *FramePtr)
 Clears an Ethernet frame buffer. More...
 
u32 AxiEthernetDetectPHY (XAxiEthernet *AxiEthernetInstancePtr)
 Detects the PHY address from MII status register contents. More...
 
int AxiEthernetUtilEnterLoopback (XAxiEthernet *AxiEthernetInstancePtr, int Speed)
 Sets the PHY to loopback mode. More...
 
void AxiEthernetUtilErrorTrap (char *Message)
 Called by example code when an error is detected. More...
 
void AxiEthernetUtilPhyDelay (unsigned int Seconds)
 Delays for the specified number of seconds while PHY hardware recovers. More...
 
int AxiEthernetUtilConfigureInternalPhy (XAxiEthernet *AxiEthernetInstancePtr, int Speed)
 Configures the internal phy for SGMII and 1000baseX modes. More...
 
int AxiEtherentConfigureTIPhy (XAxiEthernet *AxiEthernetInstancePtr, u32 PhyAddr)
 Configures a TI PHY for SGMII operation. More...