summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-01-28 14:47:32 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-01-28 14:47:32 +0000
commita927cdbddd0aa31cb27bd88b3429335e7f670cce (patch)
tree025031b32d59c45c29167118c3849ee57ba1d517
parentc62077d6b486d4c4e6a04e58cee1e72ed1cbf7be (diff)
Allow zkbd to work in ddb and at the root selection prompt, tested/ok uwe@
-rw-r--r--sys/arch/zaurus/dev/zaurus_kbd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/zaurus/dev/zaurus_kbd.c b/sys/arch/zaurus/dev/zaurus_kbd.c
index 186fb0b746e..9fa68cff985 100644
--- a/sys/arch/zaurus/dev/zaurus_kbd.c
+++ b/sys/arch/zaurus/dev/zaurus_kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: zaurus_kbd.c,v 1.10 2005/01/18 17:57:13 drahn Exp $ */
+/* $OpenBSD: zaurus_kbd.c,v 1.11 2005/01/28 14:47:31 drahn Exp $ */
/*
* Copyright (c) 2005 Dale Rahn <drahn@openbsd.org>
*
@@ -223,7 +223,13 @@ zkbd_attach(struct device *parent, struct device *self, void *aux)
pxa2x0_gpio_intr_establish(sc->sc_swb_pin, IST_EDGE_BOTH, IPL_TTY,
zkbd_hinge, sc, sc->sc_dev.dv_xname);
- a.console = 0;
+ if (1) {
+ wskbd_cnattach(&zkbd_consops, sc, &zkbd_keymapdata);
+ a.console = 1;
+ } else {
+ a.console = 0;
+ }
+
a.keymap = &zkbd_keymapdata;
a.accessops = &zkbd_accessops;
a.accesscookie = sc;