Re: WDF Bus Drivers, Hal Calls and Removing Resources



Who owns the source code of driver for child devices?

You cannot assign resources to your child devices using
EvtDeviceResourceRequirementsQuery. For this to work, you have to act as a
second-level arbiter of resources, and the interface to arbitrate resources
is not documented. So the only approach is to devise a private interface
between your bus driver and child function driver to exchange resource
information in Start-Device. I would use QueryInterface scheme to get the
information from the bus (WdfFdoQueryInterface). Toaster bus and featured
function driver demonstrate how to implement a query-interface.

-Eliyas


.



Relevant Pages

  • Re: Isnt there a "Machine" Resource Type???
    ... All trips require one ... driver and one bus. ... If I enter only one of these resources first, ...
    (microsoft.public.project)
  • Re: Isnt there a "Machine" Resource Type???
    ... All trips require one ... driver and one bus. ... If I enter only one of these resources first, ...
    (microsoft.public.project)
  • newbus flaw
    ... At some later point, during a bus rescan, the attach ... When the driver is unloaded, the device is detached, but it remains on ... the bus's list of child devices. ... The first time you load the module, you get foo0; ...
    (freebsd-arch)
  • Re: newbus flaw
    ... At some later point, during a bus rescan, the attach ... > When the driver is unloaded, the device is detached, but it remains on ... > the bus's list of child devices. ... > already exists on the bus, or for the module's event handler to unlist ...
    (freebsd-arch)
  • Re: newbus flaw
    ... > the bus's list of child devices. ... > already exists on the bus, or for the module's event handler to unlist ... For example, in my adv717xa driver, part of the zoran driver, I do the ...
    (freebsd-arch)