ioremap.h 740 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_MACH_OCTEON_IOREMAP_H
  3. #define __ASM_MACH_OCTEON_IOREMAP_H
  4. #include <linux/types.h>
  5. /*
  6. * Allow physical addresses to be fixed up to help peripherals located
  7. * outside the low 32-bit range -- generic pass-through version.
  8. */
  9. static inline phys_addr_t fixup_bigphys_addr(phys_addr_t phys_addr,
  10. phys_addr_t size)
  11. {
  12. return phys_addr;
  13. }
  14. static inline void __iomem *plat_ioremap(phys_addr_t offset, unsigned long size,
  15. unsigned long flags)
  16. {
  17. return (void __iomem *)(XKPHYS | offset);
  18. }
  19. static inline int plat_iounmap(const volatile void __iomem *addr)
  20. {
  21. return 0;
  22. }
  23. #define _page_cachable_default _CACHE_CACHABLE_NONCOHERENT
  24. #endif /* __ASM_MACH_OCTEON_IOREMAP_H */