Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/bhnd/bcma/bcma_nexus.c
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | bcma_nexus_probe(device_t dev) | ||||
if (sc->bcma_cid.chip_type != BHND_CHIPTYPE_BCMA) | if (sc->bcma_cid.chip_type != BHND_CHIPTYPE_BCMA) | ||||
return (ENXIO); | return (ENXIO); | ||||
if ((error = bcma_probe(dev)) > 0) { | if ((error = bcma_probe(dev)) > 0) { | ||||
device_printf(dev, "error %d in probe\n", error); | device_printf(dev, "error %d in probe\n", error); | ||||
return (error); | return (error); | ||||
} | } | ||||
/* Set device description */ | |||||
bhnd_set_default_bus_desc(dev, &sc->bcma_cid); | |||||
return (0); | return (0); | ||||
} | } | ||||
static int | static int | ||||
bcma_nexus_attach(device_t dev) | bcma_nexus_attach(device_t dev) | ||||
{ | { | ||||
struct bcma_nexus_softc *sc; | struct bcma_nexus_softc *sc; | ||||
struct resource *erom_res; | struct resource *erom_res; | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |