aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2012-09-01 17:12:53 +0200
committerKevin O'Connor <kevin@koconnor.net>2012-09-03 12:04:55 -0400
commitefb97840151ab3cc74ff5fa196f0269f78953d7e (patch)
treed2b7a3d1b804899b61b46adcb65ac0f0f0669e83 /vgasrc
parentc13c181a9d1a8095433471309410f01a80141966 (diff)
downloadseabios-efb97840151ab3cc74ff5fa196f0269f78953d7e.tar.gz
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 <christian.gmeiner@gmail.com>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/geodevga.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c
index 8ce9ed18..2cf11a08 100644
--- a/vgasrc/geodevga.c
+++ b/vgasrc/geodevga.c
@@ -137,71 +137,6 @@ static void crtce_write(u8 reg, u8 val)
}
/****************************************************************
-* 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
****************************************************************/