Lspci On Windows
Oct 08, 2019 'lspci for Windows' - familiar lspci-like tool from Linux in both GUI and CLI form on Windows helps you find drivers for your unknown PCI devices on Windows reports devices with drivers issues.
From time to time I have found that over the years - I need definitive information on what exactly an unidentified device on a computer is. Years ago, I found that the best way to handle this was to boot a Linux LiveCD and run the command 'lspci'. For those not in the know, lspci is basically a command that dumps that data of all the devices currently attached to the PCI bus in the system. It also decodes vendor/device names.
This utility has proven useful for me on many occasions, especially in situations where I am attempting to get Windows installed on a legacy piece of hardware in which the hardware configuration is less than clear.
That having been said, is there a utility that can do this under Windows?
- FYI: lshw, lspci, lsusb, etc. Are all available from external sources too. – voices Mar 13 '17 at 9:59 1 @tjt263, right, there are both macOS ports of pciutils and libusb (I suspect that lspci and lsusb are included in the respective source trees as examples/handy utils).
- Lspci displays detailed information about all PCI buses and devices in the system setpci allows reading from and writing to PCI device configuration registers. For example, you can adjust the latency timers with it. Supported systems. The library (and therefore all the utilities) works on the following operating systems: Linux FreeBSD NetBSD.
Name
lspci - list all PCI devices
Synopsis
lspci [options]
Description
lspci is a utility for displaying information about PCI buses in the system and devices connected to them.
By default, it shows a brief list of devices. Use the options described below to request either a more verbose output or output intended for parsing byother programs.
If you are going to report bugs in PCI device drivers or in lspci itself, please include output of 'lspci -vvx' or even better 'lspci -vvxxx'(however, see below for possible caveats).
Some parts of the output, especially in the highly verbose modes, are probably intelligible only to experienced PCI hackers. For exact definitions of thefields, please consult either the PCI specifications or the header.h and /usr/include/linux/pci.h include files.
Access to some parts of the PCI configuration space is restricted to root on many operating systems, so the features of lspci available to normalusers are limited. However, lspci tries its best to display as much as available and mark all other information with <access denied>text.
Options
Basic display modes
-mDump PCI device data in a backward-compatible machine readable form. See below for details.
-mm
Dump PCI device data in a machine readable form for easy parsing by scripts. See below for details.

-t
Show a tree-like diagram containing all buses, bridges, devices and connections between them.
Display options
-vBe verbose and display detailed information about all devices.
-vv
Be very verbose and display more details. This level includes everything deemed useful.
-vvv
Be even more verbose and display everything we are able to parse, even if it doesn't look interesting at all (e.g., undefined memory regions).
-k
Show kernel drivers handling each device and also kernel modules capable of handling it. Turned on by default when -v is given in the normal mode ofoutput. (Currently works only on Linux with kernel 2.6 or newer.)

-x
Show hexadecimal dump of the standard part of the configuration space (the first 64 bytes or 128 bytes for CardBus bridges).
-xxx
Show hexadecimal dump of the whole PCI configuration space. It is available only to root as several PCI devices crash when you try to read some partsof the config space (this behavior probably doesn't violate the PCI standard, but it's at least very stupid). However, such devices are rare, so you needn'tworry much.
-xxxx
Show hexadecimal dump of the extended (4096-byte) PCI configuration space available on PCI-X 2.0 and PCI Express buses.
-b
Bus-centric view. Show all IRQ numbers and addresses as seen by the cards on the PCI bus instead of as seen by the kernel.
-D
Always show PCI domain numbers. By default, lspci suppresses them on machines which have only domain 0.
Options to control resolving ID's to names
-nShow PCI vendor and device codes as numbers instead of looking them up in the PCI ID list.
-nn
Show PCI vendor and device codes as both numbers and names.
-q
Use DNS to query the central PCI ID database if a device is not found in the local pci.ids file. If the DNS query succeeds, the result is cached in~/.pciids-cache and it is recognized in subsequent runs even if -q is not given any more. Please use this switch inside automated scripts onlywith caution to avoid overloading the database servers.
Same as -q, but the local cache is reset.
-Q
Query the central database even for entries which are recognized locally. Use this if you suspect that the displayed entry is wrong.
Options for selection of devices
Other options
Invoke bus mapping mode which performs a thorough scan of all PCI devices, including those behind misconfigured bridges, etc. This option gives meaningfulresults only with a direct hardware access mode, which usually requires root privileges. Please note that the bus mapper only scans PCI domain 0.
PCI access options
Use direct hardware access via Intel configuration mechanism 1. (This is a shorthand for -A intel-conf1.)
-H2
Use direct hardware access via Intel configuration mechanism 2. (This is a shorthand for -A intel-conf2.)
Lspci On Windows Operating System
Increase debug level of the library.
Machine Readable Output
If you intend to process the output of lspci automatically, please use one of the machine-readable output formats (-m, -vm, -vmm)described in this section. All other formats are likely to change between versions of lspci.
All numbers are always printed in hexadecimal. If you want to process numeric ID's instead of names, please add the -n switch.
Simple format (-m)
Revision number.
Verbose format (-vmm)
The verbose output is a sequence of records separated by blank lines. Each record describes a single device by a sequence of lines, each line containing asingle 'tag: value' pair. The tag and the value are separated by a single tab character. Neither the records nor the lines within arecord are in any particular order. Tags are case-sensitive.The following tags are defined:
Lspci On Windows App
SlotThe name of the slot where the device resides ([domain:]bus:device.function). This tag is always the first in a record.
Class
Name of the class.
Vendor
Name of the vendor.
Device Prevent itunes from downloading apps on mac.
Name of the device.
Revision number (optional).
ProgIf
Programming interface (optional).
Lspci Windows 7
Driver
Kernel driver currently handling the device (optional, Linux only).
Module
Kernel module reporting that it is capable of handling the device (optional, Linux only).
Backward-compatible verbose format (-vm)
Files
/usr/share/hwdata/pci.ids
Bugs
Sometimes, lspci is not able to decode the configuration registers completely. This usually happens when not enough documentation was available to theauthors. In such cases, it at least prints the <?> mark to signal that there is potentially something more to say. If you know the details,patches will be of course welcome.
Access to the extended configuration space is currently supported only by the linux_sysfs back-end.
See Also
setpci(8), update-pciids(8), pcilib(7)
Author
The PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.