Lines Matching refs:dev
41 __FBSDID("$FreeBSD: releng/11.0/sys/dev/stg/tmc18c30_pci.c 274760 2014-11-20 20:50:05Z jhb $");
55 #include <dev/pci/pcireg.h>
56 #include <dev/pci/pcivar.h>
60 #include <dev/stg/tmc18c30reg.h>
61 #include <dev/stg/tmc18c30var.h>
62 #include <dev/stg/tmc18c30.h>
74 stg_pci_probe(device_t dev)
76 u_int32_t type = pci_get_devid(dev);
82 device_set_desc(dev, stg->desc);
89 stg_pci_attach(device_t dev)
91 struct stg_softc *sc = device_get_softc(dev);
96 error = stg_alloc_resource(dev);
102 error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_CAM | INTR_ENTROPY |
105 stg_release_resource(dev);
109 if (stg_attach(dev) == 0) {
110 stg_release_resource(dev);