Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/le/am7990.c
Show First 20 Lines • Show All 467 Lines • ▼ Show 20 Lines | #endif | ||||
/* | /* | ||||
* Pretend we have carrier; if we don't this will be cleared shortly. | * Pretend we have carrier; if we don't this will be cleared shortly. | ||||
*/ | */ | ||||
if (!(sc->sc_flags & LE_CARRIER)) | if (!(sc->sc_flags & LE_CARRIER)) | ||||
if_link_state_change(ifp, LINK_STATE_UP); | if_link_state_change(ifp, LINK_STATE_UP); | ||||
sc->sc_flags |= LE_CARRIER; | sc->sc_flags |= LE_CARRIER; | ||||
if (isr & LE_C0_RINT) | if (isr & LE_C0_RINT) | ||||
am7990_rint(sc); | NET_EPOCH_WRAP(am7990_rint, (sc)); | ||||
if (isr & LE_C0_TINT) | if (isr & LE_C0_TINT) | ||||
am7990_tint(sc); | am7990_tint(sc); | ||||
/* Enable interrupts again. */ | /* Enable interrupts again. */ | ||||
(*sc->sc_wrcsr)(sc, LE_CSR0, LE_C0_INEA); | (*sc->sc_wrcsr)(sc, LE_CSR0, LE_C0_INEA); | ||||
if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd)) | if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd)) | ||||
am7990_start_locked(sc); | am7990_start_locked(sc); | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |