diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-05-13 03:44:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-28 00:52:45 -0400 |
commit | 2311b1f2bbd36fa5f366a7448c718b2556e0f02c (patch) | |
tree | 10e836c5c34893f8098464a5ae15aba351a7bb2a /include/asm-ppc64/pci.h | |
parent | a0d399a808916d22c1c222c6b5ca4e8edd6d91a9 (diff) |
[PATCH] PCI: fix-pci-mmap-on-ppc-and-ppc64.patch
This is an updated version of Ben's fix-pci-mmap-on-ppc-and-ppc64.patch
which is in 2.6.12-rc4-mm1.
It fixes the patch to work on PPC iSeries, removes some debug printks
at Ben's request, and incorporates your
fix-pci-mmap-on-ppc-and-ppc64-fix.patch also.
Originally from Benjamin Herrenschmidt <benh@kernel.crashing.org>
This patch was discussed at length on linux-pci and so far, the last
iteration of it didn't raise any comment. It's effect is a nop on
architecture that don't define the new pci_resource_to_user() callback
anyway. It allows architecture like ppc who put weird things inside of
PCI resource structures to convert to some different value for user
visible ones. It also fixes mmap'ing of IO space on those archs.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/asm-ppc64/pci.h')
-rw-r--r-- | include/asm-ppc64/pci.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-ppc64/pci.h b/include/asm-ppc64/pci.h index 6cd593f660a..411bf5dee39 100644 --- a/include/asm-ppc64/pci.h +++ b/include/asm-ppc64/pci.h | |||
@@ -136,6 +136,13 @@ extern pgprot_t pci_phys_mem_access_prot(struct file *file, | |||
136 | unsigned long size, | 136 | unsigned long size, |
137 | pgprot_t prot); | 137 | pgprot_t prot); |
138 | 138 | ||
139 | #ifdef CONFIG_PPC_MULTIPLATFORM | ||
140 | #define HAVE_ARCH_PCI_RESOURCE_TO_USER | ||
141 | extern void pci_resource_to_user(const struct pci_dev *dev, int bar, | ||
142 | const struct resource *rsrc, | ||
143 | u64 *start, u64 *end); | ||
144 | #endif /* CONFIG_PPC_MULTIPLATFORM */ | ||
145 | |||
139 | 146 | ||
140 | #endif /* __KERNEL__ */ | 147 | #endif /* __KERNEL__ */ |
141 | 148 | ||