From: Christian Gmeiner Date: Sat, 1 Sep 2012 15:12:53 +0000 (+0200) Subject: Remove all dc_ functions as they are not needed anymore X-Git-Tag: rel-1.7.2~76 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=efb97840151ab3cc74ff5fa196f0269f78953d7e;p=seabios.git Remove all dc_ functions as they are not needed anymore As we access teh DC registers via memory we do not need all the DC-VGA-mapping functions anymore. Signed-off-by: Christian Gmeiner --- diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c index 8ce9ed1..2cf11a0 100644 --- a/vgasrc/geodevga.c +++ b/vgasrc/geodevga.c @@ -136,71 +136,6 @@ static void crtce_write(u8 reg, u8 val) crtce_lock(); } -/**************************************************************** -* Display Controller Functions -****************************************************************/ -static u32 dc_read(u16 seg, u32 reg) -{ - u32 val, *dest_far = (void*)reg; - val = GET_FARVAR(seg,*dest_far); - return val; -} - -static void dc_write(u16 seg, u32 reg, u32 val) -{ - u32 *dest_far = (void*)reg; - SET_FARVAR(seg,*dest_far,val); -} - -static void dc_set(u16 seg, u32 reg, u32 and, u32 or) -{ - u32 val = dc_read(seg,reg); - val &=and; - val |=or; - dc_write(seg,reg,val); -} - -static void dc_unlock(u16 seg) -{ - dc_write(seg,DC_UNLOCK,DC_LOCK_UNLOCK); -} - -static void dc_lock(u16 seg) -{ - dc_write(seg,DC_UNLOCK,DC_LOCK_LOCK); -} - -static u16 dc_map(u16 seg) -{ - u8 reg; - - reg = crtce_read(EXTENDED_MODE_CONTROL); - reg &= 0xf9; - switch (seg) { - case SEG_GRAPH: - reg |= 0x02; - break; - case SEG_MTEXT: - reg |= 0x04; - break; - case SEG_CTEXT: - reg |= 0x06; - break; - default: - seg=0; - break; - } - - crtce_write(EXTENDED_MODE_CONTROL,reg); - return seg; -} - -static void dc_unmap(void) -{ - dc_map(0); -} - - /**************************************************************** * Init Functions ****************************************************************/