No Hardware Resources passed into EvtDevicePrepareHardware

Anonymous
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 for business | Windows Client for IT Pros | Devices and deployment | Other
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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.