Import 2.3.6
[davej-history.git] / include / asm-arm / memc.h
blob8eea08635c732c0b54108ddc23451eecd9811512
1 #define VDMA_ALIGNMENT PAGE_SIZE
2 #define VDMA_XFERSIZE 16
3 #define VDMA_INIT 0
4 #define VDMA_START 1
5 #define VDMA_END 2
7 #ifndef __ASSEMBLER__
8 extern void memc_write(unsigned int reg, unsigned long val);
10 #define video_set_dma(start,end,offset) \
11 do { \
12 memc_write (VDMA_START, (start >> 2)); \
13 memc_write (VDMA_END, (end - VDMA_XFERSIZE) >> 2); \
14 memc_write (VDMA_INIT, (offset >> 2)); \
15 } while (0)
17 #endif