aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/isa-bridge.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-01-30 18:11:55 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2017-01-31 13:54:17 +1100
commit38e9d36bc149932964dcd25818c7f7283239592d (patch)
tree4ba2b9425271f7c507c77b3be591f8099f7cb8a9 /arch/powerpc/include/asm/isa-bridge.h
parentDocumentation:powerpc: Add device-tree bindings for power-mgt (diff)
downloadlinux-dev-38e9d36bc149932964dcd25818c7f7283239592d.tar.xz
linux-dev-38e9d36bc149932964dcd25818c7f7283239592d.zip
powerpc: Move isa bridge definitions to separate include
We'll be adding non-PCI isa bridge support so let's not have all the definition in pci-bridge.h Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/isa-bridge.h')
-rw-r--r--arch/powerpc/include/asm/isa-bridge.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/isa-bridge.h b/arch/powerpc/include/asm/isa-bridge.h
new file mode 100644
index 000000000000..94d9c1c9706d
--- /dev/null
+++ b/arch/powerpc/include/asm/isa-bridge.h
@@ -0,0 +1,28 @@
+#ifndef __ISA_BRIDGE_H
+#define __ISA_BRIDGE_H
+
+#ifdef CONFIG_PPC64
+
+extern void isa_bridge_find_early(struct pci_controller *hose);
+
+static inline int isa_vaddr_is_ioport(void __iomem *address)
+{
+ /* Check if address hits the reserved legacy IO range */
+ unsigned long ea = (unsigned long)address;
+ return ea >= ISA_IO_BASE && ea < ISA_IO_END;
+}
+
+#else
+
+static inline int isa_vaddr_is_ioport(void __iomem *address)
+{
+ /* No specific ISA handling on ppc32 at this stage, it
+ * all goes through PCI
+ */
+ return 0;
+}
+
+#endif
+
+#endif /* __ISA_BRIDGE_H */
+