On Sunday 03 February 2008 00:05:21 Jiri Kosina wrote:
> On Sat, 2 Feb 2008, Michael Buesch wrote:
> 
> > I am implementing a driver for Razer USB mice. These mice are standard 
> > HID input devices with additional features accessible through USB 
> > control commands.
> 
> Hi Michael,
> 
> what do the control commands look like? (or is there the source code of 
> your driver available to see what exactly is needed?).

Here's the current userspace implementation of the HAL:
http://bu3sch.de/gitweb?p=razer.git;a=blob;f=librazer/hw_deathadder.c;h=e76d9347552eb5ea33b524a82e33ba869f3e0b3f;hb=HEAD

The commands changed slightly in latest firmware version
and there's also a command to upload firmware. But just so
you get an idea...

> > So I was going to implement a small optional kernel HAL module for this, 
> > which exports the device features through sysfs. 
> 
> I have had a plan (*) for quite a long time to make the HID code 
> pluggable, so that it could be possible to write drivers for "slightly 
> non-standard" HID devices easily -- i.e. the specialized driver will have 
> the possibility to hook HID events that he is interested in, and all other 
> events will be handled by the common HID code ... would that by any chance 
> solve your issue?

Hm, there seems to be some additional bit sent by the device indicating
a keypress for a small key on the downside of the device.
It seems that the device sends bit 7 in the IRQ data[0] to indicate the 
keypress.
So yes, having hooks there would actually help me.

Of course, I can't access this from the current userspace HAL properly, yet.
At least not without unregistering the kernel driver, which renders the mouse
unusable :)

The rest of the commands don't have anything in common with standard HID stuff,
as far as I can see.

> (*) for long time ago already, but there has always been something more 
> important, unfortunately :(

Yeah well, we all have this kind of problems. :)

> > This module will be an optional extension to the usbmouse HID module. 
> 
> BTW are you sure about the 'usbmouse' module here?
> This module uses the  
> HID boot protocol, and really shouldn't be used in common situations. 
> hid/usbhid modules are the ones.

Yeah well. I was talking about the drivers/hid/usbhid/usbmouse.c driver.
Isn't that the driver for standard USB mice? (the device really is
a standard USB mouse with additional features)


-- 
Greetings Michael.
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to