vgabios: Refactor vga_set_mode and stdvga_set_mode.
[seabios.git] / vgasrc / bochsvga.c
index 99d40413abf91dc31473133e57ed3881af2ca73f..4ba6611ca9ad9dc564fc433259d72f3fd0a608a9 100644 (file)
@@ -1,9 +1,10 @@
-#include "vgatables.h"
+#include "vgabios.h" // struct vbe_modeinfo
 #include "vbe.h"
 #include "bochsvga.h"
 #include "util.h"
-#include "config.h" // CONFIG_
+#include "config.h" // CONFIG_*
 #include "biosvar.h" // SET_BDA
+#include "stdvga.h" // VGAREG_SEQU_ADDRESS
 
 static struct mode
 {
@@ -262,7 +263,7 @@ void
 bochsvga_set_mode(u16 mode, struct vbe_modeinfo *info)
 {
     if (info->depth == 4)
-        vga_set_mode(0x6a, 0);
+        stdvga_set_mode(0x6a, 0);
     if (info->depth == 8)
         // XXX load_dac_palette(3);
         ;