···66#ifndef _ASM_VGA_H77#define _ASM_VGA_H8899+#include <asm/byteorder.h>1010+911/*1012 * On the PC, we can just recalculate addresses and then1113 * access the videoram directly without any black magic.···17151816#define vga_readb(x) (*(x))1917#define vga_writeb(x,y) (*(y) = (x))1818+1919+#define VT_BUF_HAVE_RW2020+/*2121+ * These are only needed for supporting VGA or MDA text mode, which use little2222+ * endian byte ordering.2323+ * In other cases, we can optimize by using native byte ordering and2424+ * <linux/vt_buffer.h> has already done the right job for us.2525+ */2626+2727+static inline void scr_writew(u16 val, volatile u16 *addr)2828+{2929+ *addr = cpu_to_le16(val);3030+}3131+3232+static inline u16 scr_readw(volatile const u16 *addr)3333+{3434+ return le16_to_cpu(*addr);3535+}3636+3737+#define scr_memcpyw(d, s, c) memcpy(d, s, c)3838+#define scr_memmovew(d, s, c) memmove(d, s, c)3939+#define VT_BUF_HAVE_MEMCPYW4040+#define VT_BUF_HAVE_MEMMOVEW20412142#endif /* _ASM_VGA_H */