1 #ifndef _ASM_VIDEO_H_ 1 2 #define _ASM_VIDEO_H_ 3 4 #include <asm/page.h> 5 6 static inline pgprot_t pgprot_framebuffer(pgpr 7 unsi 8 unsi 9 { 10 return pgprot_noncached(prot); 11 } 12 #define pgprot_framebuffer pgprot_framebuffer 13 14 /* 15 * MIPS doesn't define __raw_ I/O macros, so t 16 * in <asm-generic/video.h> don't generate fb_ 17 * fb_writeq(). We have to provide them here. 18 * 19 * TODO: Convert MIPS to generic I/O. The help 20 * then be removed. 21 */ 22 #ifdef CONFIG_64BIT 23 static inline u64 fb_readq(const volatile void 24 { 25 return __raw_readq(addr); 26 } 27 #define fb_readq fb_readq 28 29 static inline void fb_writeq(u64 b, volatile v 30 { 31 __raw_writeq(b, addr); 32 } 33 #define fb_writeq fb_writeq 34 #endif 35 36 #include <asm-generic/video.h> 37 38 #endif /* _ASM_VIDEO_H_ */ 39
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.