summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-11-11 16:44:52 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-11-11 16:44:52 +0000
commit2f7c83ece2fc2aa97beb6917f7f68ef1300b129c (patch)
tree6c56290ba1fe10208f2a5dee6b0bef42390e97ed /sys/arch/sparc64/dev
parent00b7f38eb00ccedca808a52fa3c2983a6cfa9c68 (diff)
Enable or disable keyclick on attach, based upon the PROM keyboard-click?
property. Tested with type 3 and type 4 keyboards.
Diffstat (limited to 'sys/arch/sparc64/dev')
-rw-r--r--sys/arch/sparc64/dev/comkbd_ebus.c6
-rw-r--r--sys/arch/sparc64/dev/z8530kbd.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/comkbd_ebus.c b/sys/arch/sparc64/dev/comkbd_ebus.c
index 277ede26ab0..bde4a3d4295 100644
--- a/sys/arch/sparc64/dev/comkbd_ebus.c
+++ b/sys/arch/sparc64/dev/comkbd_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: comkbd_ebus.c,v 1.17 2005/05/14 15:25:20 miod Exp $ */
+/* $OpenBSD: comkbd_ebus.c,v 1.18 2005/11/11 16:44:51 miod Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -219,6 +219,10 @@ comkbd_attach(parent, self, aux)
return;
}
+ ss->sc_click =
+ strcmp(getpropstring(optionsnode, "keyboard-click?"), "true") == 0;
+ sunkbd_setclick(ss, ss->sc_click);
+
a.console = console;
if (ISTYPE5(ss->sc_layout)) {
a.keymap = &sunkbd5_keymapdata;
diff --git a/sys/arch/sparc64/dev/z8530kbd.c b/sys/arch/sparc64/dev/z8530kbd.c
index 3f28d1b0cd5..f2e9cf8c9ce 100644
--- a/sys/arch/sparc64/dev/z8530kbd.c
+++ b/sys/arch/sparc64/dev/z8530kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530kbd.c,v 1.17 2005/05/14 15:25:20 miod Exp $ */
+/* $OpenBSD: z8530kbd.c,v 1.18 2005/11/11 16:44:51 miod Exp $ */
/* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */
/*-
@@ -108,6 +108,8 @@
#include <sys/kernel.h>
#include <sys/syslog.h>
+#include <machine/autoconf.h>
+
#include <dev/wscons/wsconsio.h>
#include <dev/wscons/wskbdvar.h>
@@ -383,6 +385,10 @@ zskbd_attach(parent, self, aux)
return;
}
+ ss->sc_click =
+ strcmp(getpropstring(optionsnode, "keyboard-click?"), "true") == 0;
+ sunkbd_setclick(ss, ss->sc_click);
+
a.console = console;
if (ISTYPE5(ss->sc_layout)) {
a.keymap = &sunkbd5_keymapdata;