memc.h 696 B

123456789101112131415161718192021222324252627
  1. /*
  2. * arch/arm/include/asm/hardware/memc.h
  3. *
  4. * Copyright (C) Russell King.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #define VDMA_ALIGNMENT PAGE_SIZE
  11. #define VDMA_XFERSIZE 16
  12. #define VDMA_INIT 0
  13. #define VDMA_START 1
  14. #define VDMA_END 2
  15. #ifndef __ASSEMBLY__
  16. extern void memc_write(unsigned int reg, unsigned long val);
  17. #define video_set_dma(start,end,offset) \
  18. do { \
  19. memc_write (VDMA_START, (start >> 2)); \
  20. memc_write (VDMA_END, (end - VDMA_XFERSIZE) >> 2); \
  21. memc_write (VDMA_INIT, (offset >> 2)); \
  22. } while (0)
  23. #endif