File Index
Files and directories
Sign in
FILE

video.h

File preview with syntax highlighting.

linux-6.19.14/arch/sparc/include/asm/video.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef _SPARC_VIDEO_H_
 3#define _SPARC_VIDEO_H_
 4
 5#include <linux/io.h>
 6#include <linux/types.h>
 7
 8#include <asm/page.h>
 9
10struct device;
11
12#ifdef CONFIG_SPARC32
13static inline pgprot_t pgprot_framebuffer(pgprot_t prot,
14					  unsigned long vm_start, unsigned long vm_end,
15					  unsigned long offset)
16{
17	return prot;
18}
19#define pgprot_framebuffer pgprot_framebuffer
20#endif
21
22#ifdef CONFIG_VIDEO
23bool video_is_primary_device(struct device *dev);
24#define video_is_primary_device video_is_primary_device
25#endif
26
27static inline void fb_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n)
28{
29	sbus_memcpy_fromio(to, from, n);
30}
31#define fb_memcpy_fromio fb_memcpy_fromio
32
33static inline void fb_memcpy_toio(volatile void __iomem *to, const void *from, size_t n)
34{
35	sbus_memcpy_toio(to, from, n);
36}
37#define fb_memcpy_toio fb_memcpy_toio
38
39static inline void fb_memset_io(volatile void __iomem *addr, int c, size_t n)
40{
41	sbus_memset_io(addr, c, n);
42}
43#define fb_memset fb_memset_io
44
45#include <asm-generic/video.h>
46
47#endif /* _SPARC_VIDEO_H_ */
~/ Read-only file preview.