summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/quirk
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2012-07-23 15:14:28 +0000
committeremaste <emaste@FreeBSD.org>2012-07-23 15:14:28 +0000
commitc914da2ab4efb2852934ec0fcf68bff682ec5206 (patch)
tree825d37b3c867cb05e37b7c2f727779fcdc1514bb /sys/dev/usb/quirk
parent1587fb52c0f60d854495af75d4adaef78f084277 (diff)
downloadFreeBSD-src-c914da2ab4efb2852934ec0fcf68bff682ec5206.zip
FreeBSD-src-c914da2ab4efb2852934ec0fcf68bff682ec5206.tar.gz
Quirk MS keyboard so that function keys work
The function keys on a Microsoft Natural Egronomic Keyboard 4000 have been repurposed as "Help", "Undo", "Redo" etc., and a special "F Lock" key is required to return them to their normal purpose. This change enables the UQ_KBD_BOOTPROTO quirk for the MS Natural 4000 keyboard to get the keys working again. More extensive changes to the USB keyboard infrastructure would be needed to fully support the "F Lock" mode and the extended keys on this keyboard. PR: usb/116947 Approved by: hselasky@
Diffstat (limited to 'sys/dev/usb/quirk')
-rw-r--r--sys/dev/usb/quirk/usb_quirk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/quirk/usb_quirk.c b/sys/dev/usb/quirk/usb_quirk.c
index 41f5002..b269f60 100644
--- a/sys/dev/usb/quirk/usb_quirk.c
+++ b/sys/dev/usb/quirk/usb_quirk.c
@@ -123,6 +123,7 @@ static struct usb_quirk_entry usb_quirks[USB_DEV_QUIRKS_MAX] = {
USB_QUIRK(METAGEEK2, WISPYDBX, 0x0000, 0xffff, UQ_KBD_IGNORE, UQ_HID_IGNORE),
USB_QUIRK(TENX, UAUDIO0, 0x0101, 0x0101, UQ_AUDIO_SWAP_LR),
/* MS keyboards do weird things */
+ USB_QUIRK(MICROSOFT, NATURAL4000, 0x0000, 0xFFFF, UQ_KBD_BOOTPROTO),
USB_QUIRK(MICROSOFT, WLINTELLIMOUSE, 0x0000, 0xffff, UQ_MS_LEADING_BYTE),
/* umodem(4) device quirks */
USB_QUIRK(METRICOM, RICOCHET_GS, 0x100, 0x100, UQ_ASSUME_CM_OVER_DATA),
OpenPOWER on IntegriCloud