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 lkc is gone, long live wskbd.
details: https://anonhg.NetBSD.org/src/rev/c587c496ae4f
branches: trunk
changeset: 499951:c587c496ae4f
user: ragge <ragge%NetBSD.org@localhost>
date: Sat Dec 02 17:07:27 2000 +0000
description:
lkc is gone, long live wskbd.
diffstat:
sys/arch/vax/vax/conf.c | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r 75158778eac6 -r c587c496ae4f sys/arch/vax/vax/conf.c
--- a/sys/arch/vax/vax/conf.c Sat Dec 02 17:03:55 2000 +0000
+++ b/sys/arch/vax/vax/conf.c Sat Dec 02 17:07:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.48 2000/07/26 11:50:16 ragge Exp $ */
+/* $NetBSD: conf.c,v 1.49 2000/12/02 17:07:27 ragge Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -155,11 +155,15 @@
*/
#include <dev/cons.h>
-#include "lkc.h"
-#if NLKC
-#define smgcngetc lkccngetc
+#include "wskbd.h"
+#if NWSKBD > 0
+#define smgcngetc wskbd_cngetc
#else
-#define smgcngetc nullcngetc
+static int
+smgcngetc(dev_t dev)
+{
+ return 0;
+}
#endif
#define smgcnputc wsdisplay_cnputc
@@ -598,3 +602,14 @@
return (major(dev) == 3 && minor(dev) == 12);
}
+
+int
+getmajor(void *ptr)
+{
+ int i;
+
+ for (i = 0; i < nchrdev; i++)
+ if (cdevsw[i].d_open == ptr)
+ return i;
+ panic("getmajor");
+}
Home |
Main Index |
Thread Index |
Old Index