From e6bc4c1c5817e9c2d1f55b5c0ad5167e93aed418 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 21 Jan 2012 11:26:37 -0500 Subject: 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 --- vgasrc/stdvga.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vgasrc/stdvga.h') 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); -- cgit