Lines Matching refs:slot
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()
120 int error, func, slot; in legacy_pcib_map_msi() local
127 slot = legacy_get_pcislot(pcib); in legacy_pcib_map_msi()
129 if (slot == -1 || func == -1) in legacy_pcib_map_msi()
131 hostb = pci_find_bsf(0, slot, func); in legacy_pcib_map_msi()
133 slot, func)); in legacy_pcib_map_msi()
139 legacy_pcib_is_host_bridge(int bus, int slot, int func, in legacy_pcib_is_host_bridge() argument
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()
215 switch (slot) { 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
400 for (slot = 0; slot <= PCI_SLOTMAX; slot++) { 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()
468 legacy_set_pcislot(child, slot); in legacy_pcib_identify()