io.h 913 B

123456789101112131415161718192021222324252627282930313233
  1. /* arch/arm/mach-zynq/include/mach/io.h
  2. *
  3. * Copyright (C) 2011 Xilinx
  4. *
  5. * This software is licensed under the terms of the GNU General Public
  6. * License version 2, as published by the Free Software Foundation, and
  7. * may be copied, distributed, and modified under those terms.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. */
  14. #ifndef __MACH_IO_H__
  15. #define __MACH_IO_H__
  16. /* Allow IO space to be anywhere in the memory */
  17. #define IO_SPACE_LIMIT 0xffff
  18. /* IO address mapping macros, nothing special at this time but required */
  19. #ifdef __ASSEMBLER__
  20. #define IOMEM(x) (x)
  21. #else
  22. #define IOMEM(x) ((void __force __iomem *)(x))
  23. #endif
  24. #define __io(a) __typesafe_io(a)
  25. #define __mem_pci(a) (a)
  26. #endif