io.h 777 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2003 Artec Design Ltd.
  3. * Copyright (C) 2012, Florian Fainelli <florian@openwrt.org>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. */
  10. #ifndef __ASM_ARM_ARCH_IO_H
  11. #define __ASM_ARM_ARCH_IO_H
  12. #define IO_SPACE_LIMIT 0xffffffff
  13. /*
  14. * We don't support ins[lb]/outs[lb]. Make them fault.
  15. */
  16. #define __raw_readsb(p, d, l) do { *(int *)0 = 0; } while (0)
  17. #define __raw_readsl(p, d, l) do { *(int *)0 = 0; } while (0)
  18. #define __raw_writesb(p, d, l) do { *(int *)0 = 0; } while (0)
  19. #define __raw_writesl(p, d, l) do { *(int *)0 = 0; } while (0)
  20. #define __io(a) __typesafe_io(a)
  21. #define __mem_pci(a) (a)
  22. #endif