Lines Matching full:bus
31 * This driver provides a pseudo-bus to enumerate the PCI buses
32 * present on a system using a QPI chipset. It creates a qpi0 bus that
38 #include <sys/bus.h>
82 /* Add a qpi bus device. */ in qpi_identify()
84 panic("Failed to add qpi bus"); in qpi_identify()
91 device_set_desc(dev, "QPI system bus"); in qpi_probe()
96 * Look for a PCI bus with the specified bus address. If one is found,
100 qpi_probe_pcib(device_t dev, int bus) in qpi_probe_pcib() argument
108 * If a PCI bus already exists for this bus number, then in qpi_probe_pcib()
111 if (pci_find_bsf(bus, 0, 0) != NULL) in qpi_probe_pcib()
116 * the bus. If all read values are 0xffffffff this means that in qpi_probe_pcib()
117 * the bus is not present. in qpi_probe_pcib()
120 devid = pci_cfgregread(0, bus, s, 0, PCIR_DEVVENDOR, 4); in qpi_probe_pcib()
131 bus, s, devid & 0xffff); in qpi_probe_pcib()
137 panic("%s: failed to add pci bus %d", device_get_nameunit(dev), in qpi_probe_pcib()
138 bus); in qpi_probe_pcib()
140 qdev->qd_pcibus = bus; in qpi_probe_pcib()
148 int bus; in qpi_attach() local
151 * Each processor socket has a dedicated PCI bus, sometimes in qpi_attach()
155 for (bus = PCI_BUSMAX; bus >= 0; bus--) in qpi_attach()
156 qpi_probe_pcib(dev, bus); in qpi_attach()
163 qpi_print_child(device_t bus, device_t child) in qpi_print_child() argument
169 retval += bus_print_child_header(bus, child); in qpi_print_child()
172 retval += bus_print_child_footer(bus, child); in qpi_print_child()
202 /* Bus interface */
267 device_t bus; in qpi_pcib_map_msi() local
269 bus = device_get_parent(pcib); in qpi_pcib_map_msi()
270 return (PCIB_MAP_MSI(device_get_parent(bus), dev, irq, addr, data)); in qpi_pcib_map_msi()
281 /* Bus interface */