[SeaBIOS] [PATCH 03/15] Remove Extened CRTC Register functions

Christian Gmeiner christian.gmeiner at gmail.com
Sat Sep 1 17:12:54 CEST 2012


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 at gmail.com>
---
 vgasrc/geodevga.c | 29 -----------------------------
 vgasrc/geodevga.h |  7 -------
 2 files changed, 36 deletions(-)

diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c
index 2cf11a0..ae606a7 100644
--- a/vgasrc/geodevga.c
+++ b/vgasrc/geodevga.c
@@ -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
diff --git a/vgasrc/geodevga.h b/vgasrc/geodevga.h
index fd7ce43..7098037 100644
--- a/vgasrc/geodevga.h
+++ b/vgasrc/geodevga.h
@@ -13,13 +13,6 @@
 #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
-- 
1.7.11.rc2.5.g68f532f




More information about the SeaBIOS mailing list