stm32mp13xx_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
error_t stm32mp13xxEth2SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: stm32mp13xx_eth2_driver.c:549
void stm32mp13xxEth2Tick(NetInterface *interface)
STM32MP13 Ethernet MAC timer handler.
Definition: stm32mp13xx_eth2_driver.c:391
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 STM32MP13XX_ETH2_TX_BUFFER_SIZE
Definition: stm32mp13xx_eth2_driver.h:46
#define STM32MP13XX_ETH2_TX_BUFFER_COUNT
Definition: stm32mp13xx_eth2_driver.h:39
void stm32mp13xxEth2WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: stm32mp13xx_eth2_driver.c:885
void nicProcessPacket(NetInterface *interface, uint8_t *packet, size_t length, NetRxAncillary *ancillary)
Handle a packet received by the network controller.
Definition: nic.c:392
error_t stm32mp13xxEth2ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: stm32mp13xx_eth2_driver.c:614
void ETH2_IRQHandler(void)
STM32MP13 Ethernet MAC interrupt service routine.
Definition: stm32mp13xx_eth2_driver.c:471
error_t stm32mp13xxEth2Init(NetInterface *interface)
STM32MP13 Ethernet MAC initialization.
Definition: stm32mp13xx_eth2_driver.c:124
#define STM32MP13XX_ETH2_RX_BUFFER_SIZE
Definition: stm32mp13xx_eth2_driver.h:60
void stm32mp13xxEth2EventHandler(NetInterface *interface)
STM32MP13 Ethernet MAC event handler.
Definition: stm32mp13xx_eth2_driver.c:524
__weak_func void stm32mp13xxEth2InitGpio(NetInterface *interface)
GPIO configuration.
Definition: stm32mp13xx_eth2_driver.c:260
STM32MP13 Gigabit Ethernet MAC driver (ETH2 instance)
void stm32mp13xxEth2EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: stm32mp13xx_eth2_driver.c:416
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
#define STM32MP13XX_ETH2_IRQ_PRIORITY
Definition: stm32mp13xx_eth2_driver.h:67
#define STM32MP13XX_ETH2_RAM_SECTION
Definition: stm32mp13xx_eth2_driver.h:74
uint32_t stm32mp13xxEth2CalcCrc(const void *data, size_t length)
CRC calculation.
Definition: stm32mp13xx_eth2_driver.c:973
void stm32mp13xxEth2DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: stm32mp13xx_eth2_driver.c:444
const NicDriver stm32mp13xxEth2Driver
STM32MP13 Ethernet MAC driver (ETH2 instance)
Definition: stm32mp13xx_eth2_driver.c:97
uint16_t stm32mp13xxEth2ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: stm32mp13xx_eth2_driver.c:927
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
#define STM32MP13XX_ETH2_RX_BUFFER_COUNT
Definition: stm32mp13xx_eth2_driver.h:53
TCP/IP stack core.
error_t stm32mp13xxEth2UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: stm32mp13xx_eth2_driver.c:689
error_t stm32mp13xxEth2UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: stm32mp13xx_eth2_driver.c:833
void stm32mp13xxEth2InitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: stm32mp13xx_eth2_driver.c:340
Debugging facilities.