1ab12277eSMartin MaresThis package contains the PCI Utilities, version @VERSION@. 22f48f637SMartin Mares 31d5cf727SMartin MaresCopyright (c) 1997--2006 Martin Mares <[email protected]> 42f48f637SMartin Mares 52f48f637SMartin MaresAll files in this package can be freely distributed and used according 62f48f637SMartin Maresto the terms of the GNU General Public License, either version 2 or 7deaad187SMartin Mares(at your opinion) any newer version. See http://www.gnu.org/ for details. 82f48f637SMartin Mares 9727ce158SMartin Mares 1007159913SMartin Mares1. What's that? 1107159913SMartin Mares~~~~~~~~~~~~~~~ 1255c815b5SMartin MaresThe PCI Utilities package contains a library for portable access to PCI bus 1307159913SMartin Maresconfiguration registers and several utilities based on this library. 1407159913SMartin Mares 150ac282f2SMartin MaresIn runs on the following systems: 160ac282f2SMartin Mares 170ac282f2SMartin Mares Linux (via /sys/bus/pci, /proc/bus/pci or i386 ports) 180ac282f2SMartin Mares FreeBSD (via /dev/pci) 190ac282f2SMartin Mares NetBSD (via libpci) 200ac282f2SMartin Mares OpenBSD (via /dev/pci) 210ac282f2SMartin Mares GNU/kFreeBSD (via /dev/pci) 220ac282f2SMartin Mares Solaris/i386 (direct port access) 230ac282f2SMartin Mares Aix (via /dev/pci and odmget) 240ac282f2SMartin Mares GNU Hurd (direct port access) 250ac282f2SMartin Mares Windows (direct port access) 260ac282f2SMartin Mares 2781abd2a7SMartin MaresIt should be very easy to add support for other systems as well (volunteers 2881abd2a7SMartin Mareswanted; if you want to try that, I'll be very glad to see the patches and 2981abd2a7SMartin Maresinclude them in the next version). 30727ce158SMartin Mares 3155c815b5SMartin MaresThe utilities include: (See manual pages for more details) 32b2c9b373SMartin Mares 3346ea554dSMartin Mares - lspci: displays detailed information about all PCI buses and devices. 34b2c9b373SMartin Mares 35b2c9b373SMartin Mares - setpci: allows to read from and write to PCI device configuration 36b2c9b373SMartin Mares registers. For example, you can adjust the latency timers with it. 3707159913SMartin Mares CAUTION: There is a couple of dangerous points and caveats, please read 3807159913SMartin Mares the manual page first! 39b2c9b373SMartin Mares 401b95f396SMartin Mares - update-pciids: download the current version of the pci.ids file. 411b95f396SMartin Mares 422f48f637SMartin Mares 4307159913SMartin Mares2. Compiling and (un)installing 4407159913SMartin Mares~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4507159913SMartin MaresJust run "make" to compile the package and then "make install" to install it. 46f3395cc5SMartin Mares 4707159913SMartin MaresIf you want to change the default installation location, please override 48*f4ddb8d3SMartin Maresthe PREFIX variable specified in the Makefile -- e.g., you can use 49*f4ddb8d3SMartin Mares"make PREFIX=/opt/pciutils install" to create a separate installation 50*f4ddb8d3SMartin Maresnot interfering with the rest of your system. Setting the DESTDIR variable 51*f4ddb8d3SMartin Mareswill allow you to install to a different directory from the one you intend 52*f4ddb8d3SMartin Maresto eventually run it from. This is useful for people who are packaging 53*f4ddb8d3SMartin Marespciutils to install on other computers. 5407159913SMartin Mares 5507159913SMartin MaresWhen you are bored of dumping PCI registers, just use "make uninstall". 5607159913SMartin Mares 5707159913SMartin Mares 5807159913SMartin Mares3. Getting new ID's 5907159913SMartin Mares~~~~~~~~~~~~~~~~~~~ 6007159913SMartin MaresThe database of PCI ID's (the pci.ids file) gets out of date much faster 6107159913SMartin Maresthan I release new versions of this package. 6207159913SMartin Mares 6307159913SMartin MaresIf you are missing names for any of your devices or you just want to stay 6407159913SMartin Mareson the bleeding edge, download the most recent pci.ids file from 651b95f396SMartin Mareshttp://pciids.sf.net/ (e.g., by running the update-ids utility). 66a33d0eb7SMartin Mares 67a33d0eb7SMartin MaresIf your devices still appear as unknown, please send us their ID's and 68a33d0eb7SMartin Maresnames, the detailed instructions for submissions are listed on the 69a33d0eb7SMartin Maressf.net web page. 7007159913SMartin Mares 7107159913SMartin Mares 720ac282f2SMartin Mares4. Getting new versions 730ac282f2SMartin Mares~~~~~~~~~~~~~~~~~~~~~~~ 740ac282f2SMartin MaresNew versions of pciutils are available at the following places: 7507159913SMartin Mares 760ac282f2SMartin Mares ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/ 770ac282f2SMartin Mares ftp://ftp.kernel.org/pub/software/utils/pciutils/ (expect a couple of hours delay) 780ac282f2SMartin Mares ftp://metalab.unc.edu/pub/Linux/hardware/ (expect a couple of days delay) 790ac282f2SMartin Mares 800ac282f2SMartin MaresThere is also a public GIT tree at: 810ac282f2SMartin Mares 820ac282f2SMartin Mares git://git.kernel.org/pub/scm/utils/pciutils/pciutils.git 8307159913SMartin Mares 8407159913SMartin Mares 8507159913SMartin Mares5. Using the library 8607159913SMartin Mares~~~~~~~~~~~~~~~~~~~~ 8707159913SMartin MaresThere is still no documentation for the library, if you want to use it 8807159913SMartin Maresin your programs, please follow the comments in lib/pci.h and in the 8907159913SMartin Maresexample program lib/example.c. 9007159913SMartin Mares 9107159913SMartin Mares 9207159913SMartin Mares6. Feedback 9307159913SMartin Mares~~~~~~~~~~~ 942f48f637SMartin MaresIf you have any bug reports or suggestions, send them to the author. 952f48f637SMartin Mares 9607159913SMartin MaresIf you have any new ID's, I'll be very glad to add them to the database, but 9707159913SMartin Maresplease take a look at http://pciids.sf.net/ first and follow the instructions. 9807159913SMartin Mares 992f48f637SMartin MaresIf you want, subscribe to [email protected] (send 100783ed67dSMartin Mares"subscribe linux-pci" to [email protected]). 1012f48f637SMartin MaresRelease notes about new versions will be send to the list and problems with 1022f48f637SMartin Maresthe Linux PCI support will be probably discussed there, too. 1032f48f637SMartin Mares 10407159913SMartin Mares 10507159913SMartin Mares7. Miscellanea 10607159913SMartin Mares~~~~~~~~~~~~~~ 107e4842ff3SMartin MaresYou also might want to look at the pciutils web page containing release 10881abd2a7SMartin Maresnotes and other news: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml . 109e4842ff3SMartin Mares 1102bea6231SMartin MaresThere also exists a utility called PowerTweak which is able to fine tune 1112bea6231SMartin Maresparameters of many chipsets much better than the Bridge Optimization code 112783ed67dSMartin Maresin Linux kernel (already removed in 2.3.x). See http://powertweak.sf.net/ 1132bea6231SMartin Maresfor more information. 1142bea6231SMartin Mares 11555c815b5SMartin Mares Have fun 11655c815b5SMartin Mares Martin 117