m2sxxx_eth_driver.c
bool_t osSetEventFromIsr(OsEvent *event)
Set an event object to the signaled state from an interrupt service routine.
Definition: os_port_chibios.c:270
#define M2SXXX_ETH_IRQ_GROUP_PRIORITY
Definition: m2sxxx_eth_driver.h:74
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
void EthernetMAC_IRQHandler(void)
M2Sxxx Ethernet MAC interrupt service routine.
Definition: m2sxxx_eth_driver.c:393
error_t m2sxxxEthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: m2sxxx_eth_driver.c:598
error_t m2sxxxEthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: m2sxxx_eth_driver.c:473
#define MAC_CR_ETH_LINE_SPEED_100MBPS
Definition: m2sxxx_eth_driver.h:105
void m2sxxxEthTick(NetInterface *interface)
M2Sxxx Ethernet MAC timer handler.
Definition: m2sxxx_eth_driver.c:313
#define DMA_RX_STATUS_RX_PKT_RECEIVED
Definition: m2sxxx_eth_driver.h:124
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
SmartFusion2 (M2Sxxx) Ethernet MAC driver.
error_t m2sxxxEthInit(NetInterface *interface)
M2Sxxx Ethernet MAC initialization.
Definition: m2sxxx_eth_driver.c:114
#define M2SXXX_ETH_IRQ_PRIORITY_GROUPING
Definition: m2sxxx_eth_driver.h:67
error_t m2sxxxEthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: m2sxxx_eth_driver.c:611
void m2sxxxEthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: m2sxxx_eth_driver.c:261
error_t m2sxxxEthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: m2sxxx_eth_driver.c:533
void m2sxxxEthEventHandler(NetInterface *interface)
M2Sxxx Ethernet MAC event handler.
Definition: m2sxxx_eth_driver.c:443
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
__weak_func void m2sxxxEthInitGpio(NetInterface *interface)
GPIO configuration.
Definition: m2sxxx_eth_driver.c:246
void m2sxxxEthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: m2sxxx_eth_driver.c:366
void m2sxxxEthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: m2sxxx_eth_driver.c:338
TCP/IP stack core.
uint16_t m2sxxxEthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: m2sxxx_eth_driver.c:709
void m2sxxxEthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: m2sxxx_eth_driver.c:678
Debugging facilities.