1 /* SPDX-License-Identifier: GPL-2.0 */ 1 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(pgpr 9 unsi 10 unsi 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_NOCA 18 if (CPU_IS_040_OR_060) { 19 pgprot_val(prot) &= _CACHEMASK 20 /* Use no-cache mode, serializ 21 pgprot_val(prot) |= _PAGE_NOCA 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_ */ 33
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.