Debian Codegraph @

arch/m68k/include/asm/video.h

raw
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_VIDEO_H_
3 #define _ASM_VIDEO_H_
4
5 #include <asm/page.h>
6 #include <asm/setup.h>
7
8 static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
9 unsigned long vm_start, unsigned long vm_end,
10 unsigned long offset)
11 {
12 #ifdef CONFIG_MMU
13 #ifdef CONFIG_SUN3
14 pgprot_val(prot) |= SUN3_PAGE_NOCACHE;
15 #else
16 if (CPU_IS_020_OR_030)
17 pgprot_val(prot) |= _PAGE_NOCACHE030;
18 if (CPU_IS_040_OR_060) {
19 pgprot_val(prot) &= _CACHEMASK040;
20 /* Use no-cache mode, serialized */
21 pgprot_val(prot) |= _PAGE_NOCACHE_S;
22 }
23 #endif /* CONFIG_SUN3 */
24 #endif /* CONFIG_MMU */
25
26 return prot;
27 }
28 #define pgprot_framebuffer pgprot_framebuffer
29
30 #include <asm-generic/video.h>
31
32 #endif /* _ASM_VIDEO_H_ */