1 2004-05-28 Martin Mares <mj@ucw.cz>
3 * lspci.c: Decode all bits of the secondary status word in type 1 headers.
4 Thanks to Maciej W. Rozycki <macro@ds2.pg.gda.pl> for the patch.
6 2003-12-27 Martin Mares <mj@ucw.cz>
8 * Released as 2.1.99-test3.
10 * lspci.man, setpci.man: Document domains and correct spelling.
12 * lib/dump.c (dump_init): Added ability to read domain numbers.
14 * lspci.c: Devices in domains different from 0 have their slot number
15 printed as "<domain>:<bus>:<slot>.<func>". Tree view supports domains
18 * lib/filter.c: Slot filters understand domains.
20 * lib/generic.c: Mention the domain in slot numbers in all error messages.
22 * lib/internal.h: The #ifdef for Linux <asm/byteorder.h> was wrong.
24 * lib/access.c (pci_get_dev): Added support for domains.
26 * lib/sysfs.c (sysfs_scan): Read vendor and device ID from the config
27 registers (or to be precise, leave it for the generic parts of the pcilib
28 to do so) instead of reading them from the sysfs. It's faster this way.
30 * lspci.c (show_pcix): Don't touch pci_dev->hdrtype, it's an internal
31 variable. Better read it from the config registers (it's cached anyway).
33 * lib/sysfs.c (sysfs_scan), lib/proc.c (proc_scan): Don't read the hdrtype.
34 lib/generic.c (pci_generic_fill_info): If hdrtype is -1 (unset), read it.
35 Saves lots of unnecessary file accesses.
37 * lib/pci.h (PCIADDR_PORT_FMT): Use %llx instead of %Lx, because the latter
38 is not supported by all C libraries.
40 * Makefile: Always enter the lib directory (remember that we don't have
41 full dependecies for the library in the top-level Makefile; hmmm, another
42 thing to rewrite some day).
44 * lib/sysfs.c: Added Linux sysfs access method based on the patch
45 written by Matthew Wilcox <willy@fc.hp.com>.
47 * lib/proc.c: Renamed the access method name from "/proc/bus/pci" to "Linux-proc".
49 * lib/pread.h: The hacks to support pread on various versions
50 of Linux libc moved there.
52 * lib/proc.c (proc_setup): The return value of snprintf() varies
53 between glibc versions, so we need to check both for a negative
54 values and for too large values.
56 * Removed last few references to the "Linux PCI Utilities", the
57 package is pretty cross-platform now :)
59 2003-12-27 Martin Mares <mj@ucw.cz>
61 * Released as 2.1.99-test2.
63 * README, pciutils.lsm, pciutils.spec: Use @VERSION@ to make the
64 release scripts insert the current version. "make release" is gone.
66 * maint/release, maint/release.pm: Added a new system of scripts for
67 making releases including inter-version diffs etc.
69 * Makefile: Cleaned up.
71 * lib/fbsd-device.c: I patched another copy of this file by mistake,
72 this time the version checks should be right.
74 2003-12-27 Martin Mares <mj@ucw.cz>
76 * Released as 2.1.99-test1.
78 * pciutils.h, common.c, lspci.man, setpci.man, lib/internal.h:
79 Remove shadows of the syscall access method which was never
82 * update-pciids.sh: Try to preserve permissions of the old file
83 if chmod supports --reference. Should close Debian Bug #223740.
85 * lib/proc.c (proc_setup): Increased path name length limit to 1024.
86 Thanks for Redhat and Mandrake for inspiration.
88 * lib/configure: Recognize ppc and ppc64, both have 64-bit addresses.
89 Grabbed from Redhat (Fedora) patches.
91 2003-12-27 Martin Mares <mj@ucw.cz>
93 Merged bug fixes from Debian patches:
95 * lspci.c (show_verbose): "Cache Line Size" should be capitalized.
97 * lspci.c (show_pcix_nobridge): Added a missing newline.
99 * lib/proc.c (proc_scan): When reading the header type, don't
100 forget to clear the topmost bit indicating that the device has
103 2003-12-27 Martin Mares <mj@ucw.cz>
105 Updated the FreeBSD port. Thanks to Samy Al Bahra <samy@kerneled.com>
108 * lib/Makefile: Add ${FREEBSD_SYS} to the include path if it's defined.
109 * lib/fbsd-device.c: Select the right set of system includes according
110 to __FreeBSD_version.
112 2003-12-27 Martin Mares <mj@ucw.cz>
114 Merged support for Solaris on i386 by Bill Moore <billm@eng.sun.com>
117 * lib/configure: Recognize SunOS.
118 * lib/internal.h: Learn how to recognize byte order on SunOS.
119 * lib/i386-ports.c: Split OS-dependent I/O port access from i386-ports.c.
120 * lib/i386-io-linux.h: Linux specific part.
121 * lib/i386-io-hurd.h: GNU/Hurd specific part.
122 * lib/i386-io-sunos.h: SunOS specific part.
124 2003-12-26 Martin Mares <mj@ucw.cz>
126 * lib/header.h (PCI_*_MASK): Cast to pciaddr_t explicitly.
128 * lib/pci.h: Types declared in <sys/types.h> should be usable on all
129 platforms we currently support, so kill the forest of #ifdef's and
130 use them in all cases.
132 * lib/pci.h: Use ULONG_MASK to decide whether we should use long
133 or long long to represent a 64-bit address. Killed HAVE_LONG_ADDRESS.
134 Define format strings for addresses, port numbers and IRQ numbers
137 * lib/proc.c (proc_scan): Use PCIADDR_T_FMT for scanf'ing addresses.
139 2003-12-26 Marco Gerards <metgerards@student.han.nl>
141 Added support for the GNU Hurd (cleaned up by Martin Mares):
143 * lib/configure [GNU]: Use the i386 ports for configuration access.
144 * lib/i386-ports.c: Don't call iopl() on the Hurd.
145 * lib/pci.h [OS_GNU]: Include <sys/types.h> and use it for defining
148 2003-12-26 Martin Mares <mj@ucw.cz>
150 * lspci.c (show_pcix_bridge, show_pcix_nobridge): Don't forget to call
151 config_fetch() to ensure that the registers have been read. Thanks to
152 Bill Wood <bill.wood@hp.com> for the patch.
154 * lspci.c: Ensure that failure of config_fetch() is handled correctly
157 * lspci.man: There was one more explicit reference to /usr/share/pci.ids.
158 Changed to @SHAREDIR@. Patch from Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
160 * setpci.c (main): Better error messages.
162 * setpci.c (ex_op): The demo mode should disable only writing, not reading.
164 * setpci.man: The documentation was inconsistent on what should -D do.
165 Document the new behaviour.
167 * pciutils.h, common.c, setpci.c: Introduced a NONRET macro encapsulating
168 the GCC specific __attribute__((noreturn)) and killed the hack with
169 redefining __attribute__ on non-GCC compilers.
171 * Makefile: Added missing dependencies. Parallel builds work now.
172 Problem reported by Andreas Haumer <andreas@xss.co.at>, but I chose
175 * Makefile (MANDIR): Use `:=' instead of `=' to avoid executing the shell
176 command every time $(MANDIR) is referenced.
178 * lspci.c (main): The error message for `lspci -s' incorrectly mentioned
179 a `-f' switch. Reported by Steve Finney <Steve.Finney@SpirentCom.COM>.
181 * lib/generic.c: Removed memory leak in pci_generic_bus_scan().
182 Reported by Gary Parnes <gary_parnes@terago.com>.
184 * Replaced obsolete syntax of __attribute__((unused)) in the middle of
185 parameter declarations (which is no longer supported by GCC 3.1) by the
186 current syntax (attribute at the end). Thanks to pixel@mandrakesoft.com
187 for reporting this problem.
189 * Removed CVS $Id$ tags from all files.
191 * Makefile: Added some more warnings.
193 * setpci.c: Cleaned up mask/value code.
195 2003-12-08 Thayne Harbaugh <tharbaugh@lnxi.com>
197 * setpci.c: Individual bits to be set can be specified as <value>:<mask>.
199 2003-11-29 Martin Mares <mj@ucw.cz>
201 * Imported the pciutils sources to my Arch repository. Good-bye, CVS.
203 2003-01-04 Martin Mares <mj@ucw.cz>
205 * Released as 2.1.11.
207 * Makefile: Changed configuration of installation directories --
208 all paths are now set at the top of the Makefile instead of being
209 scattered between the installation rules. The default installation
210 now goes always to /usr/local regardless of the OS as most distributions
211 already contain some version of pciutils and we don't want custom
212 installations to interfere with the default ones.
214 * Makefile: Removed a couple of ancient install hacks: we no longer
215 try to avoid overwriting a newer pci.ids file (users are now expected
216 to use update-ids) and we don't try to remove /etc/pci.ids (a long time
217 has passed since the last version which used it).
219 * Makefile: Paths to pci.ids in man pages automatically get the right path.
221 * Added the update-ids utility.
223 * lib: Removed partially implemented "syscall" access method which will
224 probably never be needed.
226 2002-12-27 Martin Mares <mj@ucw.cz>
228 * lib/nbsd-libpci.c: Cleaned up and hopefully made it endian safe.
230 * lib/generic.c (pci_generic_scan_bus): Added work-around for devices with
231 discontiguous numbering of functions. This is already present in the Linux
232 kernel for several years, but I forgot to update pciutils as well.
234 2002-12-26 Martin Mares <mj@ucw.cz>
236 * lib/header.h, lspci.c: Dump AGP3 flags and speeds.
238 * lib/pci.h, Makefile: Removed HAVE_OWN_HEADER_H. Always use our own header,
239 there is no reason to prefer the kernel version.
241 * lib/proc.c (proc_scan): Don't forget to initialize hdrtype.
243 * Added preliminary version of NetBSD support by Quentin Garnier
244 <netbsd@quatriemek.com>.
246 2002-04-06 Martin Mares <mj@ucw.cz>
248 * lspci.c: Mention "-xxx" in the help.
250 2002-03-30 Martin Mares <mj@ucw.cz>
252 * Released as 2.1.10.
254 * Removed pci.ids from the CVS as they are now maintained separately.
255 They are still included in the tarball, but if you are building pciutils
256 from CVS sources or you want to get a newer ID file than the one distributed,
257 just use "make update-ids" to download the most recent snapshot from
260 * Makefile, README: Updated accordingly.
262 * Makefile: Added a couple of maintenance targets.
264 * maint/*: Maintainer's utilities now reside here (present only in CVS,
267 * lib/names.c (parse_name_list): End-of-line comments are no longer
268 supported. Hashes are now perfectly valid in all names and they start
269 a comment only at the start of the line.
271 2002-03-26 Martin Mares <mj@ucw.cz>
275 * Makefile: When the currently installed pci.ids file is newer than
276 the version to be installed, don't overwrite it. Suggested by
277 Jean Delvare <khali@linux-fr.org>.
279 2002-03-24 Martin Mares <mj@ucw.cz>
281 * lspci.c (show_pcix_bridge): Added PCI-X capability display.
282 Contributed by Jeff Garzik <jgarzik@mandrakesoft.com>.
284 * lib/header.h: Added PCI-X stuff. Again by Jeff.
286 * Makefile (CFLAGS): -Werror is gone.
288 * lspci.c (format_agp_rate): Fixed AGP rate reporting.
290 * lib/filter.c (pci_filter_parse_slot): Allow bus 0xff, slot 0x1f and
293 * lib/names.c (pci_lookup_name): When printing unknown subsystem vendor
294 or device hexadecimally, don't confuse it with chip vendor/device ID.
295 First reported by Marc Boucher <marc@mbsi.ca>.
297 2001-11-04 Martin Mares <mj@ucw.cz>
301 * pci.ids: Synced with the PCI ID Repository at SourceForge
302 (http://pciids.sourceforge.net/).
304 2000-08-25 Martin Mares <mj@albireo.ucw.cz>
306 * pci.ids: Updated ID's, synced with kernel 2.4.0-test7.
308 2000-06-13 Martin Mares <mj@albireo.ucw.cz>
310 * Makefile (uninstall): Fixed.
312 * pci.ids: ID updates.
314 2000-05-20 Martin Mares <mj@albireo.ucw.cz>
318 * pci.ids: ID updates.
320 * lspci.c (show_verbose): Min/max latency is now printed in nanoseconds.
322 2000-05-04 Martin Mares <mj@albireo.ucw.cz>
324 * lspci.c (show_verbose): If the header type doesn't match device
325 class, just print a warning and still use the header type, assuming
328 2000-05-01 Martin Mares <mj@albireo.ucw.cz>
330 * lspci.c (show_pm): Updated according to PCI PM specs 1.1.
332 * pci.ids: Updated Contemporary Control ARCnet card entries.
334 * pci.ids: Synchronized class list with latest PCI SIG documents.
336 2000-04-29 Martin Mares <mj@albireo.ucw.cz>
338 * lib/names.c (pci_lookup_name): Fixed the cheat.
340 * lib/internal.h: Moved UNUSED/inline hacks above all other declarations.
342 * pci.ids: Various ID updates.
344 2000-04-21 Martin Mares <mj@albireo.ucw.cz>
348 * pciutils.spec: Added German description.
350 * lib/names.c (pci_lookup_name): Added a cheat for case that subsystem ID's
351 are the same as device ID and just output subsystem name according to
354 * lib/proc.c: Use UNUSED instead of __attribute__((unused)).
356 * lib/pci.h: Added the correct typedefs for AIX.
358 * lib/generic.c (pci_generic_scan_bus): Export.
360 * lib/configure: Detect AIX. Use "echo '...\c'" instead of
361 "echo -n" if the shell isn't bash.
363 * lspci.c: Avoid using alloca() if not compiled by GCC.
364 (insert_dev): Avoid returning a void value.
366 * Makefile: Choose which install utility to use according to
367 OS type. Also use `-o' instead of `-or' in find arguments.
368 Part of the AIX port.
370 * lib/aix-device.c: Added AIX low-level interface. Contributed
371 by Dave Johnson <ddj@brown.edu>, thanks a lot!
373 * pci.ids: Few new ID's.
375 * pciutils.h, lib/internal.h: Redefine __attribute__ and inline
376 when not compiled by GCC.
378 2000-04-17 Martin Mares <mj@albireo.ucw.cz>
382 * pci.ids: Added a large batch of ID's contributed by Gunther
383 Mayer <gunther.mayer@braunschweig.netsurf.de> and synced the
384 list with the 2.3.99pre6 kernel.
386 Thu Mar 9 13:11:39 2000 Martin Mares <mj@albireo.ucw.cz>
388 * lib/example.c: Added a simple example of how to use
391 * lspci.man, setpci.man: Revealed --version. Well spotted
394 * pci.ids: Added lots of new ID's and synced with 2.3.50.
396 Tue Feb 15 00:16:21 2000 Martin Mares <mj@albireo.ucw.cz>
400 * pciutils.spec: Updated spec file from Andreas Jaeger. Now using
401 %{_mandir} to find the right location to install manual pages to.
405 * setpci.c (main): Don't crash when `-s' or `-d' is given with
408 Mon Jan 24 20:04:11 2000 Andreas Jaeger <aj@suse.de>
410 * lib/i386-ports.c: Include <asm/io.h> only on systems without
413 Mon Jan 24 11:24:43 2000 Martin Mares <mj@albireo.ucw.cz>
415 * Makefile: Modified to work with the Linux FHS brain-damaged idea
416 of putting man pages to /usr/share/man. Now we choose either /usr/man
417 or /usr/share/man depending on which one exists.
419 Sun Jan 23 10:52:34 2000 Martin Mares <mj@albireo.ucw.cz>
421 * pci.ids: Synced with Linux 2.3.40.
423 * Released as version 2.1.4.
425 Thu Jan 20 11:08:32 2000 Martin Mares <mj@albireo.ucw.cz>
427 * lspci.c (scan_device): Fixed bug in reading of cardbus extensions.
429 * lib/proc.c: pread/pwrite fixed again, this time on libc5 :(
431 * lspci.c (format_agp_rate): Better formatting of AGP rates.
435 * lib/configure: Added configuration for ia64 (the same as for Alpha).
436 Patch from Stephane Eranian <eranian@cello.hpl.hp.com>.
438 Thu Jan 13 23:01:52 2000 Martin Mares <mj@albireo.ucw.cz>
440 * Released as version 2.1.3.
444 * lspci.c: Alpha IO_FORMAT fix by Andrea Arcangeli.
446 * lib/access.c: Corrected order of access methods -- it's wonderful how
447 long could such a bug remain unspotted. Thanks go to Andreas Schockenhoff.
449 Sat Dec 11 23:34:48 1999 Martin Mares <mj@albireo.ucw.cz>
451 * Released as version 2.1.2.
453 * lib/names.c (pci_lookup_name): Fixed printing of unknown subsystem ID's.
455 Sat Dec 4 13:11:03 1999 Martin Mares <mj@albireo.ucw.cz>
457 * Released as version 2.1.1.
459 * pci.ids: Several new ID's.
461 * setpci.c (exec_op): Don't forget to increment address after writing
462 single value, so that `30.b=12,34,56,78' works as expected. Reported
463 by Petr Soucek <petr@ryston.cz>.
465 Wed Nov 3 10:24:38 1999 Martin Mares <mj@albireo.ucw.cz>
467 * lspci.c (show_terse): If prog-if is zero, but it's present in the
470 Sat Oct 30 11:06:35 1999 Martin Mares <mj@albireo.ucw.cz>
472 * Released as version 2.1.
474 * pci.ids: Synced to devlist.h in 2.3.24 kernel. Merged in
475 lots of contributed entries.
477 Thu Oct 14 10:40:12 1999 Dave Jones <dave@powertweak.com>
479 * pci.ids: Added lots of subsystem definitions.
481 Sat Oct 9 14:32:28 1999 Martin Mares <mj@albireo.ucw.cz>
483 * setpci.man: Better example.
485 * lspci.c: Resolve prog-if names.
487 * lib/names.c: Adapted to new pci.ids syntax.
489 * pci.ids: Reorganized the pci.ids file. Subsystems are listed
490 under devices, classes can optionally contain prog-if information.
491 New ID's, as usually.
493 Wed Sep 22 09:45:24 1999 Martin Mares <mj@albireo.ucw.cz>
495 * pci.ids: New ID's. As usually.
497 * lspci.c (show_htype1, show_htype2): Don't show `closed' bridge windows
498 unless we're vvvery verbose.
500 Mon Sep 20 11:22:54 1999 Martin Mares <mj@albireo.ucw.cz>
502 * lspci.c (show_htype2): Don't forget a TAB before the "I/O window" line.
504 Tue Sep 14 09:31:01 1999 Martin Mares <mj@albireo.ucw.cz>
506 * pci.ids: New ID's. Again.
508 Thu Aug 5 17:45:42 1999 Martin Mares <mj@albireo.ucw.cz>
510 * lspci.c (show_size): Don't show size if it's zero (usually
511 due to bus-centric mode being enabled).
513 Tue Jul 20 13:25:09 1999 Martin Mares <mj@albireo.ucw.cz>
515 * lib/pci.h: Types are OS dependent.
517 * lib/internal.h: Byte order hacks are OS dependent.
519 * lib/configure: Recognize FreeBSD. Also set OS_XXX according to the OS.
521 * lib/Makefile, lib/access.c: Added fbsd-device target.
523 * pci.ids: Added an entry for PLX 9080 bridges with subsystem ID
524 incorrectly set to device ID.
526 * README: Added a note that we support FreeBSD.
528 * Makefile (PREFIX, ROOT): Set it depending on the OS.
529 (%.8): Grrr, BSD date is not able to convert date formats the same way
530 as GNU date does. Use sed instead.
531 (install): Use `-c' when calling install.
533 * lib/fbsd-device.c: Added FreeBSD /dev/pci access module contributed
534 by Jari Kirma <kirma@cs.hut.fi>.
536 * lib/proc.c: Rewrote the pread/pwrite things once again. Use pread
537 and pwrite only when we are certain it's safe (i.e., glibc 2.1
538 on all architectures or any libc on a i386 where we really know
539 how to use syscalls directly). In all other cases, emulate it
540 with lseek/read/write.
542 * pci.ids: Some more IDs.
544 Mon Jul 19 14:10:36 1999 Martin Mares <mj@albireo.ucw.cz>
546 * pci.ids: Added IDs of parallel port controller cards as sent
547 by Tim Waugh <tim@cyberelk.demon.co.uk>.
549 Wed Jul 7 00:55:48 1999 Martin Mares <mj@albireo.ucw.cz>
551 * lib/proc.c (proc_scan): HAVE_LONG_ADDRESS instead of HAVE_64BIT_ADDRESS.
553 * lspci.c: ADDR_FORMAT now depends on both HAVE_64BIT_ADDRESS and
556 * lib/configure: HAVE_64BIT_ADDRESS now doesn't imply that the addresses
557 are represented as long long. Introduced a new flag HAVE_LONG_ADDRESS
558 to indicate this. Both Sparc architectures now use both 64BIT_ADDRESS
559 and LONG_ADDRESS since they have 32-bit userland, but don't set LONG_ADDRESS
562 * lspci.c (show_msi): Added dumping of the MSI capability.
563 (show_slotid): The same for SlotID capability.
564 (show_caps): Seperated capability dumping, because it should
565 be used for both htype0 and htype1. Even PCI 2.2 doesn't mention
566 layout of htype2, so I'm a bit unsure about it wrt capabilities
567 -- they at least have to live somewhere else since address 0x34
568 is already defined differently in htype2.
570 * lib/header.h (PCI_STATUS_UDF): Marked as obsolete (PCI 2.2).
571 (PCI_BASE_ADDRESS_MEM_TYPE_1M): Ditto.
572 (PCI_CAP_ID_*): Added some new capabilities defined in PCI 2.2.
574 * lspci.c (show_htype0): Mask out lowest 2 bits from all capability pointers
575 (required by the PCI 2.2 specs).
577 Mon Jul 5 12:45:19 1999 Martin Mares <mj@albireo.ucw.cz>
579 * lspci.c (show_size): Added new function for dumping of region sizes.
580 (show_rom): Added. Now correctly dumps unassigned ROM addresses, disabled
583 * lib/pci.h (struct pci_dev): known_fields moved to the public part
586 * Added support for region sizes. Needs support in the kernel, because
587 sizes have to be scanned before drivers initialize yourself. pci_fill_info()
588 now returns a bitmask of what fields were really read.
590 Mon Jun 28 18:37:51 1999 Dave Jones <dave@powertweak.com>
593 Added `uninstall' target - removes all traces of pciutils.
595 - Lots of cleanups in the ATI, S3, Adaptec vendors.
596 - Changed Compaq QVision 1280/p definitions, as it's not possible
597 to determine the revision from the device ID.
598 - Same for the Tseng ET4000.
599 The id's said I had a rev C, when it was actually a rev B.
600 - Removed some unnecessary strings
601 `PCI'. Unless it's an AGP card, it should be obvious that it's PCI.
602 `Ethernet card'. This should be determined from config space.
603 - Lots of other new vendors & devices
604 - Other additional small cleanups.
606 Mon Jun 21 22:11:10 1999 Martin Mares <mj@albireo.ucw.cz>
608 * lib/names.c (pci_lookup_name): When device ID lookup
609 fails, return hexadecimal device ID instead of vendor ID.
610 Well spotted by Axel Bodemann <Axel.Bodemann@ruhr-uni-bochum.de>,
611 I've just extended the fix to subsystem ID's.
613 Thu Jun 17 19:48:21 1999 Martin Mares <mj@albireo.ucw.cz>
615 * lspci.c (show_agp): Bug fix from Petr Vandrovec
616 <vandrove@vc.cvut.cz>. The command register was displayed
619 Wed Jun 2 22:42:44 1999 Martin Mares <mj@albireo.ucw.cz>
621 * lib/proc.c (SYS_pread, SYS_pwrite): Use hard-coded
622 numbers if not supplied by the libc.
624 Wed May 19 13:24:39 1999 Martin Mares <mj@albireo.ucw.cz>
626 * Released the whole package as version 2.0.
628 Fri May 14 22:42:02 1999 Martin Mares <mj@albireo.ucw.cz>
630 * pci.ids: Added several new ID's contributed by people
631 on the linux-pci list.
633 Mon Apr 19 15:21:08 1999 Jakub Jelinek <jj@ultra.linux.cz>
635 * lspci.c: Display I/O addresses correctly on sparc64.
636 * lib/header.h: Ditto.
638 * lib/configure: On sparc set HAVE_64BIT* as well, we want
639 a binary which works on both 32bit and 64bit SPARCs.
641 Sun Apr 18 21:14:58 1999 Martin Mares <mj@albireo.ucw.cz>
643 * lspci.c, lib/proc.c: Alpha compilation fixes from Matthew Jacob
646 * pci.ids: A lot of updates from Adam J. Richter <adam@yggdrasil.com>.
648 Sun Feb 28 22:26:21 1999 Martin Mares <mj@albireo.ucw.cz>
650 * lspci.c (do_map_bus): Don't dump functions 1--7 if not flagged
651 as a multi-function device, because several single-function devices
652 don't decode the function bits at all.
654 Sun Feb 14 23:48:22 1999 Martin Mares <mj@albireo.ucw.cz>
656 * Makefile (install): Don't use "-o root -g root" for installation
657 since it breaks on machines where programs are not installed by root.
658 Reported by Richard Gooch <rgooch@atnf.csiro.au>
660 Tue Feb 9 15:54:39 1999 Martin Mares <mj@albireo.ucw.cz>
662 * lspci.c (show_bases): Use new address masking macros and pciaddr_t.
664 * lib/pci.h: Using pciaddr_t for bus addresses, which are 32-bit
665 or 64-bit depending on CPU.
667 * lib/pci.h (PCI_ADDR_MEM_MASK): Added macros for address masks
668 according to bus address width.
670 Thu Jan 28 20:54:16 1999 Martin Mares <mj@albireo.ucw.cz>
672 * Released as 1.99.4.
674 * lspci.c: Capability list parser now recognizes both AGP
675 registers and PCI Power Management registers (the latter
676 is mainly guesswork based on DEC/Intel 21153 bridge specs
677 since I don't have the PCI Power Management document).
679 * lspci.c: Replaced numerous occurences of (x & flag) ? '+' : '-'
682 * lspci.c: Added bridge checks to bus mapping code.
684 Wed Jan 27 14:59:16 1999 Martin Mares <mj@albireo.ucw.cz>
686 * lspci.c: Implemented bus mapping mode (-M).
688 * lspci.c (scan_devices): Split to scan_devices() and scan_device().
689 (show): Split to show() and show_device().
691 * lib/access.c (pci_init): When a->method == PCI_ACCESS_AUTO,
692 set it to the real access method afterwards.
694 Mon Jan 25 23:46:13 1999 Martin Mares <mj@albireo.ucw.cz>
696 * lib/generic.c (pci_generic_fill_info): If in buscentric mode,
697 don't check PCI_COMMAND for I/O and memory enables.
699 Mon Jan 25 21:28:49 1999 Martin Mares <mj@albireo.ucw.cz>
701 * Makefile: Added target `release' which substitutes new version
702 number to .spec, .lsm and README. Also rewrote target `dist'.
704 * Released as 1.99.3.
706 Sun Jan 24 22:10:36 1999 Martin Mares <mj@albireo.ucw.cz>
708 * lib/header.h: Until kernel adopts new layout of PCI
709 includes (i.e., separate declaration of header structure,
710 functions and device IDs), which is not going to happen
711 before 2.3, we'll use our own definiton of the header.
713 * lspci.c (show_verbose): Display `Cap' flag in device status.
715 * lspci.c (show_htype0): Display capability lists whereever
716 available. The only capability name we recognize now is `AGP'.
717 Unfortunately, capabilities are stored in device-dependent
718 portion of the configuration space and are thus available
719 only to root unless you read a dump.
721 * lspci.c (scan_devices): Use cache instead of buffering.
723 * lib/buffer.c: Removed (obsoleted by the cache).
725 * lib/access.c: Added general caching mechanism.
727 Sat Jan 23 21:30:54 1999 Martin Mares <mj@albireo.ucw.cz>
729 * pci.ids: Added few devices.
731 Fri Jan 22 19:29:31 1999 Martin Mares <mj@albireo.ucw.cz>
733 * Version string is now defined in top-level Makefile, exported
734 to the configure script and also substituted to man pages.
736 * lspci.c (show_bases): Rewrote displaying of 64-bit addresses.
737 (show_verbose): Rewrote interrupt display logic.
739 * lib/i386-ports.c: Include sys/io.h only on glibc systems.
741 * lib/configure: Rewrote detection of Linux versions. Now it
742 works on 2.0 kernels (only with direct/dump access, of course).
744 * lib/internal.h: New bytesex macros using <asm/byteorder.h>
747 * lib/proc.c (proc_read, proc_write): Distinguish between short
748 read/write and real errors.
750 * lspci.c (show_htype{0,1}): Always use d->dev->rom_base_addr since
751 libpci respects buscentric mode automatically.
753 * lspci.c (show_hex_dump): For CardBus bridges, print out 128
754 bytes of header (the whole standard part).
756 * common.c: pcilib options are now all uppercase. Also moved
757 PCI access debugging option here.
759 * Released as 1.99.2.
761 Wed Jan 20 22:50:35 1999 Martin Mares <mj@albireo.ucw.cz>
763 * Wrote configure script and rewrote Makefiles.
765 * Removed few unused variables.
767 Wed Jan 20 12:21:56 1999 Martin Mares <mj@albireo.ucw.cz>
769 * common.c: Moved several functions used in both setpci and lspci
770 here. This includes parsing of libpci-related options.
772 * More library tweaks.
774 * filter.c, names.c: Moved to library.
776 * setpci: Rewritten to use the library.
778 * Released as 1.99.1.
780 Tue Jan 19 23:00:12 1999 Martin Mares <mj@albireo.ucw.cz>
782 * lspci.c (scan_devices): For cardbus bridges, read first 128
783 bytes of config space to get full standard header.
785 * Makefile (CFLAGS): Removed "-Wno-unused".
787 * Started the "New Generation" branch and introduced the
790 * lspci: Rewritten to use the library.
792 Tue Jan 19 22:24:08 1999 Martin Mares <mj@albireo.ucw.cz>
794 * Released as version 1.10.
796 Mon Jan 18 08:51:17 1999 Martin Mares <mj@albireo.ucw.cz>
798 * lspci.8, setpci.8: Miscellaneous fixes as suggested by
799 Dag Wieers <dag@digibel.be>.
801 Sun Nov 29 20:05:56 1998 Martin Mares <mj@albireo.ucw.cz>
803 * pciutils.spec (Name): Update from Krzysztof G. Baranowski.
805 Sun Nov 22 10:49:56 1998 Martin Mares <mj@albireo.ucw.cz>
807 * Makefile, pciutils.h: Moved pci.ids to /usr/share.
809 * Released as version 1.09.
811 Wed Nov 18 15:47:05 1998 Martin Mares <mj@albireo.ucw.cz>
813 * lspci.c (show_htype1): Fixed displaying of prefetchable memory behind
814 bridge. Thanks to Petr Vandrovec <vandrove@vc.cvut.cz> for bug report.
816 Fri Oct 23 18:59:19 1998 Martin Mares <mj@albireo.ucw.cz>
818 * setpci.c: Don't include <syscall-list.h> with glibc >= 2.1.
820 Mon Oct 19 21:53:30 1998 Martin Mares <mj@albireo.ucw.cz>
822 * Released as version 1.08.
824 * setpci.c: glibc 2.1.x already defines pread() and pwrite().
826 * lspci.8: Changed warning about lspci -xxx.
828 * lspci.c: Require "-xxx" for full configuration space dump, so that
829 it's impossible to crash the machine by single typo.
831 * specs: Added (courtesy of Krzysztof G. Baranowski <kgb@knm.org.pl>).
833 Wed Sep 9 12:03:24 1998 Martin Mares <mj@albireo.ucw.cz>
835 * lspci.c (show_bases): Better displaying of unassigned and
836 disabled bases. Thanks to Gabriel Paubert <paubert@iram.es>
839 Wed Sep 2 10:58:01 1998 Martin Mares <mj@albireo.ucw.cz>
841 * setpci.c (pread): Recognize glibc 1.99 numbered as 2.0 on the PPC.
842 (thanks to Geert Uytterhoeven for finding this out)
844 Fri Jul 17 10:43:30 1998 Martin Mares <mj@albireo.ucw.cz>
846 * lspci.c (show_verbose): Print subsystem ID using the new resolver.
847 (show_machine): Print subsystem ID.
849 * names.c: New name resolution engine supporting subsystem IDs.
851 * Released as version 1.07.
853 Wed Jul 15 15:37:21 1998 Martin Mares <mj@albireo.ucw.cz>
855 * lspci.c (show_htype2 etc.): Displaying of CardBus headers.
856 (show_bases): Honor the `cnt' argument.
857 (grow_tree): Parse CardBus headers in tree mode as well.
859 * pci.h: Updated CardBus header field description. I still don't
860 have the CardBus standard available, but OZ6832 specs contain
861 full description of all header fields supported by the chip.
863 Tue Jun 9 22:53:59 1998 Martin Mares <mj@albireo.ucw.cz>
867 * names.c (parse_name_list): Killed an unused variable.
869 * setpci.c (pread, pwrite): Define SYS_(pread|pwrite) as __NR_\1
870 if they are not defined by glibc (needed for glibc built on older
873 * setpci.c (exec_op): Fixed error messages. Thanks, Steve!
875 Mon Jun 8 10:59:22 1998 Martin Mares <mj@albireo.ucw.cz>
879 * setpci.c: Problems with pread()/pwrite() with glibc on Alpha
880 should be gone. Again thanks to Steve for bug report.
882 * filter.c (filter_parse_slot): Fixed ":x" type filters.
884 * pci.ids: Killed duplicate entry. Thanks to Stephen Williams
885 <steve@icarus.com> for reporting this.
887 Sun Jun 7 19:27:51 1998 Martin Mares <mj@albireo.ucw.cz>
889 * lspci.c (main), setpci.c (main): Implemented "--version".
893 * pciutils.h (PCIUTILS_VERSION): Added version string.
895 * filter.c, names.c: Extraneous #include <linux/pci.h> removed.
896 Thanks to Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be>
899 Thu May 28 14:45:58 1998 Martin Mares <mj@lomikel.karlin.mff.cuni.cz>
901 * pci.ids: More updates from Jens Maurer.
903 Wed Apr 22 10:00:39 1998 Martin Mares <mj@albireo.ucw.cz>
905 * pci.ids: Updates from Jens Maurer.
907 Sun Apr 19 11:14:25 1998 Martin Mares <mj@albireo.ucw.cz>
913 * setpci.c: Finished.
915 * lspci.c: Now able to fetch expansion ROM base from kernel device list
916 and print it if not in buscentric mode.
918 Tue Mar 31 23:11:57 1998 Martin Mares <mj@albireo.ucw.cz>
922 Sun Mar 22 15:39:08 1998 Martin Mares <mj@albireo.ucw.cz>
924 * lspci.8: Updated the documentation.
926 * lspci.c: Modified to use the new filtering mechanism (options -f and -d).
928 * filter.c: Introduced new generic device filter.
930 Thu Mar 19 17:03:48 1998 Martin Mares <mj@lomikel.karlin.mff.cuni.cz>
932 * lspci.c (grow_tree, show_tree_dev, print_it): Fixed displaying
933 of PCI-to-PCI bridges in the tree format.
935 Sun Feb 15 10:12:25 1998 Martin Mares <mj@albireo.ucw.cz>
937 * lspci.c (show_machine): Added non-verbose mode of machine-readable
940 * pci.ids: Updates from Jens Maurer.
942 * Released as version 1.02.
944 Thu Feb 12 16:53:28 1998 Martin Mares <mj@lomikel.karlin.mff.cuni.cz>
946 * lspci.c: Added a "-m" switch for dumping machine-readable
947 configuration data (requested by Bjoern Kriews <bkr@cut.de>).
949 Mon Feb 9 13:17:43 1998 Martin Mares <mj@albireo.ucw.cz>
951 * Makefile, pciutils.h: Include local pci.h instead of <linux/pci.h>
952 if available. This should avoid all problems with official kernel
953 not synchronized to newer PCI code in CVS -- standard distribution
954 of pciutils now contains pci.h from current CVS kernel, pciutils
955 in CVS contain no pci.h and use the correct kernel include.
957 * Makefile: Fixed installation path for man pages.
959 Sat Feb 7 15:15:46 1998 Martin Mares <mj@albireo.ucw.cz>
963 * lspci.8: Created a man page.
965 * Releasing as version 1.0.
967 Tue Feb 3 20:56:00 1998 Martin Mares <mj@albireo.ucw.cz>
969 * Makefile: Recognize architecture by calling uname and pass it as ARCH_xxx
970 to all the C sources. This should eliminate problems with 32-bit compilers
973 * lspci.c (show_verbose): Recognize CardBus bridge header type.
974 (show_htype2): Stub routine.
975 (scan_config): Write sensible error message if the kernel denies reading of
976 upper part of the PCI config space.