lwIP | Add GRETH/GRETH_GBIT driver (!40)

Kinsey Moore (@opticron) gitlab at rtems.org
Tue Jun 16 20:42:37 UTC 2026




Kinsey Moore commented on a discussion on rtemslwip/greth/greth_netif.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152525

 > + * @param netif Pointer to the lwIP network interface structure associated with
 > + *              this GRETH device.
 > + *
 > + * @retval ERR_OK   Initialization completed successfully.
 > + * @retval ERR_IF   Driver attach failed, @ref greth_netif_state allocation
 > + *                  failed, or GRETH device already initialized.
 > + * @retval other    Error code returned by low-level GRETH initialization
 > + *                  functions (e.g., @ref greth_init_hw(),
 > + *                  @ref greth_init_control_structures(),
 > + *                  @ref greth_install_interrupt_handlers()).
 > + */
 > +err_t greth_init_dev_and_lwip_netif( struct netif *netif )
 > +{
 > +  err_t                     ret;
 > +  struct greth_netif_state *nf_state;
 > +  struct lwip_greth_hw_cfg *hw_cfg = netif->state;

It should be pointed out that this is the case in start_networking() and that the application is expected to manage the lifecycle of that structure past the return of netif_add().

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152525
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260616/d3bf89e8/attachment.htm>


More information about the bugs mailing list