Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vax Add the lcspx and lcg display drivers to th...



details:   https://anonhg.NetBSD.org/src/rev/e9bc10712379
branches:  trunk
changeset: 559533:e9bc10712379
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Fri Mar 19 20:15:21 2004 +0000

description:
Add the lcspx and lcg display drivers to the console table so they will
get properly probed and initialized.  This also fixes the problem of the
keyboard getting the console output and the keyboard port getting the wrong
serial baud rate.  The lcg driver is not currently present, but should be
"real soon now".

diffstat:

 sys/arch/vax/vax/conf.c |  42 ++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 40 insertions(+), 2 deletions(-)

diffs (82 lines):

diff -r 78d23822a8a7 -r e9bc10712379 sys/arch/vax/vax/conf.c
--- a/sys/arch/vax/vax/conf.c   Fri Mar 19 20:12:07 2004 +0000
+++ b/sys/arch/vax/vax/conf.c   Fri Mar 19 20:15:21 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.63 2003/08/07 16:30:16 agc Exp $    */
+/*     $NetBSD: conf.c,v 1.64 2004/03/19 20:15:21 mhitch Exp $ */
 
 /*-
  * Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.63 2003/08/07 16:30:16 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.64 2004/03/19 20:15:21 mhitch Exp $");
 
 #include "opt_cputype.h"
 
@@ -46,6 +46,8 @@
 #include <dev/cons.h>
 
 #include "smg.h"
+#include "lcspx.h"
+#include "lcg.h"
 #include "wskbd.h"
 #if NSMG > 0
 #if NWSKBD > 0
@@ -61,11 +63,41 @@
 #define smgcnputc wsdisplay_cnputc
 #define        smgcnpollc nullcnpollc
 #endif
+#if NLCSPX > 0
+#if NWSKBD > 0
+#define lcspxcngetc wskbd_cngetc
+#else
+static int
+lcspxcngetc(dev_t dev)
+{
+       return 0;
+}
+#endif
+
+#define lcspxcnputc wsdisplay_cnputc
+#define lcspxcnpollc nullcnpollc
+#endif
+#if NLCG > 0
+#if NWSKBD > 0
+#define lcgcngetc wskbd_cngetc
+#else
+static int
+lcgcngetc(dev_t dev)
+{
+       return 0;
+}
+#endif
+
+#define lcgcnputc wsdisplay_cnputc
+#define lcgcnpollc nullcnpollc
+#endif
 
 cons_decl(gen);
 cons_decl(dz);
 cons_decl(qd);
 cons_decl(smg);
+cons_decl(lcspx);
+cons_decl(lcg);
 #include "qv.h"
 #include "qd.h"
 
@@ -88,6 +120,12 @@
 #if NSMG
        cons_init(smg),
 #endif
+#if NLCSPX
+       cons_init(lcspx),
+#endif
+#if NLCG
+       cons_init(lcg),
+#endif
 
 #ifdef notyet
 /* We may not always use builtin console, sometimes RD */



Home | Main Index | Thread Index | Old Index