Lines Matching refs:slot

249 fdt_pci_route_intr(int bus, int slot, int func, int pin,
265 addr = (bus << 16) | (slot << 11) | (func << 8);
357 fdt_pci_config_bar(device_t dev, int bus, int slot, int func, int bar)
362 fdt_pci_config_normal(device_t dev, int bus, int slot, int func)
367 command = PCIB_READ_CONFIG(dev, bus, slot, func, PCIR_COMMAND, 1);
369 PCIB_WRITE_CONFIG(dev, bus, slot, func, PCIR_COMMAND, command, 1);
374 bar += fdt_pci_config_bar(dev, bus, slot, func, bar);
377 intpin = PCIB_READ_CONFIG(dev, bus, slot, func, PCIR_INTPIN, 1);
378 intline = fsl_pcib_route_int(dev, bus, slot, func, intpin);
379 PCIB_WRITE_CONFIG(dev, bus, slot, func, PCIR_INTLINE, intline, 1);
382 PCIB_WRITE_CONFIG(dev, bus, slot, func, PCIR_COMMAND, command, 1);
386 fdt_pci_config_bridge(device_t dev, int bus, int secbus, int slot, int func)
391 command = PCIB_READ_CONFIG(dev, bus, slot, func, PCIR_COMMAND, 1);
393 PCIB_WRITE_CONFIG(dev, bus, slot, func, PCIR_COMMAND, command, 1);
399 bar += fsl_pcib_init_bar(sc, bus, slot, func,
403 intpin = fsl_pcib_read_config(sc->sc_dev, bus, slot,
405 intline = fsl_pcib_route_int(sc, bus, slot, func,
407 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
411 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
417 class = fsl_pcib_read_config(sc->sc_dev, bus, slot,
419 subclass = fsl_pcib_read_config(sc->sc_dev, bus, slot,
431 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
433 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
435 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
437 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
441 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
443 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
447 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
449 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
451 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
453 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
458 slot, func, PCIR_PRIBUS_1, 1);
460 slot, func, PCIR_SECBUS_1, 1);
462 slot, func, PCIR_SUBBUS_1, 1);
483 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
485 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
487 fsl_pcib_write_config(sc->sc_dev, bus, slot, func,
493 fdt_pci_config_slot(device_t dev, int bus, int secbus, int slot)
501 hdrtype = PCIB_READ_CONFIG(dev, bus, slot, func,
508 vendor = PCIB_READ_CONFIG(dev, bus, slot, func,
514 fdt_pci_config_normal(dev, bus, slot, func);
517 slot, func);
526 int func, maxfunc, secbus, slot;
529 for (slot = 0; slot <= maxslot; slot++)
530 secbus = fdt_pci_config_slot(dev, bus, secbus, slot);
562 /* Get the maximum slot number for bus-enumeration. */