diff options
author | sanpei <sanpei@FreeBSD.org> | 2004-01-03 15:01:04 +0000 |
---|---|---|
committer | sanpei <sanpei@FreeBSD.org> | 2004-01-03 15:01:04 +0000 |
commit | 17455573ec65eb13513556f5388630fca19a2327 (patch) | |
tree | c7d91f15f05b955ea1d37cf757d65772ff827d57 | |
parent | 805d9523432d6767c31eedf428e3527a04f8de35 (diff) | |
download | FreeBSD-src-17455573ec65eb13513556f5388630fca19a2327.zip FreeBSD-src-17455573ec65eb13513556f5388630fca19a2327.tar.gz |
Add support SUN TYPE 6 USB KEYBOARD
Submitted by: <schley@cf-wnd.de>
-rw-r--r-- | sys/dev/usb/ukbd.c | 15 | ||||
-rw-r--r-- | sys/dev/usb/usbdevs | 3 |
2 files changed, 13 insertions, 5 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index 2d36c2f..b16c601 100644 --- a/sys/dev/usb/ukbd.c +++ b/sys/dev/usb/ukbd.c @@ -34,6 +34,9 @@ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. + * + * Modifications for SUN TYPE 6 USB Keyboard by + * Jörg Peter Schley (jps@scxnet.de) */ #include <sys/cdefs.h> @@ -301,11 +304,11 @@ Static u_int8_t ukbd_trtab[256] = { 104, 102, 94, 96, 103, 99, 101, 98, /* 48 - 4F */ 97, 100, 95, 69, 91, 55, 74, 78, /* 50 - 57 */ 89, 79, 80, 81, 75, 76, 77, 71, /* 58 - 5F */ - 72, 73, 82, 83, 86, 107, NN, NN, /* 60 - 67 */ + 72, 73, 82, 83, 86, 107, 122, NN, /* 60 - 67 */ NN, NN, NN, NN, NN, NN, NN, NN, /* 68 - 6F */ - NN, NN, NN, NN, NN, NN, NN, NN, /* 70 - 77 */ - NN, NN, NN, NN, NN, NN, NN, NN, /* 78 - 7F */ - NN, NN, NN, NN, NN, NN, NN, 115, /* 80 - 87 */ + NN, NN, NN, NN, 115, 108, 111, 113, /* 70 - 77 */ + 109, 110, 112, 118, 114, 116, 117, 119, /* 78 - 7F */ + 121, 120, NN, NN, NN, NN, NN, 115, /* 80 - 87 */ 112, 125, 121, 123, NN, NN, NN, NN, /* 88 - 8F */ NN, NN, NN, NN, NN, NN, NN, NN, /* 90 - 97 */ NN, NN, NN, NN, NN, NN, NN, NN, /* 98 - 9F */ @@ -1449,6 +1452,10 @@ keycode2scancode(int keycode, int shift, int up) 0x50, 0x51, 0x52, 0x53, 0x46, /* XXX Pause/Break */ 0x5b, 0x5c, 0x5d, + /* SUN TYPE 6 USB KEYBOARD */ + 0x68, 0x5e, 0x5f, 0x60, 0x61, 0x62, 0x63, + 0x64, 0x65, 0x66, 0x67, 0x25, 0x1f, 0x1e, + 0x20, }; int scancode; diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs index 5b6e6fa..b002a94 100644 --- a/sys/dev/usb/usbdevs +++ b/sys/dev/usb/usbdevs @@ -1,4 +1,4 @@ -$FreeBSD$ +/$FreeBSD$ /* * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc. @@ -537,6 +537,7 @@ product CASIO NAMELAND 0x4001 CASIO Nameland EZ-USB /* Cherry products */ product CHERRY MY3000KBD 0x0001 My3000 keyboard product CHERRY MY3000HUB 0x0003 My3000 hub +product CHERRY CYBOARD 0x0004 CyBoard Keyboard /* Chic Technology products */ product CHIC MOUSE1 0x0001 mouse |