summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-01-18 19:52:20 +0000
committerjhb <jhb@FreeBSD.org>2016-01-18 19:52:20 +0000
commite8ea29ce3a280c52021a65c3ddffc10fd54eef8b (patch)
tree84bbf574c0ed296051e3958470e23c6ef0f59816 /lib
parent2a668e7e333710c85c381ba1c8a933c8e95d930b (diff)
downloadFreeBSD-src-e8ea29ce3a280c52021a65c3ddffc10fd54eef8b.zip
FreeBSD-src-e8ea29ce3a280c52021a65c3ddffc10fd54eef8b.tar.gz
MFC 291225:
Add a new -B flag for use with list mode (-l) that lists details about bridges. Currently this includes information about what resources a bridge decodes on the upstream side for use by downstream devices including bus numbers, I/O port resources, and memory resources. Windows and bus ranges are enumerated for both PCI-PCI bridges and PCI-CardBus bridges. To simplify the implementation, all enumeration is done by reading the appropriate config space registers directly rather than querying the bridge driver in the kernel via new ioctls. This does result in a few limitations. First, an unimplemented window in a PCI-PCI bridge cannot be accurately detected as accurate detection requires writing to the window base register. That is not safe for pciconf(8). Instead, this assumes that any window where both the base and limit read as all zeroes is unimplemented. Second, the PCI-PCI bridge driver in a tree has a few quirks for PCI-PCI bridges that use subtractive decoding but do not indicate that via the progif config register. The list of quirks is duplicated in pciconf's source.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud