Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/an/if_an.c
Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Lines | |||||
int | int | ||||
an_attach(struct an_softc *sc, int flags) | an_attach(struct an_softc *sc, int flags) | ||||
{ | { | ||||
struct ifnet *ifp; | struct ifnet *ifp; | ||||
int error = EIO; | int error = EIO; | ||||
int i, nrate, mword; | int i, nrate, mword; | ||||
u_int8_t r; | u_int8_t r; | ||||
gone_in(14, "EOL/EOS in 2007"); | |||||
ifp = sc->an_ifp = if_alloc(IFT_ETHER); | ifp = sc->an_ifp = if_alloc(IFT_ETHER); | ||||
if (ifp == NULL) { | if (ifp == NULL) { | ||||
device_printf(sc->an_dev, "can not if_alloc()\n"); | device_printf(sc->an_dev, "can not if_alloc()\n"); | ||||
goto fail; | goto fail; | ||||
} | } | ||||
ifp->if_softc = sc; | ifp->if_softc = sc; | ||||
if_initname(ifp, device_get_name(sc->an_dev), | if_initname(ifp, device_get_name(sc->an_dev), | ||||
device_get_unit(sc->an_dev)); | device_get_unit(sc->an_dev)); | ||||
▲ Show 20 Lines • Show All 3,148 Lines • Show Last 20 Lines |