Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/arch/alpha/alpha pull up rev 1.27 from trunk (ross)



details:   https://anonhg.NetBSD.org/src/rev/59776e0356f9
branches:  netbsd-1-4
changeset: 469215:59776e0356f9
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Aug 08 07:17:40 1999 +0000

description:
pull up rev 1.27 from trunk (ross)

diffstat:

 sys/arch/alpha/alpha/dec_3000_500.c |  33 +++++++++++++++++++++++++--------
 1 files changed, 25 insertions(+), 8 deletions(-)

diffs (74 lines):

diff -r 57e175d1d0e1 -r 59776e0356f9 sys/arch/alpha/alpha/dec_3000_500.c
--- a/sys/arch/alpha/alpha/dec_3000_500.c       Sun Aug 08 07:17:00 1999 +0000
+++ b/sys/arch/alpha/alpha/dec_3000_500.c       Sun Aug 08 07:17:40 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dec_3000_500.c,v 1.24.2.1 1999/04/16 23:11:25 thorpej Exp $ */
+/* $NetBSD: dec_3000_500.c,v 1.24.2.2 1999/08/08 07:17:40 cgd Exp $ */
 
 /*
  * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.24.2.1 1999/04/16 23:11:25 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.24.2.2 1999/08/08 07:17:40 cgd Exp $");
 
 #include "opt_new_scc_driver.h"
 
@@ -49,6 +49,9 @@
 #include <dev/tc/tcvar.h>
 #include <alpha/tc/tcdsvar.h>
 #include <alpha/tc/tc_3000_500.h>
+#ifndef NEW_SCC_DRIVER
+#include <alpha/tc/sccvar.h>
+#endif
 
 #include <machine/z8530var.h>
 #include <dev/dec/zskbdvar.h>
@@ -113,11 +116,22 @@
 static void
 dec_3000_500_cons_init()
 {
-#if defined(NEW_SCC_DRIVER)
        struct ctb *ctb;
 
        ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off);
 
+#ifndef NEW_SCC_DRIVER
+       switch (ctb->ctb_term_type) {
+       case CTB_GRAPHICS:
+               alpha_donot_kludge_scc = 1;
+               return;
+       case CTB_PRINTERPORT:
+               return;
+       default:
+               goto badconsole;
+       }
+#else
+
        switch (ctb->ctb_term_type) {
        case CTB_GRAPHICS:
 #if NWSDISPLAY > 0
@@ -158,13 +172,16 @@
                }
 
        default:
-               printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
-               printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
-
-               panic("consinit: unknown console type %lu\n",
-                   ctb->ctb_term_type);
+               goto badconsole;
        }
 #endif
+       return;
+badconsole:
+       printf("ctb->ctb_term_type = 0x%lx\n", ctb->ctb_term_type);
+       printf("ctb->ctb_turboslot = 0x%lx\n", ctb->ctb_turboslot);
+
+       panic("consinit: unknown console type %lu\n",
+           ctb->ctb_term_type);
 }
 
 static void



Home | Main Index | Thread Index | Old Index