PCI bus driver

  • Thread starter Thread starter Jens
  • Start date Start date
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
 
Back
Top