aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/stdvga.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-01-21 11:26:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-02-01 20:35:48 -0500
commite6bc4c1c5817e9c2d1f55b5c0ad5167e93aed418 (patch)
tree000d400718d26759e7b48f915a622ade7bb3d42a /vgasrc/stdvga.h
parent4a73f933968e5cf6f2a6ce1ad87448dd6b136e48 (diff)
downloadseabios-e6bc4c1c5817e9c2d1f55b5c0ad5167e93aed418.tar.gz
vgabios: Move BDA setting from driver code to common code.
Always setup the BDA on a mode switch. Call that BDA setup code unconditionally. Also, always set vbe_mode and use that for finding the current mode and for reporting the mode to vbe callers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/stdvga.h')
-rw-r--r--vgasrc/stdvga.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vgasrc/stdvga.h b/vgasrc/stdvga.h
index ee143581..cc93f0d9 100644
--- a/vgasrc/stdvga.h
+++ b/vgasrc/stdvga.h
@@ -84,6 +84,7 @@ struct saveDACcolors {
// stdvgamodes.c
struct vgamode_s *stdvga_find_mode(int mode);
+int stdvga_is_mode(struct vgamode_s *vmode_g);
void stdvga_build_video_param(void);
void stdvga_override_crtc(int mode, u8 *crtc);
@@ -135,7 +136,7 @@ void stdvga_set_scan_lines(u8 lines);
u16 stdvga_get_vde(void);
void stdvga_save_state(u16 seg, struct saveVideoHardware *info);
void stdvga_restore_state(u16 seg, struct saveVideoHardware *info);
-int stdvga_set_mode(int mode, int flags);
+int stdvga_set_mode(struct vgamode_s *vmode_g, int flags);
void stdvga_enable_video_addressing(u8 disable);
void stdvga_list_modes(u16 seg, u16 *dest, u16 *last);
int stdvga_init(void);