Changeset d5ad68a in rtems-libbsd


Ignore:
Timestamp:
Mar 27, 2015, 10:14:44 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
6a4b5a4
Parents:
8f12e89b
git-author:
Sebastian Huber <sebastian.huber@…> (03/27/15 10:14:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/01/15 07:15:29)
Message:

if_dwc: Move interrupt handler install

File:
1 edited

Legend:

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

    r8f12e89b rd5ad68a  
    12001200        callout_init_mtx(&sc->dwc_callout, &sc->mtx, 0);
    12011201
    1202         /* Setup interrupt handler. */
    1203         error = bus_setup_intr(dev, sc->res[1], INTR_TYPE_NET | INTR_MPSAFE,
    1204             NULL, dwc_intr, sc, &sc->intr_cookie);
    1205         if (error != 0) {
    1206                 device_printf(dev, "could not setup interrupt handler.\n");
    1207                 return (ENXIO);
    1208         }
    1209 
    12101202        /* Set up the ethernet interface. */
    12111203        sc->ifp = ifp = if_alloc(IFT_ETHER);
     
    12341226        }
    12351227        sc->mii_softc = device_get_softc(sc->miibus);
     1228
     1229        /* Setup interrupt handler. */
     1230        error = bus_setup_intr(dev, sc->res[1], INTR_TYPE_NET | INTR_MPSAFE,
     1231            NULL, dwc_intr, sc, &sc->intr_cookie);
     1232        if (error != 0) {
     1233                device_printf(dev, "could not setup interrupt handler.\n");
     1234                return (ENXIO);
     1235        }
    12361236
    12371237        /* All ready to run, attach the ethernet interface. */
Note: See TracChangeset for help on using the changeset viewer.