[PATCH 2/2] Export Physical IO base address

Jake Moilanen moilanen at austin.ibm.com
Sat Oct 29 06:18:46 EST 2005


> On Fri, Oct 28, 2005 at 03:08:04PM -0500, Jake Moilanen wrote:
> > This patch exports the physical IO base address so drivers can pick it
> > up when using addresses from the device-tree.
> [...]
> > +unsigned long pci_io_base_phys;
> > +EXPORT_SYMBOL(pci_io_base_phys);
> 
> Perhaps EXPORT_SYMBOL_GPL() instead?

Bah...

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:24:04.325502096 -0500
+++ 2.6.14/arch/ppc64/kernel/pci.c	2005-10-28 15:16:15.814095514 -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_GPL(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 14:23:01.188499329 -0500
+++ 2.6.14/include/asm-ppc64/io.h	2005-10-28 15:15:54.558004623 -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