summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/machdep.h
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-09-11 16:59:46 -0600
committerBjorn Helgaas <bhelgaas@google.com>2012-09-11 16:59:46 -0600
commit4c2245bb5c9c6e9950ee8919b4462dfa77f7a28f (patch)
tree40294aad43963b4e4e3ccd6d008aab9628465c7b /arch/powerpc/include/asm/machdep.h
parentc121504e899c19f7e25b4894f616475073876361 (diff)
downloadlinux-4c2245bb5c9c6e9950ee8919b4462dfa77f7a28f.tar.gz
linux-4c2245bb5c9c6e9950ee8919b4462dfa77f7a28f.tar.bz2
linux-4c2245bb5c9c6e9950ee8919b4462dfa77f7a28f.zip
powerpc/PCI: Override pcibios_window_alignment()
This patch implements pcibios_window_alignment() so powerpc platforms can force P2P bridge windows to be at larger alignments than the PCI spec requires. [bhelgaas: changelog] Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/powerpc/include/asm/machdep.h')
-rw-r--r--arch/powerpc/include/asm/machdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h
index 42ce570812c1..f7706d722b39 100644
--- a/arch/powerpc/include/asm/machdep.h
+++ b/arch/powerpc/include/asm/machdep.h
@@ -214,6 +214,9 @@ struct machdep_calls {
/* Called after scan and before resource survey */
void (*pcibios_fixup_phb)(struct pci_controller *hose);
+ /* Called during PCI resource reassignment */
+ resource_size_t (*pcibios_window_alignment)(struct pci_bus *, unsigned long type);
+
/* Called to shutdown machine specific hardware not already controlled
* by other drivers.
*/