Lines Matching refs:dev
42 __FBSDID("$FreeBSD: releng/11.0/sys/dev/stg/tmc18c30_isa.c 274760 2014-11-20 20:50:05Z jhb $");
58 #include <dev/stg/tmc18c30reg.h>
59 #include <dev/stg/tmc18c30var.h>
60 #include <dev/stg/tmc18c30.h>
63 stg_isa_probe(device_t dev)
65 struct stg_softc *sc = device_get_softc(dev);
70 error = stg_alloc_resource(dev);
75 if (stg_probe(dev) == 0) {
76 stg_release_resource(dev);
80 stg_release_resource(dev);
86 stg_isa_attach(device_t dev)
88 struct stg_softc *sc = device_get_softc(dev);
93 error = stg_alloc_resource(dev);
98 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_CAM | INTR_ENTROPY |
101 stg_release_resource(dev);
105 if (stg_attach(dev) == 0) {
106 stg_release_resource(dev);