opnsense-src/sys/dev/pci
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
..
eisa_pci.c - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
fixup_pci.c Use device_printf(). 2013-08-11 06:57:57 +00:00
hostb_pci.c Expand the set of APIs available for locating PCI capabilities: 2012-03-03 18:08:57 +00:00
ignore_pci.c
isa_pci.c Implement BUS_ADD_CHILD() for the isab(4) driver. It already calls 2011-12-14 12:34:02 +00:00
pci.c Update the pci_cfg_save/restore routines to operate on bridge devices 2015-04-22 22:02:27 +00:00
pci_if.m Pass SR-IOV configuration to kernel using an nvlist 2015-03-01 00:40:57 +00:00
pci_iov.c Fix SR-IOV passthrough devices to allow ppt to attach 2015-03-10 23:27:13 +00:00
pci_iov_private.h Add infrastructure for exporting config schema from PF drivers 2015-03-01 00:40:42 +00:00
pci_iov_schema.c Validate the schema that the PF driver passed to us 2015-03-01 00:59:28 +00:00
pci_pci.c Update the pci_cfg_save/restore routines to operate on bridge devices 2015-04-22 22:02:27 +00:00
pci_private.h Add infrastructure for exporting config schema from PF drivers 2015-03-01 00:40:42 +00:00
pci_subr.c Add support for managing PCI bus numbers. As with BARs and PCI-PCI bridge 2014-02-12 04:30:37 +00:00
pci_user.c Emulate the Device ID and Vendor ID registers for VFs 2015-03-01 00:40:19 +00:00
pcib_if.m Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcib_private.h Update the pci_cfg_save/restore routines to operate on bridge devices 2015-04-22 22:02:27 +00:00
pcib_support.c Add some pcib methods to get ARI-related information 2015-03-01 00:39:40 +00:00
pcireg.h Implement interface to create SR-IOV Virtual Functions 2015-03-01 00:40:09 +00:00
pcivar.h Update the pci_cfg_save/restore routines to operate on bridge devices 2015-04-22 22:02:27 +00:00
schema_private.h Validate the schema that the PF driver passed to us 2015-03-01 00:59:28 +00:00
vga_pci.c Record the dependency to x86bios in vga_pci 2015-03-01 20:54:29 +00:00