stm32mp2xx_eth2_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
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
uint16_t stm32mp2xxEth2ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: stm32mp2xx_eth2_driver.c:855
STM32MP2 Gigabit Ethernet MAC driver (ETH2 instance)
error_t stm32mp2xxEth2UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: stm32mp2xx_eth2_driver.c:617
error_t stm32mp2xxEth2Init(NetInterface *interface)
STM32MP2 Ethernet MAC initialization.
Definition: stm32mp2xx_eth2_driver.c:115
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 stm32mp2xxEth2InitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: stm32mp2xx_eth2_driver.c:268
void ETH2_SBD_IRQHandler(void)
STM32MP2 Ethernet MAC interrupt service routine.
Definition: stm32mp2xx_eth2_driver.c:399
void stm32mp2xxEth2Tick(NetInterface *interface)
STM32MP2 Ethernet MAC timer handler.
Definition: stm32mp2xx_eth2_driver.c:319
void stm32mp2xxEth2EventHandler(NetInterface *interface)
STM32MP2 Ethernet MAC event handler.
Definition: stm32mp2xx_eth2_driver.c:452
uint32_t stm32mp2xxEth2CalcCrc(const void *data, size_t length)
CRC calculation.
Definition: stm32mp2xx_eth2_driver.c:901
#define STM32MP2XX_ETH2_TX_BUFFER_COUNT
Definition: stm32mp2xx_eth2_driver.h:39
void stm32mp2xxEth2EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: stm32mp2xx_eth2_driver.c:344
#define STM32MP2XX_ETH2_IRQ_GROUP_PRIORITY
Definition: stm32mp2xx_eth2_driver.h:74
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
#define STM32MP2XX_ETH2_TX_BUFFER_SIZE
Definition: stm32mp2xx_eth2_driver.h:46
error_t stm32mp2xxEth2ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: stm32mp2xx_eth2_driver.c:542
error_t stm32mp2xxEth2UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: stm32mp2xx_eth2_driver.c:761
#define STM32MP2XX_ETH2_RX_BUFFER_SIZE
Definition: stm32mp2xx_eth2_driver.h:60
void stm32mp2xxEth2WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: stm32mp2xx_eth2_driver.c:813
#define STM32MP2XX_ETH2_RX_BUFFER_COUNT
Definition: stm32mp2xx_eth2_driver.h:53
#define STM32MP2XX_ETH2_IRQ_PRIORITY_GROUPING
Definition: stm32mp2xx_eth2_driver.h:67
__weak_func void stm32mp2xxEth2InitGpio(NetInterface *interface)
GPIO configuration.
Definition: stm32mp2xx_eth2_driver.c:255
error_t stm32mp2xxEth2SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: stm32mp2xx_eth2_driver.c:477
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
TCP/IP stack core.
const NicDriver stm32mp2xxEth2Driver
STM32MP2 Ethernet MAC driver (ETH2 instance)
Definition: stm32mp2xx_eth2_driver.c:88
Debugging facilities.
#define STM32MP2XX_ETH2_IRQ_SUB_PRIORITY
Definition: stm32mp2xx_eth2_driver.h:81
void stm32mp2xxEth2DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: stm32mp2xx_eth2_driver.c:372