diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2011-12-31 19:42:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2011-12-31 19:45:14 -0500 |
commit | 161d201affa5dd23a39a0de9a0743b857448c4b6 (patch) | |
tree | ca0a53497dcb2abf3aae97432d8c04e27b700d09 /vgasrc/clext.c | |
parent | 5108c69c47e18244206593c0c7918711311d8ef3 (diff) | |
download | seabios-161d201affa5dd23a39a0de9a0743b857448c4b6.tar.gz |
vgabios: Unify X_init() functions.
Use the same function signature for cirrus, bochsvga, geodelx, and
stdvga init code.
Have each hardware type explicitly call stdvga_init when needed.
To unify bochsvga_init() signature, store the device BDF passed into
the optionrom init code in a global variable (VgaBDF).
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/clext.c')
-rw-r--r-- | vgasrc/clext.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vgasrc/clext.c b/vgasrc/clext.c index f468002c..afab5820 100644 --- a/vgasrc/clext.c +++ b/vgasrc/clext.c @@ -932,12 +932,16 @@ cirrus_vesa(struct bregs *regs) * init ****************************************************************/ -void +int clext_init(void) { + int ret = stdvga_init(); + if (ret) + return ret; + dprintf(1, "cirrus init\n"); if (! cirrus_check()) - return; + return -1; dprintf(1, "cirrus init 2\n"); // memory setup @@ -949,4 +953,6 @@ clext_init(void) // reset bitblt outw(0x0431, VGAREG_GRDC_ADDRESS); outw(0x0031, VGAREG_GRDC_ADDRESS); + + return 0; } |