freebsd-dev/sys/dev/pccbb
John Baldwin ad6f36f845 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
2015-04-22 22:02:27 +00:00
..
pccbb_isa.c Move the suspsned and resume functions to the bus attachment. They 2015-01-16 06:19:39 +00:00
pccbb_pci.c Update the pci_cfg_save/restore routines to operate on bridge devices 2015-04-22 22:02:27 +00:00
pccbb.c On my Lenovo T400, a Atheros 2413 has a problem powering up 2015-02-18 05:53:04 +00:00
pccbbdevid.h
pccbbreg.h
pccbbvar.h Move the suspsned and resume functions to the bus attachment. They 2015-01-16 06:19:39 +00:00