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)
81 * In PCI Device Mode, hide everything on bus 0 except the LDT host
84 static int bcm1480_pci_can_access(struct pci_bus *bus, int devfn)
91 if (bus->number == 0) {
107 static int bcm1480_pcibios_read(struct pci_bus *bus, unsigned int devfn,
117 if (bcm1480_pci_can_access(bus, devfn))
118 data = READCFG32(CFGADDR(bus, devfn, where));
132 static int bcm1480_pcibios_write(struct pci_bus *bus, unsigned int devfn,
135 u32 cfgaddr = CFGADDR(bus, devfn, where);
143 if (!bcm1480_pci_can_access(bus, devfn))
208 * See if the PCI bus has been configured by the firmware.