aboutsummaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-05-16 21:30:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-05-16 21:30:10 -0400
commit21079f4437fb9592f9b52586a6cab78e8085fab0 (patch)
tree9b4a1a76eaafb8c0b0e183efd4055bb27b20f358 /vgasrc
parentd113a99c849b8f6e9780288d140c4a127d4e9d45 (diff)
downloadseabios-hppa-21079f4437fb9592f9b52586a6cab78e8085fab0.zip
seabios-hppa-21079f4437fb9592f9b52586a6cab78e8085fab0.tar.gz
seabios-hppa-21079f4437fb9592f9b52586a6cab78e8085fab0.tar.bz2
VGA: Add calling stubs for vbe functions.
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vga.c10
-rw-r--r--vgasrc/vgatables.h6
2 files changed, 11 insertions, 5 deletions
diff --git a/vgasrc/vga.c b/vgasrc/vga.c
index b94f9f9..a4a3bef 100644
--- a/vgasrc/vga.c
+++ b/vgasrc/vga.c
@@ -235,10 +235,9 @@ biosfn_set_video_mode(u8 mode)
if (CONFIG_CIRRUS)
cirrus_set_video_mode(mode);
-#ifdef VBE
- if (vbe_has_vbe_display())
- dispi_set_enable(VBE_DISPI_DISABLED);
-#endif
+ if (CONFIG_VBE)
+ if (vbe_has_vbe_display())
+ dispi_set_enable(VBE_DISPI_DISABLED);
// The real mode
u8 noclearmem = mode & 0x80;
@@ -2671,7 +2670,8 @@ vga_post(struct bregs *regs)
init_bios_area();
- // vbe_init();
+ if (CONFIG_VBE)
+ vbe_init();
extern void entry_10(void);
SET_IVT(0x10, get_global_seg(), (u32)entry_10);
diff --git a/vgasrc/vgatables.h b/vgasrc/vgatables.h
index 2fc86d5..4fbfb90 100644
--- a/vgasrc/vgatables.h
+++ b/vgasrc/vgatables.h
@@ -124,4 +124,10 @@ u8 biosfn_get_single_palette_reg(u8 reg);
void cirrus_set_video_mode(u8 mode);
void cirrus_init();
+// vbe.c -- not implemented yet.
+#define VBE_DISPI_DISABLED 0x00
+void dispi_set_enable(int enable);
+void vbe_init();
+int vbe_has_vbe_display();
+
#endif // vgatables.h