patch-2.2.15 linux/arch/alpha/kernel/core_apecs.c
Next file: linux/arch/alpha/kernel/core_cia.c
Previous file: linux/arch/alpha/kernel/bios32.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Fri Apr 21 12:45:44 2000
- Orig file:
v2.2.14/arch/alpha/kernel/core_apecs.c
- Orig date:
Sun Sep 6 18:34:33 1998
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/arch/alpha/kernel/core_apecs.c linux/arch/alpha/kernel/core_apecs.c
@@ -17,6 +17,7 @@
#include <asm/system.h>
#include <asm/ptrace.h>
+#include <asm/pci.h>
#define __EXTERN_INLINE inline
#include <asm/io.h>
@@ -24,6 +25,7 @@
#undef __EXTERN_INLINE
#include "proto.h"
+#include "bios32.h"
/*
* NOTE: Herein lie back-to-back mb instructions. They are magic.
@@ -436,6 +438,12 @@
* what ARC or SRM might have left behind...
*/
*(vuip)APECS_IOC_HAXR2 = 0; mb();
+
+ /* Tell userland where I/O space is located. */
+ default_hose.pci_sparse_io_space = APECS_IO - IDENT_ADDR;
+ default_hose.pci_sparse_mem_space = APECS_SPARSE_MEM - IDENT_ADDR;
+ default_hose.pci_dense_io_space = 0;
+ default_hose.pci_dense_mem_space = APECS_DENSE_MEM - IDENT_ADDR;
}
int
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)