diff options
-rw-r--r-- | sys/arch/sparc64/dev/consinit.c | 5 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/zs.c | 42 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/clock.c | 7 |
3 files changed, 3 insertions, 51 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 } /* diff --git a/sys/arch/sparc64/sparc64/clock.c b/sys/arch/sparc64/sparc64/clock.c index c96ae8cdbb7..85cbb960214 100644 --- a/sys/arch/sparc64/sparc64/clock.c +++ b/sys/arch/sparc64/sparc64/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.7 2002/01/10 00:06:17 nordin Exp $ */ +/* $OpenBSD: clock.c,v 1.8 2002/01/25 03:36:25 jason Exp $ */ /* $NetBSD: clock.c,v 1.41 2001/07/24 19:29:25 eeh Exp $ */ /* @@ -873,11 +873,6 @@ tickintr(cap) { int s; -#if NKBD > 0 - extern int cnrom __P((void)); - extern int rom_console_input; -#endif - hardclock((struct clockframe *)cap); if (poll_console) setsoftint(); |