There is what seems to be an lspci (and setpci ) port for Windows. It is based on a common portable library libpci which offers access to the PCI configuration space on a variety of operating systems.
好了解压好三个包后,运行 mingw 下的 msys.bat。看到的命令行就是操作的环境。其中已经包含了所要使用的 gcc 编译器。需要提的是,由于 pciutils 中的 configure 在 Windows 是没办法使用的。所以要使用预先编制好的 config.h 和 config.mk。这两个文件存放在 pciutils 目录的 win32目录中。将他们拷贝到 lib 目录下。 Windows binaries for the PCI Utilities pciutils-3.5.5-win32.zip - 32-bit Windows version (runs on both x86 and 圆4 Windows) pciutils-3.5.5-win64.zip - 64-bit Windows version (only works on 圆4 Windows) lspci and setpci require Administrator privileges for certain operations - run them in an elevated command prompt on Windows Vista and newer.
#Lspci on windows full#
It is almost similar to lspci Linux command but with full Windows support.
#Lspci on windows install#
rootlocalhost yum install pciutils Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile base: extras: updates: Resolving Dependencies -> Running. The PCI Utilities) to display full human-readable names instead of cryptic numeric codes.
再者由于 pciutils 原生是在 Linux 下运用的,在 Windows 下需要提供能够访问 kernel space 的接口,pciutils 使用了 WinIO 来实现这个。所以还要去下载 WinIO,地址在这里 。 Here, you need to use yum install pciutils command to install lspci tool.