summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_quirks.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-05-08 13:57:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-05-08 13:57:44 +0000
commitac949b5349a213e8d63562f5b3d3a95ad3b97f65 (patch)
tree836853190baf8edf6db8804369427bede2290556 /sys/dev/usb/usb_quirks.c
parentcc17ce1e5648f199a7199e1b5620dd1ad7957013 (diff)
Add support for Microsoft Wireless Intellimouse, from FreeBSD. Not only does
this device bends the uhid specs backwards, it is also completely unusable for left-handed people due to its shape. Tested on actual hardware thanks to a donation from Maxim Belooussov.
Diffstat (limited to 'sys/dev/usb/usb_quirks.c')
-rw-r--r--sys/dev/usb/usb_quirks.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_quirks.c b/sys/dev/usb/usb_quirks.c
index ec6122a7399..eb7729a1150 100644
--- a/sys/dev/usb/usb_quirks.c
+++ b/sys/dev/usb/usb_quirks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_quirks.c,v 1.35 2008/05/06 05:59:49 deraadt Exp $ */
+/* $OpenBSD: usb_quirks.c,v 1.36 2008/05/08 13:57:43 miod Exp $ */
/* $NetBSD: usb_quirks.c,v 1.45 2003/05/10 17:47:14 hamajima Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_quirks.c,v 1.30 2003/01/02 04:15:55 imp Exp $ */
@@ -144,6 +144,14 @@ const struct usbd_quirk_entry {
{ USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS1, ANY, { UQ_BAD_HID }},
{ USB_VENDOR_MGE, USB_PRODUCT_MGE_UPS2, ANY, { UQ_BAD_HID }},
+ /* MS keyboards do weird things */
+ { USB_VENDOR_MICROSOFT, USB_PRODUCT_MICROSOFT_WLNOTEBOOK,
+ ANY, { UQ_MS_BAD_CLASS | UQ_MS_LEADING_BYTE }},
+ { USB_VENDOR_MICROSOFT, USB_PRODUCT_MICROSOFT_WLNOTEBOOK2,
+ ANY, { UQ_MS_BAD_CLASS | UQ_MS_LEADING_BYTE }},
+ { USB_VENDOR_MICROSOFT, USB_PRODUCT_MICROSOFT_WLINTELLIMOUSE,
+ ANY, { UQ_MS_LEADING_BYTE }},
+
/* SISPM devices */
{ USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_SISPM_OLD, ANY, { UQ_BAD_HID }},
{ USB_VENDOR_CYPRESS, USB_PRODUCT_CYPRESS_SISPM, ANY, { UQ_BAD_HID }},