pciconf - Enhance output

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 1 October 2018 18:44 EDT

- Add more registers defs from FreeBSD to pcireg.h

- Bring expanded pciconf code in form FreeBSD. This code displays more configuration data for bridges and control registers, and fixes a broken bus error reporting conditional.

- Also normalize SLT -> SLOT naming in pcireg.h

d650e2183c pciconf - Enhance output
sys/bus/pci/pci.c | 2 +-
sys/bus/pci/pci_pci.c | 6 +-
sys/bus/pci/pcireg.h | 122 ++++++++++++++++++++------
usr.sbin/pciconf/Makefile | 2 +-
usr.sbin/pciconf/cap.c | 184 ++++++++++++++++++++++++++++++++++++---
usr.sbin/pciconf/err.c | 170 ++++++++++++++++++++++++++++++++++++
usr.sbin/pciconf/pciconf.c | 211 +++++++++++++++++++++++++++++++++++++++++++--
usr.sbin/pciconf/pciconf.h | 3 +
8 files changed, 654 insertions(+), 46 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share