* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
- * Copyright (C) 2003 Ralf Baechle (ralf@linux-mips.org)
+ * Copyright (C) 2003, 04 Ralf Baechle (ralf@linux-mips.org)
*/
#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/pci.h>
-#include <asm/pci_channel.h>
-
/*
* Indicate whether we respect the PCI setup left by the firmware.
*
if (res->flags & IORESOURCE_IO) {
/* Make sure we start at our min on all hoses */
- if (start - hose->io_resource->start < PCIBIOS_MIN_IO)
+ if (start < PCIBIOS_MIN_IO + hose->io_resource->start)
start = PCIBIOS_MIN_IO + hose->io_resource->start;
/*
start = (start + 0x3ff) & ~0x3ff;
} else if (res->flags & IORESOURCE_MEM) {
/* Make sure we start at our min on all hoses */
- if (start - hose->mem_resource->start < PCIBIOS_MIN_MEM)
+ if (start < PCIBIOS_MIN_MEM + hose->mem_resource->start)
start = PCIBIOS_MIN_MEM + hose->mem_resource->start;
}
if ((err = pcibios_enable_resources(dev, mask)) < 0)
return err;
- return 0;
+ return pcibios_plat_dev_init(dev);
}
static void __init pcibios_fixup_device_resources(struct pci_dev *dev,
#ifdef CONFIG_HOTPLUG
EXPORT_SYMBOL(pcibios_resource_to_bus);
+EXPORT_SYMBOL(PCIBIOS_MIN_IO);
+EXPORT_SYMBOL(PCIBIOS_MIN_MEM);
#endif
char *pcibios_setup(char *str)