StorPortGetBusData/StorPortSetBusDataByOffset

Hi,

I am writing a storport miniport driver for a pcie device. The device operates in MSI-X mode.

  1. I use StorPortGetBusData to read the pci configuration space including the extended capabilities. I see correct data in pci trace but the same data is not copied into the buffer which I have provided in the call to StorPortGetBusData.

  2. When writing into particular offset using StorPortSetBusDataByOffset in pci configuration space, the write is not successful. This is particularly for InterruptLine register. For other registers/offsets(RW), it is successful.

I have read about the method to read/write using IRP_MN_WRITE_CONFIG/ IRP_MN_READ_CONFIG.
http://msdn.microsoft.com/en-us/library/windows/hardware/ff558707(v=vs.85).aspx

How can I solve the above issues at storport miniport level?

Any help is highly appreciated.

Regards,
Amogha

>the write is not successful. This is particularly for InterruptLine register.

Why do you need InterruptLine in MSI-X mode?


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

To check read/write ability of the registers from a custom application.