1 .TH lspci 8 "@TODAY@" "@VERSION@" "Linux PCI Utilities"
4 lspci \- list all PCI devices
10 is a utility for displaying information about all PCI buses in the system and
11 all devices connected to them.
13 If you are going to report bugs in PCI device drivers or in
15 itself, please include output of "lspci -vvx".
22 to be verbose and display detailed information about all devices.
27 to be very verbose and display even more information (actually everything the
28 PCI device is able to tell). The exact meaning of these data is not explained
29 in this manual page, if you want to know more, consult
30 .B /usr/include/linux/pci.h
34 Show PCI vendor and device codes as numbers instead of looking them up in the
38 Show hexadecimal dump of first 64 bytes of the PCI configuration space (the standard
39 header). Useful for debugging of drivers and
44 Show hexadecimal dump of whole PCI configuration space. Available only for root
45 as several PCI devices
47 when you try to read undefined portions of the config space (this behaviour probably
48 doesn't violate the PCI standard, but it's at least very stupid).
51 Bus-centric view. Show all IRQ numbers and addresses as seen by the cards on the
52 PCI bus instead of as seen by the kernel.
55 Show a tree-like diagram containing all buses, bridges, devices and connections
58 .B -s [[<bus>]:][<slot>][.[<func>]]
59 Show only devices in specified bus, slot and function. Each component of the device
60 address can be omitted or set as "*" meaning "any value". All numbers are
61 hexadecimal. E.g., "0:" means all devices on bus 0, "0" means all functions of device 0
62 on any bus, "0.3" selects third function of device 0 on all buses and ".4" shows only
63 fourth function of each device.
65 .B -d [<vendor>]:[<device>]
66 Show only devices with specified vendor and device ID. Both ID's are given in
67 hexadecimal and may be omitted or given as "*" meaning "any value".
73 as PCI ID database instead of /usr/share/pci.ids.
78 as directory containing PCI bus information instead of /proc/bus/pci.
81 Dump PCI device data in machine readable form (both normal and verbose format supported)
82 for easy parsing by scripts.
85 Invoke bus mapping mode which scans the bus extensively to find all devices including
86 those behind misconfigured bridges etc. Please note that this is intended only for
87 debugging and as it can crash the machine (only in case of buggy devices, but
88 unfortunately these happen to exist), it's available only to root. Also using
89 -M on PCI access methods which don't directly touch the hardware has no
90 sense since the results are (modulo bugs in lspci) identical to normal listing
96 version. This option should be used standalone.
99 The PCI utilities use PCILIB (a portable library providing platform-independent
100 functions for PCI configuration space access) to talk to the PCI cards. The following
101 options control parameters of the library, especially what access method it uses.
102 By default, PCILIB uses the first available access method and displays no debugging
103 messages. Each switch is accompanied by a list of hardware/software configurations
108 Force use of Linux /proc/bus/pci style configuration access, using
110 instead of /proc/bus/pci. (Linux 2.1 or newer only)
113 Use direct hardware access via Intel configuration mechanism 1. (i386 and compatible only)
116 Use direct hardware access via Intel configuration mechanism 2. Warning: This method
117 is able to address only first 16 devices on any bus and it seems to be very
118 unrealiable in many cases. (i386 and compatible only)
121 Use PCI access syscalls. (Linux on Alpha and UltraSparc only)
124 Extract all information from given file containing output of lspci -x. This is very
125 useful for analysis of user-supplied bug reports, because you can display the
126 hardware configuration in any way you want without disturbing the user with
127 requests for more dumps. (All systems)
130 Increase debug level of the library. (All systems)
134 .B @SHAREDIR@/pci.ids
135 A list of all known PCI ID's (vendors, devices, classes and subclasses).
138 An interface to PCI bus configuration space provided by the post-2.1.82 Linux
139 kernels. Contains per-bus subdirectories with per-card config space files and a
141 file containing a list of all PCI devices.
144 .BR setpci (8), update-pciids (8)
147 The Linux PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.