1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
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_ */