]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 261524,261526,261527:
authorjhb <jhb@FreeBSD.org>
Wed, 19 Feb 2014 18:34:47 +0000 (18:34 +0000)
committerjhb <jhb@FreeBSD.org>
Wed, 19 Feb 2014 18:34:47 +0000 (18:34 +0000)
commit169a4e8371dd1f60ac3b3e9d6fbb216c7d19accd
treedc277e84571c2b0f6bc689012acba796c548c4f8
parent690ab44de324d5cd9aee67eed6f81effd837b070
MFC 261524,261526,261527:
- Properly set the alignment flags when allocating the initial range for a
  BAR.  This only really matters when pci_do_realloc_bars is enabled and
  the initial allocation of a specific range fails.
- Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
  the resource after creating a resource list entry rather than reimplementing
  it by hand.
- Add two tunables to ignore certain firmware-assigned resources.  These
  are mostly useful for debugging.
  - hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
    set.
  - hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
    bridge I/O windows when set.
sys/dev/pci/pci.c
sys/dev/pci/pci_pci.c