Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ISA_BRIDGE_H
0003 #define __ISA_BRIDGE_H
0004 
0005 #ifdef CONFIG_PPC64
0006 
0007 extern void isa_bridge_find_early(struct pci_controller *hose);
0008 extern void isa_bridge_init_non_pci(struct device_node *np);
0009 
0010 static inline int isa_vaddr_is_ioport(void __iomem *address)
0011 {
0012     /* Check if address hits the reserved legacy IO range */
0013     unsigned long ea = (unsigned long)address;
0014     return ea >= ISA_IO_BASE && ea < ISA_IO_END;
0015 }
0016 
0017 #else
0018 
0019 static inline int isa_vaddr_is_ioport(void __iomem *address)
0020 {
0021     /* No specific ISA handling on ppc32 at this stage, it
0022      * all goes through PCI
0023      */
0024     return 0;
0025 }
0026 
0027 #endif
0028 
0029 #endif /* __ISA_BRIDGE_H */
0030