Hi,

I am writting a USB class driver which have 2 interfaces.
I have only one DLL which takes care of both interfaces of the
USB device.

So at device attach time [inside USBDeviceAttach()],I am loading
my single driver using ActivateDevice() function.I am also creating the
required pipes for both interfaces in same USBDeviceAttach() function.

Here my USBDeviceAttach() function is successful but USB OHCI stack
keeps asking for driver name in a popup window.Where am I wrong?

Do I need to load the same DLL two times for the two interface I have
as it seems that stack wants me to load driver for both interface
seperately.
How to get out of this problem?

Thanks a lot.

Re: Multiple Interface USB Class driver loading in CE5.0 for OHCD by Michael

Michael
Tue Jun 28 01:48:26 CDT 2005

Hi,

You are right.
In fact, first a driver is trying to be loaded, depending on your DEVICE
class. Most of the time, this device class is 0, meaning that the class is
contained in each INTERFACE class. This way, a driver should be loaded for
each interface (which could be of different kinds). In your USBDeviceAttach
function, you should each time return TRUE, meaning that your are able to
deal with this kind of class.

Hope this helps,

Michael AMSELLEM
www.theoris.fr


"Ajay" <ajaykuee@gmail.com> a écrit dans le message de
news:1119870632.600883.36590@f14g2000cwb.googlegroups.com...
> Hi,
>
> I am writting a USB class driver which have 2 interfaces.
> I have only one DLL which takes care of both interfaces of the
> USB device.
>
> So at device attach time [inside USBDeviceAttach()],I am loading
> my single driver using ActivateDevice() function.I am also creating the
> required pipes for both interfaces in same USBDeviceAttach() function.
>
> Here my USBDeviceAttach() function is successful but USB OHCI stack
> keeps asking for driver name in a popup window.Where am I wrong?
>
> Do I need to load the same DLL two times for the two interface I have
> as it seems that stack wants me to load driver for both interface
> seperately.
> How to get out of this problem?
>
> Thanks a lot.
>