13 typedef struct sVesa_Mode
23 typedef struct sVesa_CallModeInfo
26 * 0 : Mode is supported
27 * 1 : Optional information avaliable (Xres onwards)
28 * 2 : BIOS Output Supported
32 * 5 : Mode is not VGA compatible
33 * 6 : Bank switched mode supported
34 * 7 : Linear framebuffer mode supported
35 * 8 : Double-scan mode avaliable
40 * 1 : Window is readable
41 * 2 : Window is writable
46 Uint16 segmentA, segmentB;
48 Uint16 pitch; // Bytes per scanline
51 Uint8 Wchar, Ychar, planes, bpp, banks;
52 Uint8 memory_model, bank_size, image_pages;
56 Uint8 red_mask, red_position;
57 Uint8 green_mask, green_position;
58 Uint8 blue_mask, blue_position;
59 Uint8 rsv_mask, rsv_position;
60 Uint8 directcolor_attributes;
64 Uint32 offscreen_ptr; // Start of offscreen memory
65 Uint16 offscreen_size_kb; // Size of offscreen memory
69 Uint8 image_count_banked;
70 Uint8 image_count_lfb;
73 typedef struct sVesa_CallInfo
75 char signature[4]; // == "VESA"
76 Uint16 Version; // == 0x0300 for Vesa 3.0
77 tFarPtr OEMString; // isa vbeFarPtr
78 Uint8 Capabilities[4];
79 tFarPtr VideoModes; // isa vbeParPtr
80 Uint16 TotalMemory; // as # of 64KB blocks