PCI bus driver

J

Jens

I need a driver for enumerating child devices on PCI bus.
I took the "func" sample in Windows XP DDK as starting
point. In the AddDevice Function, in IoCreateDevice, I
changed FILE_DEVICE_UNKNOWN to FILE_DEVICE_BUS_EXTENDER.
In DispatchPnP I added a branch for
IRP_MN_QUERY_DEVICE_RELATIONS. With the geninf tool I
created an inf file for the driver, with Class=System and
the hardware IDs PCI\VEN_8086&DEV_1130 (Host\PCI)
PCI\VEN_8086&DEV_2440 (PCI\ISA)
PCI\VEN_8086&DEV_244E (PCI\PCI)
The problem is that during processing, the IRP with
IRP_MN_QUERY_DEVICE_RELATIONS is returning
NTSTATUS=STATUS_NOT_SUPPORTED. I'm new to device drivers,
so I don't know what's wrong.

Thanks
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top