freebsd-nq/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
pci_private.h
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
pcib_private.h
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