Lines 1118-1123
dwc_init_locked(struct dwc_softc *sc)
Link Here
|
1118 |
if (if_getdrvflags(ifp) & IFF_DRV_RUNNING) |
1118 |
if (if_getdrvflags(ifp) & IFF_DRV_RUNNING) |
1119 |
return; |
1119 |
return; |
1120 |
|
1120 |
|
|
|
1121 |
/* |
1122 |
* Call mii_mediachg() which will call back into dwc_miibus_statchg() |
1123 |
* to set up the remaining config registers based on current media. |
1124 |
*/ |
1125 |
mii_mediachg(sc->mii_softc); |
1121 |
dwc_setup_rxfilter(sc); |
1126 |
dwc_setup_rxfilter(sc); |
1122 |
dwc_setup_core(sc); |
1127 |
dwc_setup_core(sc); |
1123 |
dwc_enable_mac(sc, true); |
1128 |
dwc_enable_mac(sc, true); |
Lines 1125-1135
dwc_init_locked(struct dwc_softc *sc)
Link Here
|
1125 |
|
1130 |
|
1126 |
if_setdrvflagbits(ifp, IFF_DRV_RUNNING, IFF_DRV_OACTIVE); |
1131 |
if_setdrvflagbits(ifp, IFF_DRV_RUNNING, IFF_DRV_OACTIVE); |
1127 |
|
1132 |
|
1128 |
/* |
|
|
1129 |
* Call mii_mediachg() which will call back into dwc_miibus_statchg() |
1130 |
* to set up the remaining config registers based on current media. |
1131 |
*/ |
1132 |
mii_mediachg(sc->mii_softc); |
1133 |
callout_reset(&sc->dwc_callout, hz, dwc_tick, sc); |
1133 |
callout_reset(&sc->dwc_callout, hz, dwc_tick, sc); |
1134 |
} |
1134 |
} |
1135 |
|
1135 |
|