This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
patch for smsc lan91cxx ethernet driver
- From: "Uwe Kindler" <uwe_kindler at web dot de>
- To: <ecos-patches at sources dot redhat dot com>
- Date: Mon, 29 Dec 2003 14:47:10 +0100
- Subject: patch for smsc lan91cxx ethernet driver
Hello,
because the interrupt priority of the EDOSK-2674 board is configurable (8
priorities from 0 - 7) it is necessary to provide an interrupt priority
value when creating the lan91cxx interrupt with cyg_drv_interrupt_create. If
the platform provides the interrupt priority with the new value
CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO, then this should be used for
interrupt priority.
I would like to suggest the following patch.
--- old/src/if_lan91cxx.c 2003-12-29 13:39:46.000000000 +0100
+++ src/if_lan91cxx.c 2003-12-29 14:01:00.000000000 +0100
@@ -288,7 +288,11 @@
#ifndef CYGPKG_IO_ETH_DRIVERS_STAND_ALONE
// Initialize environment, setup interrupt handler
cyg_drv_interrupt_create(cpd->interrupt,
+#if defined(CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO)
+ CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO, //
setup interrupt priority provided by platform
+#else
3, // Priority - what goes here?
+#endif
(cyg_addrword_t)sc, // Data item passed to
interrupt handler
(cyg_ISR_t *)lan91cxx_isr,
(cyg_DSR_t *)eth_drv_dsr, // The logical
driver DSR
--- old/ChangeLog 2003-12-29 13:39:28.000000000 +0100
+++ ChangeLog 2003-12-29 14:14:38.000000000 +0100
@@ -1,3 +1,9 @@
+2003-12-10 Uwe Kindler <uwe_kindler@web.de>
+
+ * src/if_lan91cxx.c: Interrupt priority is now configurable.
+ CYGNUM_DEVS_ETH_SMSC_LAN91CXX_INT_PRIO provided by platform
+ is the interrupt priority to be used.
+
2003-12-19 Gary Parnes <garyp@logicpd.com>
* src/smsc_lan91cxx.h (get_banksel): Allow this function to be
Regards, Uwe
eCos port for Renesas EDOSK-2674
http://www.htwm.de/ukindler/ecos