isa-bridge.h 554 B

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