Commit Graph

34 Commits

Author SHA1 Message Date
mrg cf3fd92536 apply the previous typo in another place as well. 2016-09-27 16:44:04 +00:00
wiz c0666de355 Sort sections. Formatting nitpicks. Fix typo. 2016-09-27 11:13:57 +00:00
mrg c47bfd7d3e add some examples: "pcictl pci0 list" and "pcictl pci0 list -N".
inspired by PR 51243.
2016-09-25 00:06:49 +00:00
mrg 62ee7dc27b introduce a better pci_drvname() and PCI_IOC_DRVNAME as pciio_drvnameonbus()
and PCI_IOC_DRVNAMEONBUS.  the new ones also take a (autoconf) PCI bus
number, which allows lookups for any device on any pci bus node.  use this
in pcictl which current reports the wrong values sometimes.

up next: use these in libpciaccess.
2016-09-24 23:12:54 +00:00
wiz c48417e269 Fix pasto. 2014-09-10 21:13:50 +00:00
riastradh 3393ff7dbb Sternly advise against `pcictl read/write'. Use .Cm, not .Nm, while here. 2014-09-10 21:09:32 +00:00
manu 5b31193998 read and write commands for pcictl, from riastradh@ and wiz@
http://mail-index.netbsd.org/tech-kern/2014/08/26/msg017572.html
2014-09-01 07:11:19 +00:00
wiz 12e2372174 Sort options. 2014-08-31 09:59:08 +00:00
mrg 8865fe7c92 add -N option to print the driver name as returned by pci_drvname(3). 2014-08-31 09:16:54 +00:00
wiz 23f0d17f09 Use more appropriate macro for command line command argument. 2014-08-26 16:21:15 +00:00
joerg 7e8db9e768 static + __dead 2011-08-30 20:08:38 +00:00
jmcneill 6c24ed80e8 make pcictl pci0 list dump all busses by default, unless a bus number is
specified with -b
2011-02-25 21:40:48 +00:00
wiz 1cc61a3b95 Add quoting for minus, for PostScript output. 2011-02-25 14:11:25 +00:00
jmcneill 29a080d47e Today I learned that 'pcictl pci0 list -b -1' lists devices on all busses. 2011-02-25 13:50:18 +00:00
cegger 49fc067aae make functions static 2009-07-04 20:34:23 +00:00
cegger c9c9fcbb99 remove unused global variable. 2009-07-04 13:54:14 +00:00
cegger efe8489506 use EXIT_FAILURE in places I missed in previous. 2009-07-04 13:50:08 +00:00
cegger 6face9fc9c - use EXIT_FAILURE, EXIT_SUCCESS
- main() needs no prototype
- ansify usage()
No functional changes.
2009-07-04 09:12:46 +00:00
lukem 9559646817 Fix WARNS=4 issues (-Wsign-compare -Wextra) 2009-04-18 07:17:16 +00:00
joerg 997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
hubertf 82105ff74f Make the output of 'list -n' aligned by always printing 8 hex digits.
Suggested by Nicolas Joly <njoly@pasteur.fr> in private mail.
2007-02-08 23:27:07 +00:00
hubertf 0cc1170149 Xref drvctl(8), bump date 2007-01-29 00:48:34 +00:00
wiz de593fa02d New sentence, new line. 2006-10-03 02:08:16 +00:00
hubertf fe81bd2f72 Add "list -n" to print ID and class numerical, instead of resolving to strings:
miyu% pcictl /dev/pci1 list
	001:00:0: ATI Technologies Rage Fury MAXX AGP 4x (TMDS) (VGA display)
	miyu% pcictl /dev/pci1 list -n
	001:00:0: 0x50461002 (0x3000000)

OK'd by thorpej@
2006-10-01 00:13:27 +00:00
bsh 2abd1dd123 avoid very long loop when you run pcictl on a PCI bus which has no devices on it. 2006-08-24 07:30:16 +00:00
kleink 9ef6a94e02 Update for new pci_devinfo(3) signature. 2004-04-24 13:41:51 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
yyamano 9d1bacfdb9 fix typo. 2003-08-18 16:12:58 +00:00
grant eda9e509bb sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:40:16 +00:00
tron 4c61cd90ba Don't abuse opendisk(3) to open PCI bus devices which are no disks. This
fixes PR bin/14468 by Valeriy E. Ushakov.
2001-11-08 08:05:05 +00:00
joda f51bc9e68b use strtol instead of atoi to catch non numeric values 2001-09-17 10:05:57 +00:00
thorpej 8b531ac998 By poppular demand, don't wildcard "bus" on the "list" command
by default.
2001-09-15 18:35:00 +00:00
thorpej 477798fcac Fix missing : in a getopt() string. 2001-09-14 17:28:36 +00:00
thorpej 0c91ac689b pcictl(8) -- a program for frobbing the PCI bus, and also an example
of how to use libpci.

Currently has "list" (list devices within a PCI domain) and "dump" (dump
PCI configuration header for a device) sub-commands.
2001-09-13 23:51:04 +00:00