Display PCI devices (QNX)
show_pci [-v]
The show_pci command is used for diagnostic purposes to provide information on PCI Local Bus configuration. This information can be used to troubleshoot misconfigurations and to assist in finding out correct options to specify to device drivers.
Detailing the significance of all the information returned by show_pci is beyond the scope of this document. However, here are the meanings of some of the common fields returned by show_pci:
Bit | Meaning |
---|---|
0-4 | Reserved. |
5 | 66MHz capable (otherwise 33MHz) |
6 | Device supports UDF (user-definable features). |
7 | Capable of accepting fast back-to-back transactions when the transactions are not to the same agent. |
8 | (bus masters only) Data parity error detected. |
9-10 | DEVSEL# encoding. 00=fast, 01=medium, 10=slow |
11 | Signaled Target Abort. This bit must be set by a target when it terminates a transaction with Target-Abort. |
12 | Received Target Abort. This bit must be set by a master device when its transaction is terminated by a Target-Abort. |
13 | Received Master Abort. This bit must be set by a master device whenever its transaction (except for Special Cycle) is terminated with a Master-Abort. |
14 | Signaled System Error. This bit is set whenever the device asserts SERR#. |
15 | Detected Parity Error. This bit is set when the device detects a parity error, even if parity error handling is disabled. |
Bit | Meaning |
---|---|
0 | IO Space. When set, allows the device to respond to I/O Space accesses. |
1 | Memory Space. When set, allows the device to respond to Memory Space accesses. |
2 | Bus Master. When set allows the device to behave as a bus master. |
3 | Special Cycles. When set, allows the device to monitor special cycle operations. |
4 | Memory Write and Invalidate Enable. When set, masters may generate the Memory Write and Invalidate command. When not set, the Memory Write command must be used instead. |
Bit | Meaning |
---|---|
0-6 | These 7 bits identify the header layout. The encoding 00h is the standard device header, while the encoding 01h specifies the header layout used for PCI-to-PCI bridges. |
7 | If set, this indicates a multi-function devices. Otherwise, the device is a single-function device. |
Bit | Meaning |
---|---|
7 | BIST Capable. If set, the device supports BIST. |
6 | Start BIST. Software invoking BIST will write a 1 to this bit location. The device will reset to zero when the BIST is complete. |
5-4 | Reserved. Always 0. |
3-0 | Completion code. A value of 0 means the device passed the test. Non-zero values indicate failure. Device-specific failure codes can be encoded into the available 4 bits. |
Value | Meaning |
---|---|
1 | INTA# |
2 | INTB# |
3 | INTC# |
4 | INTD# |
Show devices on the PCI bus:
show_pci
PCI Local Bus Specification, PCI Special Interest Group, P.O. Box 14070 Portland, Oregon, USA 97214.