isa-bridge.h 654 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ISA_BRIDGE_H
  3. #define __ISA_BRIDGE_H
  4. #ifdef CONFIG_PPC64
  5. extern void isa_bridge_find_early(struct pci_controller *hose);
  6. extern void isa_bridge_init_non_pci(struct device_node *np);
  7. static inline int isa_vaddr_is_ioport(void __iomem *address)
  8. {
  9. /* Check if address hits the reserved legacy IO range */
  10. unsigned long ea = (unsigned long)address;
  11. return ea >= ISA_IO_BASE && ea < ISA_IO_END;
  12. }
  13. #else
  14. static inline int isa_vaddr_is_ioport(void __iomem *address)
  15. {
  16. /* No specific ISA handling on ppc32 at this stage, it
  17. * all goes through PCI
  18. */
  19. return 0;
  20. }
  21. #endif
  22. #endif /* __ISA_BRIDGE_H */