[PATCH 2/2] Export Physical IO base address
Jake Moilanen
moilanen at austin.ibm.com
Sat Oct 29 06:08:04 EST 2005
This patch exports the physical IO base address so drivers can pick it
up when using addresses from the device-tree.
Signed-off-by: Jake Moilanen <moilanen at austin.ibm.com>
--
Index: 2.6.14/arch/ppc64/kernel/pci.c
===================================================================
--- 2.6.14.orig/arch/ppc64/kernel/pci.c 2005-10-28 14:21:26.931904010 -0500
+++ 2.6.14/arch/ppc64/kernel/pci.c 2005-10-28 14:21:57.883394096 -0500
@@ -71,6 +71,8 @@
EXPORT_SYMBOL(isa_io_base);
unsigned long pci_io_base;
EXPORT_SYMBOL(pci_io_base);
+unsigned long pci_io_base_phys;
+EXPORT_SYMBOL(pci_io_base_phys);
void iSeries_pcibios_init(void);
@@ -967,6 +969,7 @@
if (primary) {
pci_io_base = (unsigned long)hose->io_base_virt;
+ pci_io_base_phys = (unsigned long)hose->io_base_phys;
isa_dn = of_find_node_by_type(NULL, "isa");
if (isa_dn) {
isa_io_base = pci_io_base;
Index: 2.6.14/include/asm-ppc64/io.h
===================================================================
--- 2.6.14.orig/include/asm-ppc64/io.h 2005-10-28 09:55:01.882154994 -0500
+++ 2.6.14/include/asm-ppc64/io.h 2005-10-28 14:21:57.884393895 -0500
@@ -33,6 +33,7 @@
extern unsigned long isa_io_base;
extern unsigned long pci_io_base;
+extern unsigned long pci_io_base_phys;
extern unsigned long io_page_mask;
#define MAX_ISA_PORT 0x10000
More information about the Linuxppc64-dev
mailing list