WdfPdoInitSetEventCallbacks

Hi

I am writing bus upper filter driver for pci.sys driver.
I want to intercept EvtDeviceResourceRequirementsQuery

Can I call WdfPdoInitSetEventCallbacks from within bus filter driver.

If not how can I change the resource requirement list if I want the PnP manager to allocate more resources to my device.

10x
Yossi

Yossi Leybovich wrote:

I am writing bus upper filter driver for pci.sys driver.

I want to intercept EvtDeviceResourceRequirementsQuery

Can I call WdfPdoInitSetEventCallbacks from within bus filter driver.

If not how can I change the resource requirement list if I want the
PnP manager to allocate more resources to my device.

Your question doesn’t make any sense. What good does it do you to have
PnP assign additional physical memory space to your device, if your
hardware won’t be listening for requests on those addresses?

BARs are not used to request resources. BARs are used to advertise the
resources that the device itself has to offer. When you have a 4MB BAR,
PnP does not allocate 4MB of physical memory to your device. Instead,
it just carves out 4MB of physical addresses. Requests within that
space are routed to your device. If your device advertises 4MB but you
bump it up to 8MB, and your device gets a request to read starting at an
offset of 6MB within its BAR, your device might very well trigger a bus
fault.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.