summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pciconf/pciconf.c
Commit message (Collapse)AuthorAgeFilesLines
* Only a read-only file descriptor is required to implement list_devs()rwatson2003-12-311-1/+1
| | | | | | | | and list_verbose(), so don't open /dev/pci read-write. This allows pciconf -l[v] to work for non-root users, assuming the securelevel is 0 or -1. Problem experienced by: William Michael Grim <wgrim@siue.edu>
* make pciconf understand it's own output as stated in the manpage.jmg2003-06-201-5/+13
| | | | | | | | pciconf -r none8@pci1:12:2: 0x0 now works. PR: bin/10312 Submitted by: Castor Fu
* Use consistent terminology in the usage message, the man pagejdp2002-09-171-3/+3
| | | | | | | | synopsis, and the man page description ("selector" vs. "sel" and "addr" vs. "reg"). Fix the usage message and man page synopsis to show that the "value" argument is not optional.
* When asked to print bytes (-b option) do that and put 16 on a line.sos2002-02-261-3/+4
|
* Support a range of registers to read.imp2001-05-311-9/+34
| | | | | | | | | eg pciconf -r pci0:10:0 0:0xff and keep the output of the old singleton the same. Reviewed by: audit@, dd MFC after: 10 days
* Minor style(9) tweak: if ( instead of if(.imp2001-05-311-3/+3
|
* Update for new location of pcireg.h.msmith2000-12-091-1/+1
|
* Update to improve handling of verbose PCI vendor/device information.msmith2000-12-071-24/+229
| | | | | | | - Read the database from /usr/share/misc (or wherever else we're pointed) rather than compiling it in. - Decode the class/subclass fields if requested. - Print things in a slightly longer but more readable format.
* Add support for decoding the PCI vendor and device ID registers. Add amsmith2000-11-131-7/+39
| | | | | | database of about 1400 vendors and 2700 devices courtesy of www.yourvote.com/pci. We still need to add some more, but this is a good start.
* [ repository copy of sys/pci/pci_ioctl.h to sys/sys/pciio.h happened in theken1999-12-081-3/+1
| | | | | | | | | | | | | | | | | background ] Rename sys/pci/pci_ioctl.h to sys/sys/pciio.h to make it easier for userland programs to use this interface. Reformat the file, and add a BSD-style copyright to it. Add a new man page for pci(4). The PCIOCGETCONF, PCIOCREAD, and PCIOCWRITE ioctls are documented, but the PCIOCATTACHED ioctl is not documented because it is not implemented. Change includes of <pci/pci_ioctl.h> to <sys/pciio.h> or remove them altogether. In many cases, pci_ioctl.h was unused. Reviewed by: steve
* .Fn -> .Xrcharnier1999-11-271-1/+1
| | | | Do not start warn() message with uppercase.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix a few problems on the Alpha, and fix -Wall while here.peter1999-08-231-5/+5
| | | | | | | Before: isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xffffffffc6931080 ... After: isab0@pci0:8:0: class=0x060100 card=0x00000000 chip=0xc6931080 ...
* Modify pciconf(8) so that it will print out PCI devices that have no driverken1998-11-121-4/+6
| | | | | | | | | | | | | | configured in the kernel. It gives them a device name of "none" and monotonically incrementing unit numbers. (starting at 0) Before, pciconf would just skip over unconfigured devices. (unconfigured devices can be detected because they have a null string for a device name) Update the man page to reflect the new pciconf output. Unfortunately, this causes the sample 'pciconf -l' output lines to wrap, but I'm not sure what to do about that really. If anyone presents a reasonable case for printing out something other than "none1" for unconfigured devices, I'm willing to listen.
* Revive PCIConf.gibbs1998-09-151-14/+44
| | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
* Sync usage string with man page.charnier1997-10-061-10/+15
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
* Add PCI LKM support:New -a option checks whether a driver has been assigned ↵se1997-01-211-6/+39
| | | | to a device.
* Fix core dump after printing usage message (pointed out by BDE).se1996-11-161-2/+3
| | | | | | Add printing of PCI header type register. (This makes the output 80 columns wide. Ughh. I'm looking for a better way to put the information on one line ...)
* Initial version of the user land code for the PCI config registerse1996-10-221-0/+204
access functions. Written by Garrett Wollman and modified by me to better match my view of the (PCI) world. Submitted by: wollman
OpenPOWER on IntegriCloud