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