]> git.ipfire.org Git - thirdparty/pciutils.git/blame - pcilib.man
Display physical slot information in lspci -v
[thirdparty/pciutils.git] / pcilib.man
CommitLineData
f2bf13dc
MM
1.TH pcilib 7 "@TODAY@" "@VERSION@" "The PCI Utilities"
2.IX pcilib
3.SH NAME
4pcilib \- a library for accessing PCI devices
5
6.SH DESCRIPTION
7
8The PCI library (also known as \fIpcilib\fP and \fIlibpci\fP) is a portable library
9for accessing PCI devices and their configuration space.
10
11.SH ACCESS METHODS
12
13.PP
14The library supports a variety of methods to access the configuration space
15on different operating systems. By default, the first matching method in this
16list is used, but you can specify override the decision (see the \fB-A\fP switch
17of \fIlspci\fP).
18
19.TP
20.B linux-sysfs
21The
22.B /sys
23filesystem on Linux 2.6 and newer. The standard header of the config space is available
9bd5b1cf
BH
24to all users, the rest only to root. Supports extended configuration space, PCI domains,
25VPD (from Linux 2.6.26) and information on attached kernel drivers.
f2bf13dc
MM
26.TP
27.B linux-proc
28The
29.B /proc/bus/pci
30interface supported by Linux 2.1 and newer. The standard header of the config space is available
31to all users, the rest only to root.
32.TP
33.B intel-conf1
34Direct hardware access via Intel configuration mechanism 1. Available on i386 and compatibles
35on Linux, Solaris/x86, GNU Hurd and Windows. Requires root privileges.
36.TP
37.B intel-conf2
38Direct hardware access via Intel configuration mechanism 2. Available on i386 and compatibles
39on Linux, Solaris/x86, GNU Hurd and Windows. Requires root privileges. Warning: This method
40is able to address only the first 16 devices on any bus and it seems to be very
41unreliable in many cases.
42.TP
43.B fbsd-device
44The
45.B /dev/pci
46device on FreeBSD. Requires root privileges.
47.TP
48.B aix-device
49Access method used on AIX. Requires root privileges.
50.TP
51.B nbsd-libpci
52The
53.B /dev/pci0
54device on NetBSD accessed using the local libpci library.
55.TP
56.B obsd-device
57The
58.B /dev/pci
59device on OpenBSD. Requires root privileges.
60.TP
61.B dump
62Read the contents of configuration registers from a file specified in the
63.B dump.name
64parameter. The format corresponds to the output of \fIlspci\fP \fB-x\fP.
65
66.SH PARAMETERS
67
68.PP
69The library is controlled by several parameters. They should have sensible default
70values, but in case you want to do something unusual (or even something weird),
71you can override them (see the \fB-O\fP switch of \fIlspci\fP).
72
73.SS Parameters of specific access methods
74
75.TP
76.B dump.name
77Name of the bus dump file to read from.
78.TP
79.B fbsd.path
80Path to the FreeBSD PCI device.
81.TP
82.B nbsd.path
83Path to the NetBSD PCI device.
84.TP
85.B obsd.path
86Path to the OpenBSD PCI device.
87.TP
88.B proc.path
89Path to the procfs bus tree.
90.TP
91.B sysfs.path
92Path to the sysfs device tree.
93
94.SS Parameters for resolving of ID's via DNS
95.TP
96.B net.domain
97DNS domain containing the ID database.
98.TP
99.B net.cache_name
100Name of the file used for caching of resolved ID's.
101
102.SH SEE ALSO
103
104.BR lspci (8),
105.BR setpci (8),
106.BR update-pciids (8)
107
108.SH AUTHOR
109The PCI Utilities are maintained by Martin Mares <mj@ucw.cz>.