Lines Matching defs:bus
40 #define CFGOFFSET(bus, devfn, where) (((bus)<<16) + ((devfn)<<8) + (where))
41 #define CFGADDR(bus, devfn, where) CFGOFFSET((bus)->number, (devfn), where)
88 * In PCI Device Mode, hide everything on bus 0 except the LDT host
91 static int sb1250_pci_can_access(struct pci_bus *bus, int devfn)
98 if (bus->number == 0) {
116 static int sb1250_pcibios_read(struct pci_bus *bus, unsigned int devfn,
126 if (sb1250_pci_can_access(bus, devfn))
127 data = READCFG32(CFGADDR(bus, devfn, where));
141 static int sb1250_pcibios_write(struct pci_bus *bus, unsigned int devfn,
144 u32 cfgaddr = CFGADDR(bus, devfn, where);
152 if (!sb1250_pci_can_access(bus, devfn))
217 * See if the PCI bus has been configured by the firmware.