diff options
author | Valentine Barshak <vbarshak@ru.mvista.com> | 2007-10-08 08:51:24 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-10-12 00:05:17 -0400 |
commit | d94bad827d9a0df939a0e7ed081a2780b9f72c4b (patch) | |
tree | ee4d5dd0c9bcaf49438eb3660baf246482281764 | |
parent | 8087ebd5a121ac6bf5a8eba2459c01d3659c3e31 (diff) |
[POWERPC] PCI: Add 64-bit physical address support to setup_indirect_pci
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>
-rw-r--r-- | arch/powerpc/sysdev/indirect_pci.c | 6 | ||||
-rw-r--r-- | include/asm-powerpc/pci-bridge.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/arch/powerpc/sysdev/indirect_pci.c b/arch/powerpc/sysdev/indirect_pci.c index b5d068204aa3..cfbd2aae93e8 100644 --- a/arch/powerpc/sysdev/indirect_pci.c +++ b/arch/powerpc/sysdev/indirect_pci.c | |||
@@ -149,9 +149,11 @@ static struct pci_ops indirect_pci_ops = | |||
149 | }; | 149 | }; |
150 | 150 | ||
151 | void __init | 151 | void __init |
152 | setup_indirect_pci(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data, u32 flags) | 152 | setup_indirect_pci(struct pci_controller* hose, |
153 | resource_size_t cfg_addr, | ||
154 | resource_size_t cfg_data, u32 flags) | ||
153 | { | 155 | { |
154 | unsigned long base = cfg_addr & PAGE_MASK; | 156 | resource_size_t base = cfg_addr & PAGE_MASK; |
155 | void __iomem *mbase; | 157 | void __iomem *mbase; |
156 | 158 | ||
157 | mbase = ioremap(base, PAGE_SIZE); | 159 | mbase = ioremap(base, PAGE_SIZE); |
diff --git a/include/asm-powerpc/pci-bridge.h b/include/asm-powerpc/pci-bridge.h index e909769b6410..dc318458b5fe 100644 --- a/include/asm-powerpc/pci-bridge.h +++ b/include/asm-powerpc/pci-bridge.h | |||
@@ -98,7 +98,8 @@ extern int early_find_capability(struct pci_controller *hose, int bus, | |||
98 | int dev_fn, int cap); | 98 | int dev_fn, int cap); |
99 | 99 | ||
100 | extern void setup_indirect_pci(struct pci_controller* hose, | 100 | extern void setup_indirect_pci(struct pci_controller* hose, |
101 | u32 cfg_addr, u32 cfg_data, u32 flags); | 101 | resource_size_t cfg_addr, |
102 | resource_size_t cfg_data, u32 flags); | ||
102 | extern void setup_grackle(struct pci_controller *hose); | 103 | extern void setup_grackle(struct pci_controller *hose); |
103 | extern void __init update_bridge_resource(struct pci_dev *dev, | 104 | extern void __init update_bridge_resource(struct pci_dev *dev, |
104 | struct resource *res); | 105 | struct resource *res); |