freebsd-skq/usr.sbin/pciconf
John Baldwin 15d107308f 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.

Reviewed by:	imp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D4171
2015-11-23 23:48:07 +00:00
..
cap.c Note if relaxed ordering or no snoop is enabled for each PCI-express device. 2015-11-05 20:24:56 +00:00
err.c Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
Makefile Install <dev/agp/agpreg.h> and <dev/pci/pcireg.h> as userland headers 2013-02-05 18:55:09 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
pathnames.h Prefer pciids database from ports if present 2015-09-06 20:05:29 +00:00
pciconf.8 Add a new -B flag for use with list mode (-l) that lists details about 2015-11-23 23:48:07 +00:00
pciconf.c Add a new -B flag for use with list mode (-l) that lists details about 2015-11-23 23:48:07 +00:00
pciconf.h Teach pciconf how to dump out SR-IOV capability 2015-03-01 00:59:35 +00:00