Lines Matching defs:dev
37 __FBSDID("$FreeBSD: stable/11/sys/dev/rp/rp_pci.c 356020 2019-12-22 19:06:45Z kevans $");
54 #include <dev/rp/rpreg.h>
55 #include <dev/rp/rpvar.h>
57 #include <dev/pci/pcireg.h>
58 #include <dev/pci/pcivar.h>
108 static int rp_pciprobe(device_t dev);
109 static int rp_pciattach(device_t dev);
111 static int rp_pcidetach(device_t dev);
112 static int rp_pcishutdown(device_t dev);
131 rp_pciprobe(device_t dev)
136 if (pci_get_vendor(dev) == RP_VENDOR_ID)
140 device_set_desc(dev, s);
148 rp_pciattach(device_t dev)
156 ctlp = device_get_softc(dev);
158 ctlp->dev = dev;
159 unit = device_get_unit(dev);
169 device_printf(dev, "rp_pciattach: Out of memory.\n");
176 switch (pci_get_device(dev)) {
186 ctlp->io[0] = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
189 device_printf(dev, "ioaddr mapping failed for RocketPort(PCI).\n");
196 FREQ_DIS, 0, pci_get_device(dev));
217 rp_pcidetach(device_t dev)
221 ctlp = device_get_softc(dev);
228 rp_pcishutdown(device_t dev)
232 ctlp = device_get_softc(dev);
244 bus_release_resource(ctlp->dev, SYS_RES_IOPORT, ctlp->io_rid[0], ctlp->io[0]);
272 /*device_printf(CtlP->dev, "aiop %d.\n", i);*/
274 /*device_printf(CtlP->dev, "ID = %d.\n", CtlP->AiopID[i]);*/
304 /*device_printf(CtlP->dev, "%d channels.\n", CtlP->AiopNumChan[i]);*/
306 /*device_printf(CtlP->dev, "configuring clock prescaler.\n");*/
308 /*device_printf(CtlP->dev, "configured clock prescaler.\n");*/