diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 18:13:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-18 18:13:47 +0000 |
commit | 8be411e4d69bad073c6feb802822023c16cc6542 (patch) | |
tree | d890dae0aee61e1edc08cdf68c158cfca8cb1d3c /sys/arch | |
parent | c271fbcb0deb21c06a924e23dd6fa0aa41ebf259 (diff) |
pretty
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/dev/kbd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/kbd.c b/sys/arch/sparc/dev/kbd.c index 5a751f68fd0..1a2f3553902 100644 --- a/sys/arch/sparc/dev/kbd.c +++ b/sys/arch/sparc/dev/kbd.c @@ -261,11 +261,13 @@ kbd_serial(struct tty *tp, void (*iopen)(), void (*iclose)()) k->k_open = iopen; k->k_close = iclose; +#if defined(SUN4C) || defined(SUN4M) if (cputyp != CPU_SUN4) { cp = getpropstring(optionsnode, "keyboard-click?"); if (cp && strcmp(cp, "true") == 0) k->k_state.kbd_click = 1; } +#endif /* SUN4C || SUN4M */ } /* @@ -326,6 +328,7 @@ kbd_reset(register struct kbd_state *ks) break; default: printf("Unknown keyboard type %d\n", ks->kbd_id); + break; } ks->kbd_leds = 0; @@ -677,6 +680,7 @@ kbdioctl(dev_t dev, u_long cmd, register caddr_t data, int flag, struct proc *p) int s; char leds = *(char *)data; struct tty *tp = kbd_softc.k_kbd; + s = spltty(); if (tp->t_outq.c_cc > 120) (void) tsleep((caddr_t)&lbolt, TTIPRI, @@ -695,7 +699,6 @@ kbdioctl(dev_t dev, u_long cmd, register caddr_t data, int flag, struct proc *p) *(char *)data = k->k_state.kbd_leds; return (0); - case FIONBIO: /* we will remove this someday (soon???) */ return (0); |