io.h 933 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * DaVinci IO address definitions
  3. *
  4. * Copied from include/asm/arm/arch-omap/io.h
  5. *
  6. * 2007 (c) MontaVista Software, Inc. This file is licensed under
  7. * the terms of the GNU General Public License version 2. This program
  8. * is licensed "as is" without any warranty of any kind, whether express
  9. * or implied.
  10. */
  11. #ifndef __ASM_ARCH_IO_H
  12. #define __ASM_ARCH_IO_H
  13. #define IO_SPACE_LIMIT 0xffffffff
  14. /*
  15. * We don't actually have real ISA nor PCI buses, but there is so many
  16. * drivers out there that might just work if we fake them...
  17. */
  18. #define __io(a) __typesafe_io(a)
  19. #define __mem_pci(a) (a)
  20. #define __mem_isa(a) (a)
  21. #ifndef __ASSEMBLER__
  22. #define __arch_ioremap(p, s, t) davinci_ioremap(p, s, t)
  23. #define __arch_iounmap(v) davinci_iounmap(v)
  24. void __iomem *davinci_ioremap(unsigned long phys, size_t size,
  25. unsigned int type);
  26. void davinci_iounmap(volatile void __iomem *addr);
  27. #endif
  28. #endif /* __ASM_ARCH_IO_H */