summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-04-22 22:02:27 +0000
committerjhb <jhb@FreeBSD.org>2015-04-22 22:02:27 +0000
commitfd9eaed2e2fa6b2e1bf952d19bf01d144d0e58a7 (patch)
treec1a16b73bdcde60c80b800131028272dc837d797 /lib
parent53997d694e5ba17c117f9f90faec22cd9bd239a6 (diff)
downloadFreeBSD-src-fd9eaed2e2fa6b2e1bf952d19bf01d144d0e58a7.zip
FreeBSD-src-fd9eaed2e2fa6b2e1bf952d19bf01d144d0e58a7.tar.gz
Update the pci_cfg_save/restore routines to operate on bridge devices
(type 1 and type 2) as well as leaf devices (type 0). In particular, this allows the existing PCI bus logic to save and restore capability registers such as MSI and PCI-express work for bridge devices rather than requiring that code to be duplicated in bridge drivers. It also means that bridge drivers no longer need to save and restore basic registers such as the PCI command register or BARs nor manage powerstates for the bridge device. While here, pci_setup_secbus() has been changed to initialize the 'sec' and 'sub' fields in the 'secbus' structure instead of requiring the pcib and pccbb drivers to do this in the NEW_PCIB + PCI_RES_BUS case. Differential Revision: https://reviews.freebsd.org/D2240 Reviewed by: imp, jmg MFC after: 2 weeks
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud