diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2002-05-29 20:45:59 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2002-05-29 20:45:59 +0000 |
commit | 025158c1bb4d56c76dcd8e14fc8c0fad6e15f1ca (patch) | |
tree | 913bdb2222a8c6381677ae1da386229419f96ba7 /sbin/kbd | |
parent | 9374390cf13cb01427ebc5768447ecefb272f08a (diff) |
Add support for WSKBD_TYPE_SUN5. -moj ok miod@
Diffstat (limited to 'sbin/kbd')
-rw-r--r-- | sbin/kbd/kbd_wscons.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sbin/kbd/kbd_wscons.c b/sbin/kbd/kbd_wscons.c index 00f9ed9280c..bcde7e7e846 100644 --- a/sbin/kbd/kbd_wscons.c +++ b/sbin/kbd/kbd_wscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd_wscons.c,v 1.7 2002/05/22 08:21:02 deraadt Exp $ */ +/* $OpenBSD: kbd_wscons.c,v 1.8 2002/05/29 20:45:58 maja Exp $ */ /* * Copyright (c) 2001 Mats O Jansson. All rights reserved. @@ -51,6 +51,7 @@ #define SA_AKBD 2 #define SA_ZSKBD 3 #define SA_SUNKBD 4 +#define SA_SUN5KBD 5 struct nlist nl[] = { { "_pckbd_keydesctab" }, @@ -58,6 +59,7 @@ struct nlist nl[] = { { "_akbd_keydesctab" }, { "_zskbd_keydesctab" }, { "_sunkbd_keydesctab" }, + { "_sunkbd5_keydesctab" }, { NULL }, }; @@ -67,6 +69,7 @@ char *kbtype_tab[] = { "adb", "lk201", "sun", + "sun5", }; struct nameint { @@ -153,6 +156,7 @@ kbd_list() int adb_kbd = 0; int zs_kbd = 0; int sun_kbd = 0; + int sun5_kbd = 0; /* Go through all keyboards. */ for (i = 0; i < NUM_KBD; i++) { @@ -174,6 +178,8 @@ kbd_list() zs_kbd++; if (kbtype == WSKBD_TYPE_SUN) sun_kbd++; + if (kbtype == WSKBD_TYPE_SUN5) + sun5_kbd++; close(fd); } } @@ -200,6 +206,9 @@ kbd_list() if (sun_kbd > 0) kbd_show_enc(kd, SA_SUNKBD); + if (sun5_kbd > 0) + kbd_show_enc(kd, SA_SUN5KBD); + kvm_close(kd); if (rebuild > 0) { |