|
@@ -1492,6 +1492,11 @@ int pcibios_enable_device(struct pci_dev *dev, int mask)
|
|
return pci_enable_resources(dev, mask);
|
|
return pci_enable_resources(dev, mask);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+resource_size_t pcibios_io_space_offset(struct pci_controller *hose)
|
|
|
|
+{
|
|
|
|
+ return (unsigned long) hose->io_base_virt - _IO_BASE;
|
|
|
|
+}
|
|
|
|
+
|
|
static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, struct list_head *resources)
|
|
static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, struct list_head *resources)
|
|
{
|
|
{
|
|
struct resource *res;
|
|
struct resource *res;
|
|
@@ -1516,8 +1521,7 @@ static void __devinit pcibios_setup_phb_resources(struct pci_controller *hose, s
|
|
(unsigned long long)res->start,
|
|
(unsigned long long)res->start,
|
|
(unsigned long long)res->end,
|
|
(unsigned long long)res->end,
|
|
(unsigned long)res->flags);
|
|
(unsigned long)res->flags);
|
|
- pci_add_resource_offset(resources, res,
|
|
|
|
- (resource_size_t) hose->io_base_virt - _IO_BASE);
|
|
|
|
|
|
+ pci_add_resource_offset(resources, res, pcibios_io_space_offset(hose));
|
|
|
|
|
|
/* Hookup PHB Memory resources */
|
|
/* Hookup PHB Memory resources */
|
|
for (i = 0; i < 3; ++i) {
|
|
for (i = 0; i < 3; ++i) {
|