Hi all,
I’m using Windows Server 2008 SP2 x86 for my development and testing.
My requirement is to read/write my HBA’s (PCI/PCIe card) VPD & other PCI
config space during run-time. The Storport API for doing this is
StorportGetBusData/StorportSetBusDataByOffset - but the restriction is I can
use this API only in HwStorFindAdapter (& in HwStorAdapterControl -
SetRunningConfig).
Is there a way to memory map PCI config space in storport miniport driver?
so that I can do PCI config-space read/write during runtime!
Also I’ve a couple of observations,
- The StorportGetBusdata (pci config read) is working properly in both
HwStorFindAdapter and in HwStorInitialize (which is not documented). - StorportSetBusDataByOffset (PCI config write) at HwStorFindAdapter is not
working! The same code in different WDM driver using
BusInterface->SetBusData works properly! Has anybody tried this?
Has anybody successful in retrieving VPD using SCSI/Storport APIs? Kindly
shed some light in this area.
Thanks & Regards,
Gokul T V