title: Reading PCI device memory registers in windows
body: <p>I need to read the HBA memory registers of the AHCI controller sitting on the PCI bus of the system. I have a driver using which I can read the config space of all the PCI devices in the system (using ReadConfig and WriteConfig). Through this I'm able to get the ABAR content which is the last BAR in AHCI device's config space. Now, I need to read the values of these memory registers. Does anybody has any idea how to do this? PCITree is able to do this, so I know that this is possible.</p>
  
  <p>I'm new to driver development, so any help would be greatly appreciated... :)</p>