From 2bec7d6162135a4b061aaf577b3b34f70a38a3b9 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 31 Dec 2011 04:31:16 -0500 Subject: vgabios: Move vgafb_load_font to stdvga.c. Signed-off-by: Kevin O'Connor --- vgasrc/vgafb.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'vgasrc/vgafb.c') diff --git a/vgasrc/vgafb.c b/vgasrc/vgafb.c index c9a257a..19ab1df 100644 --- a/vgasrc/vgafb.c +++ b/vgasrc/vgafb.c @@ -489,22 +489,3 @@ vgafb_read_pixel(u16 x, u16 y) } return attr; } - - -/**************************************************************** - * Font loading - ****************************************************************/ - -void -vgafb_load_font(u16 seg, void *src_far, u16 count - , u16 start, u8 destflags, u8 fontsize) -{ - get_font_access(); - u16 blockaddr = ((destflags & 0x03) << 14) + ((destflags & 0x04) << 11); - void *dest_far = (void*)(blockaddr + start*32); - u16 i; - for (i = 0; i < count; i++) - memcpy_far(SEG_GRAPH, dest_far + i*32 - , seg, src_far + i*fontsize, fontsize); - release_font_access(); -} -- cgit v1.2.1