Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / loongarch / include / asm / video.h
blob9f76845f2d4fde12fb68197caead7ad8ce2e8a28
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5 #ifndef _ASM_VIDEO_H_
6 #define _ASM_VIDEO_H_
8 #include <linux/compiler.h>
9 #include <linux/string.h>
11 static inline void fb_memcpy_fromio(void *to, const volatile void __iomem *from, size_t n)
13 memcpy(to, (void __force *)from, n);
15 #define fb_memcpy_fromio fb_memcpy_fromio
17 static inline void fb_memcpy_toio(volatile void __iomem *to, const void *from, size_t n)
19 memcpy((void __force *)to, from, n);
21 #define fb_memcpy_toio fb_memcpy_toio
23 static inline void fb_memset_io(volatile void __iomem *addr, int c, size_t n)
25 memset((void __force *)addr, c, n);
27 #define fb_memset fb_memset_io
29 #include <asm-generic/video.h>
31 #endif /* _ASM_VIDEO_H_ */