]> git.karo-electronics.de Git - karo-tx-linux.git/blob - arch/powerpc/include/asm/isa-bridge.h
powerpc: Move isa bridge definitions to separate include
[karo-tx-linux.git] / arch / powerpc / include / asm / isa-bridge.h
1 #ifndef __ISA_BRIDGE_H
2 #define __ISA_BRIDGE_H
3
4 #ifdef CONFIG_PPC64
5
6 extern void isa_bridge_find_early(struct pci_controller *hose);
7
8 static inline int isa_vaddr_is_ioport(void __iomem *address)
9 {
10         /* Check if address hits the reserved legacy IO range */
11         unsigned long ea = (unsigned long)address;
12         return ea >= ISA_IO_BASE && ea < ISA_IO_END;
13 }
14
15 #else
16
17 static inline int isa_vaddr_is_ioport(void __iomem *address)
18 {
19         /* No specific ISA handling on ppc32 at this stage, it
20          * all goes through PCI
21          */
22         return 0;
23 }
24
25 #endif
26
27 #endif /* __ISA_BRIDGE_H */
28