Alan Stern wrote:
On Sat, 13 Sep 2003, James Courtier-Dutton wrote:


I have a USB device with descriptor type 7. The current lsusb only handles up to 5, So it just prints: -
unknown descriptor type: 07 21 07 88 13 ff 03


I have looked through all the usb docs I can find on the web, but no luck.
Can anyone point me to a document that enumerates the descriptor types, so that I can update lsusb.c, so that it does better decode of descriptor types.


The USB-2.0 specification lists the standard descriptor types (table 9.5). They're also listed in include/linux/usb_ch9.h. Type 7 is an "Other Speed
Configuration" descriptor. For a device operating at high-speed it gives
full-speed configuration information, and vice-versa.


Alan Stern



I made a mistake. That hex output means, Length 7, Descriptor type 0x21.
So where do I find Descriptor type 0x21
I currently think that this is decoded from: -
#define USB_TYPE_CLASS                  (0x01 << 5)
#define USB_DT_HID                      (USB_TYPE_CLASS | 0x01)

Is that correct?
Those define's are taken from /usr/include/linux/usb.h
But /usr/src/linux2.6.0/include/linux/usb.h does not have them.

Cheers
James



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to