Lines Matching refs:dev
30 * $FreeBSD: releng/11.0/sys/dev/bhnd/bcma/bcma_nexus.c 301698 2016-06-08 21:38:51Z landonf $
34 __FBSDID("$FreeBSD: releng/11.0/sys/dev/bhnd/bcma/bcma_nexus.c 301698 2016-06-08 21:38:51Z landonf $");
45 #include <dev/bhnd/bhnd_ids.h>
46 #include <dev/bhnd/bhnd_nexusvar.h>
47 #include <dev/bhnd/cores/chipc/chipcreg.h>
65 bcma_nexus_probe(device_t dev)
70 sc = device_get_softc(dev);
74 if ((error = bhnd_nexus_read_chipid(dev, &sc->bcma_cid)))
80 if ((error = bcma_probe(dev)) > 0) {
81 device_printf(dev, "error %d in probe\n", error);
89 bcma_nexus_attach(device_t dev)
96 sc = device_get_softc(dev);
100 erom_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid,
105 device_printf(dev, "failed to allocate EROM resource\n");
109 error = bcma_add_children(dev, erom_res, BCMA_EROM_TABLE_START);
110 bus_release_resource(dev, SYS_RES_MEMORY, rid, erom_res);
115 return (bcma_attach(dev));
119 bcma_nexus_get_chipid(device_t dev, device_t child) {
120 struct bcma_nexus_softc *sc = device_get_softc(dev);