diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-08-05 11:14:58 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-08-05 11:28:19 -0400 |
commit | 2f2ec113beac2b9b1614a25a0992b03bf599eac5 (patch) | |
tree | 76bea95e2c00159b2612c4f1fdaf34d25003f31c /vgasrc/vgabios.h | |
parent | 536129ac3a434409cf9881706c55d7efd67b231e (diff) | |
download | seabios-hppa-2f2ec113beac2b9b1614a25a0992b03bf599eac5.zip seabios-hppa-2f2ec113beac2b9b1614a25a0992b03bf599eac5.tar.gz seabios-hppa-2f2ec113beac2b9b1614a25a0992b03bf599eac5.tar.bz2 |
vgautil: Add new header file with misc function and variable definitions
Move the generic function and variable definitions from vgabios.h to a
new file vgautil.h. This reduces the size and complexity of
vgabios.h.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.h')
-rw-r--r-- | vgasrc/vgabios.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/vgasrc/vgabios.h b/vgasrc/vgabios.h index 2176ec6..3d5bbfe 100644 --- a/vgasrc/vgabios.h +++ b/vgasrc/vgabios.h @@ -68,23 +68,14 @@ static inline int vga_emulate_text(void) { return CONFIG_VGA_EMULATE_TEXT && GET_BDA_EXT(flags) & BF_EMULATE_TEXT; } +// Write to global variables (during "post" phase only) +#define SET_VGA(var, val) SET_FARVAR(get_global_seg(), (var), (val)) + // Debug settings #define DEBUG_VGA_POST 1 #define DEBUG_VGA_10 3 -// vgafonts.c -extern u8 vgafont8[]; -extern u8 vgafont14[]; -extern u8 vgafont16[]; -extern u8 vgafont14alt[]; -extern u8 vgafont16alt[]; - -// vgainit.c -extern int VgaBDF; -extern int HaveRunInit; - // vgabios.c -#define SET_VGA(var, val) SET_FARVAR(get_global_seg(), (var), (val)) int vga_bpp(struct vgamode_s *vmode_g); u16 calc_page_size(u8 memmodel, u16 width, u16 height); u16 get_cursor_shape(void); @@ -94,20 +85,4 @@ struct vgamode_s *get_current_mode(void); int vga_set_mode(int mode, int flags); extern struct video_func_static static_functionality; -// swcursor.c -struct bregs; -void swcursor_pre_handle10(struct bregs *regs); -void swcursor_check_event(void); - -// vbe.c -extern u32 VBE_total_memory; -extern u32 VBE_capabilities; -extern u32 VBE_framebuffer; -extern u16 VBE_win_granularity; -#define VBE_OEM_STRING "SeaBIOS VBE(C) 2011" -#define VBE_VENDOR_STRING "SeaBIOS Developers" -#define VBE_PRODUCT_STRING "SeaBIOS VBE Adapter" -#define VBE_REVISION_STRING "Rev. 1" -void handle_104f(struct bregs *regs); - #endif // vgabios.h |