Changeset e392c989 in rtems-libbsd


Ignore:
Timestamp:
Mar 27, 2015, 10:14:44 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, master
Children:
ec2e4b1
Parents:
46f0b8b
git-author:
Sebastian Huber <sebastian.huber@…> (03/27/15 10:14:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/10/17 08:53:33)
Message:

if_dwc: Move interrupt handler install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/dwc/if_dwc.c

    r46f0b8b re392c989  
    12281228        callout_init_mtx(&sc->dwc_callout, &sc->mtx, 0);
    12291229
    1230         /* Setup interrupt handler. */
    1231         error = bus_setup_intr(dev, sc->res[1], INTR_TYPE_NET | INTR_MPSAFE,
    1232             NULL, dwc_intr, sc, &sc->intr_cookie);
    1233         if (error != 0) {
    1234                 device_printf(dev, "could not setup interrupt handler.\n");
    1235                 return (ENXIO);
    1236         }
    1237 
    12381230        /* Set up the ethernet interface. */
    12391231        sc->ifp = ifp = if_alloc(IFT_ETHER);
     
    12611253        }
    12621254        sc->mii_softc = device_get_softc(sc->miibus);
     1255
     1256        /* Setup interrupt handler. */
     1257        error = bus_setup_intr(dev, sc->res[1], INTR_TYPE_NET | INTR_MPSAFE,
     1258            NULL, dwc_intr, sc, &sc->intr_cookie);
     1259        if (error != 0) {
     1260                device_printf(dev, "could not setup interrupt handler.\n");
     1261                return (ENXIO);
     1262        }
    12631263
    12641264        /* All ready to run, attach the ethernet interface. */
Note: See TracChangeset for help on using the changeset viewer.