summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/isa-bridge.h
blob: a3a7c1d63a7c553a289b6739469f8fbe6d8cd2db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __ISA_BRIDGE_H
#define __ISA_BRIDGE_H

#ifdef CONFIG_PPC64

extern void isa_bridge_find_early(struct pci_controller *hose);
extern void isa_bridge_init_non_pci(struct device_node *np);

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 */