patch-2.4.21 linux-2.4.21/arch/ia64/kernel/setup.c

Next file: linux-2.4.21/arch/ia64/kernel/signal.c
Previous file: linux-2.4.21/arch/ia64/kernel/ptrace.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/ia64/kernel/setup.c linux-2.4.21/arch/ia64/kernel/setup.c
@@ -65,6 +65,8 @@
 struct screen_info screen_info;
 
 unsigned long ia64_iobase;	/* virtual address for I/O accesses */
+struct io_space io_space[MAX_IO_SPACES];
+unsigned int num_io_spaces;
 
 unsigned char aux_device_present = 0xaa;        /* XXX remove this when legacy I/O is gone */
 
@@ -338,6 +340,11 @@
 	}
 	ia64_iobase = (unsigned long) ioremap(phys_iobase, 0);
 
+	/* setup legacy IO port space */
+	io_space[0].mmio_base = ia64_iobase;
+	io_space[0].sparse = 1;
+	num_io_spaces = 1;
+
 #ifdef CONFIG_SMP
 	cpu_physical_id(0) = hard_smp_processor_id();
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)