aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgahw.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-01-09 19:19:44 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-01-14 17:19:25 -0500
commit10dff3db247d07df8fcc83806f8e660ba2b3b6c2 (patch)
tree929c10fbc3ddbcd0f44dc053c896bbf301f6e08e /vgasrc/vgahw.h
parent83047be58ee787b2f3651f6b40e08d54371ecd3a (diff)
downloadseabios-10dff3db247d07df8fcc83806f8e660ba2b3b6c2.tar.gz
vgabios: Extract out common parts of struct vgamode_s.
Extract out the fields in 'struct vgamode_s' that are used in the main code. The remaining fields are specific to the standard vga hardware driver. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgahw.h')
-rw-r--r--vgasrc/vgahw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h
index 23b4f135..55e3bc4c 100644
--- a/vgasrc/vgahw.h
+++ b/vgasrc/vgahw.h
@@ -9,6 +9,10 @@
#include "stdvga.h" // stdvga_set_mode
#include "geodevga.h" // geodevga_init
+static inline struct vgamode_s *vgahw_find_mode(int mode) {
+ return stdvga_find_mode(mode);
+}
+
static inline int vgahw_set_mode(int mode, int flags) {
if (CONFIG_VGA_CIRRUS)
return clext_set_mode(mode, flags);