summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-01-25 03:36:26 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-01-25 03:36:26 +0000
commit9c04bc98e92dcb6a65ed22bd06ce65daea32f4fe (patch)
treeab2dd448e4a0c633ccff17457857295633dd96d2 /sys/arch/sparc64/dev
parent8fd40781e9157c26315a13657f21a53da243a39e (diff)
Remove more NKBD/NMS references (jason == cpp tonight I guess)
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/consinit.c5
-rw-r--r--sys/arch/sparc64/dev/zs.c42
2 files changed, 2 insertions, 45 deletions
diff --git a/sys/arch/sparc64/dev/consinit.c b/sys/arch/sparc64/dev/consinit.c
index ceb33378739..f84fa609ff5 100644
--- a/sys/arch/sparc64/dev/consinit.c
+++ b/sys/arch/sparc64/dev/consinit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: consinit.c,v 1.5 2002/01/03 22:49:35 jason Exp $ */
+/* $OpenBSD: consinit.c,v 1.6 2002/01/25 03:36:25 jason Exp $ */
/* $NetBSD: consinit.c,v 1.9 2000/10/20 05:32:35 mrg Exp $ */
/*-
@@ -223,9 +223,6 @@ consinit()
DBPRINT(("stdout package = %x\r\n", fbnode));
if (stdinnode && (OF_getproplen(stdinnode,"keyboard") >= 0)) {
-#if NKBD > 0
- printf("cninit: kdb/display not configured\n");
-#endif
consname = "keyboard/display";
} else if (fbnode &&
(OF_instance_to_path(stdin, buffer, sizeof(buffer)) >= 0)) {
diff --git a/sys/arch/sparc64/dev/zs.c b/sys/arch/sparc64/dev/zs.c
index 9c61d0a6a4c..3feba2602c2 100644
--- a/sys/arch/sparc64/dev/zs.c
+++ b/sys/arch/sparc64/dev/zs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zs.c,v 1.6 2002/01/24 03:38:56 jason Exp $ */
+/* $OpenBSD: zs.c,v 1.7 2002/01/25 03:36:25 jason Exp $ */
/* $NetBSD: zs.c,v 1.29 2001/05/30 15:24:24 lukem Exp $ */
/*-
@@ -293,9 +293,6 @@ zs_attach(zsc, zsd, pri)
for (channel = 0; channel < 2; channel++) {
struct zschan *zc;
struct device *child;
-#if (NKBD > 0) || (NMS > 0)
- extern struct cfdriver zstty_cd; /* in ioconf.c */
-#endif
zsc_args.type = "serial";
if (getproplen(zsc->zsc_node, "keyboard") == 0) {
@@ -372,43 +369,6 @@ zs_attach(zsc, zsd, pri)
zs_write_reg(cs, 9, reset);
splx(s);
}
-#if (NKBD > 0) || (NMS > 0)
- /*
- * If this was a zstty it has a keyboard
- * property on it we need to attach the
- * sunkbd and sunms line disciplines.
- */
- if (child
- && (child->dv_cfdata->cf_driver == &zstty_cd)
- && (getproplen(zsc->zsc_node, "keyboard") == 0)) {
- struct kbd_ms_tty_attach_args kma;
- struct zstty_softc {
- /* The following are the only fields we need here */
- struct device zst_dev;
- struct tty *zst_tty;
- struct zs_chanstate *zst_cs;
- } *zst = (struct zstty_softc *)child;
- struct tty *tp;
-
- kma.kmta_tp = tp = zst->zst_tty;
- kma.kmta_dev = tp->t_dev;
- kma.kmta_consdev = zsc_args.consdev;
-
- /* Attach 'em if we got 'em. */
-#if (NKBD > 0)
- if (channel == 0) {
- kma.kmta_name = "keyboard";
- config_found(child, (void *)&kma, NULL);
- }
-#endif
-#if (NMS > 0)
- if (channel == 1) {
- kma.kmta_name = "mouse";
- config_found(child, (void *)&kma, NULL);
- }
-#endif
- }
-#endif
}
/*