aboutsummaryrefslogtreecommitdiff
path: root/vgasrc/vgafb.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/vgafb.c
parent83047be58ee787b2f3651f6b40e08d54371ecd3a (diff)
downloadseabios-hppa-10dff3db247d07df8fcc83806f8e660ba2b3b6c2.zip
seabios-hppa-10dff3db247d07df8fcc83806f8e660ba2b3b6c2.tar.gz
seabios-hppa-10dff3db247d07df8fcc83806f8e660ba2b3b6c2.tar.bz2
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/vgafb.c')
-rw-r--r--vgasrc/vgafb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/vgasrc/vgafb.c b/vgasrc/vgafb.c
index b933738..b6daba6 100644
--- a/vgasrc/vgafb.c
+++ b/vgasrc/vgafb.c
@@ -7,7 +7,7 @@
#include "biosvar.h" // GET_BDA
#include "util.h" // memset_far
-#include "vgabios.h" // find_vga_entry
+#include "vgahw.h" // vgahw_find_mode
#include "stdvga.h" // stdvga_grdc_write
@@ -168,7 +168,7 @@ void
vgafb_scroll(int nblines, int attr, struct cursorpos ul, struct cursorpos lr)
{
// Get the mode
- struct vgamode_s *vmode_g = find_vga_entry(GET_BDA(video_mode));
+ struct vgamode_s *vmode_g = vgahw_find_mode(GET_BDA(video_mode));
if (!vmode_g)
return;
@@ -345,7 +345,7 @@ void
vgafb_write_char(struct cursorpos cp, struct carattr ca)
{
// Get the mode
- struct vgamode_s *vmode_g = find_vga_entry(GET_BDA(video_mode));
+ struct vgamode_s *vmode_g = vgahw_find_mode(GET_BDA(video_mode));
if (!vmode_g)
return;
@@ -371,7 +371,7 @@ struct carattr
vgafb_read_char(struct cursorpos cp)
{
// Get the mode
- struct vgamode_s *vmode_g = find_vga_entry(GET_BDA(video_mode));
+ struct vgamode_s *vmode_g = vgahw_find_mode(GET_BDA(video_mode));
if (!vmode_g)
goto fail;
@@ -403,7 +403,7 @@ void
vgafb_write_pixel(u8 color, u16 x, u16 y)
{
// Get the mode
- struct vgamode_s *vmode_g = find_vga_entry(GET_BDA(video_mode));
+ struct vgamode_s *vmode_g = vgahw_find_mode(GET_BDA(video_mode));
if (!vmode_g)
return;
@@ -459,7 +459,7 @@ u8
vgafb_read_pixel(u16 x, u16 y)
{
// Get the mode
- struct vgamode_s *vmode_g = find_vga_entry(GET_BDA(video_mode));
+ struct vgamode_s *vmode_g = vgahw_find_mode(GET_BDA(video_mode));
if (!vmode_g)
return 0;