aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/geodevga.c
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/geodevga.c
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/geodevga.c')
-rw-r--r--vgasrc/geodevga.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vgasrc/geodevga.c b/vgasrc/geodevga.c
index 7735fdca..c1e4244b 100644
--- a/vgasrc/geodevga.c
+++ b/vgasrc/geodevga.c
@@ -367,10 +367,12 @@ int geodevga_init(void)
u8 *crtc = GET_GLOBAL(new_crtc[i]);
if (!crtc)
continue;
- struct vgamode_s *vmode_g = find_vga_entry(i);
+ struct vgamode_s *vmode_g = stdvga_find_mode(i);
if (!vmode_g)
continue;
- SET_VGA(vmode_g->crtc_regs, crtc);
+ struct stdvga_mode_s *stdmode_g = container_of(
+ vmode_g, struct stdvga_mode_s, info);
+ SET_VGA(stdmode_g->crtc_regs, crtc);
}
ret |= vp_setup();