diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-01-24 00:07:44 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-02-01 20:38:49 -0500 |
commit | 3876b531222c53124b0eb154fb331c0c662f5e09 (patch) | |
tree | 23f39e04767b1da3b8983ab1432821ee95bdc42c /vgasrc/vgahw.h | |
parent | 9961f9958cbc169c531dbdb7c3a8f71d4f79d0c1 (diff) | |
download | seabios-3876b531222c53124b0eb154fb331c0c662f5e09.tar.gz |
vgabios: Add support for vbe get/set line length function.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgahw.h')
-rw-r--r-- | vgasrc/vgahw.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index ca8798cb..494309b3 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -61,4 +61,20 @@ static inline int vgahw_set_window(struct vgamode_s *vmode_g, int window return stdvga_set_window(vmode_g, window, val); } +static inline int vgahw_get_linelength(struct vgamode_s *vmode_g) { + if (CONFIG_VGA_CIRRUS) + return clext_get_linelength(vmode_g); + if (CONFIG_VGA_BOCHS) + return bochsvga_get_linelength(vmode_g); + return stdvga_get_linelength(vmode_g); +} + +static inline int vgahw_set_linelength(struct vgamode_s *vmode_g, int val) { + if (CONFIG_VGA_CIRRUS) + return clext_set_linelength(vmode_g, val); + if (CONFIG_VGA_BOCHS) + return bochsvga_set_linelength(vmode_g, val); + return stdvga_set_linelength(vmode_g, val); +} + #endif // vgahw.h |