freebsd-dev/sys/dev/pci
John Baldwin a90dd577e7 Explicitly track the state of all known BARs for each PCI device. The PCI
bus driver will now remember the size of a BAR obtained during the initial
bus scan and use that size when doing lazy resource allocation rather than
resizing the BAR.  The bus driver will now also report unallocated BARs to
userland for display by 'pciconf -lb'.  Psuedo-resources that are not BARs
(such as the implicit I/O port resources for master/slave ATA controllers)
will no longer be listed as BARs in 'pciconf -lb'.  During resume, BARs are
restored from their new saved state instead of having the raw registers
saved and restored across resume.  This also fixes restoring BARs at
unusual loactions if said BAR has been allocated by a driver.

Add a constant for the offset of the ROM BIOS BAR in PCI-PCI bridges and
properly handle ROM BIOS BARs in PCI-PCI bridges.  The PCI bus now also
properly handles the lack of a ROM BIOS BAR in a PCI-Cardbus bridge.

Tested by:	jkim
2011-03-31 13:22:12 +00:00
..
eisa_pci.c
fixup_pci.c
hostb_pci.c Do a sweep of the tree replacing calls to pci_find_extcap() with calls to 2011-03-23 13:10:15 +00:00
ignore_pci.c
isa_pci.c
pci_if.m
pci_pci.c Add device IDs for two more ServerWorks Host-PCI bridges so that we can 2010-11-25 15:42:33 +00:00
pci_private.h Introduce a new tunable 'hw.pci.do_power_suspend'. This tunable lets you 2010-10-20 16:47:09 +00:00
pci_user.c Explicitly track the state of all known BARs for each PCI device. The PCI 2011-03-31 13:22:12 +00:00
pci.c Explicitly track the state of all known BARs for each PCI device. The PCI 2011-03-31 13:22:12 +00:00
pcib_if.m Add a new method to the PCI bridge interface, PCIB_POWER_FOR_SLEEP(). This 2010-08-17 15:44:52 +00:00
pcib_private.h - Retire acpi_pcib_resume(). It is has just been an alias for 2010-08-05 16:10:12 +00:00
pcireg.h Explicitly track the state of all known BARs for each PCI device. The PCI 2011-03-31 13:22:12 +00:00
pcivar.h Explicitly track the state of all known BARs for each PCI device. The PCI 2011-03-31 13:22:12 +00:00
vga_pci.c Don't whine about child drivers calling pci_enable_busmaster(). That is 2010-12-20 14:54:24 +00:00