diff options
Diffstat (limited to 'arch/mips/include/asm/vga.h')
| -rw-r--r-- | arch/mips/include/asm/vga.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/arch/mips/include/asm/vga.h b/arch/mips/include/asm/vga.h index f4cff7e4fa8a..491c2b5aeb81 100644 --- a/arch/mips/include/asm/vga.h +++ b/arch/mips/include/asm/vga.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Access to VGA videoram * @@ -6,6 +7,8 @@ #ifndef _ASM_VGA_H #define _ASM_VGA_H +#include <linux/string.h> +#include <asm/addrspace.h> #include <asm/byteorder.h> /* @@ -13,7 +16,7 @@ * access the videoram directly without any black magic. */ -#define VGA_MAP_MEM(x, s) (0xb0000000L + (unsigned long)(x)) +#define VGA_MAP_MEM(x, s) CKSEG1ADDR(0x10000000L + (unsigned long)(x)) #define vga_readb(x) (*(x)) #define vga_writeb(x, y) (*(y) = (x)) @@ -39,9 +42,11 @@ static inline u16 scr_readw(volatile const u16 *addr) return le16_to_cpu(*addr); } -#define scr_memcpyw(d, s, c) memcpy(d, s, c) -#define scr_memmovew(d, s, c) memmove(d, s, c) -#define VT_BUF_HAVE_MEMCPYW -#define VT_BUF_HAVE_MEMMOVEW +static inline void scr_memsetw(u16 *s, u16 v, unsigned int count) +{ + memset16(s, cpu_to_le16(v), count / 2); +} + +#define VT_BUF_HAVE_MEMSETW #endif /* _ASM_VGA_H */ |
