Lines Matching refs:dev
61 __FBSDID("$FreeBSD: releng/11.0/sys/dev/puc/puc_pci.c 267992 2014-06-28 03:56:17Z hselasky $");
76 #include <dev/pci/pcireg.h>
77 #include <dev/pci/pcivar.h>
79 #include <dev/puc/puc_cfg.h>
80 #include <dev/puc/puc_bfe.h>
87 puc_pci_match(device_t dev, const struct puc_cfg *desc)
92 vendor = pci_get_vendor(dev);
93 device = pci_get_device(dev);
94 subvendor = pci_get_subvendor(dev);
95 subdevice = pci_get_subdevice(dev);
115 puc_pci_probe(device_t dev)
119 if ((pci_read_config(dev, PCIR_HDRTYPE, 1) & PCIM_HDRTYPE) != 0)
122 desc = puc_pci_match(dev, puc_pci_devices);
125 return (puc_bfe_probe(dev, desc));
129 puc_pci_attach(device_t dev)
134 sc = device_get_softc(dev);
139 if (pci_alloc_msi(dev, &count) == 0) {
145 error = puc_bfe_attach(dev);
148 pci_release_msi(dev);
154 puc_pci_detach(device_t dev)
159 sc = device_get_softc(dev);
161 error = puc_bfe_detach(dev);
167 error = pci_release_msi(dev);