Rename CONFIG_VBE in CONFIG_VGA_BOCHS and CONFIG_CIRRUS in CONFIG_VGA_CIRRUS
authorJulian Pidancet <julian.pidancet@gmail.com>
Mon, 19 Dec 2011 05:07:53 +0000 (05:07 +0000)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 21 Dec 2011 04:13:05 +0000 (23:13 -0500)
Signed-off-by: Julian Pidancet <julian.pidancet@gmail.com>
vgasrc/vga.c
vgasrc/vgatables.h

index d734e2355b111d868150bac71a7e9e31d77447a5..b515d1d589a78f604797dd708f571f276fddfd55 100644 (file)
@@ -17,8 +17,8 @@
 #include "vgatables.h" // find_vga_entry
 
 // XXX
-#define CONFIG_VBE 0
-#define CONFIG_CIRRUS 0
+#define CONFIG_VGA_BOCHS 0
+#define CONFIG_VGA_CIRRUS 0
 
 // XXX
 #define DEBUG_VGA_POST 1
@@ -359,11 +359,11 @@ handle_1000(struct bregs *regs)
     else
         regs->al = 0x30;
 
-    if (CONFIG_CIRRUS)
+    if (CONFIG_VGA_CIRRUS)
         cirrus_set_video_mode(mode);
 
-    if (CONFIG_VBE)
-        if (vbe_has_vbe_display())
+    if (CONFIG_VGA_BOCHS)
+        if (bochs_has_vbe_display())
             dispi_set_enable(VBE_DISPI_DISABLED);
 
     // find the entry in the video modes
@@ -1263,7 +1263,7 @@ handle_104fXX(struct bregs *regs)
 static void
 handle_104f(struct bregs *regs)
 {
-    if (! CONFIG_VBE || !vbe_has_vbe_display()) {
+    if (! CONFIG_VGA_BOCHS || !bochs_has_vbe_display()) {
         handle_104fXX(regs);
         return;
     }
@@ -1364,13 +1364,13 @@ vga_post(struct bregs *regs)
 
     init_bios_area();
 
-    if (CONFIG_VBE)
-        vbe_init();
+    if (CONFIG_VGA_BOCHS)
+        bochs_init();
 
     extern void entry_10(void);
     SET_IVT(0x10, SEGOFF(get_global_seg(), (u32)entry_10));
 
-    if (CONFIG_CIRRUS)
+    if (CONFIG_VGA_CIRRUS)
         cirrus_init();
 
     // XXX - clear screen and display info
index 1e76b3aafe7117ea25c6a7a876b1c7c02efbf0db..1f877c562630bd3fac580b2373790016491085f1 100644 (file)
@@ -211,7 +211,7 @@ void cirrus_init(void);
 // vbe.c -- not implemented yet.
 #define VBE_DISPI_DISABLED              0x00
 void dispi_set_enable(int enable);
-void vbe_init(void);
-int vbe_has_vbe_display(void);
+void bochs_init(void);
+int bochs_has_vbe_display(void);
 
 #endif // vgatables.h