Lines Matching defs:bus_dev_fn
174 void pci16_w_addr(uint16_t bus_dev_fn, uint16_t ofs, uint16_t cfg_addr);
188 void PCIxx(select_reg)(uint16_t bus_dev_fn, uint16_t ofs)
190 pci16_w_addr(bus_dev_fn, ofs & ~3, PCI_CFG_ADDR);
224 uint16_t bus_dev_fn;
238 bus_dev_fn = 0; /* Start at the beginning. */
249 if ((bus_dev_fn & 7) == 0) {
250 PCIxx(select_reg)(bus_dev_fn, PCI_HEADER_TYPE);
253 bus_dev_fn += 8; /* Skip to next device. */
270 if ((hdr_type & 7) == 1 && (bus_dev_fn >> 8) == 0) {
272 PCIxx(select_reg)(bus_dev_fn, PCI_BRIDGE_SUBORD);
279 PCIxx(select_reg)(bus_dev_fn, search_class ? PCI_REV_ID : PCI_VEN_ID);
289 bus_dev_fn >> 8, bus_dev_fn >> 3 & 31, bus_dev_fn & 7);
301 bus_dev_fn += step;
302 } while ((bus_dev_fn >> 8) <= max_bus);
305 BX_DEBUG_PCI("PCI: Device found (%02X:%%02X:%01X)\n", bus_dev_fn >> 8,
306 bus_dev_fn >> 3 & 31, bus_dev_fn & 7);
308 return index == INDEX_DEV_FOUND ? bus_dev_fn : BUSDEVFN_NOT_FOUND;