lwIP | Add GRETH/GRETH_GBIT driver (!40)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Tue Apr 28 08:02:12 UTC 2026




Matteo Concas commented on a discussion on rtemslwip/greth/hw_greth.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149158

 > -                                 VENDOR_GAISLER, GAISLER_ETHMAC,
 > -                                 ambapp_find_by_idx, NULL);
 > -  if (adev) {
 > -    apb = DEV_TO_APB(adev);
 > -    base_addr = apb->start;
 > -    eth_irq = apb->common.irq;
 > +  adev = (void *) (uintptr_t) ambapp_for_each(
 > +    ambapp_plb(),
 > +    ( OPTIONS_ALL | OPTIONS_APB_SLVS ),
 > +    VENDOR_GAISLER,
 > +    GAISLER_ETHMAC,
 > +    ambapp_find_by_idx,
 > +    &dev_id
 > +  );
 > +  if ( adev ) {
 > +    apb = DEV_TO_APB( adev );

Yes, that would make my changes clearer. I have added a formatting commit before my work.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_149158
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/20260428/3b3cdf39/attachment-0001.htm>


More information about the bugs mailing list