patch for smsc lan91cxx ethernet driver

Uwe Kindler ukindler@htwm.de
Tue Jan 6 20:56:00 GMT 2004


Hello Andrew,

> I think using CDL is a nicer solution. I've made the interrupt
> priority a CDL option with a default value of 3 so we retain the
> original behavior. You can then override it as needed.
>
> In the hardware specific part of the ethernet driver put something like
>
>    requires CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO==4
>
> The CDL engine will then override the default value with 4.
>
> Please could you test this patch and let me know how it goes.
>
>        Andrew
>

The patch works. My hardware specific part of the driver now uses:

requires CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO >= 0
requires CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO <= 7

in order to ensure that the value is in the allowed range from 0-7 for
EDOSK-2674 interrupts.

Thank you very much.

Regards, Uwe

eCos port for Renesas EDOSK-2674
http://www.htwm.de/ukindler/ecos




More information about the Ecos-patches mailing list