Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cadence/if_cgem.c
Show First 20 Lines • Show All 805 Lines • ▼ Show 20 Lines | for (;;) { | ||||
else | else | ||||
sc->txring_hd_ptr += nsegs; | sc->txring_hd_ptr += nsegs; | ||||
sc->txring_queued += nsegs; | sc->txring_queued += nsegs; | ||||
/* Kick the transmitter. */ | /* Kick the transmitter. */ | ||||
WR4(sc, CGEM_NET_CTRL, sc->net_ctl_shadow | | WR4(sc, CGEM_NET_CTRL, sc->net_ctl_shadow | | ||||
CGEM_NET_CTRL_START_TX); | CGEM_NET_CTRL_START_TX); | ||||
/* If there is a BPF listener, bounce a copy to to him. */ | /* If there is a BPF listener, bounce a copy to him. */ | ||||
ETHER_BPF_MTAP(ifp, m); | ETHER_BPF_MTAP(ifp, m); | ||||
} | } | ||||
} | } | ||||
static void | static void | ||||
cgem_start(if_t ifp) | cgem_start(if_t ifp) | ||||
{ | { | ||||
struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); | struct cgem_softc *sc = (struct cgem_softc *) if_getsoftc(ifp); | ||||
▲ Show 20 Lines • Show All 1,046 Lines • Show Last 20 Lines |