Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pcictl By poppular demand, don't wildcard "bus" on ...



details:   https://anonhg.NetBSD.org/src/rev/024fa4cd6cc2
branches:  trunk
changeset: 515007:024fa4cd6cc2
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Sep 15 18:35:00 2001 +0000

description:
By poppular demand, don't wildcard "bus" on the "list" command
by default.

diffstat:

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

diffs (39 lines):

diff -r 8162ee6dbe3d -r 024fa4cd6cc2 usr.sbin/pcictl/pcictl.8
--- a/usr.sbin/pcictl/pcictl.8  Sat Sep 15 18:34:42 2001 +0000
+++ b/usr.sbin/pcictl/pcictl.8  Sat Sep 15 18:35:00 2001 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pcictl.8,v 1.1 2001/09/13 23:51:04 thorpej Exp $
+.\"    $NetBSD: pcictl.8,v 1.2 2001/09/15 18:35:00 thorpej Exp $
 .\"
 .\" Copyright 2001 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -60,7 +60,9 @@
 .Op Fl f Ar function
 .Pp
 List the devices in the PCI domain.  The bus, device, and function
-numbers may be specified by flags.  Any locator not specified defaults
+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.  Any other locator not specified defaults
 to a wildcard, or may be explicitly wildcarded by specifying
 .Dq any .
 .Pp
diff -r 8162ee6dbe3d -r 024fa4cd6cc2 usr.sbin/pcictl/pcictl.c
--- a/usr.sbin/pcictl/pcictl.c  Sat Sep 15 18:34:42 2001 +0000
+++ b/usr.sbin/pcictl/pcictl.c  Sat Sep 15 18:35:00 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcictl.c,v 1.2 2001/09/14 17:28:36 thorpej Exp $       */
+/*     $NetBSD: pcictl.c,v 1.3 2001/09/15 18:35:00 thorpej Exp $       */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -160,7 +160,8 @@
        int bus, dev, func;
        int ch;
 
-       bus = dev = func = -1;
+       bus = pci_businfo.busno;
+       dev = func = -1;
 
        while ((ch = getopt(argc, argv, "b:d:f:")) != -1) {
                switch (ch) {



Home | Main Index | Thread Index | Old Index