--- linux.cvs/arch/mips/cobalt/pci.c	Tue May 28 07:49:05 2002
+++ linux/arch/mips/cobalt/pci.c	Fri May 31 17:28:44 2002
@@ -49,6 +51,9 @@
 	unsigned long memaddr_base = 0x12000000;
 	int i;
 
+	ioaddr_base += 0x2000 * PCI_FUNC(dev->devfn);
+	memaddr_base += 0x2000 * PCI_FUNC(dev->devfn);
+
 	/* Enable bits in COMMAND so driver can talk to it. */
 	pci_read_config_word(dev, PCI_COMMAND, &pci_cmd);
 	pci_cmd |= (PCI_COMMAND_IO | PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
