Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_FB_H_
3#define _ASM_FB_H_
4
5#include <asm/page.h>
6#include <asm/setup.h>
7
8static 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/fb.h>
31
32#endif /* _ASM_FB_H_ */