]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Add weak pcibios_window_alignment() interface
authorGavin Shan <shangw@linux.vnet.ibm.com>
Tue, 11 Sep 2012 22:59:45 +0000 (16:59 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 11 Sep 2012 22:59:45 +0000 (16:59 -0600)
commit1572803d6566eac91c85caa8042bd527374dc07c
tree53709126d79c3718c85fbca2ec5542aec88d4bd1
parent10064afd4c6c0e8659d0156b9b443ff2a190d987
PCI: Add weak pcibios_window_alignment() interface

This patch implements a weak function to return the default I/O or memory
window alignment for a P2P bridge.  By default, I/O windows are aligned to
4KiB or 1KiB and memory windows are aligned to 4MiB.  Some platforms, e.g.,
powernv, have special alignment requirements and can override
pcibios_window_alignment().

[bhelgaas: changelog]
Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-bus.c
include/linux/pci.h