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 extern void isa_bridge_init_non_pci(struct device_node *np);
8 
9 static inline int isa_vaddr_is_ioport(void __iomem *address)
10 {
11 	/* Check if address hits the reserved legacy IO range */
12 	unsigned long ea = (unsigned long)address;
13 	return ea >= ISA_IO_BASE && ea < ISA_IO_END;
14 }
15 
16 #else
17 
18 static inline int isa_vaddr_is_ioport(void __iomem *address)
19 {
20 	/* No specific ISA handling on ppc32 at this stage, it
21 	 * all goes through PCI
22 	 */
23 	return 0;
24 }
25 
26 #endif
27 
28 #endif /* __ISA_BRIDGE_H */
29 
30