[ECOS] Event driven ethernet status change

Gary Thomas gary@mlbassoc.com
Thu Mar 4 09:48:00 GMT 2004


Matt Jerdonek said:
> Hi Folks,
>
> I need a way for an ethernet driver (but specifically
> the powerpc/fec driver) to inform an application of a
> loss and restoral of ethernet carrier.

Any board in particular?  Maybe one of the supported ones?

>
> If possible, I want avoid having the application poll
> the driver for its status.  Instead, I'd like driver
> to inform the application of status changes.

The way to handle this would be to add interrupt support for
PHY line changes that could then send a signal to your application.
The application could then manage the logical interfaces as
you have outlined before.

We've not supported this so far with eCos, but with the new
PHY layer, it should be possible to make this happen.

>
> It looks like I can call if_down(...) or if_up(...)
> from the ethernet driver, then, in the application,
> listen on the routing socket for status changes.  Is
> this a reasonable approach?  Is there a better way?
>
> Thanks,
> -- Matt
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Search - Find what youÂ’re looking for faster
> http://search.yahoo.com
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>




-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list