Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pcictl make pcictl pci0 list dump all busses by def...



details:   https://anonhg.NetBSD.org/src/rev/cd75d85cf25b
branches:  trunk
changeset: 762698:cd75d85cf25b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Feb 25 21:40:48 2011 +0000

description:
make pcictl pci0 list dump all busses by default, unless a bus number is
specified with -b

diffstat:

 usr.sbin/pcictl/pcictl.8 |  7 ++-----
 usr.sbin/pcictl/pcictl.c |  4 ++--
 2 files changed, 4 insertions(+), 7 deletions(-)

diffs (39 lines):

diff -r 14aa6e573bbe -r cd75d85cf25b usr.sbin/pcictl/pcictl.8
--- a/usr.sbin/pcictl/pcictl.8  Fri Feb 25 21:10:33 2011 +0000
+++ b/usr.sbin/pcictl/pcictl.8  Fri Feb 25 21:40:48 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pcictl.8,v 1.9 2011/02/25 14:11:25 wiz Exp $
+.\"    $NetBSD: pcictl.8,v 1.10 2011/02/25 21:40:48 jmcneill Exp $
 .\"
 .\" Copyright 2001 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -65,10 +65,7 @@
 is given, as numbers.
 The bus, device, and function
 numbers may be specified by flags.
-If the bus is not specified, it defaults to the bus number of the
-PCI bus specified on the command line.
-If the bus is \-1, devices on all busses are listed.
-Any other locator not specified defaults
+Any locator not specified defaults
 to a wildcard, or may be explicitly wildcarded by specifying
 .Dq any .
 .Pp
diff -r 14aa6e573bbe -r cd75d85cf25b usr.sbin/pcictl/pcictl.c
--- a/usr.sbin/pcictl/pcictl.c  Fri Feb 25 21:10:33 2011 +0000
+++ b/usr.sbin/pcictl/pcictl.c  Fri Feb 25 21:40:48 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcictl.c,v 1.16 2009/07/04 20:34:23 cegger Exp $       */
+/*     $NetBSD: pcictl.c,v 1.17 2011/02/25 21:40:48 jmcneill Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -159,7 +159,7 @@
        int bus, dev, func;
        int ch;
 
-       bus = pci_businfo.busno;
+       bus = -1;
        dev = func = -1;
 
        while ((ch = getopt(argc, argv, "nb:d:f:")) != -1) {



Home | Main Index | Thread Index | Old Index