diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-01-14 23:25:24 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-01-16 12:03:14 -0500 |
commit | 69b01cbdb3a1644dc9a8a56e5564339f91b789ab (patch) | |
tree | 18b8269dbb079ea09bb97ffceea19060ea0cd8b4 /vgasrc/geodevga.c | |
parent | b3df857fe6d3fffb108379637ea4a456ce6e09ba (diff) | |
download | seabios-69b01cbdb3a1644dc9a8a56e5564339f91b789ab.tar.gz |
vgabios: Don't have geode code peak into stdvga mode struct.
Create a wrapper (stdvga_override_crtc) so the Geode code doesn't need
to access the stdvga mode tables directly.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/geodevga.c')
-rw-r--r-- | vgasrc/geodevga.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c index 3da1b7c0..d326eda0 100644 --- a/vgasrc/geodevga.c +++ b/vgasrc/geodevga.c @@ -360,14 +360,8 @@ int geodevga_init(void) int i; for (i=0; i<ARRAY_SIZE(new_crtc); i++) { u8 *crtc = GET_GLOBAL(new_crtc[i]); - if (!crtc) - continue; - struct vgamode_s *vmode_g = stdvga_find_mode(i); - if (!vmode_g) - continue; - struct stdvga_mode_s *stdmode_g = container_of( - vmode_g, struct stdvga_mode_s, info); - SET_VGA(stdmode_g->crtc_regs, crtc); + if (crtc) + stdvga_override_crtc(i, crtc); } ret |= vp_setup(); |