How to read PCI config of another device

Hello guys,

I need to read the config of another PCI device, because my own device
provides functionality that duplicates that of the other device, but
I only want my driver to expose the functionality if the user has
disabled it in the other device by setting a bit. Is this a good
reason to want to read the other device’s config?

I know the other device’s PCI vendor/device IDs and want the driver
to be WDM and work in any WDM OS.

  1. use cf8/cfc - too dirty

  2. find the FDO of the PCI bus, created by the PCI bus driver,
    send it “query device bus relations” and find the other device’s
    PDO - don’t know how to find the PCI FDO.

Any other ideas?

Thank you very much!


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hello guys,

I need to read the config of another PCI device, because my own device
provides functionality that duplicates that of the other device, but
I only want my driver to expose the functionality if the user has
disabled it in the other device by setting a bit. Is this a good
reason to want to read the other device’s config?

I know the other device’s PCI vendor/device IDs and want the driver
to be WDM and work in any WDM OS.

I see the following options:

  1. use cf8/cfc - too dirty

  2. find the FDO of the PCI bus, created by the PCI bus driver,
    send it “query device bus relations” and find the other device’s
    PDO - don’t know how to find the PCI FDO.

Any other ideas?

Thank you very much!


Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com