Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dec Allow WSKBDIO_SETMODE
details: https://anonhg.NetBSD.org/src/rev/6252a2b10d15
branches: trunk
changeset: 780224:6252a2b10d15
user: abs <abs%NetBSD.org@localhost>
date: Mon Jul 16 12:52:47 2012 +0000
description:
Allow WSKBDIO_SETMODE
diffstat:
sys/dev/dec/dzkbd.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r a2d95b1eb2e4 -r 6252a2b10d15 sys/dev/dec/dzkbd.c
--- a/sys/dev/dec/dzkbd.c Mon Jul 16 12:48:42 2012 +0000
+++ b/sys/dev/dec/dzkbd.c Mon Jul 16 12:52:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dzkbd.c,v 1.23 2009/05/12 14:18:16 cegger Exp $ */
+/* $NetBSD: dzkbd.c,v 1.24 2012/07/16 12:52:47 abs Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.23 2009/05/12 14:18:16 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dzkbd.c,v 1.24 2012/07/16 12:52:47 abs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -85,6 +85,7 @@
int sc_enabled;
int kbd_type;
+ int wsraw;
device_t sc_wskbddev;
};
@@ -286,6 +287,11 @@
/* XXX don't dig in kbd internals */
*(int *)data = sc->sc_itl->dzi_ks.kcvol;
return 0;
+#ifdef WSDISPLAY_COMPAT_RAWKBD
+ case WSKBDIO_SETMODE:
+ sc->wsraw = *(int *)data == WSKBD_RAW;
+ return 0;
+#endif
}
return (EPASSTHROUGH);
}
Home |
Main Index |
Thread Index |
Old Index