Changeset 90ea822 in libbsdport


Ignore:
Timestamp:
Feb 20, 2009, 3:19:03 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
881e388
Parents:
40f5730
Message:

2009-02-20 Joel Sherrill <joel.sherrill@…>

  • bsd_eth_drivers/re/if_re.c: Almost runs.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r40f5730 r90ea822  
     12009-02-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * bsd_eth_drivers/re/if_re.c: Almost runs.
     4
    152009-02-19      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • bsd_eth_drivers/if_re/if_re.c

    r40f5730 r90ea822  
    349349#else
    350350
    351 static int
    352 re_irq_check_dis(device_t d)
    353 {
    354   // struct re_softc *sc = device_get_softc(d);
    355   printk( "check_dis\n" );
    356   return 0;
    357 }
    358 
    359 static void
    360 re_irq_en(device_t d)
    361 {
    362   // struct re_softc *sc = device_get_softc(d);
    363   /* This can be called from IRQ context -- since all register accesses
    364    * involve RAP we must take care to preserve it across this routine!
    365    */
    366   printk( "irq_en\n" );
    367 }
    368 
    369 
    370351static device_method_t re_methods = {
    371352        probe:          re_probe,
     
    373354        shutdown:       re_shutdown,
    374355        detach:         re_detach,
    375         irq_check_dis:  re_irq_check_dis,
    376         irq_en:         re_irq_en,
    377356};
    378357
     
    14051384        TASK_INIT(&sc->rl_inttask, 0, re_int_task, sc);
    14061385
     1386#ifdef __rtems__
     1387        taskqueue_create_fast("re_taskq", M_NOWAIT,
     1388            taskqueue_thread_enqueue, &taskqueue_fast);
     1389        taskqueue_start_threads(&taskqueue_fast, 1, PI_NET, "%s taskq",
     1390            device_get_nameunit(dev));
     1391#endif
     1392
    14071393        /*
    14081394         * Call MI attach routine.
     
    14491435        /* Hook interrupt last to avoid having to lock softc */
    14501436        error = bus_setup_intr(dev, sc->rl_irq, INTR_TYPE_NET | INTR_MPSAFE |
    1451             INTR_FAST, NULL, re_intr, sc, &sc->rl_intrhand);
     1437            INTR_FAST, re_intr, NULL, sc, &sc->rl_intrhand);
    14521438        if (error) {
    14531439                device_printf(dev, "couldn't set up irq\n");
     
    20752061        sc = arg;
    20762062
    2077 printk( "re_intr " );
    20782063        status = CSR_READ_2(sc, RL_ISR);
    20792064        if (status == 0xFFFF || (status & RL_INTRS_CPLUS) == 0)
Note: See TracChangeset for help on using the changeset viewer.