]> xenbits.xensource.com Git - seabios.git/commitdiff
Report stdvga modes in VBE via int10 (AX = 4F00h)
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 1 Sep 2012 15:12:55 +0000 (17:12 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Tue, 11 Sep 2012 00:30:57 +0000 (20:30 -0400)
As all supported graphic adapters are supporting VGA we should
list them in int10 (AX = 4F00h). Also clext.c and bochsvga.c
are haveing a function named like is_XXX_mode() which checks
if its a default VGA mode or a VESA mode. If its a normal VGA
mode stdvga_set_mode() gets called.

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

index 5497da8f6b39adef86c5141ab7b8ea1434f9d243..1756adef0b9ec203cfe3fd9cacc4b5a71b6ab99a 100644 (file)
@@ -334,6 +334,16 @@ stdvga_find_mode(int mode)
 void
 stdvga_list_modes(u16 seg, u16 *dest, u16 *last)
 {
+    int i;
+    for (i = 0; i < ARRAY_SIZE(vga_modes); i++) {
+        struct stdvga_mode_s *stdmode_g = &vga_modes[i];
+        u16 mode = GET_GLOBAL(stdmode_g->mode);
+        if (mode == 0xffff)
+            continue;
+        SET_FARVAR(seg, *dest, mode);
+        dest++;
+    }
+
     SET_FARVAR(seg, *dest, 0xffff);
 }