zynq7000_eth_driver.c
Go to the documentation of this file.
773 clockCtrl |= (XPAR_PS7_ETHERNET_0_ENET_SLCR_1000MBPS_DIV1 << 20) & XSLCR_GEM0_CLK_CTRL_DIV1_MASK;
774 clockCtrl |= (XPAR_PS7_ETHERNET_0_ENET_SLCR_1000MBPS_DIV0 << 8) & XSLCR_GEM0_CLK_CTRL_DIV0_MASK;
784 clockCtrl |= (XPAR_PS7_ETHERNET_0_ENET_SLCR_100MBPS_DIV1 << 20) & XSLCR_GEM0_CLK_CTRL_DIV1_MASK;
bool_t osSetEventFromIsr(OsEvent *event)
Set an event object to the signaled state from an interrupt service routine.
Definition: os_port_chibios.c:270
error_t zynq7000EthInit(NetInterface *interface)
Zynq-7000 Ethernet MAC initialization.
Definition: zynq7000_eth_driver.c:124
void zynq7000EthTick(NetInterface *interface)
Zynq-7000 Ethernet MAC timer handler.
Definition: zynq7000_eth_driver.c:305
#define XSLCR_GEM0_CLK_CTRL_DIV1_MASK
Definition: zynq7000_eth_driver.h:191
error_t zynq7000EthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: zynq7000_eth_driver.c:686
void zynq7000EthEventHandler(NetInterface *interface)
Zynq-7000 Ethernet MAC event handler.
Definition: zynq7000_eth_driver.c:449
size_t netBufferRead(void *dest, const NetBuffer *src, size_t srcOffset, size_t length)
Read data from a multi-part buffer.
Definition: net_mem.c:690
#define ZYNQ7000_ETH_RX_BUFFER_COUNT
Definition: zynq7000_eth_driver.h:50
void zynq7000EthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: zynq7000_eth_driver.c:330
error_t zynq7000EthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: zynq7000_eth_driver.c:753
void zynq7000EthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: zynq7000_eth_driver.c:832
#define XSLCR_GEM0_RCLK_CTRL_CLKACT_MASK
Definition: zynq7000_eth_driver.h:188
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
Zynq-7000 Gigabit Ethernet MAC driver.
void zynq7000EthIrqHandler(NetInterface *interface)
Zynq-7000 Ethernet MAC interrupt service routine.
Definition: zynq7000_eth_driver.c:386
#define XSLCR_GEM0_CLK_CTRL_DIV0_MASK
Definition: zynq7000_eth_driver.h:192
uint16_t zynq7000EthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: zynq7000_eth_driver.c:871
#define ZYNQ7000_ETH_TX_BUFFER_COUNT
Definition: zynq7000_eth_driver.h:36
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void zynq7000EthInitBufferDesc(NetInterface *interface)
Initialize buffer descriptors.
Definition: zynq7000_eth_driver.c:252
error_t zynq7000EthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: zynq7000_eth_driver.c:485
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
#define XSLCR_GEM0_CLK_CTRL_CLKACT_MASK
Definition: zynq7000_eth_driver.h:194
error_t zynq7000EthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: zynq7000_eth_driver.c:554
TCP/IP stack core.
XScuGic ZYNQ7000_ETH_GIC_INSTANCE
Debugging facilities.
void zynq7000EthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: zynq7000_eth_driver.c:358