From a971be193bbe46b97572eaad60c723bff5ca7e40 Mon Sep 17 00:00:00 2001 From: augustss Date: Wed, 30 Dec 1998 19:15:11 +0000 Subject: [PATCH] Add USB keyboard type. --- sbin/wsconsctl/util.c | 3 ++- sys/dev/wscons/wsconsio.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sbin/wsconsctl/util.c b/sbin/wsconsctl/util.c index 705673f6826b..c49fa85ab34d 100644 --- a/sbin/wsconsctl/util.c +++ b/sbin/wsconsctl/util.c @@ -1,4 +1,4 @@ -/* $NetBSD: util.c,v 1.3 1998/12/30 13:54:04 augustss Exp $ */ +/* $NetBSD: util.c,v 1.4 1998/12/30 19:15:11 augustss Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -60,6 +60,7 @@ static struct nameint kbtype_tab[] = { { WSKBD_TYPE_LK401, "lk401" }, { WSKBD_TYPE_PC_XT, "pc-xt" }, { WSKBD_TYPE_PC_AT, "pc-at" }, + { WSKBD_TYPE_USB, "usb" }, }; static struct nameint mstype_tab[] = { diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h index 6298e5d87d3c..d794c1e18fc6 100644 --- a/sys/dev/wscons/wsconsio.h +++ b/sys/dev/wscons/wsconsio.h @@ -1,4 +1,4 @@ -/* $NetBSD: wsconsio.h,v 1.10 1998/12/30 13:54:03 augustss Exp $ */ +/* $NetBSD: wsconsio.h,v 1.11 1998/12/30 19:15:11 augustss Exp $ */ /* * Copyright (c) 1996, 1997 Christopher G. Demetriou. All rights reserved. @@ -81,6 +81,7 @@ struct wscons_event { #define WSKBD_TYPE_LK401 2 /* lk-401 */ #define WSKBD_TYPE_PC_XT 3 /* PC-ish, XT scancode */ #define WSKBD_TYPE_PC_AT 4 /* PC-ish, AT scancode */ +#define WSKBD_TYPE_USB 5 /* USB, XT scancode */ /* Manipulate the keyboard bell. */ struct wskbd_bell_data {