From ce82b598ec82882fb14d8e7edf553e95db196da2 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 29 Jan 2008 20:54:32 +0000 Subject: [PATCH] Add support for function keys F16 to F19 as present on e.g. the new Apple aluminum keyboard. Patch contributed by Michael Piotrowski in PR kern/37788, reviewed by Matthias Drochner. --- sys/dev/usb/ukbd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index 77456e090443..a6d39c93056b 100644 --- a/sys/dev/usb/ukbd.c +++ b/sys/dev/usb/ukbd.c @@ -1,4 +1,4 @@ -/* $NetBSD: ukbd.c,v 1.95 2007/03/04 06:02:49 christos Exp $ */ +/* $NetBSD: ukbd.c,v 1.96 2008/01/29 20:54:32 tron Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.95 2007/03/04 06:02:49 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.96 2008/01/29 20:54:32 tron Exp $"); #include #include @@ -104,7 +104,7 @@ struct ukbd_data { * Translate USB keycodes to US keyboard XT scancodes. * Scancodes >= 0x80 represent EXTENDED keycodes. * - * See http://www.microsoft.com/HWDEV/TECH/input/Scancode.asp + * See http://www.microsoft.com/whdc/device/input/Scancode.mspx */ Static const u_int8_t ukbd_trtab[256] = { NN, NN, NN, NN, 0x1e, 0x30, 0x2e, 0x20, /* 00 - 07 */ @@ -120,7 +120,7 @@ Static const u_int8_t ukbd_trtab[256] = { 0xcb, 0xd0, 0xc8, 0x45, 0xb5, 0x37, 0x4a, 0x4e, /* 50 - 57 */ 0x9c, 0x4f, 0x50, 0x51, 0x4b, 0x4c, 0x4d, 0x47, /* 58 - 5f */ 0x48, 0x49, 0x52, 0x53, 0x56, 0xdd, NN, 0x59, /* 60 - 67 */ - 0x5d, 0x5e, 0x5f, NN, NN, NN, NN, NN, /* 68 - 6f */ + 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6a, 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, 0x7e, NN, 0x73, /* 80 - 87 */