1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _SPARC_VIDEO_H_
3 #define _SPARC_VIDEO_H_
6 #include <linux/types.h>
13 static inline pgprot_t
pgprot_framebuffer(pgprot_t prot
,
14 unsigned long vm_start
, unsigned long vm_end
,
19 #define pgprot_framebuffer pgprot_framebuffer
22 bool video_is_primary_device(struct device
*dev
);
23 #define video_is_primary_device video_is_primary_device
25 static inline void fb_memcpy_fromio(void *to
, const volatile void __iomem
*from
, size_t n
)
27 sbus_memcpy_fromio(to
, from
, n
);
29 #define fb_memcpy_fromio fb_memcpy_fromio
31 static inline void fb_memcpy_toio(volatile void __iomem
*to
, const void *from
, size_t n
)
33 sbus_memcpy_toio(to
, from
, n
);
35 #define fb_memcpy_toio fb_memcpy_toio
37 static inline void fb_memset_io(volatile void __iomem
*addr
, int c
, size_t n
)
39 sbus_memset_io(addr
, c
, n
);
41 #define fb_memset fb_memset_io
43 #include <asm-generic/video.h>
45 #endif /* _SPARC_VIDEO_H_ */