]> mj.ucw.cz Git - pciutils.git/blob - ChangeLog
Released as 3.6.1
[pciutils.git] / ChangeLog
1 2018-07-12  Martin Mares <mj@ucw.cz>
2
3         * Released as 3.6.1.
4
5         * Fixed compilation issues on Linux systems with MUSL libc.
6
7 2018-06-30  Martin Mares <mj@ucw.cz>
8
9         * Released as 3.6.0.
10
11         * BARs reported by the OS, but not set on the device itself are
12           reliably marked with "[virtual]".
13
14         * Library: Introduced a generic mechanism of string properties. This
15           avoids lots of special cases and makes ABI compatibility easier.
16
17         * On Linux systems with OpenFirmware, report corresponding device tree nodes
18           as device properties.
19
20         * VPD decoder knows several non-standard extensions.
21
22         * When PCIe link speed is less than the maximum supported by the
23           device, it is explicitly marked as "downgraded".
24
25         * Several new capabilities are not decoded yet, but at least their
26           names are printed.
27
28         * The Null capability is easily decoded.
29
30         * Formatting of several capabilities was cleaned up.
31
32         * The VGA16 bit in the bridge control register is now supported.
33
34         * Added a port to SylixOS. Thanks to YuJian Gong for contribution.
35
36         * Added a port to DOS/DJGPP. Thanks to Rudolf Marek for contribution.
37
38         * The order in which back-ends are probed was decoupled from the
39           internal back-end IDs. This helps, because new back-ends must have
40           their ID allocated at the end to keep the ABI, but they might need
41           to be proved earlier.
42
43         * The fbsd-device back-end should work again.
44
45         * Fixed a couple of bugs. Most notably, DeviceName was not printed.
46
47         * As usually, updated pci.ids to the current snapshot of the database.
48
49 2017-11-17  Martin Mares <mj@ucw.cz>
50
51         * Released as 3.5.6.
52
53         * Improvements of the FreeBSD back-end: read-only access for non-root,
54           support DragonFly BSD, support extended config space.
55
56         * MN VPD keyword is decoded correctly.
57
58         * As usually, updated pci.ids to the current snapshot of the database.
59
60 2017-07-05  Martin Mares <mj@ucw.cz>
61
62         * Released as 3.5.5.
63
64         * Better decoding of AER capability.
65
66         * "Slot Implemented" flag is decoded for PCI/PCI-X to PCIe bridges.
67
68         * Minor fixes of decoding other capabilities.
69
70         * As usually, updated pci.ids to the current snapshot of the database.
71
72 2017-02-25  Martin Mares <mj@ucw.cz>
73
74         * Released as 3.5.4.
75
76         * Previous version broke compilation on systems, for which lib/types.h
77           did not provide a 64-bit integer type. It is provided everywhere now.
78
79 2017-02-15  Martin Mares <mj@ucw.cz>
80
81         * Released as 3.5.3.
82
83         * When lspci looks for Linux kernel modules, it uses the default
84           path to module directory provided by libkmod. Previously,
85           it tried to construct the path explicitly, which need not
86           work on all systems.
87
88         * Improved formatting of memory and I/O ranges behind a bridge.
89
90         * PCIe link capabilities now display GEN4 speed (16GT/s).
91
92         * PCIe device capabilities now show bits related to atomic operations.
93           Thanks to Satanand Burla for a patch.
94
95         * As usually, updated pci.ids to the current snapshot of the database.
96
97 2016-10-03  Martin Mares <mj@ucw.cz>
98
99         * Released as 3.5.2.
100
101         * The L1 power management capability is now decoded more
102           thoroughly. Thanks to Rajat Jain for the patch.
103
104         * The table of configuration registers used by setpci
105           had a bug in the definition of SUBSYSTEM_VENDOR_ID.
106
107 2016-05-22  Martin Mares <mj@ucw.cz>
108
109         * Released as 3.5.1.
110
111         * Fixed symbol versioning of pci_init().
112
113 2016-05-19  Martin Mares <mj@ucw.cz>
114
115         * Released as 3.5.0.
116
117         * New capabilities decoded: Downstream Port Containment,
118           Precision Time Measurement. Thanks to Keith Busch and
119           Jonathan Yong.
120
121         * Domain numbers extended to 31 bits. This will be used by the
122           Linux kernel on some machines in near future.
123
124         * Enhanced allocation regions are now decoded on Linux.
125
126         * The NetBSD back-end supports PCIe extended configuration space.
127
128         * Updated pci.ids to the current snapshot of the database.
129
130 2016-01-03  Martin Mares <mj@ucw.cz>
131
132         * Released as 3.4.1.
133
134         * New capabilities decoded: Process Address Space, Page Request
135           Interface, Enhanced Allocation. Thanks to David Daney and
136           David Woodhouse.
137
138         * DevCap SlotPowerLimit is now decoded for all components with
139           upstream ports.
140
141         * Database mirror at SourceForge moved to GitHub.
142
143         * Updated pci.ids to the current snapshot of the database.
144
145 2015-09-14  Martin Mares <mj@ucw.cz>
146
147         * Released as 3.4.0.
148
149         * On Linux, we report NUMA nodes of devices.
150
151         * The sysfs back-end does not die on read errors
152           of optional attributes. Instead, a warning is produced.
153
154         * Fixed several minor bugs.
155
156         * Updated pci.ids to the current snapshot of the database.
157
158 2015-04-09  Martin Mares <mj@ucw.cz>
159
160         * Released as 3.3.1.
161
162         * Removed hacks for backward compatibility with Linux libc5,
163           which were breaking newer non-glibc Linux systems. Thanks
164           to Felix Janda.
165
166         * Display VirtIO vendor-specific capability. Patch by Gerd
167           Hoffmann.
168
169         * Fixed memory leak in name cache.
170
171         * Updated pci.ids to the current snapshot of the database.
172
173 2014-11-10  Martin Mares <mj@ucw.cz>
174
175         * Released as 3.3.0.
176           (celebrating a one-year anniversary of the previous version :))
177
178         * Device names exported by BIOS are displayed on Linux.
179
180         * On Linux systems, HWDB is used to look up device names
181           when our ID database gives no match. (More precisely,
182           HWDB is consulted after local pci.ids, but before using
183           network to query online pci.ids.) Thanks to Tom Gundersen
184           for the initial patch.
185
186         * Added experimental back-end for OS X / Darwin. Thanks to
187           Richard Yao for providing it.
188
189         * Filters now support matching by device class. Original
190           patch by Matthew Wilcox, wrappers for ABI compatibility
191           by me.
192
193         * Interrupt Pin and Interrupt Line registers are displayed
194           for bridge devices, too.
195
196         * Several portability bugs have been fixed.
197
198         * Several typos have been fixed. Also, use of questionable
199           constructs in man pages has been reduced.
200
201         * PCIe link capabilities now include the ASPMOptComp bit.
202
203         * The "CRS Software Visibility" bit is now decoded properly.
204
205         * Updated pci.ids to the current snapshot of the database.
206
207 2013-11-10  Martin Mares <mj@ucw.cz>
208
209         * Released as 3.2.1.
210
211         * CardBus bridge capabilities are displayed.
212
213         * PCIe L1 PM substates are decoded.
214
215         * Various bugs were fixed in decoding of PCIe capabilities.
216
217         * The sysfs back-end does not spit out unnecessary warnings when
218           empty slots report only a partial device address. This actually
219           happens on IBM pSeries.
220
221         * Updated pci.ids to the today's snapshot of the database.
222
223 2013-04-19  Martin Mares <mj@ucw.cz>
224
225         * Released as 3.2.0.
226
227         * On newer Linux systems, we use libkmod to look up kernel modules
228           (modules.pcimap no longer exists). To facilitate this, libpci
229           is able to look up module aliases in sysfs.
230
231         * Various minor bug fixes.
232
233         * Updated pci.ids to the today's snapshot of the database.
234
235 2012-06-25  Martin Mares <mj@ucw.cz>
236
237         * Released as 3.1.10.
238
239         * Decoding of LTR/OBFF in PCIe capabilities.
240
241         * Various minor bug fixes.
242
243         * Updated pci.ids to the today's snapshot of the database.
244
245 2012-01-14  Martin Mares <mj@ucw.cz>
246
247         * Released as 3.1.9.
248
249         * Updated README.
250
251         * Wherever we mention the PCI ID database, we now refer to
252           http://pci-ids.ucw.cz/ and the sf.net site is mentioned only
253           as a mirror. This includes update-pciids.
254
255         * Decode PCIe Gen 3 speeds and link status fields.
256
257         * Various minor bug fixes.
258
259         * Updated pci.ids to the today's snapshot of the database.
260
261 2011-10-02  Martin Mares <mj@ucw.cz>
262
263         * Released as 3.1.8.
264
265         * More capabilities: Transaction Processing Hints, Latency Tolerance
266         Reporting. Thanks to Jesse Barnes.
267
268         * Added BeOS and Haiku ports. Contributed by Francois Revol.
269
270         * pciutils.pc now uses Libs.private properly.
271
272         * When we format a name and it does not fit in the buffer, we truncate
273         it instead of returning "buffer too small" instead. This works on all
274         platforms with sane (i.e., C99-compatible) snprintf().
275
276         * Various minor bug fixes.
277
278         * Updated pci.ids to the today's snapshot of the database.
279
280 2010-01-31  Martin Mares <mj@ucw.cz>
281
282         * Released as 3.1.7.
283
284         * Minor improvements and bug fixes in decoding of the Virtual Channel
285         capability.
286
287 2010-01-24  Martin Mares <mj@ucw.cz>
288
289         * Released as 3.1.6.
290
291         * More capabilities decoded: Virtual Channel (except arbitration
292         tables), Root Complex Link, Vendor-Specific (header only), SATA HBA.
293
294         * All extended capabilities have their version displayed (-vv or more).
295
296 2010-01-19  Martin Mares <mj@ucw.cz>
297
298         * Released as 3.1.5.
299
300         * Updated pci.ids to the today's snapshot of the database.
301
302         * When scanning extended capabilities, properly mask the lowest 2 bits,
303           which are currently reserved. This avoids unaligned access errors on
304           broken hardware (see tests/broken-ecaps).
305
306         * Large bar sizes are displayed in human-readable format (with units).
307           Thanks to Matthew Wilcox.
308
309         * Physical slot information is displayed correctly for multi-function cards.
310           Fixed by Matthew Wilcox.
311
312         * Fixed a couple of typos everywhere.
313
314         * Library: Fixed bugs in freeing of capabilities.
315
316         * Windows back-end compiles again.
317
318 2009-08-14  Martin Mares <mj@ucw.cz>
319
320         * Released as 3.1.4.
321           (sorry that I have missed 22/7 and released it later :-))
322
323         * Updated pci.ids to the today's snapshot of the database.
324
325         * Fixed memory and file descriptor leak in the dump back-end.
326
327         * The SR-IOV capability decoder now prints the VF BAR's.
328         Patch by Chris Wright, cleaned up by me.
329
330         * On request of certain company's lawyers, we now include a copy
331         of the GPL with our package. It seems that the pciutils are getting
332         mature if the most important bug of the month was this one ;-)
333
334 2009-07-04  Martin Mares <mj@ucw.cz>
335
336         * Released as 3.1.3.
337
338         * Updated pci.ids to the current snapshot of the database.
339
340         * The VPD parser now reports unknown and vendor-defined items
341         properly. It also stops on any item in unknown format, avoiding long
342         output on bogus VPD data. Thanks to Ben Hutchings and Matthew Wilcox.
343
344         * The MSI-X table size now matches the spec. Thanks to Michael S.
345         Tsirkin.
346
347         * The Power Management capability now includes the soft reset bit.
348         Thanks to Yu Zhao.
349
350         * Decoding of the Advanced Features capability has been added.
351         Thanks to Yu Zhao.
352
353         * The whole package compiles on GNU/kFreeBSD again.
354
355         The following patches have been contributed by Matthew Wilcox:
356
357         * The procfs back-end is able to cope with /proc/bus/pci
358         containing names with domains, which occur on sparc64 and
359         possibly other architectures due to a kernel bug.
360
361         * The sysfs back-end no longer complains when a slot address
362         is missing, which happens with old versions of Linux fakephp.
363
364         * The Device Serial Number capability is printed in the right
365         byte order.
366
367         * The MSI and MSI-X capabilities are printed in a prettier way.
368
369         * The tree output mode (`lspci -t') shows domain numbers only
370         at the root, which makes the output more compact.
371
372         * Updated documentation on the bus mapping mode (`lspci -M').
373
374 2009-02-01  Martin Mares <mj@ucw.cz>
375
376         * Released as 3.1.2.
377
378         * Fixed another silly bug in the command-line parser of setpci.
379
380 2009-01-30  Martin Mares <mj@ucw.cz>
381
382         * Released as 3.1.1.
383
384         * Updated pci.ids to the current snapshot of the database.
385
386         * The configure script now sets LC_ALL to avoid being fooled by
387         locale-dependent behavior of `tr'.
388
389         * The command-line parser of setpci did sometimes segfault on invalid
390         input. Thanks to Andreas Wiese for a fix.
391
392 2009-01-18  Martin Mares <mj@ucw.cz>
393
394         * Released as 3.1.0.
395
396         * Updated pci.ids to the current snapshot of the database.
397
398         * The Cygwin backend now works on Windows Vista. Thanks to Jonathan
399         Kotta.
400
401         * Fixed a bug in decoding of the SR-IOV capability. Patch by Yu Zhao.
402
403         * Details of some PCIe capabilities are displayed only with -vv.
404
405         * When a BAR is reported by the OS, but not by the device (i.e.,
406         it is marked as [virtual] in lspci), the [disabled] flag is
407         suppressed, because it does not make sense in such cases.
408         Patch by Yu Zhao.
409
410 2008-12-13  Martin Mares <mj@ucw.cz>
411
412         * The source code of lspci has been split to multiple files, hopefully
413         making it easier to maintain.
414
415         * The library and lspci now know about physical slot names. So far,
416         they are provided by the sysfs back-end only. Thanks go to Alex Chiang.
417
418         * When a device has the VPD (Vital Product Data) capability and the
419         VPD data are supplied by the OS, they are decoded and printed in the
420         verbose mode. This currently works only on Linux with the sysfs
421         back-end. Thanks to Ben Hutchings of Solarflare for the patch.
422
423         * `setpci --version' now works properly.
424
425         * `setpci --dumpregs' prints a table of all known names of
426         registers and capabilities. This replaces the table of registers
427         in the setpci man page.
428
429         * The dry-run mode of setpci gives better feedback.
430
431         * The setpci utility is now able to address registers stored in PCI
432         capabilities (actually it allows a more general form of relative
433         addressing).
434
435         * The library has gained functions for working with PCI capabilities.
436
437         * Address Translation Services capability is now decoded. Patch by
438         Yu Zhao.
439
440 2008-11-09  Martin Mares <mj@ucw.cz>
441
442         * Released as 3.0.3.
443
444         * `lspci -k' now displays the subsystem ID, too. This makes `-k'
445         show everything needed to identify the device and the available
446         drivers, which was called for by many users.
447
448         * Fixed spelling of MSI. Patch by Matthew Wilcox.
449
450         * Better support for cross-compilation. Thanks to Alon Bar-Lev
451         for the patch.
452
453         * Fixed printing of the AER capability. Patch by Max Asbock.
454
455         * HT 1.02 capabilities are decoded as HT 1.03. Suggested by
456         Carl-Daniel Hailfinger.
457
458         * Fixed Cygwin build. Thanks to Steve Elliott for reporting the bug.
459
460         * Updated pci.ids to the current snapshot of the database.
461
462 2008-09-19  Martin Mares <mj@ucw.cz>
463
464         * Released as 3.0.2.
465
466         * Fixed a minor bug in the configure script, which caused warnings
467         about redefinition of symbols during compilation.
468
469 2008-09-11  Martin Mares <mj@ucw.cz>
470
471         * Released as 3.0.1.
472
473         * Updated pci.ids to the most recent snapshot.
474
475         * Added a Cygwin port. Patch by Christopher Voltz, ported to the
476         current tree by Martin Mares.
477
478         * Worked around compatibility problems with various default settings
479         of wget (we have to set --no-timestamping explicitly). Thanks to Ville
480         Skytta for pointing that out.
481
482         * Fixed printing of MSI capabilities. Thanks to Matthew Wilcox for
483         a patch.
484
485         * Added decoding of several PCI-X capabilities: device/link/slot 2,
486         Advanced Error Reporting, Access Control Services, Alternative Routing-ID,
487         Single Root I/O Virtualization. Thanks to Yu Zhao for patches.
488
489         * Fixed bug in filters which caused them to refuse vendor/device ID 0xffff.
490
491         * README: The linux-pci mailing list has moved to linux-pci@vger.kernel.org.
492
493         * Fixed several build problems: builds without PCI_USE_DNS on Linux
494         and with PCI_USE_DNS on Solaris and *BSD. Static library mode also
495         compiles again on old versions of GCC.
496
497 2008-04-10  Martin Mares <mj@ucw.cz>
498
499         * Released as 3.0.0.
500
501         * Updated API and ABI version.
502
503 2008-02-20  Martin Mares <mj@ucw.cz>
504
505         * Released as 2.99.1-alpha2.
506
507         * Changed the default domain for the DNS resolver.
508
509 2008-02-18  Martin Mares <mj@ucw.cz>
510
511         * Released as 2.99.1-alpha1.
512
513         * The makefile system has been reworked. All configuration settings
514         are now passed to the configure script in environment variables,
515         allowing for easy tweaking in the top-level Makefile. All control
516         knobs are now described in the README.
517
518         * The libpci can be built as a shared library with properly restricted
519         symbol exports. Use `make SHARED=yes' to enable that or `make SHARED=local'
520         for a local testing build (with hardwired paths to the library, so that
521         it does not need installation).
522
523         * The example program has been moved from lib/example.c to the top-level
524         directory, because it should be built exactly as the other utilities
525         are. It has been also improved slightly to educate better.
526
527         * The i386-ports method is enabled on Linux/x86_64 as well.
528
529 2008-02-13  Martin Mares <mj@ucw.cz>
530
531         * Released as 2.2.10-net2.
532
533         * Support for resolving of PCI ID's using DNS together with a local
534         cache of resolved entries has been added. See the `-q' and `-Q' options
535         of lspci.
536
537         * The library now has a generic system of settable parameters, which
538         also include settings of the DNS resolver and cache. An `-O' option
539         has been added to lspci and setpci to allow setting of these options.
540
541         * Configuration of the access methods are now specified by the new
542         parameter system, replacing the pci_access->method_params array.
543
544         * Access methods now also have sensible names and help texts and it
545         is possible to look up method ID by a name.
546
547         * An `-A' switch has been added to both lspci and setpci, allowing to
548         select an arbitrary access method. The `-P' switch (configure proc
549         backend) has been removed as it is no longer needed and I do not know
550         any its user.
551
552         * Several source files have been split for better maintainability
553         (most notably the resolving of ID's).
554
555         * Man pages and help texts have been updated. A new man page `pcilib(7)'
556         has been added and description of library options has been moved there.
557
558         * When an unknown device ID is encountered, we print `Device <id>'
559         instead of `Unknown device <id>'. It uses less space and it also
560         should reduce the number of inexperienced users complaining that
561         the device is not supported by the OS. To lookup up OS drivers,
562         use the `-k' option.
563
564         * PCI_LIB_VERSION has been bumped to 0x020299.
565
566         * Makefile: stripping of the binaries during installation can be
567         overridden by the STRIP variable.
568
569         * lib/types.h: We use the integer types from <stdint.h> if the
570         compiler claims C99 support.
571
572 2008-02-11  Martin Mares <mj@ucw.cz>
573
574         * Released as 2.2.10.
575
576         * lspci.c, setpci.c: Cleaned up the list of options.
577
578         * lib/names.c: Fix displaying of errors reported by zlib.
579         Previously, the buffer containing the error message had
580         been deallocated by gzclose() before the message was printed.
581
582 2008-01-07  Martin Mares <mj@ucw.cz>
583
584         * update-pciids.sh: Added quiet mode (-q). Clean up uncompressed
585         files left by previous versions of the pciutils. Patch by Mike
586         Frysinger.
587
588         * update-pciids.man: Mention the -q switch.
589
590 2007-11-29  Martin Mares <mj@ucw.cz>
591
592         * lib/dump.c: Squashed compiler warnings about code with
593         no effect (there really were surplus *'s).
594
595 2007-11-06  Martin Mares <mj@ucw.cz>
596
597         * Released as 2.2.9.
598
599         * lspci.c: Added a new switch `-k' which requests printing
600         of information on kernel drivers attached to each device
601         and on kernel modules reporting the ability to handle the
602         device. So far, this is supported only on Linux with the
603         sysfs back-end, so it is implemented internally in the lspci
604         instead of the libpci. Thanks to Anicka <anicka@anicka.net>
605         for help.
606
607 2007-10-19  Martin Mares <mj@ucw.cz>
608
609         * Makefile, lib/Makefile: Moved -lz from LDFLAGS to LDLIBS.
610         Also added an explicit pattern rule for linking to make sure
611         that LDLIBS is used on all platforms. Thanks to Dan Nicholson
612         for the suggestion.
613
614 2007-10-19  Martin Mares <mj@ucw.cz>
615
616         * Released as 2.2.8.
617
618         * pci.ids: Revised class codes to match Conventional PCI 3.0 specs.
619         Added a couple of new ones, renumbered `ADMA continuous operation'
620         prog-if to 0x30 (even the old SATA Class Code ECN doesn't mention
621         0x40) and renumbered the satellite communication controllers.
622
623         * lib/header.h: Include `PCI hot-plug' and `Secure device'
624         capabilities from PCI 3.0 specs. Also added `SATA HBA' and
625         `Advanced features' caps from various ECN's.
626
627         * lspci.c: All known capabilities have at least their name displayed
628         now. When we are unable to decode them completely, we signalize it
629         with a `<?>' mark.
630
631         * lspci.man: Document `<?>' and also mention that extended config
632         space is currently available only with the linux_sysfs back-end.
633
634         * lspci.c: Decode the Debug port capability (per EHCI 0.96 spec).
635
636         * lspci.c: Big code cleanup: re-arranged functions in the code,
637         renamed everything related to capabilities to cap_* and
638         all options except verbose to opt_*.
639
640 2007-10-14  Martin Mares <mj@ucw.cz>
641
642         * lib/[fno]bsd-*: Removed extraneous braces.
643
644 2007-10-12  Martin Mares <mj@ucw.cz>
645
646         * Capability loop detection introduced 2.2.7 did not work
647           properly with extended capabilities. Fixed.
648
649 2007-10-05  Martin Mares <mj@ucw.cz>
650
651         * Released as 2.2.7.
652
653         * lspci.c (show_caps, show_ext_caps): Detect and report loops in
654         capability lists.
655
656         * lspci.c, lib/header.h: Finished decoding of the PCI Express
657         capability. The extended capabilities remain undecoded for now,
658         but at least the list of them has been updated to reflect the
659         current PCI Express 2.0 spec.
660
661         * lspci.c, lib/header.h: Decode new bits of traditional registers
662         as defined by PCIE / PCI-X. This includes discard timers in the bridge
663         control register and INTx enable/status in device control/status
664         registers.
665
666         * lib/fbsd-device.c: Support domains on new FreeBSD's. Contributed
667         by Marius Strobl.
668
669 2007-09-12  Hasso Tepper <hasso@estpak.ee>
670
671         * Extended the fbsd-device backend to run on Dragonfly BSD.
672
673         * lspci.c: alloca() is declared in <stdlib.h> on BSD's, not <alloca.h>.
674
675 2007-09-03  Martin Mares <mj@ucw.cz>
676
677         * Resurrected the Windows port, including cross-compilation by MinGW.
678         Patch by Samuel Bronson <naesten@gmail.com>.
679
680 2007-08-31  Martin Mares <mj@ucw.cz>
681
682         * Makefile, lib/Makefile: `ar' and `ranlib' can be overriden to allow
683         cross-compilation.
684
685 2007-08-27  Martin Mares  <mj@ucw.cz>
686
687         * lib/names.c (pci_open): When calling gzopen(), use "rb" file mode
688         instead of "r". This is needed on DOS systems, where this function
689         somewhat illogically uses the binary flag for the compressed file
690         instead of the decompressed stream inside, where binariness really
691         matters.
692
693 2007-08-14  Martin Mares  <mj@ucw.cz>
694
695         * lspci.c (show_ht): Added decoding of Hypertransport MSI mapping capability,
696         based on a patch by Jason Gunthorpe.
697
698         * tests/cap-MSI-mapping: Added a test case. I plan to add test cases
699         (which are dumps of config space) for all new features.
700
701 2007-06-20  Martin Mares  <mj@ucw.cz>
702
703         * Released as 2.2.6.
704
705         * Makefile: Added an "install-lib" target. Thanks to Dan Nicholson
706         for a patch.
707
708         * Makefile, lib/Makefile: Generate and install pkg-config file
709         for libpci. Again by Dan Nicholson.
710
711 2007-06-20  Thomas Schwinge  <tschwinge@gnu.org>
712
713         * lib/i386-io-hurd.h: Rewritten for new Hurd kernels.
714
715 2007-05-04  Martin Mares  <mj@ucw.cz>
716
717         * Released as 2.2.5.
718
719         * pci.ids: Updated to the current snapshot of the database.
720
721 2007-02-14  Martin Mares  <mj@ucw.cz>
722
723         * lspci.c (show_express): Added PCI/PCI-X to PCI-Express Bridge type.
724         Patch by Mark Glines.
725
726 2007-02-09  Martin Mares  <mj@ucw.cz>
727
728         * pci.ids: Updated to the current snapshot of the database.
729
730 2007-02-06  Martin Mares  <mj@ucw.cz>
731
732         * Replaced bzero() by memset() everywhere, it's better to lose a tiny
733         bit of readability than maintain hacks to make it work on various systems.
734
735         * lib/configure: tr on Solaris is a bit weird and it requires `[A-Z]'
736         instead of `A-Z'. Fortunately, the extra brackets don't hurt otherwise.
737
738         * lib/types.h, lib/configure: Solaris should use <stdint.h> to get precise
739         integer types.
740
741 2007-02-04  Martin Mares  <mj@ucw.cz>
742
743         * lspci.c: alloca() needs <alloca.h>.
744
745 2006-09-17  Martin Mares  <mj@ucw.cz>
746
747         * lib/dump.c: Fixed a couple of bugs in the dump backend which caused
748         devices with domains or with extended config space to be read incorrectly.
749         Also, dumps with partial lines are allowed now.
750
751 2006-09-10  Martin Mares  <mj@ucw.cz>
752
753         * pci.ids: Updated to the current database snapshot.
754
755         * lspci.c (scan_device): If an error occurs when reading the standard config
756         header of a device, report it and ignore the device and return with exit
757         code 2 at the end.
758
759 2006-09-09  Martin Mares  <mj@ucw.cz>
760
761         * Released as 2.2.4.
762
763         * maint/release: Remind the maintainer about the current PCI_LIB_VERSION.
764
765         * lib/pci.h: Updated PCI_LIB_VERSION.
766
767         * lspci.c (show_machine): In the `-m' mode, do proper shell escaping
768         if the fields printed contain quotes or backslashes.
769
770         * lspci.c (show_machine): Added a `-vmm' mode, which removes the misuse
771         of the `Device' tag for two different purposes.
772
773         * Makefile: Moved all system-dependent decisions to lib/configure,
774         since config.mk is included in the top-level Makefile anyway.
775
776         * lib/configure: When configuring for Linux, ignore the kernel version
777         and always build all access methods.
778
779         * Makefile (CFLAGS): Removed -Winline, it's not needed and triggers
780         at many non-interesting places with gcc 3.4.
781
782         * Whitespace cleanup of all source files.
783
784         * The pci.ids file can be stored compressed if zlib is available.
785         Added transparent decompression to lib/names.c, modified update-pciids.sh
786         to keep the file compressed if applicable, updated Makefiles.
787         Based on a patch by Matthew Wilcox, but all the bugs are mine.
788
789         * Makefile, README: Allow installation to be done to a different directory
790         from the one we will eventually be placed in by setting DESTDIR.
791         Patch by Matthew Wilcox.
792
793         * Added .gitignore files.
794
795         * Makefile (clean): Clean *.orig, too.
796
797         * Cleaned up usage of `char' and `byte'.
798
799         * lib/header.h: PCI_CLASS_DOCKING_OTHER should be 0x0a80, not 0x0a01.
800
801         * lib/header.h: Added PCI_CLASS_xxx constants for all classes currently
802         defined in the pci.ids file.
803
804 2006-08-01  Martin Mares  <mj@ucw.cz>
805
806         * lib/i386-io-hurd.h: Fixed a silly typo.
807
808 2006-07-30  Martin Mares  <mj@ucw.cz>
809
810         * lib/Makefile: Added a missing rule for obsd-device.o.
811
812         * lspci.c, lib/header.h: Added support for MSI per-vector masking.
813         Contributed by Petr Vandrovec.
814
815         * lspci.c, lib/header.h: Added support for the `bridge subsystem ID'
816         capability. Contributed by Petr Vandrovec.
817
818         * lspci.c (show_htype1): Fixed bug in printing of 64-bit prefetchable
819         memory windows. Fix by Petr Vandrovec.
820
821         * maint/release.pm: Exclude .git directory from releases.
822
823         * lib/i386-ports.c, lib/i386-io-*: Report failures during port access
824         initialization by a->warn() instead of calling printf() or perror()
825         directly.
826
827         * lib/i386-ports.c, lib/i386-io-*: Moved the logic which keeps track of
828         the port access state to generic code.
829
830         * lib/i386-io-hurd.h: Ask the kernel for I/O port access appropriately.
831         Contributed by Thomas Schwinge and Samuel Thibault.
832
833         * lib/i386-ports.c: Define _GNU_SOURCE, it's needed by the Hurd module.
834
835         * lib/header.h: Whitespace cleanups.
836
837         * lib/i386-io-windows.h: Fixed indentation and spelling.
838
839         * README.Windows: Mention that WinIO.dll is needed and where to get it.
840
841 2006-06-27  Martin Mares  <mj@ucw.cz>
842
843         * lib/Makefile, Makefile: Added rules for building and cleaning the example.
844
845         * lib/example.c: Show how to use PCI_FILL_CLASS and used another register
846         for demonstrating the config space accesses. The example is still very
847         incomplete, though.
848
849         * lib/pci.h, lib/generic.c: Added PCI_FILL_CLASS.
850
851         * lib/sysfs.c: Fetch device ID and class from sysfs, because they can
852         be modified by kernel fixups.
853
854         * lspci.c: Use PCI_FILL_CLASS. Thanks to Matthew Willcox for the patch.
855
856 2006-06-03  Martin Mares  <mj@ucw.cz>
857
858         * lspci.c: Introduced the -nn switch. Thanks to David N. Welton
859         for the idea.
860
861         * lib/names.c (pci_lookup_name): Introduced PCI_LOOKUP_MIXED and
862         cleaned up the name selection code.
863
864         * lib/names.c (pci_lookup_name): If PCI_LOOKUP_NO_NUMBERS is given,
865         pci_access->numeric_ids is ignored.
866
867         * lib/names.c (pci_lookup_name): When class is identified and
868         subclass isn't, display class name and subclass number.
869
870 2006-05-31  Martin Mares  <mj@ucw.cz>
871
872         * setpci.c (main): Don't crash when an invalid width is specified.
873
874         * lspci.c, setpci.c, common.c: die() now uses the right program
875         name when printing an error message.
876
877 2006-05-19  Martin Mares  <mj@ucw.cz>
878
879         * README: Mention the public GIT tree.
880
881         * README: Updated the list of ports.
882
883 2006-05-10  Martin Mares  <mj@ucw.cz>
884
885         * lib/configure, lib/fbsd-device.c: Added support for GNU/kFreeBSD.
886         Thanks to Petr Salinger for the patch.
887
888 2006-05-05  Martin Mares  <mj@ucw.cz>
889
890         * Released as 2.2.3.
891
892         * lspci.c (scan_device): The -D switch didn't work as intended
893         in -m mode.
894
895 2006-05-05  Martin Mares  <mj@ucw.cz>
896
897         * Released as 2.2.2.
898
899         * pci.ids: Updated to the current database snapshot.
900
901         * lib/obsd-device.c (and other files in lib/*): Added OpenBSD
902         interface by Matthieu Herrb <matthieu.herrb@laas.fr>, based on
903         the existing FreeBSD interface.
904
905         * Moved pciutils to a GIT repository, which now contains merged
906         history from both CVS and Arch. Good bye, TLA!
907
908 2006-03-21  Martin Mares  <mj@ucw.cz>
909
910         * lspci.c (show_slot_name): Avoid the previous changes in default
911         display of domain name when in machine-readable mode. However, `-D'
912         forces domain display even there.
913
914         * lspci.man: Added a warning on -m being the only format, which is
915         guaranteed to be stable between lspci versions.
916
917 2006-03-13  Martin Mares  <mj@ucw.cz>
918
919         * lspci.man: Documented the -D switch.
920
921         * lspci.c (show_slot_name, scan_device): If there are multiple PCI
922         domains or if the `-D' switch is used, show the domain number for
923         all devices.
924
925         * lspci.c (show_verbose): Report cache line size in bytes.
926
927         * update-pciids.sh: Use curl if available. Patch by Matthew Wilcox.
928
929 2006-01-04  Martin Mares  <mj@ucw.cz>
930
931         * lspci.c (show_express_link): Fixed decoding of link status register.
932         Thanks to Roland Dreier for his report.
933
934 2005-12-12  Martin Mares  <mj@ucw.cz>
935
936         * lib/nbsd-libpci.c: If libpci is used by an ordinary user, allow
937         at least read-only access. Patch by Pavel Celeda <celeda@liberouter.org>.
938
939         * Makefile: Corrected library path on NetBSD.
940
941 2005-11-26  Martin Mares  <mj@ucw.cz>
942
943         * Released as 2.2.1.
944
945         * lspci.c (show_machine): Subsystem vendors were printed incorrectly
946         in machine-readable modes. Thanks to Pavel Celeda for a bug report.
947
948 2005-10-11  Martin Mares  <mj@ucw.cz>
949
950         * lspci.c (new_bus): Fixed a memory leak. Thanks to Paul Sangree for reporting it.
951
952 2005-09-21  Martin Mares  <mj@ucw.cz>
953
954         * Released as 2.2.0.
955
956         * pci.ids: Updated copyright header.
957
958         * lib/sysfs.c (sysfs_get_resources): Removed warning about unsupported
959         64-bit addresses, they are now always supported.
960
961         * lspci.c (show_bases): Corrected printing of 64-bit addresses
962         in bus-centric mode.
963
964         * lib/configure: Enable 64-bit addresses on all Linux systems.
965
966         * lib/types.h: Don't pad 64-bit addresses to 16 xigits, only to 8 if they
967         are shorter.
968
969 2005-09-11  Martin Mares  <mj@ucw.cz>
970
971         * Released as 2.1.99-test11.
972
973         * lspci.c: Removed unnecessary trailing zeros in pci_lookup_name() calls.
974
975 2005-09-10  Martin Mares  <mj@ucw.cz>
976
977         * Released as 2.1.99-test10.
978
979         * pci.ids: Synchronized with the current database snapshot.
980
981         * update-pciids.sh: Changed the default URL for downloading pci.ids
982         to http://pciids.sourceforge.net/v2.2/pci.ids.
983
984         * lib/pci.h (PCI_LIB_VERSION): Added version identifier.
985
986         * lib/names.c: Rewritten the name database module almost from scratch.
987         Everything is much cleaner and there are hopefully no more memory leaks;
988         pci_lookup_name() now uses varargs in a backward compatible fashion.
989         Introduced PCI_LOOKUP_NO_NUMBERS.
990
991         The new code supports subsystem entries not tied to a specific device.
992         I had to extend the format of pci.ids in order to support it, so I have
993         extended the idea of the "C" (class) blocks and introduced "S" blocks
994         for subsystems. To avoid doing more incompatible changes in the future,
995         the parser skips unknown single-letter blocks without reporting errors.
996
997 2005-08-23  Martin Mares  <mj@ucw.cz>
998
999         * Released as 2.1.99-test9.
1000
1001         * Makefile (OPT): Removed -fomit-frame-pointer, it's default in recent
1002         gcc versions when optimizing anyway.
1003
1004         * Made the path to pci.ids customizable and independent on the SHAREDIR.
1005         Just override IDSDIR in the top-level Makefile.
1006
1007         * pci.ids: Synchronized with the current database snapshot.
1008
1009         * lspci.man, setpci.man: Improved the man pages. Documented all access
1010         methods and which operations are privileged.
1011
1012         * lspci.c: Another rewrite of config register caching, now also including
1013         lots of internal checks. It should be now perfectly able to cope with
1014         portions of the configuration space being inaccessible, for example
1015         due to insufficient access rights.
1016
1017         * lspci.c (show_pcix_nobridge, show_pcix_bridge): Cleaned up dumping of PCI-X
1018         capabilities. Includes partial support for PCI-X 2.0 (probably incomplete
1019         as I haven't seen the spec).
1020
1021         * lspci.c: Quell warnings about unused parameters.
1022
1023         * lspci.c: Removed C++ comments.
1024
1025         * lib/header.h: Merged definitions of extended capabilities and some new
1026         PCI-X capability bits from linux-2.6.11/include/pci.h.
1027
1028         * lspci.c (show_caps): Try to scan extended capabilities only if the
1029         device has either PCI-X or PCI Express capability in its normal capability
1030         list.
1031
1032         * lib/dump.c (dump_init): Reading of dumps works again. The dump reader
1033         now also remembers how much data it has read and refuses attempts to
1034         access more than that.
1035
1036         * setpci.man, lspci.c, README: prefer spelling "buses" over "busses".
1037
1038         * lspci.c: If alloca() is not available, use xmalloc(), not malloc().
1039
1040         * lib/configure: Added x86_64 on Linux.
1041
1042 2005-08-22  Martin Mares  <mj@ucw.cz>
1043
1044         * lib/filter.c (pci_filter_parse_slot): Fixed parsing of domain filters.
1045         Thanks to Matthew Wilcox for bug report.
1046
1047         * lspci.c: Corrected spelling of "Hz" (it was "hz" at several places).
1048         Thanks to Krzysztof Oledzki for pointing that out.
1049
1050 2004-08-19  Martin Mares  <mj@ucw.cz>
1051
1052         * pciutils.spec (%attr): Setting attributes for /sbin/* is an anachronism,
1053         because pciutils by default install to /usr/sbin. Update.
1054
1055 2004-08-13  Martin Mares  <mj@ucw.cz>
1056
1057         * Released as 2.1.99-test8.
1058
1059         * lib/types.h, lib/pci.h, lib/sysdep.h: `byte' and `word' are
1060         no longer exported to the outside world.
1061
1062         * README.Windows: Updated.
1063
1064         * maint/release: Substitute version number in win32/config.h.
1065
1066         * win32/config.h: Added.
1067
1068         * lib/sysdep.h (bzero, strcasecmp): are macros on Windows.
1069
1070         * compat/getopt.[ch]: Added copies of getopt.[ch] from the GNU
1071         C library for use on systems where the default libraries lack
1072         proper getopt. Currently used by the Windows port.
1073
1074         * lib/sysdep.h, lib/types.h: Updates of the Windows port from
1075         Alexander Stock.
1076
1077         * lib/types.h: If PCI_HAVE_Uxx_TYPES is defined, libpci doesn't define
1078         its own u8, u16, u32, byte and word types and uses what the user
1079         has supplied instead. With this change, all namespace clashes should
1080         be gone.
1081
1082         * Makefile, lib/Makefile: Updated dependencies.
1083
1084         * pciutils.h: Include lib/sysdep.h and move NONRET et al. there.
1085
1086         * lib/sysdep.h: No need to include <sys/types.h> on FreeBSD, because
1087         it is included unconditionally in lib/types.h.
1088
1089         * Moved system-dependent stuff from lib/internal.h to lib/sysdep.h,
1090         which is also used by the utilities. Also moved type declarations
1091         from lib/pci.h to lib/types.h.
1092
1093         * All files: Prepend a "PCI_" prefix in front of all configuration
1094         defines to avoid namespace clashes. CAVEAT: If there is any libpci
1095         application using the (undocumented) defines, it has to be updated.
1096
1097         * lib/Makefile: Killed HAVE_OWN_HEADER_H, since we stopped sharing
1098         headers with the kernel a couple of years ago.
1099
1100         * lib/sysfs.c (sysfs_get_resources): We have 7 resources, not 6.
1101
1102         * lspci.c (show_rom): Use the same logic for printing disabled
1103         or unassigned ROM's as we do in show_bases() for the other BAR's.
1104
1105         * lib/generic.c (pci_generic_fill_info): Better reaction to
1106         invalid 64-bit addresses. Also d->hdrtype should not include
1107         bit 7, which caused mysterious errors on multi-function devices.
1108
1109         * lib/generic.c (pci_generic_fill_info): Fill in base addresses
1110         even if the regions are known to be disabled. It is the client's
1111         job to interpret them. (And it is not a trivial job if you want
1112         to do it correctly, since you need to check I/O and memory enables
1113         on all upstream bridges, too.) However, it could be interesting to
1114         introduce functions for interpreting the addresses and even for
1115         mapping the regions and doing I/O on them.
1116
1117 2004-07-30  Martin Mares  <mj@ucw.cz>
1118
1119         * lspci.c: HyperTransport improvements from Maciej.
1120
1121 2004-07-11  Martin Mares  <mj@ucw.cz>
1122
1123         * lib/sysfs.c (sysfs_get_resources): Arguments now correspond
1124         to the format string. [Patch by Bill Nottingham]
1125
1126 2004-07-05  Martin Mares  <mj@ucw.cz>
1127
1128         * Released as 2.1.99-test7.
1129
1130         * lspci.c (config_fetch): Wanted to merge Matthew's bug fix, but
1131         ended up with rewriting the fetching mechanism to be fully dynamic,
1132         but avoid reading config space registers not explicitly requested.
1133
1134 2004-06-29  Matthew Wilcox <willy@debian.org>
1135
1136         * lspci.c: More work on PCI Express dumping.
1137
1138         * lib/header.h: Updated PCI Express capability definitions.
1139
1140         * lib/proc.c (proc_read): Removed bogus warning.
1141
1142         * common.c (xrealloc): Introduced.
1143
1144         * lspci.man: Added -xxxx.
1145
1146 2004-06-27  Martin Mares  <mj@ucw.cz>
1147
1148         * Released as 2.1.99-test6.
1149
1150         * lspci.c (show_msix), lib/header.h: Added dumping of MSI-X cap.
1151         Patch by Roland Dreier <roland@topspin.com>, cleaned up by me.
1152
1153         * lspci.c (show_pcix_nobridge, show_pcix_bridge): Handle config_fetch()
1154         failures.
1155
1156         * lib/header.h: Added PCI Express extended capabilities. Again by Matthew.
1157
1158         * lspci.c (show_express): Added dumping of PCI Express cap.
1159         Patch by Matthew Wilcox.
1160
1161         * lib/header.h: Added a list of PCI 3.0 capabilities and also details
1162         on PCI Express caps. Patch by Matthew Wilcox <willy@debian.org>.
1163
1164         * lspci.c (check_root): Gone. No explicit checks for root are needed,
1165         report correct errors reported by the libpci instead.
1166
1167         * lspci.c: Added dumping of the extended config space on "-xxxx".
1168         Better caching of config registers.
1169
1170         * setpci.c (main): Allow access to whole 4096 bytes of the config space.
1171
1172         * lib/sysfs.c, lib/proc.c: Don't print error messages on short reads,
1173         just return the appropriate error code.
1174
1175         * lib: Added support for extended (4096-byte) configuration space,
1176         currently implemented only in Linux proc and sysfs access methods
1177         and of course in the dump reader.
1178
1179 2004-05-29  Martin Mares  <mj@ucw.cz>
1180
1181         * Released as 2.1.99-test5.
1182
1183         * lib/pci.h: Windows don't have the standard u_int* types.
1184
1185         * lib/internal.h: <sys/param.h> required on Windows for endianity
1186         macros.
1187
1188         * lib/i386-ports.c: Connected i386-io-windows.h.
1189
1190         * lspci.c (check_root): geteuid() is not available on Windows.
1191
1192         * lib/i386-io-windows.h: Added Windows port contributed by Alexander
1193         Stock <stock.alexander@gmx.de>.
1194
1195         * lib/configure: Hopefully fixed SunOS port broken by various
1196         changes to the configure script.
1197
1198         * Makefile, lib/configure: Cross-compilation support, patch by Maciej.
1199
1200 2004-05-28  Martin Mares  <mj@ucw.cz>
1201
1202         * Released as 2.1.99-test4.
1203
1204         * lspci.c (show_verbose): Header type 1 is probably legal for all
1205         types of bridges, not only for PCI-to-PCI bridges.
1206
1207         * lspci.c (format_agp_rate): Write "x16", not "x@".
1208         (show_agp): rate[] could overflow.
1209         Bugs reported by Jakub Bogusz <qboosh@pld-linux.org>.
1210
1211         * lspci.c (show_ht_*): Show HyperTransport capability with all its
1212         details. Once again code by Maciej simplified (i.e., possibly broken)
1213         by me.
1214
1215         * lib/header.h: Added declarations of HyperTransport capability.
1216         Again thanks to Maciej.
1217
1218         * lspci.c: Decode all bits of the secondary status word in type 1 headers.
1219         Thanks to Maciej W. Rozycki <macro@ds2.pg.gda.pl> for the patch.
1220
1221 2003-12-27  Martin Mares  <mj@ucw.cz>
1222
1223         * Released as 2.1.99-test3.
1224
1225         * lspci.man, setpci.man: Document domains and correct spelling.
1226
1227         * lib/dump.c (dump_init): Added ability to read domain numbers.
1228
1229         * lspci.c: Devices in domains different from 0 have their slot number
1230         printed as "<domain>:<bus>:<slot>.<func>". Tree view supports domains
1231         as well.
1232
1233         * lib/filter.c: Slot filters understand domains.
1234
1235         * lib/generic.c: Mention the domain in slot numbers in all error messages.
1236
1237         * lib/internal.h: The #ifdef for Linux <asm/byteorder.h> was wrong.
1238
1239         * lib/access.c (pci_get_dev): Added support for domains.
1240
1241         * lib/sysfs.c (sysfs_scan): Read vendor and device ID from the config
1242         registers (or to be precise, leave it for the generic parts of the pcilib
1243         to do so) instead of reading them from the sysfs. It's faster this way.
1244
1245         * lspci.c (show_pcix): Don't touch pci_dev->hdrtype, it's an internal
1246         variable. Better read it from the config registers (it's cached anyway).
1247
1248         * lib/sysfs.c (sysfs_scan), lib/proc.c (proc_scan): Don't read the hdrtype.
1249           lib/generic.c (pci_generic_fill_info): If hdrtype is -1 (unset), read it.
1250           Saves lots of unnecessary file accesses.
1251
1252         * lib/pci.h (PCIADDR_PORT_FMT): Use %llx instead of %Lx, because the latter
1253         is not supported by all C libraries.
1254
1255         * Makefile: Always enter the lib directory (remember that we don't have
1256         full dependecies for the library in the top-level Makefile; hmmm, another
1257         thing to rewrite some day).
1258
1259         * lib/sysfs.c: Added Linux sysfs access method based on the patch
1260         written by Matthew Wilcox <willy@fc.hp.com>.
1261
1262         * lib/proc.c: Renamed the access method name from "/proc/bus/pci" to "Linux-proc".
1263
1264         * lib/pread.h: The hacks to support pread on various versions
1265         of Linux libc moved there.
1266
1267         * lib/proc.c (proc_setup): The return value of snprintf() varies
1268         between glibc versions, so we need to check both for a negative
1269         values and for too large values.
1270
1271         * Removed last few references to the "Linux PCI Utilities", the
1272         package is pretty cross-platform now :)
1273
1274 2003-12-27  Martin Mares  <mj@ucw.cz>
1275
1276         * Released as 2.1.99-test2.
1277
1278         * README, pciutils.lsm, pciutils.spec: Use @VERSION@ to make the
1279         release scripts insert the current version. "make release" is gone.
1280
1281         * maint/release, maint/release.pm: Added a new system of scripts for
1282         making releases including inter-version diffs etc.
1283
1284         * Makefile: Cleaned up.
1285
1286         * lib/fbsd-device.c: I patched another copy of this file by mistake,
1287         this time the version checks should be right.
1288
1289 2003-12-27  Martin Mares  <mj@ucw.cz>
1290
1291         * Released as 2.1.99-test1.
1292
1293         * pciutils.h, common.c, lspci.man, setpci.man, lib/internal.h:
1294         Remove shadows of the syscall access method which was never
1295         implemented.
1296
1297         * update-pciids.sh: Try to preserve permissions of the old file
1298         if chmod supports --reference. Should close Debian Bug #223740.
1299
1300         * lib/proc.c (proc_setup): Increased path name length limit to 1024.
1301         Thanks for Redhat and Mandrake for inspiration.
1302
1303         * lib/configure: Recognize ppc and ppc64, both have 64-bit addresses.
1304         Grabbed from Redhat (Fedora) patches.
1305
1306 2003-12-27  Martin Mares  <mj@ucw.cz>
1307
1308         Merged bug fixes from Debian patches:
1309
1310         * lspci.c (show_verbose): "Cache Line Size" should be capitalized.
1311
1312         * lspci.c (show_pcix_nobridge): Added a missing newline.
1313
1314         * lib/proc.c (proc_scan): When reading the header type, don't
1315         forget to clear the topmost bit indicating that the device has
1316         multiple functions.
1317
1318 2003-12-27  Martin Mares  <mj@ucw.cz>
1319
1320         Updated the FreeBSD port. Thanks to Samy Al Bahra <samy@kerneled.com>
1321         for the patches:
1322
1323         * lib/Makefile: Add ${FREEBSD_SYS} to the include path if it's defined.
1324         * lib/fbsd-device.c: Select the right set of system includes according
1325         to __FreeBSD_version.
1326
1327 2003-12-27  Martin Mares  <mj@ucw.cz>
1328
1329         Merged support for Solaris on i386 by Bill Moore <billm@eng.sun.com>
1330         and cleaned up:
1331
1332         * lib/configure: Recognize SunOS.
1333         * lib/internal.h: Learn how to recognize byte order on SunOS.
1334         * lib/i386-ports.c: Split OS-dependent I/O port access from i386-ports.c.
1335         * lib/i386-io-linux.h: Linux specific part.
1336         * lib/i386-io-hurd.h: GNU/Hurd specific part.
1337         * lib/i386-io-sunos.h: SunOS specific part.
1338
1339 2003-12-26  Martin Mares  <mj@ucw.cz>
1340
1341         * lib/header.h (PCI_*_MASK): Cast to pciaddr_t explicitly.
1342
1343         * lib/pci.h: Types declared in <sys/types.h> should be usable on all
1344         platforms we currently support, so kill the forest of #ifdef's and
1345         use them in all cases.
1346
1347         * lib/pci.h: Use ULONG_MASK to decide whether we should use long
1348         or long long to represent a 64-bit address. Killed HAVE_LONG_ADDRESS.
1349         Define format strings for addresses, port numbers and IRQ numbers
1350         directly in pci.h.
1351
1352         * lib/proc.c (proc_scan): Use PCIADDR_T_FMT for scanf'ing addresses.
1353
1354 2003-12-26  Marco Gerards  <metgerards@student.han.nl>
1355
1356         Added support for the GNU Hurd (cleaned up by Martin Mares):
1357
1358         * lib/configure [GNU]: Use the i386 ports for configuration access.
1359         * lib/i386-ports.c: Don't call iopl() on the Hurd.
1360         * lib/pci.h [OS_GNU]: Include <sys/types.h> and use it for defining
1361         u8 to u32.
1362
1363 2003-12-26  Martin Mares  <mj@ucw.cz>
1364
1365         * lspci.c (show_pcix_bridge, show_pcix_nobridge): Don't forget to call
1366         config_fetch() to ensure that the registers have been read. Thanks to
1367         Bill Wood <bill.wood@hp.com> for the patch.
1368
1369         * lspci.c: Ensure that failure of config_fetch() is handled correctly
1370         at all places.
1371
1372         * lspci.man: There was one more explicit reference to /usr/share/pci.ids.
1373         Changed to @SHAREDIR@. Patch from Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
1374
1375         * setpci.c (main): Better error messages.
1376
1377         * setpci.c (ex_op): The demo mode should disable only writing, not reading.
1378
1379         * setpci.man: The documentation was inconsistent on what should -D do.
1380         Document the new behaviour.
1381
1382         * pciutils.h, common.c, setpci.c: Introduced a NONRET macro encapsulating
1383         the GCC specific __attribute__((noreturn)) and killed the hack with
1384         redefining __attribute__ on non-GCC compilers.
1385
1386         * Makefile: Added missing dependencies. Parallel builds work now.
1387         Problem reported by Andreas Haumer <andreas@xss.co.at>, but I chose
1388         a different fix.
1389
1390         * Makefile (MANDIR): Use `:=' instead of `=' to avoid executing the shell
1391         command every time $(MANDIR) is referenced.
1392
1393         * lspci.c (main): The error message for `lspci -s' incorrectly mentioned
1394         a `-f' switch. Reported by Steve Finney <Steve.Finney@SpirentCom.COM>.
1395
1396         * lib/generic.c: Removed memory leak in pci_generic_bus_scan().
1397         Reported by Gary Parnes <gary_parnes@terago.com>.
1398
1399         * Replaced obsolete syntax of __attribute__((unused)) in the middle of
1400         parameter declarations (which is no longer supported by GCC 3.1) by the
1401         current syntax (attribute at the end). Thanks to pixel@mandrakesoft.com
1402         for reporting this problem.
1403
1404         * Removed CVS $Id$ tags from all files.
1405
1406         * Makefile: Added some more warnings.
1407
1408         * setpci.c: Cleaned up mask/value code.
1409
1410 2003-12-08 Thayne Harbaugh <tharbaugh@lnxi.com>
1411
1412         * setpci.c: Individual bits to be set can be specified as <value>:<mask>.
1413
1414 2003-11-29  Martin Mares  <mj@ucw.cz>
1415
1416         * Imported the pciutils sources to my Arch repository. Good-bye, CVS.
1417
1418 2003-01-04  Martin Mares  <mj@ucw.cz>
1419
1420         * Released as 2.1.11.
1421
1422         * Makefile: Changed configuration of installation directories --
1423         all paths are now set at the top of the Makefile instead of being
1424         scattered between the installation rules. The default installation
1425         now goes always to /usr/local regardless of the OS as most distributions
1426         already contain some version of pciutils and we don't want custom
1427         installations to interfere with the default ones.
1428
1429         * Makefile: Removed a couple of ancient install hacks: we no longer
1430         try to avoid overwriting a newer pci.ids file (users are now expected
1431         to use update-ids) and we don't try to remove /etc/pci.ids (a long time
1432         has passed since the last version which used it).
1433
1434         * Makefile: Paths to pci.ids in man pages automatically get the right path.
1435
1436         * Added the update-ids utility.
1437
1438         * lib: Removed partially implemented "syscall" access method which will
1439         probably never be needed.
1440
1441 2002-12-27  Martin Mares  <mj@ucw.cz>
1442
1443         * lib/nbsd-libpci.c: Cleaned up and hopefully made it endian safe.
1444
1445         * lib/generic.c (pci_generic_scan_bus): Added work-around for devices with
1446         discontiguous numbering of functions. This is already present in the Linux
1447         kernel for several years, but I forgot to update pciutils as well.
1448
1449 2002-12-26  Martin Mares  <mj@ucw.cz>
1450
1451         * lib/header.h, lspci.c: Dump AGP3 flags and speeds.
1452
1453         * lib/pci.h, Makefile: Removed HAVE_OWN_HEADER_H. Always use our own header,
1454         there is no reason to prefer the kernel version.
1455
1456         * lib/proc.c (proc_scan): Don't forget to initialize hdrtype.
1457
1458         * Added preliminary version of NetBSD support by Quentin Garnier
1459         <netbsd@quatriemek.com>.
1460
1461 2002-04-06  Martin Mares  <mj@ucw.cz>
1462
1463         * lspci.c: Mention "-xxx" in the help.
1464
1465 2002-03-30  Martin Mares  <mj@ucw.cz>
1466
1467         * Released as 2.1.10.
1468
1469         * Removed pci.ids from the CVS as they are now maintained separately.
1470         They are still included in the tarball, but if you are building pciutils
1471         from CVS sources or you want to get a newer ID file than the one distributed,
1472         just use "make update-ids" to download the most recent snapshot from
1473         pciids.sf.net.
1474
1475         * Makefile, README: Updated accordingly.
1476
1477         * Makefile: Added a couple of maintenance targets.
1478
1479         * maint/*: Maintainer's utilities now reside here (present only in CVS,
1480         not in the tarball).
1481
1482         * lib/names.c (parse_name_list): End-of-line comments are no longer
1483         supported. Hashes are now perfectly valid in all names and they start
1484         a comment only at the start of the line.
1485
1486 2002-03-26  Martin Mares  <mj@ucw.cz>
1487
1488         * README: Rewritten.
1489
1490         * Makefile: When the currently installed pci.ids file is newer than
1491         the version to be installed, don't overwrite it. Suggested by
1492         Jean Delvare <khali@linux-fr.org>.
1493
1494 2002-03-24  Martin Mares  <mj@ucw.cz>
1495
1496         * lspci.c (show_pcix_bridge): Added PCI-X capability display.
1497         Contributed by Jeff Garzik <jgarzik@mandrakesoft.com>.
1498
1499         * lib/header.h: Added PCI-X stuff. Again by Jeff.
1500
1501         * Makefile (CFLAGS): -Werror is gone.
1502
1503         * lspci.c (format_agp_rate): Fixed AGP rate reporting.
1504
1505         * lib/filter.c (pci_filter_parse_slot): Allow bus 0xff, slot 0x1f and
1506         function 7.
1507
1508         * lib/names.c (pci_lookup_name): When printing unknown subsystem vendor
1509         or device hexadecimally, don't confuse it with chip vendor/device ID.
1510         First reported by Marc Boucher <marc@mbsi.ca>.
1511
1512 2001-11-04  Martin Mares  <mj@ucw.cz>
1513
1514         * Released as 2.1.9.
1515
1516         * pci.ids: Synced with the PCI ID Repository at SourceForge
1517         (http://pciids.sourceforge.net/).
1518
1519 2000-08-25  Martin Mares  <mj@albireo.ucw.cz>
1520
1521         * pci.ids: Updated ID's, synced with kernel 2.4.0-test7.
1522
1523 2000-06-13  Martin Mares  <mj@albireo.ucw.cz>
1524
1525         * Makefile (uninstall): Fixed.
1526
1527         * pci.ids: ID updates.
1528
1529 2000-05-20  Martin Mares  <mj@albireo.ucw.cz>
1530
1531         * Released as 2.1.8.
1532
1533         * pci.ids: ID updates.
1534
1535         * lspci.c (show_verbose): Min/max latency is now printed in nanoseconds.
1536
1537 2000-05-04  Martin Mares  <mj@albireo.ucw.cz>
1538
1539         * lspci.c (show_verbose): If the header type doesn't match device
1540         class, just print a warning and still use the header type, assuming
1541         bogus class info.
1542
1543 2000-05-01  Martin Mares  <mj@albireo.ucw.cz>
1544
1545         * lspci.c (show_pm): Updated according to PCI PM specs 1.1.
1546
1547         * pci.ids: Updated Contemporary Control ARCnet card entries.
1548
1549         * pci.ids: Synchronized class list with latest PCI SIG documents.
1550
1551 2000-04-29  Martin Mares  <mj@albireo.ucw.cz>
1552
1553         * lib/names.c (pci_lookup_name): Fixed the cheat.
1554
1555         * lib/internal.h: Moved UNUSED/inline hacks above all other declarations.
1556
1557         * pci.ids: Various ID updates.
1558
1559 2000-04-21  Martin Mares  <mj@albireo.ucw.cz>
1560
1561         * Released as 2.1.7.
1562
1563         * pciutils.spec: Added German description.
1564
1565         * lib/names.c (pci_lookup_name): Added a cheat for case that subsystem ID's
1566         are the same as device ID and just output subsystem name according to
1567         device name.
1568
1569         * lib/proc.c: Use UNUSED instead of __attribute__((unused)).
1570
1571         * lib/pci.h: Added the correct typedefs for AIX.
1572
1573         * lib/generic.c (pci_generic_scan_bus): Export.
1574
1575         * lib/configure: Detect AIX. Use "echo '...\c'" instead of
1576         "echo -n" if the shell isn't bash.
1577
1578         * lspci.c: Avoid using alloca() if not compiled by GCC.
1579         (insert_dev): Avoid returning a void value.
1580
1581         * Makefile: Choose which install utility to use according to
1582         OS type. Also use `-o' instead of `-or' in find arguments.
1583         Part of the AIX port.
1584
1585         * lib/aix-device.c: Added AIX low-level interface. Contributed
1586         by Dave Johnson <ddj@brown.edu>, thanks a lot!
1587
1588         * pci.ids: Few new ID's.
1589
1590         * pciutils.h, lib/internal.h: Redefine __attribute__ and inline
1591         when not compiled by GCC.
1592
1593 2000-04-17  Martin Mares  <mj@albireo.ucw.cz>
1594
1595         * Released as 2.1.6.
1596
1597         * pci.ids: Added a large batch of ID's contributed by Gunther
1598         Mayer <gunther.mayer@braunschweig.netsurf.de> and synced the
1599         list with the 2.3.99pre6 kernel.
1600
1601 Thu Mar  9 13:11:39 2000  Martin Mares  <mj@albireo.ucw.cz>
1602
1603         * lib/example.c: Added a simple example of how to use
1604         the library.
1605
1606         * lspci.man, setpci.man: Revealed --version. Well spotted
1607         by Adam Sulmicki.
1608
1609         * pci.ids: Added lots of new ID's and synced with 2.3.50.
1610
1611 Tue Feb 15 00:16:21 2000  Martin Mares  <mj@albireo.ucw.cz>
1612
1613         * Released as 2.1.5.
1614
1615         * pciutils.spec: Updated spec file from Andreas Jaeger. Now using
1616         %{_mandir} to find the right location to install manual pages to.
1617
1618         * pci.ids: New ID's.
1619
1620         * setpci.c (main): Don't crash when `-s' or `-d' is given with
1621         no argument.
1622
1623 Mon Jan 24 20:04:11 2000  Andreas Jaeger  <aj@suse.de>
1624
1625         * lib/i386-ports.c: Include <asm/io.h> only on systems without
1626         glibc.
1627
1628 Mon Jan 24 11:24:43 2000  Martin Mares  <mj@albireo.ucw.cz>
1629
1630         * Makefile: Modified to work with the Linux FHS brain-damaged idea
1631         of putting man pages to /usr/share/man. Now we choose either /usr/man
1632         or /usr/share/man depending on which one exists.
1633
1634 Sun Jan 23 10:52:34 2000  Martin Mares  <mj@albireo.ucw.cz>
1635
1636         * pci.ids: Synced with Linux 2.3.40.
1637
1638         * Released as version 2.1.4.
1639
1640 Thu Jan 20 11:08:32 2000  Martin Mares  <mj@albireo.ucw.cz>
1641
1642         * lspci.c (scan_device): Fixed bug in reading of cardbus extensions.
1643
1644         * lib/proc.c: pread/pwrite fixed again, this time on libc5 :(
1645
1646         * lspci.c (format_agp_rate): Better formatting of AGP rates.
1647
1648         * pci.ids: New ID's.
1649
1650         * lib/configure: Added configuration for ia64 (the same as for Alpha).
1651         Patch from Stephane Eranian <eranian@cello.hpl.hp.com>.
1652
1653 Thu Jan 13 23:01:52 2000  Martin Mares  <mj@albireo.ucw.cz>
1654
1655         * Released as version 2.1.3.
1656
1657         * pci.ids: New ID's.
1658
1659         * lspci.c: Alpha IO_FORMAT fix by Andrea Arcangeli.
1660
1661         * lib/access.c: Corrected order of access methods -- it's wonderful how
1662         long could such a bug remain unspotted. Thanks go to Andreas Schockenhoff.
1663
1664 Sat Dec 11 23:34:48 1999  Martin Mares  <mj@albireo.ucw.cz>
1665
1666         * Released as version 2.1.2.
1667
1668         * lib/names.c (pci_lookup_name): Fixed printing of unknown subsystem ID's.
1669
1670 Sat Dec  4 13:11:03 1999  Martin Mares  <mj@albireo.ucw.cz>
1671
1672         * Released as version 2.1.1.
1673
1674         * pci.ids: Several new ID's.
1675
1676         * setpci.c (exec_op): Don't forget to increment address after writing
1677         single value, so that `30.b=12,34,56,78' works as expected. Reported
1678         by Petr Soucek <petr@ryston.cz>.
1679
1680 Wed Nov  3 10:24:38 1999  Martin Mares  <mj@albireo.ucw.cz>
1681
1682         * lspci.c (show_terse): If prog-if is zero, but it's present in the
1683         ID list, show it.
1684
1685 Sat Oct 30 11:06:35 1999  Martin Mares  <mj@albireo.ucw.cz>
1686
1687         * Released as version 2.1.
1688
1689         * pci.ids: Synced to devlist.h in 2.3.24 kernel. Merged in
1690         lots of contributed entries.
1691
1692 Thu Oct 14 10:40:12 1999  Dave Jones    <dave@powertweak.com>
1693
1694         * pci.ids: Added lots of subsystem definitions.
1695
1696 Sat Oct  9 14:32:28 1999  Martin Mares  <mj@albireo.ucw.cz>
1697
1698         * setpci.man: Better example.
1699
1700         * lspci.c: Resolve prog-if names.
1701
1702         * lib/names.c: Adapted to new pci.ids syntax.
1703
1704         * pci.ids: Reorganized the pci.ids file. Subsystems are listed
1705         under devices, classes can optionally contain prog-if information.
1706         New ID's, as usually.
1707
1708 Wed Sep 22 09:45:24 1999  Martin Mares  <mj@albireo.ucw.cz>
1709
1710         * pci.ids: New ID's. As usually.
1711
1712         * lspci.c (show_htype1, show_htype2): Don't show `closed' bridge windows
1713         unless we're vvvery verbose.
1714
1715 Mon Sep 20 11:22:54 1999  Martin Mares  <mj@albireo.ucw.cz>
1716
1717         * lspci.c (show_htype2): Don't forget a TAB before the "I/O window" line.
1718
1719 Tue Sep 14 09:31:01 1999  Martin Mares  <mj@albireo.ucw.cz>
1720
1721         * pci.ids: New ID's. Again.
1722
1723 Thu Aug  5 17:45:42 1999  Martin Mares  <mj@albireo.ucw.cz>
1724
1725         * lspci.c (show_size): Don't show size if it's zero (usually
1726         due to bus-centric mode being enabled).
1727
1728 Tue Jul 20 13:25:09 1999  Martin Mares  <mj@albireo.ucw.cz>
1729
1730         * lib/pci.h: Types are OS dependent.
1731
1732         * lib/internal.h: Byte order hacks are OS dependent.
1733
1734         * lib/configure: Recognize FreeBSD. Also set OS_XXX according to the OS.
1735
1736         * lib/Makefile, lib/access.c: Added fbsd-device target.
1737
1738         * pci.ids: Added an entry for PLX 9080 bridges with subsystem ID
1739         incorrectly set to device ID.
1740
1741         * README: Added a note that we support FreeBSD.
1742
1743         * Makefile (PREFIX, ROOT): Set it depending on the OS.
1744         (%.8): Grrr, BSD date is not able to convert date formats the same way
1745         as GNU date does. Use sed instead.
1746         (install): Use `-c' when calling install.
1747
1748         * lib/fbsd-device.c: Added FreeBSD /dev/pci access module contributed
1749         by Jari Kirma <kirma@cs.hut.fi>.
1750
1751         * lib/proc.c: Rewrote the pread/pwrite things once again. Use pread
1752         and pwrite only when we are certain it's safe (i.e., glibc 2.1
1753         on all architectures or any libc on a i386 where we really know
1754         how to use syscalls directly). In all other cases, emulate it
1755         with lseek/read/write.
1756
1757         * pci.ids: Some more IDs.
1758
1759 Mon Jul 19 14:10:36 1999  Martin Mares  <mj@albireo.ucw.cz>
1760
1761         * pci.ids: Added IDs of parallel port controller cards as sent
1762         by Tim Waugh <tim@cyberelk.demon.co.uk>.
1763
1764 Wed Jul  7 00:55:48 1999  Martin Mares  <mj@albireo.ucw.cz>
1765
1766         * lib/proc.c (proc_scan): HAVE_LONG_ADDRESS instead of HAVE_64BIT_ADDRESS.
1767
1768         * lspci.c: ADDR_FORMAT now depends on both HAVE_64BIT_ADDRESS and
1769         HAVE_LONG_ADDRESS.
1770
1771         * lib/configure: HAVE_64BIT_ADDRESS now doesn't imply that the addresses
1772         are represented as long long. Introduced a new flag HAVE_LONG_ADDRESS
1773         to indicate this. Both Sparc architectures now use both 64BIT_ADDRESS
1774         and LONG_ADDRESS since they have 32-bit userland, but don't set LONG_ADDRESS
1775         on Alpha.
1776
1777         * lspci.c (show_msi): Added dumping of the MSI capability.
1778         (show_slotid): The same for SlotID capability.
1779         (show_caps): Seperated capability dumping, because it should
1780         be used for both htype0 and htype1. Even PCI 2.2 doesn't mention
1781         layout of htype2, so I'm a bit unsure about it wrt capabilities
1782         -- they at least have to live somewhere else since address 0x34
1783         is already defined differently in htype2.
1784
1785         * lib/header.h (PCI_STATUS_UDF): Marked as obsolete (PCI 2.2).
1786         (PCI_BASE_ADDRESS_MEM_TYPE_1M): Ditto.
1787         (PCI_CAP_ID_*): Added some new capabilities defined in PCI 2.2.
1788
1789         * lspci.c (show_htype0): Mask out lowest 2 bits from all capability pointers
1790         (required by the PCI 2.2 specs).
1791
1792 Mon Jul  5 12:45:19 1999  Martin Mares  <mj@albireo.ucw.cz>
1793
1794         * lspci.c (show_size): Added new function for dumping of region sizes.
1795         (show_rom): Added. Now correctly dumps unassigned ROM addresses, disabled
1796         ROMs et cetera.
1797
1798         * lib/pci.h (struct pci_dev): known_fields moved to the public part
1799         of the structure.
1800
1801         * Added support for region sizes. Needs support in the kernel, because
1802         sizes have to be scanned before drivers initialize yourself. pci_fill_info()
1803         now returns a bitmask of what fields were really read.
1804
1805 Mon Jun 28 18:37:51 1999  Dave Jones    <dave@powertweak.com>
1806
1807         * Makefile:
1808           Added `uninstall' target - removes all traces of pciutils.
1809         * pci.ids:
1810           - Lots of cleanups in the ATI, S3, Adaptec vendors.
1811           - Changed Compaq QVision 1280/p definitions, as it's not possible
1812             to determine the revision from the device ID.
1813           - Same for the Tseng ET4000.
1814             The id's said I had a rev C, when it was actually a rev B.
1815           - Removed some unnecessary strings
1816             `PCI'. Unless it's an AGP card, it should be obvious that it's PCI.
1817             `Ethernet card'. This should be determined from config space.
1818           - Lots of other new vendors & devices
1819           - Other additional small cleanups.
1820
1821 Mon Jun 21 22:11:10 1999  Martin Mares  <mj@albireo.ucw.cz>
1822
1823         * lib/names.c (pci_lookup_name): When device ID lookup
1824         fails, return hexadecimal device ID instead of vendor ID.
1825         Well spotted by Axel Bodemann <Axel.Bodemann@ruhr-uni-bochum.de>,
1826         I've just extended the fix to subsystem ID's.
1827
1828 Thu Jun 17 19:48:21 1999  Martin Mares  <mj@albireo.ucw.cz>
1829
1830         * lspci.c (show_agp): Bug fix from Petr Vandrovec
1831         <vandrove@vc.cvut.cz>. The command register was displayed
1832         incorrectly.
1833
1834 Wed Jun  2 22:42:44 1999  Martin Mares  <mj@albireo.ucw.cz>
1835
1836         * lib/proc.c (SYS_pread, SYS_pwrite): Use hard-coded
1837         numbers if not supplied by the libc.
1838
1839 Wed May 19 13:24:39 1999  Martin Mares  <mj@albireo.ucw.cz>
1840
1841         * Released the whole package as version 2.0.
1842
1843 Fri May 14 22:42:02 1999  Martin Mares  <mj@albireo.ucw.cz>
1844
1845         * pci.ids: Added several new ID's contributed by people
1846         on the linux-pci list.
1847
1848 Mon Apr 19 15:21:08 1999  Jakub Jelinek  <jj@ultra.linux.cz>
1849
1850         * lspci.c: Display I/O addresses correctly on sparc64.
1851         * lib/header.h: Ditto.
1852
1853         * lib/configure: On sparc set HAVE_64BIT* as well, we want
1854         a binary which works on both 32bit and 64bit SPARCs.
1855
1856 Sun Apr 18 21:14:58 1999  Martin Mares  <mj@albireo.ucw.cz>
1857
1858         * lspci.c, lib/proc.c: Alpha compilation fixes from Matthew Jacob
1859         <mjacob@feral.com>.
1860
1861         * pci.ids: A lot of updates from Adam J. Richter <adam@yggdrasil.com>.
1862
1863 Sun Feb 28 22:26:21 1999  Martin Mares  <mj@albireo.ucw.cz>
1864
1865         * lspci.c (do_map_bus): Don't dump functions 1--7 if not flagged
1866         as a multi-function device, because several single-function devices
1867         don't decode the function bits at all.
1868
1869 Sun Feb 14 23:48:22 1999  Martin Mares  <mj@albireo.ucw.cz>
1870
1871         * Makefile (install): Don't use "-o root -g root" for installation
1872         since it breaks on machines where programs are not installed by root.
1873         Reported by Richard Gooch <rgooch@atnf.csiro.au>
1874
1875 Tue Feb  9 15:54:39 1999  Martin Mares  <mj@albireo.ucw.cz>
1876
1877         * lspci.c (show_bases): Use new address masking macros and pciaddr_t.
1878
1879         * lib/pci.h: Using pciaddr_t for bus addresses, which are 32-bit
1880         or 64-bit depending on CPU.
1881
1882         * lib/pci.h (PCI_ADDR_MEM_MASK): Added macros for address masks
1883         according to bus address width.
1884
1885 Thu Jan 28 20:54:16 1999  Martin Mares  <mj@albireo.ucw.cz>
1886
1887         * Released as 1.99.4.
1888
1889         * lspci.c: Capability list parser now recognizes both AGP
1890         registers and PCI Power Management registers (the latter
1891         is mainly guesswork based on DEC/Intel 21153 bridge specs
1892         since I don't have the PCI Power Management document).
1893
1894         * lspci.c: Replaced numerous occurences of (x & flag) ? '+' : '-'
1895         by FLAG macro.
1896
1897         * lspci.c: Added bridge checks to bus mapping code.
1898
1899 Wed Jan 27 14:59:16 1999  Martin Mares  <mj@albireo.ucw.cz>
1900
1901         * lspci.c: Implemented bus mapping mode (-M).
1902
1903         * lspci.c (scan_devices): Split to scan_devices() and scan_device().
1904         (show): Split to show() and show_device().
1905
1906         * lib/access.c (pci_init): When a->method == PCI_ACCESS_AUTO,
1907         set it to the real access method afterwards.
1908
1909 Mon Jan 25 23:46:13 1999  Martin Mares  <mj@albireo.ucw.cz>
1910
1911         * lib/generic.c (pci_generic_fill_info): If in buscentric mode,
1912         don't check PCI_COMMAND for I/O and memory enables.
1913
1914 Mon Jan 25 21:28:49 1999  Martin Mares  <mj@albireo.ucw.cz>
1915
1916         * Makefile: Added target `release' which substitutes new version
1917         number to .spec, .lsm and README. Also rewrote target `dist'.
1918
1919         * Released as 1.99.3.
1920
1921 Sun Jan 24 22:10:36 1999  Martin Mares  <mj@albireo.ucw.cz>
1922
1923         * lib/header.h: Until kernel adopts new layout of PCI
1924         includes (i.e., separate declaration of header structure,
1925         functions and device IDs), which is not going to happen
1926         before 2.3, we'll use our own definiton of the header.
1927
1928         * lspci.c (show_verbose): Display `Cap' flag in device status.
1929
1930         * lspci.c (show_htype0): Display capability lists whereever
1931         available. The only capability name we recognize now is `AGP'.
1932         Unfortunately, capabilities are stored in device-dependent
1933         portion of the configuration space and are thus available
1934         only to root unless you read a dump.
1935
1936         * lspci.c (scan_devices): Use cache instead of buffering.
1937
1938         * lib/buffer.c: Removed (obsoleted by the cache).
1939
1940         * lib/access.c: Added general caching mechanism.
1941
1942 Sat Jan 23 21:30:54 1999  Martin Mares  <mj@albireo.ucw.cz>
1943
1944         * pci.ids: Added few devices.
1945
1946 Fri Jan 22 19:29:31 1999  Martin Mares  <mj@albireo.ucw.cz>
1947
1948         * Version string is now defined in top-level Makefile, exported
1949         to the configure script and also substituted to man pages.
1950
1951         * lspci.c (show_bases): Rewrote displaying of 64-bit addresses.
1952         (show_verbose): Rewrote interrupt display logic.
1953
1954         * lib/i386-ports.c: Include sys/io.h only on glibc systems.
1955
1956         * lib/configure: Rewrote detection of Linux versions. Now it
1957         works on 2.0 kernels (only with direct/dump access, of course).
1958
1959         * lib/internal.h: New bytesex macros using <asm/byteorder.h>
1960         whenever available.
1961
1962         * lib/proc.c (proc_read, proc_write): Distinguish between short
1963         read/write and real errors.
1964
1965         * lspci.c (show_htype{0,1}): Always use d->dev->rom_base_addr since
1966         libpci respects buscentric mode automatically.
1967
1968         * lspci.c (show_hex_dump): For CardBus bridges, print out 128
1969         bytes of header (the whole standard part).
1970
1971         * common.c: pcilib options are now all uppercase. Also moved
1972         PCI access debugging option here.
1973
1974         * Released as 1.99.2.
1975
1976 Wed Jan 20 22:50:35 1999  Martin Mares  <mj@albireo.ucw.cz>
1977
1978         * Wrote configure script and rewrote Makefiles.
1979
1980         * Removed few unused variables.
1981
1982 Wed Jan 20 12:21:56 1999  Martin Mares  <mj@albireo.ucw.cz>
1983
1984         * common.c: Moved several functions used in both setpci and lspci
1985         here. This includes parsing of libpci-related options.
1986
1987         * More library tweaks.
1988
1989         * filter.c, names.c: Moved to library.
1990
1991         * setpci: Rewritten to use the library.
1992
1993         * Released as 1.99.1.
1994
1995 Tue Jan 19 23:00:12 1999  Martin Mares  <mj@albireo.ucw.cz>
1996
1997         * lspci.c (scan_devices): For cardbus bridges, read first 128
1998         bytes of config space to get full standard header.
1999
2000         * Makefile (CFLAGS): Removed "-Wno-unused".
2001
2002         * Started the "New Generation" branch and introduced the
2003         PCI library.
2004
2005         * lspci: Rewritten to use the library.
2006
2007 Tue Jan 19 22:24:08 1999  Martin Mares  <mj@albireo.ucw.cz>
2008
2009         * Released as version 1.10.
2010
2011 Mon Jan 18 08:51:17 1999  Martin Mares  <mj@albireo.ucw.cz>
2012
2013         * lspci.8, setpci.8: Miscellaneous fixes as suggested by
2014         Dag Wieers <dag@digibel.be>.
2015
2016 Sun Nov 29 20:05:56 1998  Martin Mares  <mj@albireo.ucw.cz>
2017
2018         * pciutils.spec (Name): Update from Krzysztof G. Baranowski.
2019
2020 Sun Nov 22 10:49:56 1998  Martin Mares  <mj@albireo.ucw.cz>
2021
2022         * Makefile, pciutils.h: Moved pci.ids to /usr/share.
2023
2024         * Released as version 1.09.
2025
2026 Wed Nov 18 15:47:05 1998  Martin Mares  <mj@albireo.ucw.cz>
2027
2028         * lspci.c (show_htype1): Fixed displaying of prefetchable memory behind
2029         bridge. Thanks to Petr Vandrovec <vandrove@vc.cvut.cz> for bug report.
2030
2031 Fri Oct 23 18:59:19 1998  Martin Mares  <mj@albireo.ucw.cz>
2032
2033         * setpci.c: Don't include <syscall-list.h> with glibc >= 2.1.
2034
2035 Mon Oct 19 21:53:30 1998  Martin Mares  <mj@albireo.ucw.cz>
2036
2037         * Released as version 1.08.
2038
2039         * setpci.c: glibc 2.1.x already defines pread() and pwrite().
2040
2041         * lspci.8: Changed warning about lspci -xxx.
2042
2043         * lspci.c: Require "-xxx" for full configuration space dump, so that
2044         it's impossible to crash the machine by single typo.
2045
2046         * specs: Added (courtesy of Krzysztof G. Baranowski <kgb@knm.org.pl>).
2047
2048 Wed Sep  9 12:03:24 1998  Martin Mares  <mj@albireo.ucw.cz>
2049
2050         * lspci.c (show_bases): Better displaying of unassigned and
2051         disabled bases. Thanks to Gabriel Paubert <paubert@iram.es>
2052         for an idea.
2053
2054 Wed Sep  2 10:58:01 1998  Martin Mares  <mj@albireo.ucw.cz>
2055
2056         * setpci.c (pread): Recognize glibc 1.99 numbered as 2.0 on the PPC.
2057         (thanks to Geert Uytterhoeven for finding this out)
2058
2059 Fri Jul 17 10:43:30 1998  Martin Mares  <mj@albireo.ucw.cz>
2060
2061         * lspci.c (show_verbose): Print subsystem ID using the new resolver.
2062         (show_machine): Print subsystem ID.
2063
2064         * names.c: New name resolution engine supporting subsystem IDs.
2065
2066         * Released as version 1.07.
2067
2068 Wed Jul 15 15:37:21 1998  Martin Mares  <mj@albireo.ucw.cz>
2069
2070         * lspci.c (show_htype2 etc.): Displaying of CardBus headers.
2071         (show_bases): Honor the `cnt' argument.
2072         (grow_tree): Parse CardBus headers in tree mode as well.
2073
2074         * pci.h: Updated CardBus header field description. I still don't
2075         have the CardBus standard available, but OZ6832 specs contain
2076         full description of all header fields supported by the chip.
2077
2078 Tue Jun  9 22:53:59 1998  Martin Mares  <mj@albireo.ucw.cz>
2079
2080         * Released as 1.06.
2081
2082         * names.c (parse_name_list): Killed an unused variable.
2083
2084         * setpci.c (pread, pwrite): Define SYS_(pread|pwrite) as __NR_\1
2085         if they are not defined by glibc (needed for glibc built on older
2086         kernels). Ugly.
2087
2088         * setpci.c (exec_op): Fixed error messages. Thanks, Steve!
2089
2090 Mon Jun  8 10:59:22 1998  Martin Mares  <mj@albireo.ucw.cz>
2091
2092         * Released as 1.05.
2093
2094         * setpci.c: Problems with pread()/pwrite() with glibc on Alpha
2095         should be gone. Again thanks to Steve for bug report.
2096
2097         * filter.c (filter_parse_slot): Fixed ":x" type filters.
2098
2099         * pci.ids: Killed duplicate entry. Thanks to Stephen Williams
2100         <steve@icarus.com> for reporting this.
2101
2102 Sun Jun  7 19:27:51 1998  Martin Mares  <mj@albireo.ucw.cz>
2103
2104         * lspci.c (main), setpci.c (main): Implemented "--version".
2105
2106         * Released as 1.04.
2107
2108         * pciutils.h (PCIUTILS_VERSION): Added version string.
2109
2110         * filter.c, names.c: Extraneous #include <linux/pci.h> removed.
2111         Thanks to Geert Uytterhoeven <Geert.Uytterhoeven@cs.kuleuven.ac.be>
2112         for bug report.
2113
2114 Thu May 28 14:45:58 1998  Martin Mares  <mj@lomikel.karlin.mff.cuni.cz>
2115
2116         * pci.ids: More updates from Jens Maurer.
2117
2118 Wed Apr 22 10:00:39 1998  Martin Mares  <mj@albireo.ucw.cz>
2119
2120         * pci.ids: Updates from Jens Maurer.
2121
2122 Sun Apr 19 11:14:25 1998  Martin Mares  <mj@albireo.ucw.cz>
2123
2124         * Released as 1.03.
2125
2126         * setpci.8: Written.
2127
2128         * setpci.c: Finished.
2129
2130         * lspci.c: Now able to fetch expansion ROM base from kernel device list
2131         and print it if not in buscentric mode.
2132
2133 Tue Mar 31 23:11:57 1998  Martin Mares  <mj@albireo.ucw.cz>
2134
2135         * setpci.c: Added.
2136
2137 Sun Mar 22 15:39:08 1998  Martin Mares  <mj@albireo.ucw.cz>
2138
2139         * lspci.8: Updated the documentation.
2140
2141         * lspci.c: Modified to use the new filtering mechanism (options -f and -d).
2142
2143         * filter.c: Introduced new generic device filter.
2144
2145 Thu Mar 19 17:03:48 1998  Martin Mares  <mj@lomikel.karlin.mff.cuni.cz>
2146
2147         * lspci.c (grow_tree, show_tree_dev, print_it): Fixed displaying
2148         of PCI-to-PCI bridges in the tree format.
2149
2150 Sun Feb 15 10:12:25 1998  Martin Mares  <mj@albireo.ucw.cz>
2151
2152         * lspci.c (show_machine): Added non-verbose mode of machine-readable
2153         dump.
2154
2155         * pci.ids: Updates from Jens Maurer.
2156
2157         * Released as version 1.02.
2158
2159 Thu Feb 12 16:53:28 1998  Martin Mares  <mj@lomikel.karlin.mff.cuni.cz>
2160
2161         * lspci.c: Added a "-m" switch for dumping machine-readable
2162         configuration data (requested by Bjoern Kriews <bkr@cut.de>).
2163
2164 Mon Feb  9 13:17:43 1998  Martin Mares  <mj@albireo.ucw.cz>
2165
2166         * Makefile, pciutils.h: Include local pci.h instead of <linux/pci.h>
2167         if available. This should avoid all problems with official kernel
2168         not synchronized to newer PCI code in CVS -- standard distribution
2169         of pciutils now contains pci.h from current CVS kernel, pciutils
2170         in CVS contain no pci.h and use the correct kernel include.
2171
2172         * Makefile: Fixed installation path for man pages.
2173
2174 Sat Feb  7 15:15:46 1998  Martin Mares  <mj@albireo.ucw.cz>
2175
2176         * README: Updated.
2177
2178         * lspci.8: Created a man page.
2179
2180         * Releasing as version 1.0.
2181
2182 Tue Feb  3 20:56:00 1998  Martin Mares  <mj@albireo.ucw.cz>
2183
2184         * Makefile: Recognize architecture by calling uname and pass it as ARCH_xxx
2185         to all the C sources. This should eliminate problems with 32-bit compilers
2186         on sparc64.
2187
2188         * lspci.c (show_verbose): Recognize CardBus bridge header type.
2189         (show_htype2): Stub routine.
2190         (scan_config): Write sensible error message if the kernel denies reading of
2191         upper part of the PCI config space.