Lines Matching defs:bus
29 * PCI bus renumbering support.
39 #include <sys/bus.h>
48 /* this array lists the parent for each bus number */
57 pci_bus_fixup(pci_chipset_tag_t pc, int bus)
66 bus_max = bus;
72 /* Reset bridge configuration on this bus */
73 pci_bridge_foreach(pc, bus, bus, pci_bridge_reset, 0);
75 maxdevs = pci_bus_maxdevs(pc, bus);
78 tag = pci_make_tag(pc, bus, device, 0);
99 tag = pci_make_tag(pc, bus, device, function);
119 /* Assign the bridge's secondary bus #. */
124 reg |= bus | (bus_max << 8) | (0xff << 16);
127 /* Scan subordinate bus. */
132 reg |= bus | (bus_max << 8) | (bus_sub << 16);
136 pci_bus_parent[bus_max]=bus;
142 bridge, bus, bus_max, bus_sub);
144 /* Next bridge's secondary bus #. */
151 return (bus_max); /* last # of subordinate bus */
154 /* Reset bus-bridge configuration */
162 reg |= 0x00ffffff; /* max bus # */