io.h 620 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __ASM_CSKY_IO_H
  4. #define __ASM_CSKY_IO_H
  5. #include <abi/pgtable-bits.h>
  6. #include <linux/types.h>
  7. #include <linux/version.h>
  8. extern void __iomem *ioremap(phys_addr_t offset, size_t size);
  9. extern void iounmap(void *addr);
  10. extern int remap_area_pages(unsigned long address, phys_addr_t phys_addr,
  11. size_t size, unsigned long flags);
  12. #define ioremap_nocache(phy, sz) ioremap(phy, sz)
  13. #define ioremap_wc ioremap_nocache
  14. #define ioremap_wt ioremap_nocache
  15. #include <asm-generic/io.h>
  16. #endif /* __ASM_CSKY_IO_H */