a2fxxxm3_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
void EthernetMAC_IRQHandler(void)
A2FxxxM3 Ethernet MAC interrupt service routine.
Definition: a2fxxxm3_eth_driver.c:332
error_t a2fxxxm3EthReceivePacket(NetInterface *interface)
Receive a packet.
Definition: a2fxxxm3_eth_driver.c:512
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 A2FXXXM3_ETH_IRQ_SUB_PRIORITY
Definition: a2fxxxm3_eth_driver.h:81
void a2fxxxm3EthWriteSmi(uint32_t data, uint_t length)
SMI write operation.
Definition: a2fxxxm3_eth_driver.c:732
uint32_t physicalAddr[3]
Definition: a2fxxxm3_eth_driver.h:131
error_t a2fxxxm3EthSendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: a2fxxxm3_eth_driver.c:455
void a2fxxxm3EthEnableIrq(NetInterface *interface)
Enable interrupts.
Definition: a2fxxxm3_eth_driver.c:277
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
void a2fxxxm3EthInitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: a2fxxxm3_eth_driver.c:196
error_t a2fxxxm3EthSendSetup(NetInterface *interface)
Send a setup frame.
Definition: a2fxxxm3_eth_driver.c:406
uint16_t a2fxxxm3EthReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: a2fxxxm3_eth_driver.c:699
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void a2fxxxm3EthDisableIrq(NetInterface *interface)
Disable interrupts.
Definition: a2fxxxm3_eth_driver.c:305
#define A2FXXXM3_ETH_RX_BUFFER_COUNT
Definition: a2fxxxm3_eth_driver.h:53
void a2fxxxm3EthEventHandler(NetInterface *interface)
A2FxxxM3 Ethernet MAC event handler.
Definition: a2fxxxm3_eth_driver.c:385
SmartFusion (A2FxxxM3) Ethernet MAC driver.
uint32_t a2fxxxm3EthCalcCrc(const void *data, size_t length)
CRC calculation.
Definition: a2fxxxm3_eth_driver.c:811
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
void a2fxxxm3EthTick(NetInterface *interface)
A2FxxxM3 Ethernet MAC timer handler.
Definition: a2fxxxm3_eth_driver.c:252
TCP/IP stack core.
void a2fxxxm3EthWritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: a2fxxxm3_eth_driver.c:669
error_t a2fxxxm3EthUpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: a2fxxxm3_eth_driver.c:580
#define A2FXXXM3_ETH_IRQ_PRIORITY_GROUPING
Definition: a2fxxxm3_eth_driver.h:67
error_t a2fxxxm3EthUpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: a2fxxxm3_eth_driver.c:623
error_t a2fxxxm3EthInit(NetInterface *interface)
A2FxxxM3 Ethernet MAC initialization.
Definition: a2fxxxm3_eth_driver.c:116
Debugging facilities.
#define A2FXXXM3_ETH_IRQ_GROUP_PRIORITY
Definition: a2fxxxm3_eth_driver.h:74
#define A2FXXXM3_ETH_TX_BUFFER_COUNT
Definition: a2fxxxm3_eth_driver.h:39