Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/xe/if_xe.c
Show First 20 Lines • Show All 311 Lines • ▼ Show 20 Lines | xe_attach(device_t dev) | ||||
err = bus_setup_intr(dev, scp->irq_res, INTR_TYPE_NET | INTR_MPSAFE, | err = bus_setup_intr(dev, scp->irq_res, INTR_TYPE_NET | INTR_MPSAFE, | ||||
NULL, xe_intr, scp, &scp->intrhand); | NULL, xe_intr, scp, &scp->intrhand); | ||||
if (err) { | if (err) { | ||||
ether_ifdetach(scp->ifp); | ether_ifdetach(scp->ifp); | ||||
mtx_destroy(&scp->lock); | mtx_destroy(&scp->lock); | ||||
return (err); | return (err); | ||||
} | } | ||||
gone_by_fcp101_dev(dev); | |||||
/* Done */ | /* Done */ | ||||
return (0); | return (0); | ||||
} | } | ||||
/* | /* | ||||
* Complete hardware intitialisation and enable output. Exits without doing | * Complete hardware intitialisation and enable output. Exits without doing | ||||
* anything if there's no address assigned to the card, or if media selection | * anything if there's no address assigned to the card, or if media selection | ||||
* is in progress (the latter implies we've already run this function). | * is in progress (the latter implies we've already run this function). | ||||
▲ Show 20 Lines • Show All 1,749 Lines • Show Last 20 Lines |