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/stdvga.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/stdvga.c')
-rw-r--r-- | vgasrc/stdvga.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c index e55f8fa7..c7331e45 100644 --- a/vgasrc/stdvga.c +++ b/vgasrc/stdvga.c @@ -649,7 +649,7 @@ stdvga_enable_video_addressing(u8 disable) outb(v | v2, VGAREG_WRITE_MISC_OUTPUT); } -void +int stdvga_init(void) { // switch to color mode and enable CPU access 480 lines @@ -657,4 +657,6 @@ stdvga_init(void) // more than 64k 3C4/04 outb(0x04, VGAREG_SEQU_ADDRESS); outb(0x02, VGAREG_SEQU_DATA); + + return 0; } |