0001
0002
0003
0004
0005
0006
0007 #define VDMA_ALIGNMENT PAGE_SIZE
0008 #define VDMA_XFERSIZE 16
0009 #define VDMA_INIT 0
0010 #define VDMA_START 1
0011 #define VDMA_END 2
0012
0013 #ifndef __ASSEMBLY__
0014 extern void memc_write(unsigned int reg, unsigned long val);
0015
0016 #define video_set_dma(start,end,offset) \
0017 do { \
0018 memc_write (VDMA_START, (start >> 2)); \
0019 memc_write (VDMA_END, (end - VDMA_XFERSIZE) >> 2); \
0020 memc_write (VDMA_INIT, (offset >> 2)); \
0021 } while (0)
0022
0023 #endif