]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] PCI: Add 64-bit physical address support to setup_indirect_pci
authorValentine Barshak <vbarshak@ru.mvista.com>
Mon, 8 Oct 2007 12:51:24 +0000 (22:51 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 12 Oct 2007 04:05:17 +0000 (14:05 +1000)
Add 64-bit physical address support to setup_indirect_pci().

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/indirect_pci.c
include/asm-powerpc/pci-bridge.h

index b5d068204aa335829252ffc71b766d8edfbe9a90..cfbd2aae93e8a178e665242f415894b34fce3b41 100644 (file)
@@ -149,9 +149,11 @@ static struct pci_ops indirect_pci_ops =
 };
 
 void __init
-setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data, u32 flags)
+setup_indirect_pci(struct pci_controller* hose,
+                  resource_size_t cfg_addr,
+                  resource_size_t cfg_data, u32 flags)
 {
-       unsigned long base = cfg_addr & PAGE_MASK;
+       resource_size_t base = cfg_addr & PAGE_MASK;
        void __iomem *mbase;
 
        mbase = ioremap(base, PAGE_SIZE);
index e909769b641046a3b718170a20691fdc5fb2141f..dc318458b5fe528a0642b3f5783fe92239ca2511 100644 (file)
@@ -98,7 +98,8 @@ extern int early_find_capability(struct pci_controller *hose, int bus,
                                 int dev_fn, int cap);
 
 extern void setup_indirect_pci(struct pci_controller* hose,
-                              u32 cfg_addr, u32 cfg_data, u32 flags);
+                              resource_size_t cfg_addr,
+                              resource_size_t cfg_data, u32 flags);
 extern void setup_grackle(struct pci_controller *hose);
 extern void __init update_bridge_resource(struct pci_dev *dev,
                                          struct resource *res);