stm32mp2xx_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
#define STM32MP2XX_ETH1_IRQ_PRIORITY_GROUPING
Definition: stm32mp2xx_eth1_driver.h:67
void stm32mp2xxEth1DisableIrq(NetInterface *interface)
Disable interrupts.
Definition: stm32mp2xx_eth1_driver.c:372
void ETH1_SBD_IRQHandler(void)
STM32MP2 Ethernet MAC interrupt service routine.
Definition: stm32mp2xx_eth1_driver.c:399
void stm32mp2xxEth1Tick(NetInterface *interface)
STM32MP2 Ethernet MAC timer handler.
Definition: stm32mp2xx_eth1_driver.c:319
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 STM32MP2XX_ETH1_RX_BUFFER_COUNT
Definition: stm32mp2xx_eth1_driver.h:53
void stm32mp2xxEth1EventHandler(NetInterface *interface)
STM32MP2 Ethernet MAC event handler.
Definition: stm32mp2xx_eth1_driver.c:452
error_t stm32mp2xxEth1UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
Definition: stm32mp2xx_eth1_driver.c:617
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 stm32mp2xxEth1Init(NetInterface *interface)
STM32MP2 Ethernet MAC initialization.
Definition: stm32mp2xx_eth1_driver.c:115
uint16_t stm32mp2xxEth1ReadPhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr)
Read PHY register.
Definition: stm32mp2xx_eth1_driver.c:855
const NicDriver stm32mp2xxEth1Driver
STM32MP2 Ethernet MAC driver (ETH1 instance)
Definition: stm32mp2xx_eth1_driver.c:88
error_t stm32mp2xxEth1ReceivePacket(NetInterface *interface)
Receive a packet.
Definition: stm32mp2xx_eth1_driver.c:542
error_t stm32mp2xxEth1SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
Definition: stm32mp2xx_eth1_driver.c:477
#define STM32MP2XX_ETH1_IRQ_SUB_PRIORITY
Definition: stm32mp2xx_eth1_driver.h:81
STM32MP2 Gigabit Ethernet MAC driver (ETH1 instance)
#define STM32MP2XX_ETH1_TX_BUFFER_COUNT
Definition: stm32mp2xx_eth1_driver.h:39
size_t netBufferGetLength(const NetBuffer *buffer)
Get the actual length of a multi-part buffer.
Definition: net_mem.c:297
void stm32mp2xxEth1InitDmaDesc(NetInterface *interface)
Initialize DMA descriptor lists.
Definition: stm32mp2xx_eth1_driver.c:268
void stm32mp2xxEth1WritePhyReg(uint8_t opcode, uint8_t phyAddr, uint8_t regAddr, uint16_t data)
Write PHY register.
Definition: stm32mp2xx_eth1_driver.c:813
void stm32mp2xxEth1EnableIrq(NetInterface *interface)
Enable interrupts.
Definition: stm32mp2xx_eth1_driver.c:344
#define STM32MP2XX_ETH1_RX_BUFFER_SIZE
Definition: stm32mp2xx_eth1_driver.h:60
__weak_func void stm32mp2xxEth1InitGpio(NetInterface *interface)
GPIO configuration.
Definition: stm32mp2xx_eth1_driver.c:255
#define STM32MP2XX_ETH1_TX_BUFFER_SIZE
Definition: stm32mp2xx_eth1_driver.h:46
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.
Definition: os_port_chibios.c:202
#define STM32MP2XX_ETH1_IRQ_GROUP_PRIORITY
Definition: stm32mp2xx_eth1_driver.h:74
uint32_t stm32mp2xxEth1CalcCrc(const void *data, size_t length)
CRC calculation.
Definition: stm32mp2xx_eth1_driver.c:901
TCP/IP stack core.
error_t stm32mp2xxEth1UpdateMacConfig(NetInterface *interface)
Adjust MAC configuration parameters for proper operation.
Definition: stm32mp2xx_eth1_driver.c:761
Debugging facilities.