Lines Matching refs:bus

29  * This driver provides a psuedo-bus to enumerate the PCI buses
30 * present on a sytem using a QPI chipset. It creates a qpi0 bus that
39 #include <sys/bus.h>
76 /* Add a qpi bus device. */
78 panic("Failed to add qpi bus");
85 device_set_desc(dev, "QPI system bus");
90 * Look for a PCI bus with the specified bus address. If one is found,
94 qpi_probe_pcib(device_t dev, int bus)
101 * If a PCI bus already exists for this bus number, then
104 if (pci_find_bsf(bus, 0, 0) != NULL)
109 * the bus. A value of 0xffffffff means that the bus is not
112 devid = pci_cfgregread(bus, 0, 0, PCIR_DEVVENDOR, 4);
118 "Device at pci%d.0.0 has non-Intel vendor 0x%x\n", bus,
125 panic("%s: failed to add pci bus %d", device_get_nameunit(dev),
126 bus);
128 qdev->qd_pcibus = bus;
136 int bus;
139 * Each processor socket has a dedicated PCI bus counting down from
142 for (bus = 255;; bus--)
143 if (qpi_probe_pcib(dev, bus) != 0)
150 qpi_print_child(device_t bus, device_t child)
156 retval += bus_print_child_header(bus, child);
159 retval += bus_print_child_footer(bus, child);
241 qpi_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
245 return (pci_cfgregread(bus, slot, func, reg, bytes));
249 qpi_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func,
253 pci_cfgregwrite(bus, slot, func, reg, data, bytes);
260 device_t bus;
262 bus = device_get_parent(pcib);
263 return (PCIB_ALLOC_MSI(device_get_parent(bus), dev, count, maxcount,
270 device_t bus;
272 bus = device_get_parent(pcib);
273 return (PCIB_ALLOC_MSIX(device_get_parent(bus), dev, irq));
280 device_t bus;
282 bus = device_get_parent(pcib);
283 return (PCIB_MAP_MSI(device_get_parent(bus), dev, irq, addr, data));