No Hardware Resources passed into EvtDevicePrepareHardware

Thireos, Mike (Contractor) 1 Reputation point
2021-04-21T15:09:07.85+00:00

I have written a KMDF function driver that uses the 1394 OHCI bus driver and I need access the some hardware registers to my PCIe device. The resources appear in Device Manager but are never are passed into the EvtDevicePrepareHardware so that I can access them. I also tried WdfFdoQueryForInterface using the GUID_BUS_INTERFACE_STANDARD and it returned unsupported.

Any ideas of why the bus driver doesn't allow me access to the HW resources from my function driver? Any way to work around this?

Thanks.

Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,542 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Doron Holan 1,801 Reputation points
    2021-04-22T00:22:55.23+00:00

    Are you installing the driver on the PCI device itself? how are you installing the driver? If you are calling devcon install [....] you are installing your driver on a root enumerated device and need to call devcon update [....] instead.