]> git.ipfire.org Git - thirdparty/pciutils.git/blame - README
pcilmr: Add option to save margining results in csv form
[thirdparty/pciutils.git] / README
CommitLineData
ab12277e 1This package contains the PCI Utilities, version @VERSION@.
2f48f637 2
61829219 3Copyright (c) 1997--2023 Martin Mares <mj@ucw.cz>
2f48f637
MM
4
5All files in this package can be freely distributed and used according
6to the terms of the GNU General Public License, either version 2 or
633e6f81 7(at your opinion) any newer version. See https://www.gnu.org/ for details.
2f48f637 8
53e73b36
MM
9The author wants to clarify that he does not consider programs which link
10dynamically to the libpci to be derived works of the library.
11
727ce158 12
07159913
MM
131. What's that?
14~~~~~~~~~~~~~~~
15The PCI Utilities package contains a library for portable access to PCI bus
16configuration registers and several utilities based on this library.
727ce158 17
0ac282f2
MM
18In runs on the following systems:
19
20 Linux (via /sys/bus/pci, /proc/bus/pci or i386 ports)
21 FreeBSD (via /dev/pci)
22 NetBSD (via libpci)
ebbd5e81 23 OpenBSD (via /dev/pci or i386 ports)
0ac282f2
MM
24 GNU/kFreeBSD (via /dev/pci)
25 Solaris/i386 (direct port access)
26 Aix (via /dev/pci and odmget)
27 GNU Hurd (direct port access)
83b2cb2e 28 Windows (via cfgmgr32 or direct port access, see README.Windows for caveats)
550d67d1 29 CYGWIN (direct port access)
40e253d7
FR
30 BeOS (via syscalls)
31 Haiku (via /dev/misc/poke)
8d1cb3d7 32 Darwin (via IOKit)
5c5ce192 33 DOS/DJGPP (via i386 ports)
5f22f791 34 SylixOS (via /proc/pci)
0ac282f2 35
81abd2a7
MM
36It should be very easy to add support for other systems as well (volunteers
37wanted; if you want to try that, I'll be very glad to see the patches and
38include them in the next version).
b2c9b373 39
07159913 40The utilities include: (See manual pages for more details)
b2c9b373 41
46ea554d 42 - lspci: displays detailed information about all PCI buses and devices.
b2c9b373 43
07159913
MM
44 - setpci: allows to read from and write to PCI device configuration
45 registers. For example, you can adjust the latency timers with it.
46 CAUTION: There is a couple of dangerous points and caveats, please read
47 the manual page first!
2f48f637 48
1b95f396
MM
49 - update-pciids: download the current version of the pci.ids file.
50
f3395cc5 51
07159913
MM
522. Compiling and (un)installing
53~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54Just run "make" to compile the package and then "make install" to install it.
f7f2966b
MM
55Please note that a C compiler supporting the C99 standard is required.
56Also, GNU make is needed on most platforms.
2f48f637 57
07159913 58If you want to change the default installation location, please override
f4ddb8d3
MM
59the PREFIX variable specified in the Makefile -- e.g., you can use
60"make PREFIX=/opt/pciutils install" to create a separate installation
61not interfering with the rest of your system. Setting the DESTDIR variable
62will allow you to install to a different directory from the one you intend
63to eventually run it from. This is useful for people who are packaging
64pciutils to install on other computers.
07159913 65
d7ea742c
MM
66There are several options which can be set in the Makefile or overridden
67when running make:
68
69 ZLIB=yes/no Enable support for compressed pci.ids (requires zlib).
70 If it is enabled, pciutils will use pci.ids.gz in preference to
71 pci.ids, even if the pci.ids file is newer. If the pci.ids.gz
72 file is missing, it will use pci.ids instead. If you do not
73 specify this option, the configure script will try to guess
74 automatically based on the presence of zlib.
75
dab118d2 76 DNS=yes/no Enable support for querying the central database of PCI IDs
d7ea742c
MM
77 using DNS. Requires libresolv (which is available on most
78 systems as a part of the standard libraries) and tries to
79 autodetect its presence if the option is not specified.
80
2f421184 81 SHARED=yes/ Build libpci as a shared library. Requires GCC 4.0 or newer.
d7ea742c
MM
82 no/local The ABI of the shared library is intended to remain backward
83 compatible for a long time (we use symbol versioning to achieve
84 that, like GNU libc does). The value `local' includes the
85 right directory name in the binaries, so the utilities can be
86 run without installation. This is not recommended for any
87 production builds.
88
89"make install-lib" installs the library together with its header files
90for use by other programs.
cc062b4a 91
07159913
MM
92When you are bored of dumping PCI registers, just use "make uninstall".
93
94
dab118d2 953. Getting new IDs
07159913 96~~~~~~~~~~~~~~~~~~~
dab118d2
MM
97The database of PCI IDs (the pci.ids file) gets out of date much faster
98than I release new versions of this package, so it is maintained separately.
07159913 99
633e6f81 100It lives at https://pci-ids.ucw.cz/, where you can browse the database,
dab118d2
MM
101download the most recent pci.ids file (e.g., by running the update-ids utility)
102and also submit new entries.
a33d0eb7 103
14b85d7c
MM
104Alternatively, you can use `lspci -q' to query the central database
105for new entries via network.
106
cb968b8f 107The pci.ids file is also mirrored at https://github.com/pciutils/pciids.
07159913 108
b5847329
MM
109On Linux systems with a recent enough version of libudev, UDEV's HWDB
110database is consulted when pci.ids lacks the device.
111
07159913 112
0ac282f2
MM
1134. Getting new versions
114~~~~~~~~~~~~~~~~~~~~~~~
dab118d2
MM
115The current version of pciutils is available at:
116
633e6f81 117 https://mj.ucw.cz/sw/pciutils/
dab118d2
MM
118
119The tarball can be downloaded at the following places:
0ac282f2 120
310a33cf
MM
121 https://mj.ucw.cz/download/linux/pci/
122 ftp://ftp.ucw.cz/pub/mj/linux/pci/
e4d209fd 123 https://www.kernel.org/pub/software/utils/pciutils/ (expect a couple of hours delay)
0ac282f2
MM
124
125There is also a public GIT tree at:
126
633e6f81 127 https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git
cb968b8f 128 https://github.com/pciutils/pciutils
07159913
MM
129
130
1315. Using the library
132~~~~~~~~~~~~~~~~~~~~
14b85d7c
MM
133So far, there is only a little documentation for the library except for the
134general introduction in the pcilib(7) man page. If you want to use the
135library in your programs, please follow the comments in lib/pci.h and in
bc46bc39 136the example program example.c.
07159913
MM
137
138
1396. Feedback
140~~~~~~~~~~~
141If you have any bug reports or suggestions, send them to the author.
142
dab118d2 143If you have any new IDs, I'll be very glad to add them to the database.
633e6f81 144Just submit them at https://pci-ids.ucw.cz/.
783ed67d 145
dab118d2
MM
146Announcements of new versions are sent to linux-pci@vger.kernel.org
147(see http://vger.kernel.org/ for instructions).
2bea6231 148
55c815b5
MM
149 Have fun
150 Martin