vgabios: Simplify planar4 vgafb code.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 16 Jan 2012 23:48:26 +0000 (18:48 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 20 Jan 2012 02:33:23 +0000 (21:33 -0500)
commit160d34abcea594100f7322ba9d3a774ea33cb2c9
tree50c25d9ca521afd931793afff020561e28801bd5
parent707d2168f528d3aeafc439331669edb3d02260a5
vgabios: Simplify planar4 vgafb code.

Don't bother programming the vga registers to manipulate the
framebuffer when in planar4 mode.  Instead, just switch between the
four planes and do the manipulation with regular reads and writes.
This makes the code simpler to understand (the vga hardware
manipulations are arcane and complex).

Note, this could make text scrolling in planar4 mode slower and more
likely to result in tearing.  However, it's unlikely anything
important uses the vgabios in planar4 mode.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
vgasrc/stdvga.c
vgasrc/stdvga.h
vgasrc/vgafb.c