Relationship between AVStream minidriver KSDEVICE_DISPATCH and WDM PnP dispatch

Discussion in 'Windows Vista Drivers' started by huangjj, Jun 28, 2007.

  1. huangjj

    huangjj Guest

    I'm studying AVStream minidriver development for USB device.
    AVStream minidriver provides one KSDEVICE_DISPATCH table for PnP processing.
    I think this maps to WDM PnP dispatch routine.
    I have several questions about the relationship between KSDEVICE_DISPATCH
    WDM PnP dispatch.

    1. Does minidriver's dispatch need to call IoCallDriver to pass down PnP Irp
    just like
    WDM driver PnP dispatch does? Which driver is responsible for passing
    PnP Irp down?
    2. If AVStream class driver is responsible for passing down PnP Irp, will
    dispatch be called before or after PnP Irp is passed to next lower
    3. USB WDM driver gets device/configuration descriptors and set config after
    PnP Start Irp retruns success status from lower driver.
    Should I do this in Start or PostStart dispatch of minidriver's

    I wonder how many efforts need to do in minidriver dispatch for PnP.

    Best Regards
    Jack Huang
    huangjj, Jun 28, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.