summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/pmax/pmax/machdep.c20
-rw-r--r--sys/arch/pmax/pmax/mainbus.c5
-rw-r--r--sys/arch/pmax/tc/tc.c4
3 files changed, 25 insertions, 4 deletions
diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c
index d15feba375f..ae94ef7c5ed 100644
--- a/sys/arch/pmax/pmax/machdep.c
+++ b/sys/arch/pmax/pmax/machdep.c
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.39 1995/10/07 06:25:59 mycroft Exp $ */
+/* $NetBSD: machdep.c,v 1.40 1995/12/28 06:45:00 jonathan Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -410,6 +410,24 @@ mach_init(argc, argv, code, cv)
strcpy(cpu_model, "3100");
break;
+ case DS_MIPSFAIR: /* DS5100 mipsfair */
+ /* XXX just a guess */
+ /*
+ * Set up interrupt handling and I/O addresses.
+ */
+ pmax_hardware_intr = kn01_intr;
+ tc_enable_interrupt = kn01_enable_intr; /*XXX*/
+ Mach_splbio = Mach_spl0;
+ Mach_splnet = Mach_spl1;
+ Mach_spltty = Mach_spl2;
+ Mach_splimp = Mach_spl2;
+ Mach_splclock = Mach_spl3;
+ Mach_splstatclock = Mach_spl3;
+ Mach_clock_addr = (volatile struct chiptime *)
+ MACH_PHYS_TO_UNCACHED(KN01_SYS_CLOCK);
+ strcpy(cpu_model, "5100");
+ break;
+
#ifdef DS5000
case DS_3MAX: /* DS5000/200 3max */
{
diff --git a/sys/arch/pmax/pmax/mainbus.c b/sys/arch/pmax/pmax/mainbus.c
index f0857daf577..92a157a15b6 100644
--- a/sys/arch/pmax/pmax/mainbus.c
+++ b/sys/arch/pmax/pmax/mainbus.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.3 1995/09/12 07:41:30 jonathan Exp $ */
+/* $NetBSD: mainbus.c,v 1.4 1995/12/28 06:45:01 jonathan Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -164,7 +164,8 @@ mbattach(parent, self, aux)
* optional framebuffer.
*/
#if defined(DS3100)
- if (cputype == DS_PMAX) {
+ /* XXX mipsfair: just a guess */
+ if (cputype == DS_PMAX || cputype == DS_MIPSFAIR) {
/*XXX*/
sc->sc_bus.ab_intr_establish = kn01_intr_establish;
sc->sc_bus.ab_intr_disestablish = kn01_intr_disestablish;
diff --git a/sys/arch/pmax/tc/tc.c b/sys/arch/pmax/tc/tc.c
index a3e15b0645e..02cc6023f1d 100644
--- a/sys/arch/pmax/tc/tc.c
+++ b/sys/arch/pmax/tc/tc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tc.c,v 1.5 1995/10/09 01:45:30 jonathan Exp $ */
+/* $NetBSD: tc.c,v 1.6 1995/12/28 06:44:57 jonathan Exp $ */
/*
* Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -170,6 +170,8 @@ cpu_tcdesc(cpu)
} else if (cpu == DS_PMAX) {
DPRINTF(("tcattach: PMAX, no turbochannel\n"));
return NULL;
+ } else if (cpu == DS_MIPSFAIR) {
+ DPRINTF(("tcattach: Mipsfair (5100), no turbochannel\n"));
} else {
panic("tcattach: Unrecognized bus type 0x%x\n", cpu);
}