2 * Acess2 Kernel VBE Driver
3 * - By John Hodge (thePowersGang)
6 * - Definitions for VBE structures
11 typedef struct sFarPtr
17 typedef struct sVesa_CallModeInfo
20 * 0 : Mode is supported
21 * 1 : Optional information avaliable (Xres onwards)
22 * 2 : BIOS Output Supported
26 * 5 : Mode is not VGA compatible
27 * 6 : Bank switched mode supported
28 * 7 : Linear framebuffer mode supported
29 * 8 : Double-scan mode avaliable
34 * 1 : Window is readable
35 * 2 : Window is writable
40 Uint16 segmentA, segmentB;
42 Uint16 pitch; // Bytes per scanline
45 Uint8 Wchar, Ychar, planes, bpp, banks;
46 Uint8 memory_model, bank_size, image_pages;
50 Uint8 red_mask, red_position;
51 Uint8 green_mask, green_position;
52 Uint8 blue_mask, blue_position;
53 Uint8 rsv_mask, rsv_position;
54 Uint8 directcolor_attributes;
58 Uint32 offscreen_ptr; // Start of offscreen memory
59 Uint16 offscreen_size_kb; // Size of offscreen memory
63 Uint8 image_count_banked;
64 Uint8 image_count_lfb;
65 } PACKED tVesa_CallModeInfo;
67 typedef struct sVesa_CallInfo
69 char signature[4]; // == "VESA"
70 Uint16 Version; // == 0x0300 for Vesa 3.0
71 tFarPtr OEMString; // isa vbeFarPtr
72 Uint8 Capabilities[4];
73 tFarPtr VideoModes; // isa vbeParPtr
74 Uint16 TotalMemory; // as # of 64KB blocks
75 } PACKED tVesa_CallInfo;