io.h 693 B

1234567891011121314151617181920212223242526
  1. #ifndef _ASM_CRIS_IO_H
  2. #define _ASM_CRIS_IO_H
  3. #include <asm/page.h> /* for __va, __pa */
  4. #ifdef CONFIG_ETRAX_ARCH_V10
  5. #include <arch/io.h>
  6. #endif
  7. #include <asm-generic/iomap.h>
  8. #include <linux/kernel.h>
  9. extern void __iomem * __ioremap(unsigned long offset, unsigned long size, unsigned long flags);
  10. extern void __iomem * __ioremap_prot(unsigned long phys_addr, unsigned long size, pgprot_t prot);
  11. static inline void __iomem * ioremap (unsigned long offset, unsigned long size)
  12. {
  13. return __ioremap(offset, size, 0);
  14. }
  15. extern void iounmap(volatile void * __iomem addr);
  16. extern void __iomem * ioremap_nocache(unsigned long offset, unsigned long size);
  17. #include <asm-generic/io.h>
  18. #endif