Thanks to you guys for taking time to reply my question.
I just finished the test with kernel 2.5.8.
I think as both of you  have said , the usb.h has been updated with the definition 
#define USB_CLASS_CDC_DATA   0x0a
Sorry that I should have done more background works.
 
 The /proc/bus/usb/devices still gives the interface class of the Lexmark X83 as
16 and (unk.) 
 
I:  If#= 0 Alt= 0 #EPs= 3 Cls=10(unk. ) Sub=01 Prot=00 Driver=none

 I think it's really as Randy pointed out the manufacture misread the spec. or 
tried to fit it into somewhere.  
>From my best reading of the www.usb.org, there's no class defined for 0x10
 I can not get confirmation from Lexmark whether they misread the spec. despite 
I sent out the email . long time ago.

In function lexmark x83 is similar to HP officejet G85. I checked the package from
hpoj.sourceforge.net  and it seems that for its support of multifunction devices 
(scanner & printer) they are just treated as class 7 for printer.


Tianjiao

>From: Greg KH <[EMAIL PROTECTED]>

> > #define USB_CLASS_DATA            10
>
>This should have been fixed in 2.4.17-pre3 and 2.5.1-pre8.  Have you
>tried any kernel after those?


On Thu, 18 Apr 2002 [EMAIL PROTECTED] 
<http://lw7fd.law7.hotmail.msn.com/cgi-bin/compose?curmbox=F000000001&a=cf8e1b776935664fd3e191a49bd53713&mailto=1&[EMAIL PROTECTED]&msg=MSG1019193715.10&start=1683453&len=3818&src=&type=x>
 wrote:

| 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)
| |  *******

oops, that Cls value is in hex, so it's 0x10, decimal 16,
and it's still an undefined class value as far as I can tell.
Still looks like the manufacturer mis-read the spec.,
unless someone can find some other class specs & values that we
are missing.

  ~Randy

| | 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 
|<http://216.33.236.250:80/cgi-bin/linkrd?_lang=EN&lah=e2dceccc6302be5dc2721dd0b06295b6&lat=1019337770&hm___action=http%3a%2f%2fwww%2eusb%2eorg%2fdevelopers%2fdefined_class%2ehtml>)
| 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.




_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to