Lines Matching refs:dev
30 __FBSDID("$FreeBSD: stable/11/sys/dev/sbni/if_sbni_isa.c 315221 2017-03-14 02:06:03Z pfg $");
50 #include <dev/sbni/if_sbnireg.h>
51 #include <dev/sbni/if_sbnivar.h>
78 sbni_probe_isa(device_t dev)
83 error = ISA_PNP_PROBE(device_get_parent(dev), dev, sbni_ids);
87 sc = device_get_softc(dev);
89 sc->io_res = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT,
102 device_set_desc(dev, "Granch SBNI12/ISA adapter");
108 sbni_attach_isa(device_t dev)
114 sc = device_get_softc(dev);
115 sc->dev = dev;
118 dev, SYS_RES_IRQ, &sc->irq_rid, RF_ACTIVE);
123 device_printf(dev, "irq conflict!\n");
136 device_printf(dev, "failed to alloc irq\n");
140 device_printf(dev, "shared irq with %s\n",
146 *(u_int32_t*)&flags = device_get_flags(dev);
148 error = sbni_attach(sc, device_get_unit(dev) * 2, flags);
150 device_printf(dev, "cannot initialize driver\n");
157 dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE,
160 device_printf(dev, "bus_setup_intr\n");