diff options
author | imp <imp@FreeBSD.org> | 2007-06-29 21:07:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-06-29 21:07:41 +0000 |
commit | e513d4fafe87e70a369660930e133040cd2bb31b (patch) | |
tree | 66e53e2034e6fd9854ad15ac7a679b8d431a0fd0 /sys/dev/usb/usb_quirks.h | |
parent | 981a651b4c5509498b3baacbe4f3b72f56954ee7 (diff) | |
download | FreeBSD-src-e513d4fafe87e70a369660930e133040cd2bb31b.zip FreeBSD-src-e513d4fafe87e70a369660930e133040cd2bb31b.tar.gz |
Add support for various MS Wirless usb mice. the patch is from
Hellmuth with some refinements by myself and flz@. It works for me
with my non-MS mice, so nothing should be broken by it.
Submitted by: Hellmuth Michaelis
PR: 90162
Approved by: re (blanket)
Diffstat (limited to 'sys/dev/usb/usb_quirks.h')
-rw-r--r-- | sys/dev/usb/usb_quirks.h | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/sys/dev/usb/usb_quirks.h b/sys/dev/usb/usb_quirks.h index d152bfb..16e2f3f 100644 --- a/sys/dev/usb/usb_quirks.h +++ b/sys/dev/usb/usb_quirks.h @@ -40,21 +40,23 @@ struct usbd_quirks { u_int32_t uq_flags; /* Device problems: */ -#define UQ_SWAP_UNICODE 0x0002 /* has some Unicode strings swapped. */ -#define UQ_MS_REVZ 0x0004 /* mouse has Z-axis reversed */ -#define UQ_NO_STRINGS 0x0008 /* string descriptors are broken. */ -#define UQ_BAD_ADC 0x0010 /* bad audio spec version number. */ -#define UQ_BUS_POWERED 0x0020 /* device is bus powered, despite claim */ -#define UQ_BAD_AUDIO 0x0040 /* device claims audio class, but isn't */ -#define UQ_SPUR_BUT_UP 0x0080 /* spurious mouse button up events */ -#define UQ_AU_NO_XU 0x0100 /* audio device has broken extension unit */ -#define UQ_POWER_CLAIM 0x0200 /* hub lies about power status */ -#define UQ_AU_NO_FRAC 0x0400 /* don't adjust for fractional samples */ -#define UQ_AU_INP_ASYNC 0x0800 /* input is async despite claim of adaptive */ -#define UQ_BROKEN_BIDIR 0x2000 /* printer has broken bidir mode */ -#define UQ_OPEN_CLEARSTALL 0x4000 /* device needs clear endpoint stall */ -#define UQ_HID_IGNORE 0x8000 /* device should be ignored by hid class */ -#define UQ_KBD_IGNORE 0x18000 /* device should be ignored by both kbd and hid class */ +#define UQ_SWAP_UNICODE 0x00000002 /* has some Unicode strings swapped. */ +#define UQ_MS_REVZ 0x00000004 /* mouse has Z-axis reversed */ +#define UQ_NO_STRINGS 0x00000008 /* string descriptors are broken. */ +#define UQ_BAD_ADC 0x00000010 /* bad audio spec version number. */ +#define UQ_BUS_POWERED 0x00000020 /* device is bus powered, despite claim */ +#define UQ_BAD_AUDIO 0x00000040 /* device claims audio class, but isn't */ +#define UQ_SPUR_BUT_UP 0x00000080 /* spurious mouse button up events */ +#define UQ_AU_NO_XU 0x00000100 /* audio device has broken extension unit */ +#define UQ_POWER_CLAIM 0x00000200 /* hub lies about power status */ +#define UQ_AU_NO_FRAC 0x00000400 /* don't adjust for fractional samples */ +#define UQ_AU_INP_ASYNC 0x00000800 /* input is async despite claim of adaptive */ +#define UQ_BROKEN_BIDIR 0x00002000 /* printer has broken bidir mode */ +#define UQ_OPEN_CLEARSTALL 0x04000 /* device needs clear endpoint stall */ +#define UQ_HID_IGNORE 0x00008000 /* device should be ignored by hid class */ +#define UQ_KBD_IGNORE 0x00018000 /* device should be ignored by both kbd and hid class */ +#define UQ_MS_BAD_CLASS 0x00020000 /* doesn't identify properly */ +#define UQ_MS_LEADING_BYTE 0x40000 /* mouse sends an unknown leading byte. */ }; extern const struct usbd_quirks usbd_no_quirk; |