diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-01-21 11:53:44 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-02-01 20:37:02 -0500 |
commit | 9961f9958cbc169c531dbdb7c3a8f71d4f79d0c1 (patch) | |
tree | 3d0f86a96d966e42ef476bfb3b6d6808ed7f1eb5 /vgasrc/vgahw.h | |
parent | e6bc4c1c5817e9c2d1f55b5c0ad5167e93aed418 (diff) | |
download | seabios-9961f9958cbc169c531dbdb7c3a8f71d4f79d0c1.tar.gz |
vgabios: Add support for vesa get/set window function.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgahw.h')
-rw-r--r-- | vgasrc/vgahw.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index bb5112a6..ca8798cb 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -44,4 +44,21 @@ static inline int vgahw_init(void) { return stdvga_init(); } +static inline int vgahw_get_window(struct vgamode_s *vmode_g, int window) { + if (CONFIG_VGA_CIRRUS) + return clext_get_window(vmode_g, window); + if (CONFIG_VGA_BOCHS) + return bochsvga_get_window(vmode_g, window); + return stdvga_get_window(vmode_g, window); +} + +static inline int vgahw_set_window(struct vgamode_s *vmode_g, int window + , int val) { + if (CONFIG_VGA_CIRRUS) + return clext_set_window(vmode_g, window, val); + if (CONFIG_VGA_BOCHS) + return bochsvga_set_window(vmode_g, window, val); + return stdvga_set_window(vmode_g, window, val); +} + #endif // vgahw.h |