Maxim
2008-06-17 15:22:07 UTC
Is there a way to access PCI(E) config space from user mode in Windows 2003+?
I.e., an equivalent of lspci command? Alternatively, does that information
get cached
somewhere (e.g. in the registry) by the OS?
I know a driver can read that information out, but the idea is to get access
to the
information without having to load a driver for a device.
The basic problem I am trying to solve is to determine the width of PCIE link
in the slot that my device is plugged into. The only information I can find
in the registry
is vendor/product PCI IDs and a few other things, but nothing close to a
full dump of
PCI config space.
I.e., an equivalent of lspci command? Alternatively, does that information
get cached
somewhere (e.g. in the registry) by the OS?
I know a driver can read that information out, but the idea is to get access
to the
information without having to load a driver for a device.
The basic problem I am trying to solve is to determine the width of PCIE link
in the slot that my device is plugged into. The only information I can find
in the registry
is vendor/product PCI IDs and a few other things, but nothing close to a
full dump of
PCI config space.