Re: How to implement multi-function device driver?



Can this way be used in Windows 2k/XP?
Our device must support 2k/XP. And can you give me some threads to write the
USB generic parent driver?
Thank you!

abei
2007-6-13

"Mark Roddy" <markr@xxxxxxxxxxxxxx>
??????:uZ3CE1RrHHA.3356@xxxxxxxxxxxxxxxxxxxxxxx
abei wrote:
We have an USB device which has some interfaces. Can I create device
object for each interface in one function driver?
For example, USB device has 2 interfaces, interface A and interface B.
Then I create device object A for interface A and device object B for
interface B in AddDevice().
But the problem is that I don't known how to start all device object for
each interface when we handle IRP_MJ_PNP/IRP_MN_START_DEVICE.
Is this method correct?
How to implement multi-function device driver? Please help me, thank you!

Abei
2007-6-12
No. if your USB device is properly constructed with composite interfaces
then you can use the "USB Common Class Generic Parent Driver". See the WDK
documentation page with that title. You will have two separate function
drivers (you could coerce this into one driver that manages two different
functions as well) and two separate FDOs one for each interface. The
generic parent driver will handle all the shared device state for you.
KMDF would be the ideal way to handle this.



.



Relevant Pages

  • Re: How to implement multi-function device driver?
    ... usbhub acts as the generic parent. ... or do any of the functions group more then one interface ... the USB generic parent driver? ... then you can use the "USB Common Class Generic Parent Driver". ...
    (microsoft.public.development.device.drivers)
  • Re: USB Composite Driver Question
    ... configuration into a select interface request so that you do not affect the ... > "The generic parent driver creates a physical device object for each ... When one of these function drivers reads a configuration ... descriptor, the generic parent driver provides an edited version of the ...
    (microsoft.public.development.device.drivers)
  • Re: Fail to get the second interface handle of USB composite device on XP SP2
    ... UVC device consists of two interfaces - control and stream interface. ... It's described as one interface collection by IAD. ... USB Common Class Generic Parent Driver of XP SP2 ...
    (microsoft.public.development.device.drivers)
  • Re: The data is invalid
    ... chip set software,get from the mfg,this gets xp its usb configuration ... What I need to know is did service pack 3 remove this file from the system32 folder and can I safely put it back in the system32 folder, as that is the file that it keeps gagging on and it is looking for it in the system32 folder. ... USB Common Class Generic Parent Driver ...
    (microsoft.public.windowsxp.hardware)

Loading