drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / include / asm / video.h
blob007c106d980fd469075b630560b2e62d63004d69
1 #ifndef _ASM_VIDEO_H_
2 #define _ASM_VIDEO_H_
4 #include <asm/page.h>
6 static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
7 unsigned long vm_start, unsigned long vm_end,
8 unsigned long offset)
10 return pgprot_noncached(prot);
12 #define pgprot_framebuffer pgprot_framebuffer
15 * MIPS doesn't define __raw_ I/O macros, so the helpers
16 * in <asm-generic/video.h> don't generate fb_readq() and
17 * fb_writeq(). We have to provide them here.
19 * TODO: Convert MIPS to generic I/O. The helpers below can
20 * then be removed.
22 #ifdef CONFIG_64BIT
23 static inline u64 fb_readq(const volatile void __iomem *addr)
25 return __raw_readq(addr);
27 #define fb_readq fb_readq
29 static inline void fb_writeq(u64 b, volatile void __iomem *addr)
31 __raw_writeq(b, addr);
33 #define fb_writeq fb_writeq
34 #endif
36 #include <asm-generic/video.h>
38 #endif /* _ASM_VIDEO_H_ */