]> mj.ucw.cz Git - pciutils.git/blob - lspci.man
Merged more PCI Express updates.
[pciutils.git] / lspci.man
1 .TH lspci 8 "@TODAY@" "@VERSION@" "The PCI Utilities"
2 .IX lspci
3 .SH NAME
4 lspci \- list all PCI devices
5 .SH SYNOPSIS
6 .B lspci
7 .RB [ options ]
8 .SH DESCRIPTION
9 .B lspci
10 is a utility for displaying information about all PCI buses in the system and
11 all devices connected to them.
12
13 If you are going to report bugs in PCI device drivers or in
14 .I lspci
15 itself, please include output of "lspci -vvx".
16
17 .SH OPTIONS
18 .TP
19 .B -v
20 Tells
21 .I lspci
22 to be verbose and display detailed information about all devices.
23 .TP
24 .B -vv
25 Tells
26 .I lspci
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
31 or the PCI specs.
32 .TP
33 .B -n
34 Show PCI vendor and device codes as numbers instead of looking them up in the
35 PCI ID database.
36 .TP
37 .B -x
38 Show hexadecimal dump of first 64 bytes of the PCI configuration space (the standard
39 header). Useful for debugging of drivers and
40 .I lspci
41 itself.
42 .TP
43 .B -xxx
44 Show hexadecimal dump of whole PCI configuration space. Available only for root
45 as several PCI devices
46 .B crash
47 when you try to read undefined portions of the config space (this behavior probably
48 doesn't violate the PCI standard, but it's at least very stupid).
49 .TP
50 .B -xxxx
51 Show hexadecimal dump of the extended PCI configuration space.
52 .TP
53 .B -b
54 Bus-centric view. Show all IRQ numbers and addresses as seen by the cards on the
55 PCI bus instead of as seen by the kernel.
56 .TP
57 .B -t
58 Show a tree-like diagram containing all buses, bridges, devices and connections
59 between them.
60 .TP
61 .B -s [[[[<domain>]:]<bus>]:][<slot>][.[<func>]]
62 Show only devices in the specified domain (in case your machine has several host bridges,
63 they can either share a common bus number space or each of them can address a PCI domain
64 of its own; domains are numbered from 0 to ffff), bus (0 to ff), slot (0 to 1f) and function (0 to 7).
65 Each component of the device address can be omitted or set to "*", both meaning "any value". All numbers are
66 hexadecimal.  E.g., "0:" means all devices on bus 0, "0" means all functions of device 0
67 on any bus, "0.3" selects third function of device 0 on all buses and ".4" shows only
68 the fourth function of each device.
69 .TP
70 .B -d [<vendor>]:[<device>]
71 Show only devices with specified vendor and device ID. Both ID's are given in
72 hexadecimal and may be omitted or given as "*", both meaning "any value".
73 .TP
74 .B -i <file>
75 Use
76 .B
77 <file>
78 as PCI ID database instead of @SHAREDIR@/pci.ids.
79 .TP
80 .B -p <dir>
81 Use
82 .B <dir>
83 as directory containing PCI bus information instead of /proc/bus/pci.
84 .TP
85 .B -m
86 Dump PCI device data in machine readable form (both normal and verbose format supported)
87 for easy parsing by scripts.
88 .TP
89 .B -M
90 Invoke bus mapping mode which performs a thorough scan of all PCI devices, including
91 those behind misconfigured bridges etc. This option is available only to root and it
92 gives meaningful results only if combined with direct hardware access mode (otherwise
93 the results are identical to normal listing modes, modulo bugs in lspci). Please note
94 that the bus mapper doesn't support PCI domains and scans only domain 0.
95 .TP
96 .B --version
97 Shows 
98 .I lspci
99 version. This option should be used stand-alone.
100
101 .SH PCILIB OPTIONS
102 The PCI utilities use PCILIB (a portable library providing platform-independent
103 functions for PCI configuration space access) to talk to the PCI cards. The following
104 options control parameters of the library, especially what access method it uses.
105 By default, PCILIB uses the first available access method and displays no debugging
106 messages. Each switch is accompanied by a list of hardware/software configurations
107 it's supported in.
108
109 .TP
110 .B -P <dir>
111 Force use of Linux /proc/bus/pci style configuration access, using
112 .B <dir>
113 instead of /proc/bus/pci. (Linux 2.1 or newer only)
114 .TP
115 .B -H1
116 Use direct hardware access via Intel configuration mechanism 1. (i386 and compatible only)
117 .TP
118 .B -H2
119 Use direct hardware access via Intel configuration mechanism 2. Warning: This method
120 is able to address only first 16 devices on any bus and it seems to be very
121 unreliable in many cases. (i386 and compatible only)
122 .TP
123 .B -F <file>
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)
128 .TP
129 .B -G
130 Increase debug level of the library. (All systems)
131
132 .SH FILES
133 .TP
134 .B @SHAREDIR@/pci.ids
135 A list of all known PCI ID's (vendors, devices, classes and subclasses).
136 .TP
137 .B /proc/bus/pci
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
140 .I devices
141 file containing a list of all PCI devices.
142
143 .SH SEE ALSO
144 .BR setpci (8),
145 .BR update-pciids (8)
146
147 .SH AUTHOR
148 The PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.