Changeset 881e388 in libbsdport


Ignore:
Timestamp:
Feb 20, 2009, 4:15:15 PM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
master
Children:
22eccd1
Parents:
90ea822
Message:
  • fixed arguments to bus_setup_intr(); 're_intr' is really what the newer API calls a 'filter' -- however, it must be equipped with a proper return value.
  • as long as MII stuff is not implememented we fake an OK link by setting rl_link=1.
  • removed re_intr_check_dis(), re_intr_en()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/if_re/if_re.c

    r90ea822 r881e388  
    261261static void re_poll_locked      (struct ifnet *, enum poll_cmd, int);
    262262#endif
     263#ifdef __rtems__
     264static int re_intr              (void *);
     265#else
    263266static void re_intr             (void *);
     267#endif
    264268static void re_tick             (void *);
    265269static void re_tx_task          (void *, int);
     
    354358        shutdown:       re_shutdown,
    355359        detach:         re_detach,
     360        irq_check_dis:  0,
     361        irq_en:         0,
    356362};
    357363
     
    362368        sizeof(struct rl_softc)
    363369};
    364 
    365370
    366371#endif
     
    20002005                }
    20012006        }
    2002 
     2007#else
     2008#warning "MII stuff needs to be implemented!"
     2009        /* Just fake an OK link for now... */
     2010        sc->rl_link = 1;
    20032011#endif
    20042012        callout_reset(&sc->rl_stat_callout, hz, re_tick, sc);
     
    20522060#endif /* DEVICE_POLLING */
    20532061
     2062#ifdef __rtems__
     2063static int
     2064#else
    20542065static void
     2066#endif
    20552067re_intr(arg)
    20562068        void                    *arg;
     
    20632075        status = CSR_READ_2(sc, RL_ISR);
    20642076        if (status == 0xFFFF || (status & RL_INTRS_CPLUS) == 0)
     2077#ifdef __rtems__
     2078                                return FILTER_STRAY;
     2079#else
    20652080                return;
     2081#endif
    20662082        CSR_WRITE_2(sc, RL_IMR, 0);
    20672083
    20682084        taskqueue_enqueue_fast(taskqueue_fast, &sc->rl_inttask);
    20692085
     2086#ifdef __rtems__
     2087        return FILTER_HANDLED;
     2088#else
    20702089        return;
     2090#endif
    20712091}
    20722092
Note: See TracChangeset for help on using the changeset viewer.