On Thu, 18 Apr 2002, Tianjiao Zhang wrote: | I tested several versions of kernel 2.4-7 up and 2.5.1. The usb system | has difficulty giving the right interface class for my Lexmark X83 | (scanner/copier/printer) | The result " cat /proc/bus/usb/devices " is : | T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 | D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 | P: Vendor=043d ProdID=003d Rev= 0.01 | S: Product=Lexmark X83 Scan/Print/Copy | C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 48mA | I: If#= 0 Alt= 0 #EPs= 3 Cls=10(unk. ) Sub=01 Prot=00 Driver=(none) | ******* | E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms | E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms | E: Ad=83(I) Atr=03(Int.) MxPS= 1 Ivl= 8ms | | However if I use the lsusb (v0.9, by Thomas Sailer), it gives the | interface class as 16 Data | | I added 0x in the source definition file | (/linux_source_root/include/linux/usb.h) for those classes ) and it | gives the result consistent with "lsusb" output. | I: If#= 0 Alt= 0 #EPs= 3 Cls=10(data ) Sub=01 Prot=00 Driver=(none) | ( from the kernel, this part of output is in hex format ) | | However, in the source code of lsusb, it has the same definition as | linux_source_root/include/linux/usb.h | | #define USB_CLASS_DATA 10
Actually now named USB_CLASS_CDC_DATA. | : | It may be strange how the code gets 16 when it is defined as "10" :?. | | | Anyway, shall it be defined as | #define USB_CLASS_DATA 10 | or | #define USB_CLASS_DATA 0x10 | | ? This web page (http://www.usb.org/developers/defined_class.html) says that class 10 (decimal) in USB 1.0 was for CDC-Data. I'm sure that it used to say just "Data" and not CDC-Data. Someone may have to search thru more recent USB class specs to see if class 10 has changed or if class 16 has been assigned. Have you done that? Anyone? My guess is that someone is using class 10 for generic "data", something that doesn't fit nicely into a USB class. | The controller is intel UHCI., and I tried both uhci.o and usb-uhci.o | modules. The result is the same. Sure, that won't matter. -- ~Randy _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
