OpenBSD CVS

CVS log for src/usr.sbin/pcidump/pcidump.c


[BACK] Up to [local] / src / usr.sbin / pcidump

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.71 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:51 2024 UTC (5 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.70: +6 -6 lines
Diff to previous 1.70 (colored)

correct indentation; no functional change
ok tb@

Revision 1.70 / (download) - annotate - [select for diffs], Thu Feb 1 18:26:45 2024 UTC (3 months, 4 weeks ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.69: +5 -2 lines
Diff to previous 1.69 (colored)

Print information about (legacy) Multiple Message MSIs.

ok kevlo@, dlg@

Revision 1.69 / (download) - annotate - [select for diffs], Sun Apr 16 17:26:14 2023 UTC (13 months, 2 weeks ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.68: +16 -24 lines
Diff to previous 1.68 (colored)

Fix (and simplify) link speed reporting.

ok jsg@

Revision 1.68 / (download) - annotate - [select for diffs], Mon Oct 25 19:54:29 2021 UTC (2 years, 7 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.67: +2 -3 lines
Diff to previous 1.67 (colored)

Zap unused variables/functions under /usr/src/*bin/

OK deraadt

Revision 1.67 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:19 2021 UTC (2 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jul 16 09:14:17 2021 UTC (2 years, 10 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.65: +21 -2 lines
Diff to previous 1.65 (colored)

recognise more pci capabilities
from PCI Code and ID Assignment Specification

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:21 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 30 02:24:43 2021 UTC (3 years ago) by jsg
Branch: MAIN
Changes since 1.63: +11 -1 lines
Diff to previous 1.63 (colored)

decode multimedia class

Revision 1.63 / (download) - annotate - [select for diffs], Fri Mar 5 20:06:39 2021 UTC (3 years, 2 months ago) by jan
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.62: +4 -5 lines
Diff to previous 1.62 (colored)

Avoid print for NULL pointer

The subclass arrays have to be empty.

OK deraadt@

Revision 1.62 / (download) - annotate - [select for diffs], Fri Mar 5 12:57:20 2021 UTC (3 years, 2 months ago) by jan
Branch: MAIN
Changes since 1.61: +8 -1 lines
Diff to previous 1.61 (colored)

add missing PCI classes

OK dlg@

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jan 17 11:54:15 2021 UTC (3 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.60: +2 -4 lines
Diff to previous 1.60 (colored)

revert the previous, it makes everything think it can do 16.0 GT/s.

i'll have to find real pci4 hardware to test with.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jan 17 11:38:18 2021 UTC (3 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored)

pcie4 can do 16.0 GT/s. sounds like a lot.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jan 17 11:16:22 2021 UTC (3 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.58: +36 -3 lines
Diff to previous 1.58 (colored)

dump the max payload size and max read request size in the pcie cap.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Jan 6 23:43:43 2021 UTC (3 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.57: +4 -2 lines
Diff to previous 1.57 (colored)

if getting the vpd data fails, don't try and parse the vpd data.

pointed out by jsg@

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jun 22 05:54:26 2020 UTC (3 years, 11 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.56: +137 -1 lines
Diff to previous 1.56 (colored)

a first cut at requesting and parsing vpd info.

reading vpd stuff is useful when you're trying to get support
information about a pci device, eg, if you want a serial number,
or firmware versions, or specific part name or number, it's likely
available via vpd. also, im sick of having the diff in my tree.

this relies on the new PCIOCGETVPD ioctl i just committed to the
kernel.

it's a very quick and dirty implementation, hopefully someone will
pick it up and polish it a bit.

tested by hrvoje popovski on a variety of cards
ok jmatthew@

Revision 1.56 / (download) - annotate - [select for diffs], Sat Nov 30 14:02:29 2019 UTC (4 years, 6 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.55: +6 -1 lines
Diff to previous 1.55 (colored)

pcidump(8) only opens devices in O_RDONLY from /dev, and additionally writes a
`romfile' if -r is used, but since I'm only unveiling after that file is
actually opened there's no need to unveil it as well.

OK deraadt@ kn@

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:49 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Jun 2 02:37:12 2019 UTC (5 years ago) by dlg
Branch: MAIN
Changes since 1.53: +23 -1 lines
Diff to previous 1.53 (colored)

dump pcie Device Serial Number capability values

Revision 1.53 / (download) - annotate - [select for diffs], Tue Apr 2 07:01:29 2019 UTC (5 years, 2 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.52: +37 -1 lines
Diff to previous 1.52 (colored)

add some msi and msi-x details

ok dlg@ kettenis@

Revision 1.52 / (download) - annotate - [select for diffs], Tue Mar 12 01:46:21 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.51: +20 -18 lines
Diff to previous 1.51 (colored)

separate fields with commas

some values are strings now, which makes it hard to read when these
values are next to the label for the next field.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Mar 11 01:16:16 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

split the clas/subclass/interface/revision output over 2 lines

Revision 1.50 / (download) - annotate - [select for diffs], Mon Mar 11 01:06:38 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.49: +287 -4 lines
Diff to previous 1.49 (colored)

teach pcidump about pci class and subclass names

i wanted to know if some devices are pci bridges or hosts, and found
looking up the values in pcireg.h to be a bit tedious.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 19 21:32:42 2019 UTC (5 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.48: +1 -1 lines
Diff to previous 1.48 (colored)

use \t instead of a literal tab in a format string

Revision 1.48 / (download) - annotate - [select for diffs], Tue Feb 19 21:29:45 2019 UTC (5 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.47: +6 -3 lines
Diff to previous 1.47 (colored)

convert a series of if statements checking the cap type to switch

Revision 1.47 / (download) - annotate - [select for diffs], Sun Apr 8 13:55:40 2018 UTC (6 years, 1 month ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.46: +13 -9 lines
Diff to previous 1.46 (colored)

Print BARs for bridges as well.

ok deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Thu Aug 31 12:03:02 2017 UTC (6 years, 9 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

assorted warning fixes; ok millert@

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jun 16 05:19:15 2017 UTC (6 years, 11 months ago) by jsg
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

PCI Express extendeded capability 0x1c is LN Requester according to the
PCI-SIG Lightweight Notification (LN) Protocol ECN document.

From Masanobu SAITOH.

Revision 1.44 / (download) - annotate - [select for diffs], Thu May 18 05:12:34 2017 UTC (7 years ago) by jsg
Branch: MAIN
Changes since 1.43: +3 -1 lines
Diff to previous 1.43 (colored)

When an array of PCIe extended cability strings was added it missed
some offsets, leading to the wrong strings being used in some cases.
Add the missing strings.

ok mpi@ deraadt@ millert@

Revision 1.43 / (download) - annotate - [select for diffs], Sat Mar 25 07:33:46 2017 UTC (7 years, 2 months ago) by mlarkin
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.42: +6 -3 lines
Diff to previous 1.42 (colored)

More PCI extended capabilities handling in pcidump.

From  Simon Mages

ok deraadt@

Revision 1.42 / (download) - annotate - [select for diffs], Thu Mar 16 22:05:46 2017 UTC (7 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.41: +66 -2 lines
Diff to previous 1.41 (colored)

Print PCIe Extended Capabilities, from Simon Mages
ok kettenis mlarkin

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jan 4 03:35:29 2017 UTC (7 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

s/Signaled/Signalled/

Revision 1.40 / (download) - annotate - [select for diffs], Sat Aug 27 04:38:48 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.39: +3 -2 lines
Diff to previous 1.39 (colored)

Move up the <stdio.h> include so <dev/pci/*.h> have NULL

ok deraadt@

Revision 1.39 / (download) - annotate - [select for diffs], Tue Dec 1 19:10:09 2015 UTC (8 years, 6 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.38: +7 -2 lines
Diff to previous 1.38 (colored)

Print PME# state together with the PCI power state when enabled/asserted.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Nov 21 17:52:10 2015 UTC (8 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.37: +15 -1 lines
Diff to previous 1.37 (colored)

Print PCI power state when the -v option is given.

ok deraadt@, mpi@

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:19 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.36 / (download) - annotate - [select for diffs], Tue May 20 01:25:24 2014 UTC (10 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Use errc/warnc to simplify code.
Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

ok jsing@ krw@ millert@

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 12 19:48:53 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored)

missing protos and an unused variable

Revision 1.34 / (download) - annotate - [select for diffs], Fri Aug 30 06:46:39 2013 UTC (10 years, 9 months ago) by jsg
Branch: MAIN
Changes since 1.33: +25 -19 lines
Diff to previous 1.33 (colored)

use version two of the PCIe capability when displaying link speeds
ok mpi@

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jun 15 19:45:03 2013 UTC (10 years, 11 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Fix typo.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jul 3 13:09:25 2012 UTC (11 years, 11 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.31: +6 -2 lines
Diff to previous 1.31 (colored)

avoid what would be a leak if reused elsewhere but isn't in this
case as the memory is freed on exit.

ok krw@ kettenis@

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 16 13:01:50 2012 UTC (12 years ago) by jsg
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

The PCIe link speed values are printed in GT/s not Gb/s.

Revision 1.30 / (download) - annotate - [select for diffs], Wed May 16 12:58:39 2012 UTC (12 years ago) by jsg
Branch: MAIN
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)

recognise 8.0 GT/s link speed for PCI Express 3.0

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jan 13 14:29:26 2011 UTC (13 years, 4 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)

Add an entry for "Advanced Capabilities for Conventional PCI"
to the list of capabilities, present in recent Intel chipsets.

ok kettenis@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jan 13 14:17:21 2011 UTC (13 years, 4 months ago) by jsg
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

fix an off by one
ok kettenis@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 12 20:17:56 2011 UTC (13 years, 4 months ago) by kettenis
Branch: MAIN
Changes since 1.26: +8 -4 lines
Diff to previous 1.26 (colored)

Add SATA capability.  Use nitems() to decide if a capability is known or not.

ok krw@, deraadt@, dlg@, jsg@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 19 23:23:21 2010 UTC (13 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

add -xxx to usage();

Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 19 23:06:10 2010 UTC (13 years, 5 months ago) by kettenis
Branch: MAIN
Changes since 1.24: +16 -7 lines
Diff to previous 1.24 (colored)

Add -xxx option that print PCIe extended config space.

ok mikeb@, deraadt@

Revision 1.24 / (download) - annotate - [select for diffs], Sun Sep 5 18:14:33 2010 UTC (13 years, 8 months ago) by kettenis
Branch: MAIN
Changes since 1.23: +42 -11 lines
Diff to previous 1.23 (colored)

Add an ioctl to figure out the non-sticky bits in PCI BARs used for determining
the size of those BARs.  Make pcidump use this new ioctl to print the size
of PCI BARs.

ok deraadt@, miod@

Revision 1.23 / (download) - annotate - [select for diffs], Mon Aug 2 10:17:10 2010 UTC (13 years, 10 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.22: +49 -1 lines
Diff to previous 1.22 (colored)

Show PCIe link speed/width, earlier version ok miod@/kettenis@ then
tweaked to show both negotiated and capable as well as fixing a mask
after comments from damien@

ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 1 19:00:47 2010 UTC (14 years, 3 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.21: +51 -9 lines
Diff to previous 1.21 (colored)

On amd64 and i386, dump the VGA BIOS found at the canonical address 0xc0000
if a VGA device doesn't have its expansion ROM base address register set.

ok oga@, miod@

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 6 23:59:14 2009 UTC (14 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.20: +4 -3 lines
Diff to previous 1.20 (colored)

Sync output of usage() with man page SYNOPSIS.

requested by jmc@

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 5 20:32:49 2009 UTC (14 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.19: +45 -5 lines
Diff to previous 1.19 (colored)

Implement -r option that dunps the contents of a PCI ROM to file.

ok oga@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 7 21:48:16 2009 UTC (14 years, 11 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

improve spacing in usage()

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jun 7 09:50:52 2009 UTC (14 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

sync usage();

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 5 19:19:02 2009 UTC (15 years ago) by deraadt
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Allow pcidump -xxv to work (show all the info)
ok phessler

Revision 1.16 / (download) - annotate - [select for diffs], Tue Oct 7 09:23:32 2008 UTC (15 years, 7 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.15: +48 -15 lines
Diff to previous 1.15 (colored)

dump pci devices from all the domains available in the system. this gives
a proper view of what is plugged into the box, previously only the first
domain was displayed.

from Paul de Weerd <weerd@weirdnet.nl> with help and feedback from
kettenis@. thanks paul :)

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 23 15:39:52 2008 UTC (15 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.14: +7 -9 lines
Diff to previous 1.14 (colored)

Stop printing the size of BARs; the way the code calculates it is wrong.
We'll need kernel support to do it properly.

ok dlg@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 7 12:12:48 2008 UTC (16 years, 1 month ago) by dlg
Branch: MAIN
Changes since 1.13: +49 -1 lines
Diff to previous 1.13 (colored)

pretty print the BARs

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 15 14:46:13 2008 UTC (16 years, 2 months ago) by reyk
Branch: MAIN
Changes since 1.12: +53 -18 lines
Diff to previous 1.12 (colored)

if the device supports the PCI capabilities list and the verbose flag
is specified, print all PCI capabilities by name instead of just the
initial capabilities pointer.

ok dlg@ kettenis@

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 2 17:59:10 2008 UTC (16 years, 3 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

PCI devices are specified by bus:dev:func, not dev:bus:func.  Adjust usage
and man page.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 20 13:56:36 2007 UTC (16 years, 6 months ago) by chl
Branch: MAIN
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

remove "unused variable" warning

ok kettenis@

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 18 00:33:45 2007 UTC (16 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.9: +30 -4 lines
Diff to previous 1.9 (colored)

Add support for dumping PCI config space in hex.

ok dlg@

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 17 18:32:21 2007 UTC (16 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.8: +196 -24 lines
Diff to previous 1.8 (colored)

Add code to print type 1 (PCI-PCI bridge) and type 2 (CardBus bridge) devices.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 25 10:27:21 2007 UTC (16 years, 7 months ago) by tobias
Branch: MAIN
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

Max values are 255:31:7 not 256:32:8.

OK dlg@, kettenis@

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 23 06:57:28 2007 UTC (16 years, 7 months ago) by chl
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

add missing header to avoid warning

"commit!" dlg@

Revision 1.6 / (download) - annotate - [select for diffs], Mon Oct 22 20:54:52 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

variable does not need init; ok dlg

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 22 09:26:16 2007 UTC (16 years, 7 months ago) by jasper
Branch: MAIN
Changes since 1.4: +2 -0 lines
Diff to previous 1.4 (colored)

add RCS id

"free commit!" dlg@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 22 01:22:48 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

lint says __progname is not const

Revision 1.3 / (download) - annotate - [select for diffs], Mon Oct 22 01:21:30 2007 UTC (16 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

dmesg prints bus/dev/func locations in decimal, and the command line param
to pcidump takes decimals, so print the locations as decimals too. less
confusing, but maybe a bit uglier. ugliness can be fixed later though.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Oct 22 01:13:27 2007 UTC (16 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

i wrote most of the code this year, so fix copyright.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 22 01:12:28 2007 UTC (16 years, 7 months ago) by dlg
Branch: MAIN

put pcidump in the tree, a little tool for reading the pci configuration
spaces.

requested by kettenis@ ok kettenis@ deraadt@ marco@ and lots of others

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.