aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pciconf/pciconf.8
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>2000-12-07 10:52:59 +0000
committerMike Smith <msmith@FreeBSD.org>2000-12-07 10:52:59 +0000
commita54bc9d0289a92fdce639ae0204be73db61e38b3 (patch)
tree22ac7084958059e78b211b9f99caa87d690ad9b5 /usr.sbin/pciconf/pciconf.8
parent2c097d333210e54e072e78bc0008825e254b85a4 (diff)
downloadsrc-a54bc9d0289a92fdce639ae0204be73db61e38b3.tar.gz
src-a54bc9d0289a92fdce639ae0204be73db61e38b3.zip
Update to improve handling of verbose PCI vendor/device information.
- 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.
Notes
Notes: svn path=/head/; revision=69700
Diffstat (limited to 'usr.sbin/pciconf/pciconf.8')
-rw-r--r--usr.sbin/pciconf/pciconf.811
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/pciconf/pciconf.8 b/usr.sbin/pciconf/pciconf.8
index 279015f2d54a..7e8e8934e8ca 100644
--- a/usr.sbin/pciconf/pciconf.8
+++ b/usr.sbin/pciconf/pciconf.8
@@ -61,8 +61,10 @@ none0@pci0:6:0: class=0x020000 card=0x00000000 chip=0x802910ec rev=0x00 hdr=0x00
.Pp
If the
.Fl v
-option is supplied, vendor and device identification strings are printed for
-each device on the following line.
+option is supplied,
+.Nm
+will attempt to load the vendor/device information database, and print
+vendor, device, class and subclass identification strings for each device.
.Pp
The first column gives the
device name, unit number, and
@@ -162,6 +164,11 @@ indicates a byte operation, and
.Fl h
indicates a halfword (two-byte) operation. The default is to read or
write a longword (four bytes).
+.Sh ENVIRONMENT
+The PCI vendor/device information database is normally read from
+.Pa /usr/share/misc/pci_vendors .
+This path can be overridden by setting the environment variable
+.Ev PCICONF_VENDOR_DATABASE .
.Sh SEE ALSO
.Xr ioctl 2 ,
.\" .Xr pci 4 ,