Linux 5.7.7
[linux/fpc-iii.git] / arch / arm / include / asm / hardware / memc.h
blob1d4ebe0a9678fbf4fefa195d1bc57332147d0cc4
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * arch/arm/include/asm/hardware/memc.h
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
13 #ifndef __ASSEMBLY__
14 extern void memc_write(unsigned int reg, unsigned long val);
16 #define video_set_dma(start,end,offset) \
17 do { \
18 memc_write (VDMA_START, (start >> 2)); \
19 memc_write (VDMA_END, (end - VDMA_XFERSIZE) >> 2); \
20 memc_write (VDMA_INIT, (offset >> 2)); \
21 } while (0)
23 #endif