diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-02-05 19:29:08 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-02-05 19:29:08 -0500 |
commit | da6a15762b07028926fe0d78b1b54153c4f0c560 (patch) | |
tree | 8530ba480598094dbce8258489427f30757fd488 /vgasrc/vgabios.h | |
parent | f5ec1e0a5e2f0b12ed4fd250f6bfeabb0feacd25 (diff) | |
download | seabios-da6a15762b07028926fe0d78b1b54153c4f0c560.tar.gz |
vgabios: Simplify the bios save state area.
The structure of the "bios save state area" as returned by
handle_101c() and vbe_104f04() does not follow any particular order.
(And there does not appear to be any documentation that would require
it to follow a particular order.)
So, rearrange the layout of the struct to make save and restore
simpler.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.h')
-rw-r--r-- | vgasrc/vgabios.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/vgasrc/vgabios.h b/vgasrc/vgabios.h index 800b61fc..f58e4988 100644 --- a/vgasrc/vgabios.h +++ b/vgasrc/vgabios.h @@ -20,20 +20,9 @@ struct VideoParam_s { extern struct VideoParam_s video_param_table[29]; struct saveBDAstate { - u16 video_mode; - u16 video_cols; - u16 video_pagesize; - u16 crtc_address; - u8 video_rows; - u16 char_height; - u8 video_ctl; - u8 video_switches; - u8 modeset_ctl; - u16 cursor_type; - u16 cursor_pos[8]; - u16 video_pagestart; - u8 video_page; - /* current font */ + u8 bda_0x49[28]; + u8 bda_0x84[6]; + u16 vbe_mode; struct segoff_s font0; struct segoff_s font1; }; |