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