|
NAMEpciconf —
diagnostic utility for the PCI bus
SYNOPSIS
DESCRIPTIONThepciconf utility provides a command line interface to
functionality provided by the
pci(4)
ioctl(2)
interface. As such, some of the functions are only available to users with
write access to /dev/pci, normally only the
super-user.
With the foo0@pci0:0:4:0: class=0x010000 rev=0x01 hdr=0x00 vendor=0x1000 device=0x000f subvendor=0x0000 subdevice=0x0000 bar0@pci0:0:5:0: class=0x000100 rev=0x00 hdr=0x00 vendor=0x88c1 device=0x5333 subvendor=0x0000 subdevice=0x0000 none0@pci0:0:6:0: class=0x020000 rev=0x00 hdr=0x00 vendor=0x10ec device=0x8029 subvendor=0x0000 subdevice=0x0000 The first column gives the driver name, unit number, and selector. If there is no driver attached to the PCI device in question, the driver name will be “none”. Unit numbers for detached devices start at zero and are incremented for each detached device that is encountered. The selector is in a form which may directly be used for the other forms of the command. The second column is the class code, with the class byte printed as two hex digits, followed by the sub-class and the interface bytes. The third column prints the device's revision. The fourth column describes the header type. Currently assigned header types include 0 for standard devices, 1 for PCI to PCI bridges, and 2 for PCI to CardBus bridges. If the most significant bit of the header type register is set for function 0 of a PCI device, it is a multi-function device, which contains several (similar or independent) functions on one chip. The sixth and seventh columns contain the vendor ID and the device ID of the device. The eigth and ninth columns contain subvendor and subdevice IDs, introduced in revision 2.1 of the PCI standard. Note that they will be 0 for older cards. Adding a second drv selector class rev hdr vendor device subven subdev foo0@pci0:0:4:0: 010000 01 00 1000 000f 0000 0000 bar0@pci0:0:5:0: 000100 00 00 88c1 5333 0000 0000 none0@pci0:0:6:0: 020000 00 00 10ec 8029 0000 0000 All fields retain the same definition as with the non-compact form. If the window[1c] = type I/O Port, range 16, addr 0x5000-0x8fff, enabled The first value after the
“ If the bar [10] = type Memory, range 32, base 0xda060000, size 131072, enabled The first value after the
“ If the cap 10[40] = PCI-Express 1 root port The first value after the
“ Each extended capability is enumerated via a line in a similar format: ecap 0002[100] = VC 1 max VC0 The first value after the
“ If the If the If the VPD ro PN = '110114640C0 ' The first string after the
“ If the optional device argument is given
with the All invocations of In the case of an abridged form, omitted selector components are
assumed to be 0. An optional leading device name followed by @ and an
optional final colon will be ignored; this is so that the first column in
the output of With the The The For read, write, and dump operations, the flags
ENVIRONMENTPCI vendor and device information is read from /usr/local/share/pciids/pci.ids. If that file is not present, it is read from /usr/share/misc/pci_vendors. This path can be overridden by setting the environment variablePCICONF_VENDOR_DATABASE .
SEE ALSOioctl(2), devinfo(8), kldload(8)HISTORYThepciconf utility appeared first in
FreeBSD 2.2. The -a option was
added for PCI KLD support in FreeBSD 3.0.
AUTHORSThepciconf utility was written by
Stefan Esser and Garrett
Wollman.
BUGSThe-b and -h options are
implemented in pciconf , but not in the underlying
ioctl(2).
It might be useful to give non-root users access to the
There is currently no way to specify the caching mode for the
mapping established by the
Visit the GSP FreeBSD Man Page Interface. |