aboutsummaryrefslogtreecommitdiff
path: root/vgasrc/stdvga.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2011-12-31 18:19:22 -0500
committerKevin O'Connor <kevin@koconnor.net>2011-12-31 18:19:22 -0500
commit821d6b410e02897f84c4b732f3678f64e396c9cf (patch)
treec77eff40c3098d16f76c29f7332a2a367eb6afa7 /vgasrc/stdvga.h
parentcecbc5da2c5826e35ba402b448f736fe3fa5008d (diff)
downloadseabios-hppa-821d6b410e02897f84c4b732f3678f64e396c9cf.zip
seabios-hppa-821d6b410e02897f84c4b732f3678f64e396c9cf.tar.gz
seabios-hppa-821d6b410e02897f84c4b732f3678f64e396c9cf.tar.bz2
vgabios: Refactor vga_set_mode and stdvga_set_mode.
Split out the BDA setup part of vga_set_mode to new function modeswitch_set_bda. Move the remaining parts (palette loading, screen clearing, font loading) of vga_set_mode into stdvga_set_mode. Add new mode switching flags and pass them to stdvga_set_mode, so it does not need to inspect modeset_ctl directly. Move code needed by stdvga_set_mode (perform_gray_scale_summing, clear_screen) to stdvga.c. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/stdvga.h')
-rw-r--r--vgasrc/stdvga.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/vgasrc/stdvga.h b/vgasrc/stdvga.h
index fb98304..ac5dea4 100644
--- a/vgasrc/stdvga.h
+++ b/vgasrc/stdvga.h
@@ -105,8 +105,6 @@ struct saveDACcolors {
u8 color_select;
};
-void stdvga_screen_disable(void);
-void stdvga_screen_enable(void);
void stdvga_set_border_color(u8 color);
void stdvga_set_overscan_border_color(u8 color);
u8 stdvga_get_overscan_border_color(void);
@@ -124,6 +122,7 @@ void stdvga_set_pel_mask(u8 val);
u8 stdvga_get_pel_mask(void);
void stdvga_save_dac_state(u16 seg, struct saveDACcolors *info);
void stdvga_restore_dac_state(u16 seg, struct saveDACcolors *info);
+void stdvga_perform_gray_scale_summing(u16 start, u16 count);
void stdvga_sequ_write(u8 index, u8 value);
void stdvga_grdc_write(u8 index, u8 value);
void stdvga_set_text_block_specifier(u8 spec);
@@ -137,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);
-void stdvga_set_mode(struct vgamode_s *vmode_g);
+void stdvga_set_mode(int mode, int flags);
void stdvga_enable_video_addressing(u8 disable);
void stdvga_init(void);