summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pcidump (follow)
Commit message (Collapse)AuthorAgeFilesLines
* a first cut at requesting and parsing vpd info.dlg2020-06-221-1/+137
| | | | | | | | | | | | | | | | 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@
* pcidump(8) only opens devices in O_RDONLY from /dev, and additionally writes amestre2019-11-301-1/+6
| | | | | | | `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@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-3/+3
| | | | | | 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.
* dump pcie Device Serial Number capability valuesdlg2019-06-021-1/+23
|
* socppc makes an extended visit to the bigbucket.deraadt2019-05-111-3/+2
| | | | ok kettenis
* add some msi and msi-x detailsjmatthew2019-04-021-1/+37
| | | | ok dlg@ kettenis@
* separate fields with commasdlg2019-03-121-18/+20
| | | | | some values are strings now, which makes it hard to read when these values are next to the label for the next field.
* split the clas/subclass/interface/revision output over 2 linesdlg2019-03-111-2/+2
|
* teach pcidump about pci class and subclass namesdlg2019-03-111-4/+287
| | | | | 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.
* use \t instead of a literal tab in a format stringdlg2019-02-191-2/+2
|
* convert a series of if statements checking the cap type to switchdlg2019-02-191-3/+6
|
* build pcidump on armv7jsg2018-07-101-6/+7
|
* Print BARs for bridges as well.kettenis2018-04-081-9/+13
| | | | ok deraadt@
* assorted warning fixes; ok millert@otto2017-08-311-2/+2
|
* PCI Express extendeded capability 0x1c is LN Requester according to thejsg2017-06-161-2/+2
| | | | | | PCI-SIG Lightweight Notification (LN) Protocol ECN document. From Masanobu SAITOH.
* When an array of PCIe extended cability strings was added it missedjsg2017-05-181-1/+3
| | | | | | | some offsets, leading to the wrong strings being used in some cases. Add the missing strings. ok mpi@ deraadt@ millert@
* More PCI extended capabilities handling in pcidump.mlarkin2017-03-251-3/+6
| | | | | | From Simon Mages ok deraadt@
* Print PCIe Extended Capabilities, from Simon Magesderaadt2017-03-161-2/+66
| | | | ok kettenis mlarkin
* build pcidump on arm64jsg2017-02-261-6/+6
|
* s/Signaled/Signalled/dlg2017-01-041-3/+3
|
* Move up the <stdio.h> include so <dev/pci/*.h> have NULLguenther2016-08-271-2/+3
| | | | ok deraadt@
* armish handled some early-gen arm machines, which required tons ofderaadt2016-08-101-3/+2
| | | | | workarounds. Some of them will soon stand in the way of armv7. Off to the attic you go.
* remove hppa64 port, which we never got going beyond broken single users.deraadt2016-05-111-2/+2
| | | | | | hppa reverse-stack gives us a valuable test case, but most developers don't have a 2nd one to proceed further with this. ok kettenis
* Print PME# state together with the PCI power state when enabled/asserted.kettenis2015-12-011-2/+7
|
* Print PCI power state when the -v option is given.kettenis2015-11-211-1/+15
| | | | ok deraadt@, mpi@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+4
| | | | | | | | | 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)
* Use errc/warnc to simplify code.guenther2014-05-201-2/+2
| | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
* missing protos and an unused variablederaadt2013-11-121-2/+6
|
* use version two of the PCIe capability when displaying link speedsjsg2013-08-301-19/+25
| | | | ok mpi@
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-161-4/+3
|
* Fix typo.kettenis2013-06-151-2/+2
|
* unbreak treederaadt2013-03-311-2/+2
|
* build this on octeon toojasper2013-03-311-3/+4
|
* avoid what would be a leak if reused elsewhere but isn't in thisjsg2012-07-031-2/+6
| | | | | | case as the memory is freed on exit. ok krw@ kettenis@
* The PCIe link speed values are printed in GT/s not Gb/s.jsg2012-05-161-2/+2
|
* recognise 8.0 GT/s link speed for PCI Express 3.0jsg2012-05-161-1/+4
|
* Add an entry for "Advanced Capabilities for Conventional PCI"jsg2011-01-131-2/+3
| | | | | | to the list of capabilities, present in recent Intel chipsets. ok kettenis@
* fix an off by onejsg2011-01-131-2/+2
| | | | ok kettenis@
* Add SATA capability. Use nitems() to decide if a capability is known or not.kettenis2011-01-121-4/+8
| | | | ok krw@, deraadt@, dlg@, jsg@
* add -xxx to usage();jmc2010-12-191-2/+2
|
* Add -xxx option that print PCIe extended config space.kettenis2010-12-192-10/+21
| | | | ok mikeb@, deraadt@
* Add an ioctl to figure out the non-sticky bits in PCI BARs used for determiningkettenis2010-09-051-11/+42
| | | | | | | the size of those BARs. Make pcidump use this new ioctl to print the size of PCI BARs. ok deraadt@, miod@
* Show PCIe link speed/width, earlier version ok miod@/kettenis@ thenjsg2010-08-021-1/+49
| | | | | | | tweaked to show both negotiated and capable as well as fixing a mask after comments from damien@ ok deraadt@
* Add missing text from license. Originally found in safte(4) in Julyweerd2010-03-221-4/+4
| | | | | | 2005, this was copied around quite a bit. ok jmc@ deraadt@ dlg@ claudio@ grange@ marco@
* On amd64 and i386, dump the VGA BIOS found at the canonical address 0xc0000kettenis2010-03-011-9/+51
| | | | | | if a VGA device doesn't have its expansion ROM base address register set. ok oga@, miod@
* Build on loongson, and sort platform list.miod2010-01-301-7/+7
|
* Sync output of usage() with man page SYNOPSIS.kettenis2009-11-061-3/+4
| | | | requested by jmc@
* Implement -r option that dunps the contents of a PCI ROM to file.kettenis2009-11-052-7/+60
| | | | ok oga@
* improve spacing in usage()sobrado2009-06-071-2/+3
|
* sync usage();jmc2009-06-071-2/+2
|