stm32mp13xx_eth1_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 stm32mp13xxEth1WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: stm32mp13xx_eth1_driver.c:874
#define STM32MP13XX_ETH1_TX_BUFFER_SIZE
Definition: stm32mp13xx_eth1_driver.h:46
uint16_t stm32mp13xxEth1ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: stm32mp13xx_eth1_driver.c:916
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 stm32mp13xxEth1EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: stm32mp13xx_eth1_driver.c:405
STM32MP13 Gigabit Ethernet MAC driver (ETH1 instance)
#define STM32MP13XX_ETH1_RX_BUFFER_COUNT
Definition: stm32mp13xx_eth1_driver.h:53
error_t stm32mp13xxEth1ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: stm32mp13xx_eth1_driver.c:603
const NicDriver stm32mp13xxEth1Driver
STM32MP13 Ethernet MAC driver (ETH1 instance)
Definition: stm32mp13xx_eth1_driver.c:97
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 stm32mp13xxEth1Init(NetInterface *interface)
STM32MP13 Ethernet MAC initialization.
Definition: stm32mp13xx_eth1_driver.c:124
__weak_func void stm32mp13xxEth1InitGpio(NetInterface *interface)
GPIO configuration.
Definition: stm32mp13xx_eth1_driver.c:260
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void stm32mp13xxEth1EventHandler(NetInterface *interface)
STM32MP13 Ethernet MAC event handler.
Definition: stm32mp13xx_eth1_driver.c:513
error_t stm32mp13xxEth1UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: stm32mp13xx_eth1_driver.c:678
#define STM32MP13XX_ETH1_RX_BUFFER_SIZE
Definition: stm32mp13xx_eth1_driver.h:60
void stm32mp13xxEth1Tick(NetInterface *interface)
STM32MP13 Ethernet MAC timer handler.
Definition: stm32mp13xx_eth1_driver.c:380
#define STM32MP13XX_ETH1_RAM_SECTION
Definition: stm32mp13xx_eth1_driver.h:74
error_t stm32mp13xxEth1SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: stm32mp13xx_eth1_driver.c:538
#define STM32MP13XX_ETH1_TX_BUFFER_COUNT
Definition: stm32mp13xx_eth1_driver.h:39
void ETH1_IRQHandler(void)
STM32MP13 Ethernet MAC interrupt service routine.
Definition: stm32mp13xx_eth1_driver.c:460
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
error_t stm32mp13xxEth1UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: stm32mp13xx_eth1_driver.c:822
void stm32mp13xxEth1DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: stm32mp13xx_eth1_driver.c:433
TCP/IP stack core.
uint32_t stm32mp13xxEth1CalcCrc(const void *data, size_t length)
CRC calculation.
Definition: stm32mp13xx_eth1_driver.c:962
Debugging facilities.
void stm32mp13xxEth1InitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: stm32mp13xx_eth1_driver.c:329
#define STM32MP13XX_ETH1_IRQ_PRIORITY
Definition: stm32mp13xx_eth1_driver.h:67