summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/pci-bridge.h
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2015-04-28 07:12:06 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-02 05:18:49 +0200
commit3405c2570fd68fc5ccc703c8de9c23abf5e95819 (patch)
treed041482415c16612f420c9311ddc30437ee7a696 /arch/powerpc/include/asm/pci-bridge.h
parentpowerpc/powernv: Specialise pci_controller_ops for each controller type (diff)
downloadlinux-3405c2570fd68fc5ccc703c8de9c23abf5e95819.tar.xz
linux-3405c2570fd68fc5ccc703c8de9c23abf5e95819.zip
powerpc/pci: add dma_set_mask to pci_controller_ops
Some systems only need to deal with DMA masks for PCI devices. For these systems, we can avoid the need for a platform hook and instead use a pci controller based hook. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/pci-bridge.h')
-rw-r--r--arch/powerpc/include/asm/pci-bridge.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/pci-bridge.h b/arch/powerpc/include/asm/pci-bridge.h
index a3b6252bcfc9..6d17bb8498bf 100644
--- a/arch/powerpc/include/asm/pci-bridge.h
+++ b/arch/powerpc/include/asm/pci-bridge.h
@@ -36,6 +36,8 @@ struct pci_controller_ops {
int nvec, int type);
void (*teardown_msi_irqs)(struct pci_dev *dev);
#endif
+
+ int (*dma_set_mask)(struct pci_dev *dev, u64 dma_mask);
};
/*