Lines Matching refs:bus

63 legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,  in legacy_pcib_read_config()  argument
66 return(pci_cfgregread(0, bus, slot, func, reg, bytes)); in legacy_pcib_read_config()
72 legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func, in legacy_pcib_write_config() argument
75 pci_cfgregwrite(0, bus, slot, func, reg, data, bytes); in legacy_pcib_write_config()
99 device_t bus; in legacy_pcib_alloc_msi() local
101 bus = device_get_parent(pcib); in legacy_pcib_alloc_msi()
102 return (PCIB_ALLOC_MSI(device_get_parent(bus), dev, count, maxcount, in legacy_pcib_alloc_msi()
109 device_t bus; in legacy_pcib_alloc_msix() local
111 bus = device_get_parent(pcib); in legacy_pcib_alloc_msix()
112 return (PCIB_ALLOC_MSIX(device_get_parent(bus), dev, irq)); in legacy_pcib_alloc_msix()
119 device_t bus, hostb; in legacy_pcib_map_msi() local
122 bus = device_get_parent(pcib); in legacy_pcib_map_msi()
123 error = PCIB_MAP_MSI(device_get_parent(bus), dev, irq, addr, data); in legacy_pcib_map_msi()
139 legacy_pcib_is_host_bridge(int bus, int slot, int func, in legacy_pcib_is_host_bridge() argument
154 *busnum = bus; in legacy_pcib_is_host_bridge()
191 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0x4a, 1); in legacy_pcib_is_host_bridge()
205 pxb[0] = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_is_host_bridge()
207 pxb[1] = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_is_host_bridge()
209 pxb[2] = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_is_host_bridge()
211 pxb[3] = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_is_host_bridge()
302 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0x44, 1); in legacy_pcib_is_host_bridge()
313 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0x44, 1); in legacy_pcib_is_host_bridge()
318 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0x44, 1); in legacy_pcib_is_host_bridge()
323 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0x44, 1); in legacy_pcib_is_host_bridge()
330 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0x44, 1); in legacy_pcib_is_host_bridge()
340 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0x44, 1); in legacy_pcib_is_host_bridge()
346 *busnum = legacy_pcib_read_config(0, bus, slot, func, 0xc8, 1); in legacy_pcib_is_host_bridge()
378 int bus, slot, func; in legacy_pcib_identify() local
398 bus = 0; in legacy_pcib_identify()
402 hdrtype = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_identify()
427 id = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_identify()
431 class = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_identify()
433 subclass = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_identify()
436 s = legacy_pcib_is_host_bridge(bus, slot, func, in legacy_pcib_identify()
478 if (found824xx && bus == 0) { in legacy_pcib_identify()
479 bus++; in legacy_pcib_identify()
513 int bus; in legacy_pcib_attach() local
515 bus = pcib_get_bus(dev); in legacy_pcib_attach()
520 if (pci_pir_probe(bus, 0)) { in legacy_pcib_attach()
728 static int pcibios_pcib_probe(device_t bus);
747 int bus; in pcibios_pcib_probe() local
752 bus = pci_read_config(dev, PCIR_SECBUS_1, 1); in pcibios_pcib_probe()
753 if (bus == 0) in pcibios_pcib_probe()
755 if (!pci_pir_probe(bus, 1)) in pcibios_pcib_probe()