From: Adam Nielsen <a.nielsen@shikadi.net>
To: Oliver Neukum <oliver@neukum.org>
Cc: LKML Mailinglist <linux-kernel@vger.kernel.org>,
linux-usb@vger.kernel.org
Subject: Re: Can you use the USB HID interface within a driver?
Date: Sat, 01 Nov 2008 22:32:25 +1000 [thread overview]
Message-ID: <490C4C59.7070003@shikadi.net> (raw)
In-Reply-To: <200811011308.41339.oliver@neukum.org>
>> Or perhaps someone could point me in the direction of a USB HID driver
>> that does things "properly" already?
>
> Please post "lsusb -v" for your device.
Here's the output. I don't think any of the "class" drivers are
suitable, except as templates for interfacing with the main HID code...I
think...
Bus 008 Device 002: ID 1044:4001 Chu Yuen Enterprise Co., Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1044 Chu Yuen Enterprise Co., Ltd
idProduct 0x4001
bcdDevice 1.01
iManufacturer 1 GIGABYTE TECHNOLOGY
iProduct 2 GBT 800W PSU
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 32
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 10
Device Status: 0x0000
(Bus Powered)
Cheers,
Adam.
next prev parent reply other threads:[~2008-11-01 12:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-01 11:44 Can you use the USB HID interface within a driver? Adam Nielsen
2008-11-01 12:08 ` Oliver Neukum
2008-11-01 12:32 ` Adam Nielsen [this message]
2008-11-01 14:52 ` Kay Sievers
2008-11-01 20:26 ` Jiri Kosina
2008-11-01 23:20 ` Adam Nielsen
2008-11-02 6:43 ` Driver for new hid class (was: Can you use the USB HID interface within a driver?) Adam Nielsen
2008-11-02 12:14 ` Driver for new hid class Jiri Slaby
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=490C4C59.7070003@shikadi.net \
--to=a.nielsen@shikadi.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=oliver@neukum.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.