]> xenbits.xensource.com Git - seabios.git/commitdiff
Remove Extened CRTC Register functions
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 1 Sep 2012 15:12:54 +0000 (17:12 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 3 Sep 2012 16:04:55 +0000 (12:04 -0400)
As the access the DC registers via memory, we dont need to
work with the extended CRTC register to setup the DC-VGA-mapping.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
vgasrc/geodevga.c
vgasrc/geodevga.h

index 2cf11a083524b459e6d9e7d3675c2a18cb7cb61c..ae606a76e0d614bc5790ffdb3580fa37c3ea254e 100644 (file)
@@ -106,35 +106,6 @@ static int legacyio_check(void)
     return ret;
 }
 
-/****************************************************************
-* Extened CRTC Register functions
-****************************************************************/
-static void crtce_lock(void)
-{
-    stdvga_crtc_write(VGAREG_VGA_CRTC_ADDRESS, EXTENDED_REGISTER_LOCK
-                      , CRTCE_LOCK);
-}
-
-static void crtce_unlock(void)
-{
-    stdvga_crtc_write(VGAREG_VGA_CRTC_ADDRESS, EXTENDED_REGISTER_LOCK
-                      , CRTCE_UNLOCK);
-}
-
-static u8 crtce_read(u8 reg)
-{
-    crtce_unlock();
-    u8 val = stdvga_crtc_read(VGAREG_VGA_CRTC_ADDRESS, reg);
-    crtce_lock();
-    return val;
-}
-
-static void crtce_write(u8 reg, u8 val)
-{
-    crtce_unlock();
-    stdvga_crtc_write(VGAREG_VGA_CRTC_ADDRESS, reg, val);
-    crtce_lock();
-}
 
 /****************************************************************
 * Init Functions
index fd7ce432a3bf278293281cf3387e5e2e2ee5ce06..70980373e6f6511bfcc9c962dc22cd8cc24554f8 100644 (file)
 #define VRC_DATA                        0xAC1E  // Data register
 #define VR_UNLOCK                       0xFC53  // Virtual register unlock code
 
-#define EXTENDED_REGISTER_LOCK          0x30
-#define EXTENDED_MODE_CONTROL           0x43
-#define EXTENDED_START_ADDR             0x44
-
-#define CRTCE_UNLOCK                    0x4c
-#define CRTCE_LOCK                      0xff
-
 // Graphics-specific registers:
 #define OEM_BAR0                        0x50
 #define OEM_BAR1                        0x54