Lines Matching defs:bus
17 #define PCI_CONF1_ADDRESS(bus, devfn, reg) \
18 (0x80000000 | ((reg & 0xF00) << 16) | (bus << 16) \
21 static int pci_conf1_read(unsigned int seg, unsigned int bus,
26 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095)) {
33 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8);
52 static int pci_conf1_write(unsigned int seg, unsigned int bus,
57 if (seg || (bus > 255) || (devfn > 255) || (reg > 4095))
62 outl(PCI_CONF1_ADDRESS(bus, devfn, reg), 0xCF8);
95 static int pci_conf2_read(unsigned int seg, unsigned int bus,
102 if ((bus > 255) || (devfn > 255) || (reg > 255)) {
116 outb((u8)bus, 0xCFA);
137 static int pci_conf2_write(unsigned int seg, unsigned int bus,
144 if ((bus > 255) || (devfn > 255) || (reg > 255))
156 outb((u8)bus, 0xCFA);
188 * whether bus 00 contains a host bridge (this is similar to checking