Lines Matching refs:dev
34 __FBSDID("$FreeBSD: releng/11.0/sys/dev/if_ndis/if_ndis_pci.c 292411 2015-12-17 21:01:19Z glebius $");
58 #include <dev/pci/pcireg.h>
59 #include <dev/pci/pcivar.h>
60 #include <dev/usb/usb.h>
61 #include <dev/usb/usbdi.h>
68 #include <dev/if_ndis/if_ndisvar.h>
111 ndis_devcompare(bustype, t, dev)
114 device_t dev;
122 vid = pci_get_vendor(dev);
123 did = pci_get_device(dev);
124 subsys = pci_get_subdevice(dev);
125 subsys = (subsys << 16) | pci_get_subvendor(dev);
130 device_set_desc(dev, t->ndis_name);
144 ndis_probe_pci(dev)
145 device_t dev;
155 db = windrv_match((matchfuncptr)ndis_devcompare, dev);
159 windrv_create_pdo(drv, dev);
171 ndis_attach_pci(dev)
172 device_t dev;
184 sc = device_get_softc(dev);
185 unit = device_get_unit(dev);
186 sc->ndis_dev = dev;
188 db = windrv_match((matchfuncptr)ndis_devcompare, dev);
198 pci_enable_busmaster(dev);
200 rl = BUS_GET_RESOURCE_LIST(device_get_parent(dev), dev);
206 sc->ndis_res_io = bus_alloc_resource_any(dev,
210 device_printf(dev,
219 device_printf(dev,
227 bus_alloc_resource_any(dev,
232 device_printf(dev,
241 bus_alloc_resource_any(dev,
246 device_printf(dev,
255 sc->ndis_irq = bus_alloc_resource_any(dev,
259 device_printf(dev,
282 sc->ndis_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ,
285 device_printf(dev, "couldn't route interrupt\n");
296 error = bus_dma_tag_create(bus_get_dma_tag(dev),/* PCI parent */
314 vid = pci_get_vendor(dev);
315 did = pci_get_device(dev);
316 subsys = pci_get_subdevice(dev);
317 subsys = (subsys << 16) | pci_get_subvendor(dev);
337 error = ndis_attach(dev);
344 ndis_get_resource_list(dev, child)
345 device_t dev;
350 sc = device_get_softc(dev);
351 return (BUS_GET_RESOURCE_LIST(device_get_parent(sc->ndis_dev), dev));