summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/cl.c
diff options
context:
space:
mode:
authorSteve Murphree <smurph@cvs.openbsd.org>1999-09-27 18:43:27 +0000
committerSteve Murphree <smurph@cvs.openbsd.org>1999-09-27 18:43:27 +0000
commit06bf2109b5fc8857ac5edfac91ae53195b7840c6 (patch)
treec9141b0d279fdf1e075153bc69573cba69faf7b2 /sys/arch/mvme88k/dev/cl.c
parentcf682dcac49a66c618e1a968aadfbf7f221e4546 (diff)
adding support for MVME188 and MVME197. Plus 32bit if_ie.
Diffstat (limited to 'sys/arch/mvme88k/dev/cl.c')
-rw-r--r--sys/arch/mvme88k/dev/cl.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c
index 6e738b5a4fa..f00246bb230 100644
--- a/sys/arch/mvme88k/dev/cl.c
+++ b/sys/arch/mvme88k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.4 1999/05/29 04:41:43 smurph Exp $ */
+/* $OpenBSD: cl.c,v 1.5 1999/09/27 18:43:22 smurph Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -900,16 +900,21 @@ clcnprobe(cp)
{
/* always there ? */
/* serial major */
- int maj;
-
- /* locate the major number */
- for (maj = 0; maj < nchrdev; maj++)
- if (cdevsw[maj].d_open == clopen)
- break;
- cp->cn_dev = makedev (maj, 0);
- cp->cn_pri = CN_NORMAL;
-
- return 1;
+ int maj;
+
+ /* bomb if it'a a MVME188 */
+ if (cputyp == CPU_188){
+ cp->cn_pri = CN_DEAD;
+ return 0;
+ }
+ /* locate the major number */
+ for (maj = 0; maj < nchrdev; maj++)
+ if (cdevsw[maj].d_open == clopen)
+ break;
+ cp->cn_dev = makedev (maj, 0);
+ cp->cn_pri = CN_NORMAL;
+
+ return 1;
}
int