Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys HPC/PsPC keyboard types.



details:   https://anonhg.NetBSD.org/src/rev/84bbe6678a74
branches:  trunk
changeset: 483560:84bbe6678a74
user:      sato <sato%NetBSD.org@localhost>
date:      Mon Mar 13 01:46:44 2000 +0000

description:
HPC/PsPC keyboard types.

diffstat:

 sys/arch/hpcmips/dev/btnmgr.c |  7 ++-----
 sys/arch/hpcmips/vr/vrkiu.c   |  7 ++-----
 sys/dev/wscons/wsconsio.h     |  4 +++-
 3 files changed, 7 insertions(+), 11 deletions(-)

diffs (60 lines):

diff -r 4731284eb8a7 -r 84bbe6678a74 sys/arch/hpcmips/dev/btnmgr.c
--- a/sys/arch/hpcmips/dev/btnmgr.c     Sun Mar 12 23:10:29 2000 +0000
+++ b/sys/arch/hpcmips/dev/btnmgr.c     Mon Mar 13 01:46:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: btnmgr.c,v 1.3 2000/03/12 12:08:17 takemura Exp $      */
+/*     $NetBSD: btnmgr.c,v 1.4 2000/03/13 01:46:45 sato Exp $  */
 
 /*-
  * Copyright (c) 1999
@@ -268,10 +268,7 @@
 {
        switch (cmd) {
        case WSKBDIO_GTYPE:
-               /*
-                * XXX, fix me !
-                */
-               *(int *)data = WSKBD_TYPE_PC_XT;
+               *(int *)data = WSKBD_TYPE_HPC_BTN;
                return 0;
        case WSKBDIO_SETLEDS:
                DPRINTF(("%s(%d): no LED\n", __FILE__, __LINE__));
diff -r 4731284eb8a7 -r 84bbe6678a74 sys/arch/hpcmips/vr/vrkiu.c
--- a/sys/arch/hpcmips/vr/vrkiu.c       Sun Mar 12 23:10:29 2000 +0000
+++ b/sys/arch/hpcmips/vr/vrkiu.c       Mon Mar 13 01:46:44 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vrkiu.c,v 1.17 2000/03/11 08:53:33 shin Exp $  */
+/*     $NetBSD: vrkiu.c,v 1.18 2000/03/13 01:46:45 sato Exp $  */
 
 /*-
  * Copyright (c) 1999 SASAKI Takesi All rights reserved.
@@ -640,10 +640,7 @@
 
        switch (cmd) {
        case WSKBDIO_GTYPE:
-               /*
-                * XXX, fix me !
-                */
-               *(int *)data = WSKBD_TYPE_PC_XT;
+               *(int *)data = WSKBD_TYPE_HPC_KBD;
                return 0;
        case WSKBDIO_SETLEDS:
                DPRINTF(("%s(%d): no LED\n", __FILE__, __LINE__));
diff -r 4731284eb8a7 -r 84bbe6678a74 sys/dev/wscons/wsconsio.h
--- a/sys/dev/wscons/wsconsio.h Sun Mar 12 23:10:29 2000 +0000
+++ b/sys/dev/wscons/wsconsio.h Mon Mar 13 01:46:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsconsio.h,v 1.27 2000/03/12 04:59:24 takemura Exp $ */
+/* $NetBSD: wsconsio.h,v 1.28 2000/03/13 01:46:44 sato Exp $ */
 
 /*
  * Copyright (c) 1996, 1997 Christopher G. Demetriou.  All rights reserved.
@@ -83,6 +83,8 @@
 #define                WSKBD_TYPE_PC_AT        4       /* PC-ish, AT scancode */
 #define                WSKBD_TYPE_USB          5       /* USB, XT scancode */
 #define                WSKBD_TYPE_NEXT         6       /* NeXT keyboard */
+#define                WSKBD_TYPE_HPC_KBD      7       /* HPC bultin keyboard */
+#define                WSKBD_TYPE_HPC_BTN      8       /* HPC/PsPC buttons */
 
 /* Manipulate the keyboard bell. */
 struct wskbd_bell_data {



Home | Main Index | Thread Index | Old Index