RE: How to get the PCI PDO device object to read PCI conf iguration info

> -----Original Message-----

From: shakeel [mailto:xxxxx@yahoo.com]
Sent: Wednesday, October 08, 2003 3:40 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to get the PCI PDO device object to read
PCI configuration info

Hi All,

I am trying to read pci configuration info from the disk
upper class filter driver.

The pci configuration info for what? Disks don’t have PCI configuration
info.

I tried both the methods 1. Send
IRP_MN_READ_CONFIG in IRP_MN_START handler after passing down
the MN_START IRP.

  1. get the PCI BUS_INTERFACE_STANDARD by sending
    IRP_MN_QUERY_INTERFACE, and call GetBusData to access PCI
    configuration info.

both of these methods returning STATUS_NOT_SUPPORTED (oxC00000BB).

See above, disks don’t have PCI configuration info.

I tried printing the Enumerator name by calling
IoGetDeviceProperty(DevicePropertyEnumeratorName), it is
printing “IDE” looks like the PDO I receive in AddDevice()
routine is IDE PDO.

Is there way I can get the PCI PDO? so I can send query to.
Please help.

Of what? See above. Why would a disk filter driver need PCI config space
access?

If you just feel like browsing PCI config space for some reason, you can
still use the deprecated HAL functions like in the NT4 days.

If you are trying to get the PCI config for the adapter that supports the
disks you are filtering, then you might be able to open the adapter device
object and work from that direction.

Thanks Mark.

Sorry! for not being clear.

Yes, I am trying to get the PCI config for the adapter that supports the
IDE disks. How can I open the Adapter device object from Disk upper class
filter driver?

Thanks, Shakeel.