]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/pci.h
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)
commitac5ad93e92c3ffca4c7ba386aaa34244e27b7759
tree53709126d79c3718c85fbca2ec5542aec88d4bd1
parent479e0d485eaab452cf248cd1a9520015023b35b2
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