diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-01-13 20:00:35 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-01-14 17:19:45 -0500 |
commit | 3339c05f19468f87da84ab059cf4ee5375abfa55 (patch) | |
tree | 6bd239b56d6c530716369fd29988a4b94637a7f6 /vgasrc/vgabios.h | |
parent | 34203cdf8a89c747e221005850a4558252235360 (diff) | |
download | seabios-3339c05f19468f87da84ab059cf4ee5375abfa55.tar.gz |
vgabios: Make VBE code independent of bochsvga.
Introduce new global variables (VBE_enabled, VBE_total_memory,
VBE_capabilities, VBE_framebuffer) to replace the need for function
calls that were specific to bochsvga.
Replace info received from bochsvga_mode_info with info found in
vgahw_find_mode.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.h')
-rw-r--r-- | vgasrc/vgabios.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/vgasrc/vgabios.h b/vgasrc/vgabios.h index 3416b98f..464100b2 100644 --- a/vgasrc/vgabios.h +++ b/vgasrc/vgabios.h @@ -83,21 +83,14 @@ void vgafb_write_pixel(u8 color, u16 x, u16 y); u8 vgafb_read_pixel(u16 x, u16 y); // vbe.c +int VBE_enabled; +u32 VBE_total_memory; +u32 VBE_capabilities; +u32 VBE_framebuffer; #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" - -struct vbe_modeinfo -{ - u16 width; - u16 height; - u8 depth; - u16 linesize; - u32 phys_base; - u32 vram_size; -}; - struct bregs; void handle_104f(struct bregs *regs); |