PERFORCE change 1190145 for review
John Baldwin
jhb at FreeBSD.org
Sat Jan 18 22:35:33 UTC 2014
http://p4web.freebsd.org/@@1190145?ac=10
Change 1190145 by jhb at jhb_jhbbsd on 2014/01/18 22:35:13
Update for changes to add -V and selector support to -l.
Affected files ...
.. //depot/projects/pci/usr.sbin/pciconf/pciconf.8#2 edit
Differences ...
==== //depot/projects/pci/usr.sbin/pciconf/pciconf.8#2 (text+ko) ====
@@ -33,7 +33,7 @@
.Nd diagnostic utility for the PCI bus
.Sh SYNOPSIS
.Nm
-.Fl l Op Fl bcev
+.Fl l Oo Fl bcevV Oc Op Ar selector
.Nm
.Fl a Ar selector
.Nm
@@ -54,7 +54,9 @@
.Pp
With the
.Fl l
-option, it lists all devices found by the boot probe in the following format:
+option,
+.Nm
+lists PCI devices in the following format:
.Bd -literal
foo0 at pci0:0:4:0: class=0x010000 card=0x00000000 chip=0x000f1000 rev=0x01 \
hdr=0x00
@@ -182,6 +184,36 @@
will attempt to load the vendor/device information database, and print
vendor, device, class and subclass identification strings for each device.
.Pp
+If the
+.Fl V
+option is supplied,
+.Nm
+will list any vital product data
+.Pq VPD
+provided by each device.
+Each VPD keyword is enumerated via a line in the following format:
+.Bd -literal
+ VPD ro PN = '110114640C0 '
+.Ed
+.Pp
+The first string after the
+.Dq Li VPD
+prefix indicates if the keyword is read-only
+.Dq ro
+or read-write
+.Dq rw .
+The second string provides the keyword name.
+The text after the the equals sign lists the value of the keyword which is
+usually an ASCII string.
+.Pp
+If the optional
+.Ar selector
+argument is given with the
+.Fl l
+flag,
+.Nm
+will only list details about a single device instead of all devices.
+.Pp
All invocations of
.Nm
except for
More information about the p4-projects
mailing list