Re: How to implement multi-function device driver?
- From: Mark Roddy <markr@xxxxxxxxxxxxxx>
- Date: Tue, 12 Jun 2007 14:12:37 -0400
abei wrote:
We have an USB device which has some interfaces. Can I create device object for each interface in one function driver?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.
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
.
- Follow-Ups:
- References:
- Prev by Date: Re: To Overlapp or Not to Overlapp (I/O)?
- Next by Date: RE: EnumDeviceDrivers issue on 64-bit platform
- Previous by thread: How to implement multi-function device driver?
- Next by thread: Re: How to implement multi-function device driver?
- Index(es):
Relevant Pages
|