diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-02-01 21:54:55 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-02-01 22:00:05 -0500 |
commit | 933bb76da7ad08758130a42bab7dc96fb6685b63 (patch) | |
tree | 1e54dcd0668eb0ed9a703105c258b8b23d58c9c1 /vgasrc/bochsvga.h | |
parent | 987029a971f6b1a6b42b17b9cf30b4069866ed96 (diff) | |
download | seabios-933bb76da7ad08758130a42bab7dc96fb6685b63.tar.gz |
vgabios: Move bocshvga mode checking from runtime to init.
Check mode validity at init.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/bochsvga.h')
-rw-r--r-- | vgasrc/bochsvga.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vgasrc/bochsvga.h b/vgasrc/bochsvga.h index d36c92a3..57b2b691 100644 --- a/vgasrc/bochsvga.h +++ b/vgasrc/bochsvga.h @@ -52,9 +52,8 @@ static inline void dispi_write(u16 reg, u16 val) outw(val, VBE_DISPI_IOPORT_DATA); } -int bochsvga_init(void); -void bochsvga_list_modes(u16 seg, u16 *dest, u16 *last); struct vgamode_s *bochsvga_find_mode(int mode); +void bochsvga_list_modes(u16 seg, u16 *dest, u16 *last); int bochsvga_get_window(struct vgamode_s *vmode_g, int window); int bochsvga_set_window(struct vgamode_s *vmode_g, int window, int val); int bochsvga_get_linelength(struct vgamode_s *vmode_g); @@ -62,5 +61,6 @@ int bochsvga_set_linelength(struct vgamode_s *vmode_g, int val); int bochsvga_get_displaystart(struct vgamode_s *vmode_g); int bochsvga_set_displaystart(struct vgamode_s *vmode_g, int val); int bochsvga_set_mode(struct vgamode_s *vmode_g, int flags); +int bochsvga_init(void); #endif // bochsvga.h |