memc.h 550 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/arm/include/asm/hardware/memc.h
  4. *
  5. * Copyright (C) Russell King.
  6. */
  7. #define VDMA_ALIGNMENT PAGE_SIZE
  8. #define VDMA_XFERSIZE 16
  9. #define VDMA_INIT 0
  10. #define VDMA_START 1
  11. #define VDMA_END 2
  12. #ifndef __ASSEMBLY__
  13. extern void memc_write(unsigned int reg, unsigned long val);
  14. #define video_set_dma(start,end,offset) \
  15. do { \
  16. memc_write (VDMA_START, (start >> 2)); \
  17. memc_write (VDMA_END, (end - VDMA_XFERSIZE) >> 2); \
  18. memc_write (VDMA_INIT, (offset >> 2)); \
  19. } while (0)
  20. #endif