diff options
author | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-02-03 23:30:59 +0000 |
---|---|---|
committer | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-02-03 23:30:59 +0000 |
commit | 216f5f51aa02f8b113aa620ebc14a9631a217a00 (patch) | |
tree | b4b3548ea7d5701d738e356b38180e4cc5191e43 /arch/mips64/sgi-ip27 | |
parent | cf607a2c0c5f386a020052e784d23cc11a5c0178 (diff) |
Fix build problems after the 2.3.38 merge.
Diffstat (limited to 'arch/mips64/sgi-ip27')
-rw-r--r-- | arch/mips64/sgi-ip27/ip27-pci.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-pci.c b/arch/mips64/sgi-ip27/ip27-pci.c index d27db557f..c92230662 100644 --- a/arch/mips64/sgi-ip27/ip27-pci.c +++ b/arch/mips64/sgi-ip27/ip27-pci.c @@ -1,4 +1,4 @@ -/* $Id: ip27-pci.c,v 1.1 2000/01/20 22:50:29 ralf Exp $ +/* $Id: ip27-pci.c,v 1.5 2000/01/31 23:25:06 kanoj Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive @@ -172,6 +172,7 @@ void __init pcibios_fixup_bus(struct pci_bus *b) { unsigned short command; + struct list_head *ln; struct pci_dev *dev; pci_fixup_irqs(pci_swizzle, pci_map_irq); @@ -182,7 +183,8 @@ pcibios_fixup_bus(struct pci_bus *b) * stop working if we program the controllers as not having * PCI_COMMAND_MEMORY, so we have to fudge the mem_flags. */ - for (dev = b->devices; dev; dev = dev->sibling) { + for (ln=b->devices.next; ln != &b->devices; ln=ln->next) { + dev = pci_dev_b(ln); if (PCI_FUNC(dev->devfn) == 0) { if ((PCI_SLOT(dev->devfn) == 0) || (PCI_SLOT(dev->devfn) == 1)) { @@ -198,6 +200,21 @@ pcibios_fixup_bus(struct pci_bus *b) } } +void __init +pcibios_fixup_pbus_ranges(struct pci_bus * bus, + struct pbus_set_ranges_data * ranges) +{ + ranges->io_start -= bus->resource[0]->start; + ranges->io_end -= bus->resource[0]->start; + ranges->mem_start -= bus->resource[1]->start; + ranges->mem_end -= bus->resource[1]->start; +} + +void __init +pcibios_align_resource(void *data, struct resource *res, unsigned long size) +{ +} + char * __init pcibios_setup(char *str) { |