aboutsummaryrefslogtreecommitdiff
path: root/vgasrc/stdvgamodes.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-01-14 23:25:24 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-01-16 12:03:14 -0500
commit69b01cbdb3a1644dc9a8a56e5564339f91b789ab (patch)
tree18b8269dbb079ea09bb97ffceea19060ea0cd8b4 /vgasrc/stdvgamodes.c
parentb3df857fe6d3fffb108379637ea4a456ce6e09ba (diff)
downloadseabios-hppa-69b01cbdb3a1644dc9a8a56e5564339f91b789ab.zip
seabios-hppa-69b01cbdb3a1644dc9a8a56e5564339f91b789ab.tar.gz
seabios-hppa-69b01cbdb3a1644dc9a8a56e5564339f91b789ab.tar.bz2
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/stdvgamodes.c')
-rw-r--r--vgasrc/stdvgamodes.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/vgasrc/stdvgamodes.c b/vgasrc/stdvgamodes.c
index 94e273f..08c3a58 100644
--- a/vgasrc/stdvgamodes.c
+++ b/vgasrc/stdvgamodes.c
@@ -360,3 +360,14 @@ stdvga_build_video_param(void)
, ARRAY_SIZE(vparam_g->grdc_regs));
}
}
+
+void
+stdvga_override_crtc(int mode, u8 *crtc)
+{
+ struct vgamode_s *vmode_g = stdvga_find_mode(mode);
+ if (!vmode_g)
+ return;
+ struct stdvga_mode_s *stdmode_g = container_of(
+ vmode_g, struct stdvga_mode_s, info);
+ SET_VGA(stdmode_g->crtc_regs, crtc);
+}