patch-2.2.15 linux/arch/alpha/kernel/core_pyxis.c
Next file: linux/arch/alpha/kernel/core_t2.c
Previous file: linux/arch/alpha/kernel/core_polaris.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_pyxis.c
- Orig date:
Tue Jan 4 21:18:39 2000
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/arch/alpha/kernel/core_pyxis.c linux/arch/alpha/kernel/core_pyxis.c
@@ -15,6 +15,7 @@
#include <asm/ptrace.h>
#include <asm/system.h>
+#include <asm/pci.h>
#define __EXTERN_INLINE inline
#include <asm/io.h>
@@ -22,6 +23,7 @@
#undef __EXTERN_INLINE
#include "proto.h"
+#include "bios32.h"
/* NOTE: Herein are back-to-back mb instructions. They are magic.
One plausible explanation is that the I/O controller does not properly
@@ -509,6 +511,12 @@
ctrl1 = *(vuip)PYXIS_CTRL1; /* re-read */
}
}
+
+ /* Tell userland where I/O space is located. */
+ default_hose.pci_sparse_io_space = 0;
+ default_hose.pci_sparse_mem_space = 0;
+ default_hose.pci_dense_io_space = PYXIS_BW_IO - IDENT_ADDR;
+ default_hose.pci_dense_mem_space = PYXIS_BW_MEM - IDENT_ADDR;
}
void __init
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)