On Thu, 3 Jun 2004, Antonio Bibiano wrote:

> Hello everybody in the list,
> 
> I have got a Canon MVX2i camera, and i found a webpage that says it can
> work with your usb mass-storage driver, but when i plug it in i got this
> error:
> 
> usb.c: USB device 2 (vend/prod 0x4a9/0x306b) is not claimed by any active driver.
> 
> so i looked in unusual_devs.h and i didn't find an entry for my camera
> so i wanted to add en entry but i can't figure out the meaning of some
> parts of this macro so this is what i got:
> 
> UNUSUAL_DEV(  0x04a9, 0x306b, ??????, ??????,
>               "Canon",
>               "MVX2i",
>               ??????,??????,??????,??????),
> 
> can you help me explaining the meaning or the possibile values for that
> arguments unknown to me..

UNUSUAL_DEV(  vendorID, productID, revision1, revision2,
                vendorname,
                productname,
                subclass-override, protocol-override, 
                initialization-function, flags),

You already know the vendorID and productID.  The two revision values 
(specified in binary-coded-decimal, which is why revision2 is often 
0x9999) give a range; the entry applies only to devices whose revision 
(aka bcdDevice) falls within that range.

You already know the vendorname and productname.  The two overrides may be 
needed if the values provided by the device are incorrect; the values are 
the interface subclass and interface protocol.  If you don't know what 
they should be you can set them to US_SC_DEVICE and US_PR_DEVICE, which 
mean to use the device's values with no override.

The initialization function is needed only for devices that use a 
specialized subdriver, so it is normally set to NULL.  The flags specify 
particular quirks of the device that the driver must take into account.  
If you don't know what it should be, set flags to 0.

How do you know what the correct entries for subclass-override, 
protocol-override, and flags should be without guessing?  To answer that, 
you must understand how the device operates.  Maybe the manufacturer can 
provide that information, or maybe it's available online somewhere.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to