patch-2.2.15 linux/arch/alpha/kernel/core_cia.c
Next file: linux/arch/alpha/kernel/core_irongate.c
Previous file: linux/arch/alpha/kernel/core_apecs.c
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_cia.c
- Orig date:
Sat Aug 14 02:27:12 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/arch/alpha/kernel/core_cia.c linux/arch/alpha/kernel/core_cia.c
@@ -16,6 +16,7 @@
#include <asm/system.h>
#include <asm/ptrace.h>
+#include <asm/pci.h>
#define __EXTERN_INLINE inline
#include <asm/io.h>
@@ -23,6 +24,7 @@
#undef __EXTERN_INLINE
#include "proto.h"
+#include "bios32.h"
/*
* NOTE: Herein lie back-to-back mb instructions. They are magic.
@@ -580,6 +582,12 @@
*((vuip)CIA_IOC_HAE_IO) = 0; mb();
*((vuip)CIA_IOC_HAE_IO); /* read it back. */
}
+
+ /* Tell userland where I/O space is located. */
+ default_hose.pci_sparse_io_space = CIA_IO - IDENT_ADDR;
+ default_hose.pci_sparse_mem_space = CIA_SPARSE_MEM - IDENT_ADDR;
+ default_hose.pci_dense_io_space = 0;
+ default_hose.pci_dense_mem_space = CIA_DENSE_MEM - IDENT_ADDR;
}
void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)