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>
This commit is contained in:

committed by
Michael Ellerman

parent
b48ff52043
commit
38e9d36bc1
28
arch/powerpc/include/asm/isa-bridge.h
Normal file
28
arch/powerpc/include/asm/isa-bridge.h
Normal file
@@ -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 */
|
||||
|
Reference in New Issue
Block a user