Debian Codegraph @

README

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