]> git.ipfire.org Git - thirdparty/pciutils.git/commit
lspci: Decode "Slot Implemented" for PCI/PCI-X to PCIe Bridges
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 21 Apr 2017 19:32:18 +0000 (14:32 -0500)
committerMartin Mares <mj@ucw.cz>
Sat, 29 Apr 2017 18:05:07 +0000 (20:05 +0200)
commitf41bb847b47a67dbda41da378013df0c5e7ce8a7
tree1a059edd3c51c544292517b4ae454d86ae340655
parentc4cf2d1c17594d333ccd819212756e3afb8b9924
lspci: Decode "Slot Implemented" for PCI/PCI-X to PCIe Bridges

The secondary side of a PCI/PCI-X to PCIe Bridge (a "reverse bridge") is a
PCIe Downstream Port and could support a slot just like Root Ports and
Switch Downstream Ports.

Decode "Slot Implemented" for reverse bridges and, if true, the Slot
Capabilities, Control, and Status registers.

For a reverse bridge with no slot, the difference in the "lspci -vv" output
looks like this:

-    Capabilities: [40] Express (v2) PCI/PCI-X to PCI-Express Bridge, MSI 00
+    Capabilities: [40] Express (v2) PCI/PCI-X to PCI-Express Bridge (Slot-), MSI 00

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
ls-caps.c
tests/cap-exp-rev-slot [new file with mode: 0644]