>Number:         123959
>Category:       usb
>Synopsis:       [usb][mouse] add support for Razer Lachesis 4000dpi usb mouse
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 24 15:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Emanuel Haupt
>Release:        FreeBSD 7.0-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD beaver.home.critical.ch 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 
#0: Sat May 24 02:45:31 CEST 2008 [EMAIL 
PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386



        
>Description:
The following patch found at [1] adds support for the Razer Lachesis 4000dpi 
usb mouse.

[EMAIL PROTECTED]:~ # usbdevs -v | grep -i razer
  port 2 addr 4: full speed, power 100 mA, config 1, Razer Lachesis(0x000c), 
Razer(0x1532), rev 21.00

[1] http://wp.lando.cc/wp-content/files/2008/01/copperhead.diff

>How-To-Repeat:
        
>Fix:

- Apply the following patch (RELENG_7_0)
- cd /usr/src/sys/modules/ums; make all install clean


--- patch-src-sys-dev-usb-ums.c begins here ---
Index: src/sys/dev/usb/ums.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/ums.c,v
retrieving revision 1.96
diff -u -r1.96 ums.c
--- src/sys/dev/usb/ums.c       25 Jul 2007 06:43:06 -0000      1.96
+++ src/sys/dev/usb/ums.c       24 May 2008 14:59:16 -0000
@@ -198,7 +198,8 @@
                return (UMATCH_NONE);
 
        if (id->bInterfaceClass == UICLASS_HID &&
-           id->bInterfaceSubClass == UISUBCLASS_BOOT &&
+           (id->bInterfaceSubClass == UISUBCLASS_NONE ||
+           id->bInterfaceSubClass == UISUBCLASS_BOOT) &&           
            id->bInterfaceProtocol == UIPROTO_MOUSE)
                ret = UMATCH_IFACECLASS;
        else
Index: src/sys/dev/usb/usb.h
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/usb.h,v
retrieving revision 1.47
diff -u -r1.47 usb.h
--- src/sys/dev/usb/usb.h       30 Jun 2007 02:40:21 -0000      1.47
+++ src/sys/dev/usb/usb.h       24 May 2008 14:59:16 -0000
@@ -433,6 +433,7 @@
 #define   UIPROTO_CDC_AT                       1
 
 #define UICLASS_HID            0x03
+#define  UISUBCLASS_NONE       0
 #define  UISUBCLASS_BOOT       1
 #define  UIPROTO_BOOT_KEYBOARD 1
 #define  UIPROTO_MOUSE         2
--- patch-src-sys-dev-usb-ums.c ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to