@@ -144,7 +144,7 @@ static inline struct eth_stm32_tx_context *allocate_tx_context(struct net_pkt *p
144
144
}
145
145
}
146
146
147
- void setup_mac_filter (ETH_HandleTypeDef * heth )
147
+ void eth_stm32_setup_mac_filter (ETH_HandleTypeDef * heth )
148
148
{
149
149
__ASSERT_NO_MSG (heth != NULL );
150
150
ETH_MACFilterConfigTypeDef MACFilterConf ;
@@ -162,7 +162,7 @@ void setup_mac_filter(ETH_HandleTypeDef *heth)
162
162
k_sleep (K_MSEC (1 ));
163
163
}
164
164
165
- int eth_tx (const struct device * dev , struct net_pkt * pkt )
165
+ int eth_stm32_tx (const struct device * dev , struct net_pkt * pkt )
166
166
{
167
167
struct eth_stm32_hal_dev_data * dev_data = dev -> data ;
168
168
ETH_HandleTypeDef * heth = & dev_data -> heth ;
@@ -191,7 +191,7 @@ int eth_tx(const struct device *dev, struct net_pkt *pkt)
191
191
buf_header = & dma_tx_buffer_header [ctx -> first_tx_buffer_index ];
192
192
193
193
#if defined(CONFIG_PTP_CLOCK_STM32_HAL )
194
- timestamped_frame = eth_is_ptp_pkt (net_pkt_iface (pkt ), pkt ) ||
194
+ timestamped_frame = eth_stm32_is_ptp_pkt (net_pkt_iface (pkt ), pkt ) ||
195
195
net_pkt_is_tx_timestamping (pkt );
196
196
if (timestamped_frame ) {
197
197
/* Enable transmit timestamp */
@@ -299,7 +299,7 @@ int eth_tx(const struct device *dev, struct net_pkt *pkt)
299
299
return res ;
300
300
}
301
301
302
- struct net_pkt * eth_rx (const struct device * dev )
302
+ struct net_pkt * eth_stm32_rx (const struct device * dev )
303
303
{
304
304
struct eth_stm32_hal_dev_data * dev_data = dev -> data ;
305
305
ETH_HandleTypeDef * heth = & dev_data -> heth ;
@@ -334,7 +334,7 @@ struct net_pkt *eth_rx(const struct device *dev)
334
334
}
335
335
#endif /* CONFIG_PTP_CLOCK_STM32_HAL */
336
336
337
- pkt = net_pkt_rx_alloc_with_buffer (get_iface (dev_data ),
337
+ pkt = net_pkt_rx_alloc_with_buffer (eth_stm32_get_iface (dev_data ),
338
338
total_len , AF_UNSPEC , 0 , K_MSEC (100 ));
339
339
if (!pkt ) {
340
340
LOG_ERR ("Failed to obtain RX buffer" );
@@ -374,7 +374,7 @@ struct net_pkt *eth_rx(const struct device *dev)
374
374
375
375
out :
376
376
if (!pkt ) {
377
- eth_stats_update_errors_rx (get_iface (dev_data ));
377
+ eth_stats_update_errors_rx (eth_stm32_get_iface (dev_data ));
378
378
}
379
379
380
380
return pkt ;
@@ -474,7 +474,7 @@ void HAL_ETH_ErrorCallback(ETH_HandleTypeDef *heth)
474
474
#endif /* CONFIG_NET_STATISTICS_ETHERNET */
475
475
}
476
476
477
- int eth_hal_init (const struct device * dev )
477
+ int eth_stm32_hal_init (const struct device * dev )
478
478
{
479
479
HAL_StatusTypeDef hal_ret = HAL_OK ;
480
480
struct eth_stm32_hal_dev_data * dev_data = dev -> data ;
@@ -534,7 +534,7 @@ int eth_hal_init(const struct device *dev)
534
534
return 0 ;
535
535
}
536
536
537
- void set_mac_config (const struct device * dev , struct phy_link_state * state )
537
+ void eth_stm32_set_mac_config (const struct device * dev , struct phy_link_state * state )
538
538
{
539
539
struct eth_stm32_hal_dev_data * dev_data = dev -> data ;
540
540
ETH_HandleTypeDef * heth = & dev_data -> heth ;
0 commit comments