]> mj.ucw.cz Git - pciutils.git/blob - lspci.8
Miscellaneous documentation fixes.
[pciutils.git] / lspci.8
1 .TH lspci 8 "19 January 1999" "pciutils-1.10" "Linux 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 busses in the system and
11 all devices connected to them. It requires Linux kernel 2.1.82 or newer and
12 supersedes the original /proc/pci interface found in earlier kernels.
13
14 If you are going to report bugs in PCI device drivers or in
15 .I lspci
16 itself, please include output of "lspci -vvx".
17
18 .SH OPTIONS
19 .TP
20 .B -v
21 Tells
22 .I lspci
23 to be verbose and display detailed information about all devices.
24 .TP
25 .B -vv
26 Tells
27 .I lspci
28 to be very verbose and display even more information (actually everything the
29 PCI device is able to tell). The exact meaning of these data is not explained
30 in this manual page, if you want to know more, consult
31 .B /usr/include/linux/pci.h
32 or the PCI specs.
33 .TP
34 .B -n
35 Show PCI vendor and device codes as numbers instead of looking them up in the
36 PCI ID database.
37 .TP
38 .B -x
39 Show hexadecimal dump of first 64 bytes of the PCI configuration space (the standard
40 header). Useful for debugging of drivers and
41 .I lspci
42 itself.
43 .TP
44 .B -xxx
45 Show hexadecimal dump of whole PCI configuration space. Available only for root
46 as several PCI devices
47 .B crash
48 when you try to read undefined portions of the config space (this behaviour probably
49 doesn't violate the PCI standard, but it's at least very stupid).
50 .TP
51 .B -b
52 Bus-centric view. Show all IRQ numbers and addresses as seen by the cards on the
53 PCI bus instead of as seen by the kernel.
54 .TP
55 .B -t
56 Show a tree-like diagram containing all busses, bridges, devices and connections
57 between them.
58 .TP
59 .B -s [[<bus>]:][<slot>][.[<func>]]
60 Show only devices in specified bus, slot and function. Each component of the device
61 address can be omitted or set as "*" meaning "any value". All numbers are
62 hexadecimal.  E.g., "0:" means all devices on bus 0, "0" means all functions of device 0
63 on any bus, "0.3" selects third function of device 0 on all busses and ".4" shows only
64 fourth function of each device.
65 .TP
66 .B -d [<vendor>]:[<device>]
67 Show only devices with specified vendor and device ID. Both ID's are given in
68 hexadecimal and may be omitted or given as "*" meaning "any value".
69 .TP
70 .B -i <file>
71 Use
72 .B
73 <file>
74 as PCI ID database instead of /usr/share/pci.ids.
75 .TP
76 .B -p <dir>
77 Use
78 .B <dir>
79 as directory containing PCI bus information instead of /proc/bus/pci.
80 .TP
81 .B -m
82 Dump PCI device data in machine readable form (both normal and verbose format supported)
83 for easy parsing by scripts.
84
85 .SH FILES
86 .TP
87 .B /usr/share/pci.ids
88 A list of all known PCI ID's (vendors, devices, classes and subclasses).
89 .TP
90 .B /proc/bus/pci
91 An interface to PCI bus configuration space provided by the kernel. Contains
92 per-bus subdirectories with per-card config space files and a
93 .I
94 devices
95 file containing a list of all PCI devices.
96
97 .SH AUTHOR
98 The Linux PCI Utilities are maintained by Martin Mares <mj@atrey.karlin.mff.cuni.cz>.