[PATCH] Updated legacy code on arm gumstix
Vipul Nayyar
nayyar_vipul at yahoo.com
Fri Jul 12 17:03:57 UTC 2013
---
c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c b/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c
index ef8ae4e..d419eac 100644
--- a/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c
+++ b/c/src/lib/libbsp/arm/gumstix/rtl8019/rtl8019.c
@@ -332,10 +332,8 @@ ne_check_status (struct ne_softc *sc, int from_irq_handler)
/* Handle an NE2000 interrupt. */
static void
-ne_interrupt_handler (rtems_irq_hdl_param handle)
+ne_interrupt_handler (struct ne_softc *sc)
{
- struct ne_softc *sc = handle;
-
if (sc == NULL)
return;
@@ -350,10 +348,8 @@ ne_interrupt_handler (rtems_irq_hdl_param handle)
/* Turn NE2000 interrupts on. */
static void
-ne_interrupt_on (const void * handle)
+ne_interrupt_on (struct ne_softc *sc)
{
- struct ne_softc *sc = handle;
-
#ifdef DEBUG_NE
printk ("ne_interrupt_on()\n");
#endif
@@ -364,10 +360,8 @@ ne_interrupt_on (const void * handle)
/* Turn NE2000 interrupts off. See ne_interrupt_on. */
static void
-ne_interrupt_off (const void * handle)
+ne_interrupt_off (struct ne_softc *sc)
{
- struct ne_softc *sc = handle;
-
#ifdef DEBUG_NE
printk ("ne_interrupt_off()\n");
#endif
@@ -380,9 +374,8 @@ ne_interrupt_off (const void * handle)
*If it is eanbled, return 1
*/
static int
-ne_interrupt_is_on (const void * handle)
+ne_interrupt_is_on (struct ne_softc *sc)
{
- struct ne_softc *sc = handle;
unsigned char imr;
#ifdef DEBUG_NE
printk("ne_interrupt_is_on()\n");
--
1.7.11.7
More information about the devel
mailing list