Lines Matching defs:dev
45 #include <dev/ofw/openfirm.h>
46 #include <dev/ofw/ofw_bus.h>
47 #include <dev/ofw/ofw_bus_subr.h>
49 #include <dev/pci/pcireg.h>
50 #include <dev/pci/pcivar.h>
51 #include <dev/pci/pci_host_generic.h>
52 #include <dev/pci/pcib_private.h>
94 thunder_pcie_fdt_probe(device_t dev)
102 if (!ofw_bus_status_okay(dev))
105 if (ofw_bus_is_compatible(dev, "pci-host-ecam-generic") ||
106 ofw_bus_is_compatible(dev, "cavium,thunder-pcie") ||
107 ofw_bus_is_compatible(dev, "cavium,pci-host-thunder-ecam")) {
108 device_set_desc(dev, "Cavium Integrated PCI/PCI-E Controller");
116 thunder_pcie_fdt_attach(device_t dev)
120 sc = device_get_softc(dev);
121 thunder_pcie_identify_ecam(dev, &sc->ecam);
124 return (pci_host_generic_attach(dev));
149 thunder_pcie_fdt_alloc_resource(device_t dev, device_t child, int type, int *rid,
154 return (pci_host_generic_alloc_resource(dev, child,
157 return (thunder_pcie_alloc_resource(dev, child,