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. */
84 panic("Failed to add qpi bus");
91 device_set_desc(dev, "QPI system bus");
96 * Look for a PCI bus with the specified bus address. If one is found,
100 qpi_probe_pcib(device_t dev, int bus)
108 * If a PCI bus already exists for this bus number, then
111 if (pci_find_bsf(bus, 0, 0) != NULL)
116 * the bus. If all read values are 0xffffffff this means that
117 * the bus is not present.
120 devid = pci_cfgregread(0, bus, s, 0, PCIR_DEVVENDOR, 4);
131 bus, s, devid & 0xffff);
137 panic("%s: failed to add pci bus %d", device_get_nameunit(dev),
138 bus);
140 qdev->qd_pcibus = bus;
148 int bus;
151 * Each processor socket has a dedicated PCI bus, sometimes
155 for (bus = PCI_BUSMAX; bus >= 0; bus--)
156 qpi_probe_pcib(dev, bus);
163 qpi_print_child(device_t bus, device_t child)
169 retval += bus_print_child_header(bus, child);
172 retval += bus_print_child_footer(bus, child);
202 /* Bus interface */
267 device_t bus;
269 bus = device_get_parent(pcib);
270 return (PCIB_MAP_MSI(device_get_parent(bus), dev, irq, addr, data));
281 /* Bus interface */