1 | #ifndef vbetables_h_included
|
---|
2 | #define vbetables_h_included
|
---|
3 |
|
---|
4 | /* vbetables.h
|
---|
5 |
|
---|
6 | This file contains a static mode information list containing all
|
---|
7 | bochs/plex86 "supported" VBE modi and their 'settings'.
|
---|
8 |
|
---|
9 | */
|
---|
10 |
|
---|
11 | typedef struct ModeInfoListItem
|
---|
12 | {
|
---|
13 | Bit16u mode;
|
---|
14 | ModeInfoBlockCompact info;
|
---|
15 | } ModeInfoListItem;
|
---|
16 |
|
---|
17 | #ifndef VBE_NEW_DYN_LIST
|
---|
18 |
|
---|
19 | // FIXME: check all member variables to be correct for the different modi
|
---|
20 | // FIXME: add more modi
|
---|
21 | static ModeInfoListItem mode_info_list[]=
|
---|
22 | {
|
---|
23 | {
|
---|
24 | VBE_VESA_MODE_640X400X8,
|
---|
25 | {
|
---|
26 | /*typedef struct ModeInfoBlock
|
---|
27 | {*/
|
---|
28 | // Mandatory information for all VBE revisions
|
---|
29 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
30 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
31 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
32 | #ifdef VBE_HAVE_LFB
|
---|
33 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
34 | #endif
|
---|
35 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
36 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
37 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
38 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
39 | /*Bit8u WinBAttributes*/ 0,
|
---|
40 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
41 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
42 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
43 | /*Bit16u WinBSegment*/ 0,
|
---|
44 | /*Bit32u WinFuncPtr*/ 0,
|
---|
45 | /*Bit16u BytesPerScanLine*/ 640,
|
---|
46 | // Mandatory information for VBE 1.2 and above
|
---|
47 | /*Bit16u XResolution*/ 640,
|
---|
48 | /*Bit16u YResolution*/ 400,
|
---|
49 | /*Bit8u XCharSize*/ 8,
|
---|
50 | /*Bit8u YCharSize*/ 16,
|
---|
51 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
52 | /*Bit8u BitsPerPixel*/ 8,
|
---|
53 | /*Bit8u NumberOfBanks*/ 4, // 640x400/64kb == 4
|
---|
54 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_PACKED_PIXEL,
|
---|
55 | /*Bit8u BankSize*/ 0,
|
---|
56 | /*Bit8u NumberOfImagePages*/ 15,
|
---|
57 | /*Bit8u Reserved_page*/ 0,
|
---|
58 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
59 | /*Bit8u RedMaskSize*/ 0,
|
---|
60 | /*Bit8u RedFieldPosition*/ 0,
|
---|
61 | /*Bit8u GreenMaskSize*/ 0,
|
---|
62 | /*Bit8u GreenFieldPosition*/ 0,
|
---|
63 | /*Bit8u BlueMaskSize*/ 0,
|
---|
64 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
65 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
66 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
67 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
68 | // Mandatory information for VBE 2.0 and above
|
---|
69 | #ifdef VBE_HAVE_LFB
|
---|
70 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
71 | #else
|
---|
72 | /*Bit32u PhysBasePtr*/ 0,
|
---|
73 | #endif
|
---|
74 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
75 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
76 | // Mandatory information for VBE 3.0 and above
|
---|
77 | /*Bit16u LinBytesPerScanLine*/ 640,
|
---|
78 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
79 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
80 | /*Bit8u LinRedMaskSize*/ 0,
|
---|
81 | /*Bit8u LinRedFieldPosition*/ 0,
|
---|
82 | /*Bit8u LinGreenMaskSize*/ 0,
|
---|
83 | /*Bit8u LinGreenFieldPosition*/ 0,
|
---|
84 | /*Bit8u LinBlueMaskSize*/ 0,
|
---|
85 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
86 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
87 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
88 | /*Bit32u MaxPixelClock*/ 0,
|
---|
89 | /*} ModeInfoBlock;*/
|
---|
90 | }
|
---|
91 | },
|
---|
92 |
|
---|
93 | {
|
---|
94 | VBE_VESA_MODE_640X480X8,
|
---|
95 | {
|
---|
96 | /*typedef struct ModeInfoBlock
|
---|
97 | {*/
|
---|
98 | // Mandatory information for all VBE revisions
|
---|
99 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
100 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
101 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
102 | #ifdef VBE_HAVE_LFB
|
---|
103 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
104 | #endif
|
---|
105 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
106 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
107 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
108 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
109 | /*Bit8u WinBAttributes*/ 0,
|
---|
110 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
111 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
112 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
113 | /*Bit16u WinBSegment*/ 0,
|
---|
114 | /*Bit32u WinFuncPtr*/ 0,
|
---|
115 | /*Bit16u BytesPerScanLine*/ 640,
|
---|
116 | // Mandatory information for VBE 1.2 and above
|
---|
117 | /*Bit16u XResolution*/ 640,
|
---|
118 | /*Bit16u YResolution*/ 480,
|
---|
119 | /*Bit8u XCharSize*/ 8,
|
---|
120 | /*Bit8u YCharSize*/ 16,
|
---|
121 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
122 | /*Bit8u BitsPerPixel*/ 8,
|
---|
123 | /*Bit8u NumberOfBanks*/ 5, // 640x480/64kb == 5
|
---|
124 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_PACKED_PIXEL,
|
---|
125 | /*Bit8u BankSize*/ 0,
|
---|
126 | /*Bit8u NumberOfImagePages*/ 11,
|
---|
127 | /*Bit8u Reserved_page*/ 0,
|
---|
128 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
129 | /*Bit8u RedMaskSize*/ 0,
|
---|
130 | /*Bit8u RedFieldPosition*/ 0,
|
---|
131 | /*Bit8u GreenMaskSize*/ 0,
|
---|
132 | /*Bit8u GreenFieldPosition*/ 0,
|
---|
133 | /*Bit8u BlueMaskSize*/ 0,
|
---|
134 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
135 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
136 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
137 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
138 | // Mandatory information for VBE 2.0 and above
|
---|
139 | #ifdef VBE_HAVE_LFB
|
---|
140 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
141 | #else
|
---|
142 | /*Bit32u PhysBasePtr*/ 0,
|
---|
143 | #endif
|
---|
144 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
145 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
146 | // Mandatory information for VBE 3.0 and above
|
---|
147 | /*Bit16u LinBytesPerScanLine*/ 640,
|
---|
148 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
149 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
150 | /*Bit8u LinRedMaskSize*/ 0,
|
---|
151 | /*Bit8u LinRedFieldPosition*/ 0,
|
---|
152 | /*Bit8u LinGreenMaskSize*/ 0,
|
---|
153 | /*Bit8u LinGreenFieldPosition*/ 0,
|
---|
154 | /*Bit8u LinBlueMaskSize*/ 0,
|
---|
155 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
156 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
157 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
158 | /*Bit32u MaxPixelClock*/ 0,
|
---|
159 | /*} ModeInfoBlock;*/
|
---|
160 | }
|
---|
161 | },
|
---|
162 |
|
---|
163 | {
|
---|
164 | VBE_VESA_MODE_800X600X4,
|
---|
165 | {
|
---|
166 | /*typedef struct ModeInfoBlock
|
---|
167 | {*/
|
---|
168 | // Mandatory information for all VBE revisions
|
---|
169 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
170 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
171 | VBE_MODE_ATTRIBUTE_TTY_BIOS_SUPPORT |
|
---|
172 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
173 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
174 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
175 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
176 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
177 | /*Bit8u WinBAttributes*/ 0,
|
---|
178 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
179 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
180 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
181 | /*Bit16u WinBSegment*/ 0,
|
---|
182 | /*Bit32u WinFuncPtr*/ 0,
|
---|
183 | /*Bit16u BytesPerScanLine*/ 100,
|
---|
184 | // Mandatory information for VBE 1.2 and above
|
---|
185 | /*Bit16u XResolution*/ 800,
|
---|
186 | /*Bit16u YResolution*/ 600,
|
---|
187 | /*Bit8u XCharSize*/ 8,
|
---|
188 | /*Bit8u YCharSize*/ 16,
|
---|
189 | /*Bit8u NumberOfPlanes*/ 4,
|
---|
190 | /*Bit8u BitsPerPixel*/ 4,
|
---|
191 | /*Bit8u NumberOfBanks*/ 16,
|
---|
192 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_PLANAR,
|
---|
193 | /*Bit8u BankSize*/ 0,
|
---|
194 | /*Bit8u NumberOfImagePages*/ 15,
|
---|
195 | /*Bit8u Reserved_page*/ 0,
|
---|
196 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
197 | /*Bit8u RedMaskSize*/ 0,
|
---|
198 | /*Bit8u RedFieldPosition*/ 0,
|
---|
199 | /*Bit8u GreenMaskSize*/ 0,
|
---|
200 | /*Bit8u GreenFieldPosition*/ 0,
|
---|
201 | /*Bit8u BlueMaskSize*/ 0,
|
---|
202 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
203 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
204 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
205 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
206 | // Mandatory information for VBE 2.0 and above
|
---|
207 | /*Bit32u PhysBasePtr*/ 0,
|
---|
208 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
209 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
210 | // Mandatory information for VBE 3.0 and above
|
---|
211 | /*Bit16u LinBytesPerScanLine*/ 100,
|
---|
212 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
213 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
214 | /*Bit8u LinRedMaskSize*/ 0,
|
---|
215 | /*Bit8u LinRedFieldPosition*/ 0,
|
---|
216 | /*Bit8u LinGreenMaskSize*/ 0,
|
---|
217 | /*Bit8u LinGreenFieldPosition*/ 0,
|
---|
218 | /*Bit8u LinBlueMaskSize*/ 0,
|
---|
219 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
220 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
221 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
222 | /*Bit32u MaxPixelClock*/ 0,
|
---|
223 | /*} ModeInfoBlock;*/
|
---|
224 | }
|
---|
225 | },
|
---|
226 |
|
---|
227 | {
|
---|
228 | VBE_VESA_MODE_800X600X8,
|
---|
229 | {
|
---|
230 | /*typedef struct ModeInfoBlock
|
---|
231 | {*/
|
---|
232 | // Mandatory information for all VBE revisions
|
---|
233 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
234 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
235 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
236 | #ifdef VBE_HAVE_LFB
|
---|
237 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
238 | #endif
|
---|
239 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
240 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
241 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
242 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
243 | /*Bit8u WinBAttributes*/ 0,
|
---|
244 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
245 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
246 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
247 | /*Bit16u WinBSegment*/ 0,
|
---|
248 | /*Bit32u WinFuncPtr*/ 0,
|
---|
249 | /*Bit16u BytesPerScanLine*/ 800,
|
---|
250 | // Mandatory information for VBE 1.2 and above
|
---|
251 | /*Bit16u XResolution*/ 800,
|
---|
252 | /*Bit16u YResolution*/ 600,
|
---|
253 | /*Bit8u XCharSize*/ 8,
|
---|
254 | /*Bit8u YCharSize*/ 16,
|
---|
255 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
256 | /*Bit8u BitsPerPixel*/ 8,
|
---|
257 | /*Bit8u NumberOfBanks*/ 8, // 800x600/64kb == 8
|
---|
258 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_PACKED_PIXEL,
|
---|
259 | /*Bit8u BankSize*/ 0,
|
---|
260 | /*Bit8u NumberOfImagePages*/ 7,
|
---|
261 | /*Bit8u Reserved_page*/ 0,
|
---|
262 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
263 | /*Bit8u RedMaskSize*/ 0,
|
---|
264 | /*Bit8u RedFieldPosition*/ 0,
|
---|
265 | /*Bit8u GreenMaskSize*/ 0,
|
---|
266 | /*Bit8u GreenFieldPosition*/ 0,
|
---|
267 | /*Bit8u BlueMaskSize*/ 0,
|
---|
268 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
269 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
270 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
271 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
272 | // Mandatory information for VBE 2.0 and above
|
---|
273 | #ifdef VBE_HAVE_LFB
|
---|
274 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
275 | #else
|
---|
276 | /*Bit32u PhysBasePtr*/ 0,
|
---|
277 | #endif
|
---|
278 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
279 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
280 | // Mandatory information for VBE 3.0 and above
|
---|
281 | /*Bit16u LinBytesPerScanLine*/ 800,
|
---|
282 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
283 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
284 | /*Bit8u LinRedMaskSize*/ 0,
|
---|
285 | /*Bit8u LinRedFieldPosition*/ 0,
|
---|
286 | /*Bit8u LinGreenMaskSize*/ 0,
|
---|
287 | /*Bit8u LinGreenFieldPosition*/ 0,
|
---|
288 | /*Bit8u LinBlueMaskSize*/ 0,
|
---|
289 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
290 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
291 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
292 | /*Bit32u MaxPixelClock*/ 0,
|
---|
293 | /*} ModeInfoBlock;*/
|
---|
294 | }
|
---|
295 | },
|
---|
296 |
|
---|
297 | {
|
---|
298 | VBE_VESA_MODE_1024X768X8,
|
---|
299 | {
|
---|
300 | /*typedef struct ModeInfoBlock
|
---|
301 | {*/
|
---|
302 | // Mandatory information for all VBE revisions
|
---|
303 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
304 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
305 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
306 | #ifdef VBE_HAVE_LFB
|
---|
307 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
308 | #endif
|
---|
309 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
310 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
311 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
312 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
313 | /*Bit8u WinBAttributes*/ 0,
|
---|
314 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
315 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
316 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
317 | /*Bit16u WinBSegment*/ 0,
|
---|
318 | /*Bit32u WinFuncPtr*/ 0,
|
---|
319 | /*Bit16u BytesPerScanLine*/ 1024,
|
---|
320 | // Mandatory information for VBE 1.2 and above
|
---|
321 | /*Bit16u XResolution*/ 1024,
|
---|
322 | /*Bit16u YResolution*/ 768,
|
---|
323 | /*Bit8u XCharSize*/ 8,
|
---|
324 | /*Bit8u YCharSize*/ 16,
|
---|
325 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
326 | /*Bit8u BitsPerPixel*/ 8,
|
---|
327 | /*Bit8u NumberOfBanks*/ 12, // 1024x768/64kb == 12
|
---|
328 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_PACKED_PIXEL,
|
---|
329 | /*Bit8u BankSize*/ 0,
|
---|
330 | /*Bit8u NumberOfImagePages*/ 3,
|
---|
331 | /*Bit8u Reserved_page*/ 0,
|
---|
332 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
333 | /*Bit8u RedMaskSize*/ 0,
|
---|
334 | /*Bit8u RedFieldPosition*/ 0,
|
---|
335 | /*Bit8u GreenMaskSize*/ 0,
|
---|
336 | /*Bit8u GreenFieldPosition*/ 0,
|
---|
337 | /*Bit8u BlueMaskSize*/ 0,
|
---|
338 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
339 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
340 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
341 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
342 | // Mandatory information for VBE 2.0 and above
|
---|
343 | #ifdef VBE_HAVE_LFB
|
---|
344 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
345 | #else
|
---|
346 | /*Bit32u PhysBasePtr*/ 0,
|
---|
347 | #endif
|
---|
348 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
349 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
350 | // Mandatory information for VBE 3.0 and above
|
---|
351 | /*Bit16u LinBytesPerScanLine*/ 1024,
|
---|
352 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
353 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
354 | /*Bit8u LinRedMaskSize*/ 0,
|
---|
355 | /*Bit8u LinRedFieldPosition*/ 0,
|
---|
356 | /*Bit8u LinGreenMaskSize*/ 0,
|
---|
357 | /*Bit8u LinGreenFieldPosition*/ 0,
|
---|
358 | /*Bit8u LinBlueMaskSize*/ 0,
|
---|
359 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
360 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
361 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
362 | /*Bit32u MaxPixelClock*/ 0,
|
---|
363 | /*} ModeInfoBlock;*/
|
---|
364 | }
|
---|
365 | },
|
---|
366 |
|
---|
367 | {
|
---|
368 | VBE_VESA_MODE_640X480X1555,
|
---|
369 | {
|
---|
370 | /*typedef struct ModeInfoBlock
|
---|
371 | {*/
|
---|
372 | // Mandatory information for all VBE revisions
|
---|
373 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
374 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
375 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
376 | #ifdef VBE_HAVE_LFB
|
---|
377 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
378 | #endif
|
---|
379 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
380 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
381 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
382 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
383 | /*Bit8u WinBAttributes*/ 0,
|
---|
384 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
385 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
386 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
387 | /*Bit16u WinBSegment*/ 0,
|
---|
388 | /*Bit32u WinFuncPtr*/ 0,
|
---|
389 | /*Bit16u BytesPerScanLine*/ 640*2,
|
---|
390 | // Mandatory information for VBE 1.2 and above
|
---|
391 | /*Bit16u XResolution*/ 640,
|
---|
392 | /*Bit16u YResolution*/ 480,
|
---|
393 | /*Bit8u XCharSize*/ 8,
|
---|
394 | /*Bit8u YCharSize*/ 16,
|
---|
395 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
396 | /*Bit8u BitsPerPixel*/ 15,
|
---|
397 | /*Bit8u NumberOfBanks*/ 1,
|
---|
398 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
399 | /*Bit8u BankSize*/ 0,
|
---|
400 | /*Bit8u NumberOfImagePages*/ 5,
|
---|
401 | /*Bit8u Reserved_page*/ 0,
|
---|
402 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
403 | /*Bit8u RedMaskSize*/ 5,
|
---|
404 | /*Bit8u RedFieldPosition*/ 10,
|
---|
405 | /*Bit8u GreenMaskSize*/ 5,
|
---|
406 | /*Bit8u GreenFieldPosition*/ 5,
|
---|
407 | /*Bit8u BlueMaskSize*/ 5,
|
---|
408 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
409 | /*Bit8u RsvdMaskSize*/ 1,
|
---|
410 | /*Bit8u RsvdFieldPosition*/ 15,
|
---|
411 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
412 | // Mandatory information for VBE 2.0 and above
|
---|
413 | #ifdef VBE_HAVE_LFB
|
---|
414 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
415 | #else
|
---|
416 | /*Bit32u PhysBasePtr*/ 0,
|
---|
417 | #endif
|
---|
418 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
419 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
420 | // Mandatory information for VBE 3.0 and above
|
---|
421 | /*Bit16u LinBytesPerScanLine*/ 640*2,
|
---|
422 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
423 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
424 | /*Bit8u LinRedMaskSize*/ 5,
|
---|
425 | /*Bit8u LinRedFieldPosition*/ 10,
|
---|
426 | /*Bit8u LinGreenMaskSize*/ 0,
|
---|
427 | /*Bit8u LinGreenFieldPosition*/ 5,
|
---|
428 | /*Bit8u LinBlueMaskSize*/ 5,
|
---|
429 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
430 | /*Bit8u LinRsvdMaskSize*/ 1,
|
---|
431 | /*Bit8u LinRsvdFieldPosition*/ 15,
|
---|
432 | /*Bit32u MaxPixelClock*/ 0,
|
---|
433 | /*} ModeInfoBlock;*/
|
---|
434 | }
|
---|
435 | },
|
---|
436 |
|
---|
437 | {
|
---|
438 | VBE_VESA_MODE_800X600X1555,
|
---|
439 | {
|
---|
440 | /*typedef struct ModeInfoBlock
|
---|
441 | {*/
|
---|
442 | // Mandatory information for all VBE revisions
|
---|
443 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
444 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
445 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
446 | #ifdef VBE_HAVE_LFB
|
---|
447 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
448 | #endif
|
---|
449 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
450 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
451 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
452 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
453 | /*Bit8u WinBAttributes*/ 0,
|
---|
454 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
455 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
456 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
457 | /*Bit16u WinBSegment*/ 0,
|
---|
458 | /*Bit32u WinFuncPtr*/ 0,
|
---|
459 | /*Bit16u BytesPerScanLine*/ 800*2,
|
---|
460 | // Mandatory information for VBE 1.2 and above
|
---|
461 | /*Bit16u XResolution*/ 800,
|
---|
462 | /*Bit16u YResolution*/ 600,
|
---|
463 | /*Bit8u XCharSize*/ 8,
|
---|
464 | /*Bit8u YCharSize*/ 16,
|
---|
465 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
466 | /*Bit8u BitsPerPixel*/ 15,
|
---|
467 | /*Bit8u NumberOfBanks*/ 1,
|
---|
468 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
469 | /*Bit8u BankSize*/ 0,
|
---|
470 | /*Bit8u NumberOfImagePages*/ 3,
|
---|
471 | /*Bit8u Reserved_page*/ 0,
|
---|
472 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
473 | /*Bit8u RedMaskSize*/ 5,
|
---|
474 | /*Bit8u RedFieldPosition*/ 10,
|
---|
475 | /*Bit8u GreenMaskSize*/ 5,
|
---|
476 | /*Bit8u GreenFieldPosition*/ 5,
|
---|
477 | /*Bit8u BlueMaskSize*/ 5,
|
---|
478 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
479 | /*Bit8u RsvdMaskSize*/ 1,
|
---|
480 | /*Bit8u RsvdFieldPosition*/ 15,
|
---|
481 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
482 | // Mandatory information for VBE 2.0 and above
|
---|
483 | #ifdef VBE_HAVE_LFB
|
---|
484 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
485 | #else
|
---|
486 | /*Bit32u PhysBasePtr*/ 0,
|
---|
487 | #endif
|
---|
488 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
489 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
490 | // Mandatory information for VBE 3.0 and above
|
---|
491 | /*Bit16u LinBytesPerScanLine*/ 800*2,
|
---|
492 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
493 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
494 | /*Bit8u LinRedMaskSize*/ 5,
|
---|
495 | /*Bit8u LinRedFieldPosition*/ 10,
|
---|
496 | /*Bit8u LinGreenMaskSize*/ 5,
|
---|
497 | /*Bit8u LinGreenFieldPosition*/ 5,
|
---|
498 | /*Bit8u LinBlueMaskSize*/ 5,
|
---|
499 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
500 | /*Bit8u LinRsvdMaskSize*/ 1,
|
---|
501 | /*Bit8u LinRsvdFieldPosition*/ 15,
|
---|
502 | /*Bit32u MaxPixelClock*/ 0,
|
---|
503 | /*} ModeInfoBlock;*/
|
---|
504 | }
|
---|
505 | },
|
---|
506 |
|
---|
507 | {
|
---|
508 | VBE_VESA_MODE_1024X768X1555,
|
---|
509 | {
|
---|
510 | /*typedef struct ModeInfoBlock
|
---|
511 | {*/
|
---|
512 | // Mandatory information for all VBE revisions
|
---|
513 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
514 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
515 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
516 | #ifdef VBE_HAVE_LFB
|
---|
517 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
518 | #endif
|
---|
519 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
520 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
521 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
522 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
523 | /*Bit8u WinBAttributes*/ 0,
|
---|
524 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
525 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
526 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
527 | /*Bit16u WinBSegment*/ 0,
|
---|
528 | /*Bit32u WinFuncPtr*/ 0,
|
---|
529 | /*Bit16u BytesPerScanLine*/ 1024*2,
|
---|
530 | // Mandatory information for VBE 1.2 and above
|
---|
531 | /*Bit16u XResolution*/ 1024,
|
---|
532 | /*Bit16u YResolution*/ 768,
|
---|
533 | /*Bit8u XCharSize*/ 8,
|
---|
534 | /*Bit8u YCharSize*/ 16,
|
---|
535 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
536 | /*Bit8u BitsPerPixel*/ 15,
|
---|
537 | /*Bit8u NumberOfBanks*/ 1,
|
---|
538 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
539 | /*Bit8u BankSize*/ 0,
|
---|
540 | /*Bit8u NumberOfImagePages*/ 1,
|
---|
541 | /*Bit8u Reserved_page*/ 0,
|
---|
542 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
543 | /*Bit8u RedMaskSize*/ 5,
|
---|
544 | /*Bit8u RedFieldPosition*/ 10,
|
---|
545 | /*Bit8u GreenMaskSize*/ 5,
|
---|
546 | /*Bit8u GreenFieldPosition*/ 5,
|
---|
547 | /*Bit8u BlueMaskSize*/ 5,
|
---|
548 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
549 | /*Bit8u RsvdMaskSize*/ 1,
|
---|
550 | /*Bit8u RsvdFieldPosition*/ 15,
|
---|
551 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
552 | // Mandatory information for VBE 2.0 and above
|
---|
553 | #ifdef VBE_HAVE_LFB
|
---|
554 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
555 | #else
|
---|
556 | /*Bit32u PhysBasePtr*/ 0,
|
---|
557 | #endif
|
---|
558 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
559 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
560 | // Mandatory information for VBE 3.0 and above
|
---|
561 | /*Bit16u LinBytesPerScanLine*/ 1024*2,
|
---|
562 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
563 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
564 | /*Bit8u LinRedMaskSize*/ 5,
|
---|
565 | /*Bit8u LinRedFieldPosition*/ 10,
|
---|
566 | /*Bit8u LinGreenMaskSize*/ 5,
|
---|
567 | /*Bit8u LinGreenFieldPosition*/ 5,
|
---|
568 | /*Bit8u LinBlueMaskSize*/ 5,
|
---|
569 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
570 | /*Bit8u LinRsvdMaskSize*/ 1,
|
---|
571 | /*Bit8u LinRsvdFieldPosition*/ 15,
|
---|
572 | /*Bit32u MaxPixelClock*/ 0,
|
---|
573 | /*} ModeInfoBlock;*/
|
---|
574 | }
|
---|
575 | },
|
---|
576 |
|
---|
577 | {
|
---|
578 | VBE_VESA_MODE_640X480X565,
|
---|
579 | {
|
---|
580 | /*typedef struct ModeInfoBlock
|
---|
581 | {*/
|
---|
582 | // Mandatory information for all VBE revisions
|
---|
583 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
584 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
585 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
586 | #ifdef VBE_HAVE_LFB
|
---|
587 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
588 | #endif
|
---|
589 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
590 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
591 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
592 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
593 | /*Bit8u WinBAttributes*/ 0,
|
---|
594 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
595 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
596 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
597 | /*Bit16u WinBSegment*/ 0,
|
---|
598 | /*Bit32u WinFuncPtr*/ 0,
|
---|
599 | /*Bit16u BytesPerScanLine*/ 640*2,
|
---|
600 | // Mandatory information for VBE 1.2 and above
|
---|
601 | /*Bit16u XResolution*/ 640,
|
---|
602 | /*Bit16u YResolution*/ 480,
|
---|
603 | /*Bit8u XCharSize*/ 8,
|
---|
604 | /*Bit8u YCharSize*/ 16,
|
---|
605 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
606 | /*Bit8u BitsPerPixel*/ 16,
|
---|
607 | /*Bit8u NumberOfBanks*/ 1,
|
---|
608 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
609 | /*Bit8u BankSize*/ 0,
|
---|
610 | /*Bit8u NumberOfImagePages*/ 5,
|
---|
611 | /*Bit8u Reserved_page*/ 0,
|
---|
612 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
613 | /*Bit8u RedMaskSize*/ 5,
|
---|
614 | /*Bit8u RedFieldPosition*/ 11,
|
---|
615 | /*Bit8u GreenMaskSize*/ 6,
|
---|
616 | /*Bit8u GreenFieldPosition*/ 5,
|
---|
617 | /*Bit8u BlueMaskSize*/ 5,
|
---|
618 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
619 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
620 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
621 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
622 | // Mandatory information for VBE 2.0 and above
|
---|
623 | #ifdef VBE_HAVE_LFB
|
---|
624 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
625 | #else
|
---|
626 | /*Bit32u PhysBasePtr*/ 0,
|
---|
627 | #endif
|
---|
628 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
629 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
630 | // Mandatory information for VBE 3.0 and above
|
---|
631 | /*Bit16u LinBytesPerScanLine*/ 640*2,
|
---|
632 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
633 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
634 | /*Bit8u LinRedMaskSize*/ 5,
|
---|
635 | /*Bit8u LinRedFieldPosition*/ 11,
|
---|
636 | /*Bit8u LinGreenMaskSize*/ 6,
|
---|
637 | /*Bit8u LinGreenFieldPosition*/ 5,
|
---|
638 | /*Bit8u LinBlueMaskSize*/ 5,
|
---|
639 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
640 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
641 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
642 | /*Bit32u MaxPixelClock*/ 0,
|
---|
643 | /*} ModeInfoBlock;*/
|
---|
644 | }
|
---|
645 | },
|
---|
646 |
|
---|
647 | {
|
---|
648 | VBE_VESA_MODE_800X600X565,
|
---|
649 | {
|
---|
650 | /*typedef struct ModeInfoBlock
|
---|
651 | {*/
|
---|
652 | // Mandatory information for all VBE revisions
|
---|
653 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
654 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
655 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
656 | #ifdef VBE_HAVE_LFB
|
---|
657 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
658 | #endif
|
---|
659 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
660 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
661 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
662 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
663 | /*Bit8u WinBAttributes*/ 0,
|
---|
664 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
665 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
666 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
667 | /*Bit16u WinBSegment*/ 0,
|
---|
668 | /*Bit32u WinFuncPtr*/ 0,
|
---|
669 | /*Bit16u BytesPerScanLine*/ 800*2,
|
---|
670 | // Mandatory information for VBE 1.2 and above
|
---|
671 | /*Bit16u XResolution*/ 800,
|
---|
672 | /*Bit16u YResolution*/ 600,
|
---|
673 | /*Bit8u XCharSize*/ 8,
|
---|
674 | /*Bit8u YCharSize*/ 16,
|
---|
675 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
676 | /*Bit8u BitsPerPixel*/ 16,
|
---|
677 | /*Bit8u NumberOfBanks*/ 1,
|
---|
678 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
679 | /*Bit8u BankSize*/ 0,
|
---|
680 | /*Bit8u NumberOfImagePages*/ 3,
|
---|
681 | /*Bit8u Reserved_page*/ 0,
|
---|
682 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
683 | /*Bit8u RedMaskSize*/ 5,
|
---|
684 | /*Bit8u RedFieldPosition*/ 11,
|
---|
685 | /*Bit8u GreenMaskSize*/ 6,
|
---|
686 | /*Bit8u GreenFieldPosition*/ 5,
|
---|
687 | /*Bit8u BlueMaskSize*/ 5,
|
---|
688 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
689 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
690 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
691 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
692 | // Mandatory information for VBE 2.0 and above
|
---|
693 | #ifdef VBE_HAVE_LFB
|
---|
694 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
695 | #else
|
---|
696 | /*Bit32u PhysBasePtr*/ 0,
|
---|
697 | #endif
|
---|
698 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
699 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
700 | // Mandatory information for VBE 3.0 and above
|
---|
701 | /*Bit16u LinBytesPerScanLine*/ 800*2,
|
---|
702 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
703 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
704 | /*Bit8u LinRedMaskSize*/ 5,
|
---|
705 | /*Bit8u LinRedFieldPosition*/ 11,
|
---|
706 | /*Bit8u LinGreenMaskSize*/ 6,
|
---|
707 | /*Bit8u LinGreenFieldPosition*/ 5,
|
---|
708 | /*Bit8u LinBlueMaskSize*/ 5,
|
---|
709 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
710 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
711 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
712 | /*Bit32u MaxPixelClock*/ 0,
|
---|
713 | /*} ModeInfoBlock;*/
|
---|
714 | }
|
---|
715 | },
|
---|
716 |
|
---|
717 | {
|
---|
718 | VBE_VESA_MODE_1024X768X565,
|
---|
719 | {
|
---|
720 | /*typedef struct ModeInfoBlock
|
---|
721 | {*/
|
---|
722 | // Mandatory information for all VBE revisions
|
---|
723 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
724 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
725 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
726 | #ifdef VBE_HAVE_LFB
|
---|
727 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
728 | #endif
|
---|
729 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
730 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
731 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
732 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
733 | /*Bit8u WinBAttributes*/ 0,
|
---|
734 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
735 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
736 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
737 | /*Bit16u WinBSegment*/ 0,
|
---|
738 | /*Bit32u WinFuncPtr*/ 0,
|
---|
739 | /*Bit16u BytesPerScanLine*/ 1024*2,
|
---|
740 | // Mandatory information for VBE 1.2 and above
|
---|
741 | /*Bit16u XResolution*/ 1024,
|
---|
742 | /*Bit16u YResolution*/ 768,
|
---|
743 | /*Bit8u XCharSize*/ 8,
|
---|
744 | /*Bit8u YCharSize*/ 16,
|
---|
745 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
746 | /*Bit8u BitsPerPixel*/ 16,
|
---|
747 | /*Bit8u NumberOfBanks*/ 1,
|
---|
748 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
749 | /*Bit8u BankSize*/ 0,
|
---|
750 | /*Bit8u NumberOfImagePages*/ 1,
|
---|
751 | /*Bit8u Reserved_page*/ 0,
|
---|
752 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
753 | /*Bit8u RedMaskSize*/ 5,
|
---|
754 | /*Bit8u RedFieldPosition*/ 11,
|
---|
755 | /*Bit8u GreenMaskSize*/ 6,
|
---|
756 | /*Bit8u GreenFieldPosition*/ 5,
|
---|
757 | /*Bit8u BlueMaskSize*/ 5,
|
---|
758 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
759 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
760 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
761 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
762 | // Mandatory information for VBE 2.0 and above
|
---|
763 | #ifdef VBE_HAVE_LFB
|
---|
764 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
765 | #else
|
---|
766 | /*Bit32u PhysBasePtr*/ 0,
|
---|
767 | #endif
|
---|
768 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
769 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
770 | // Mandatory information for VBE 3.0 and above
|
---|
771 | /*Bit16u LinBytesPerScanLine*/ 1024*2,
|
---|
772 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
773 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
774 | /*Bit8u LinRedMaskSize*/ 5,
|
---|
775 | /*Bit8u LinRedFieldPosition*/ 11,
|
---|
776 | /*Bit8u LinGreenMaskSize*/ 6,
|
---|
777 | /*Bit8u LinGreenFieldPosition*/ 5,
|
---|
778 | /*Bit8u LinBlueMaskSize*/ 5,
|
---|
779 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
780 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
781 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
782 | /*Bit32u MaxPixelClock*/ 0,
|
---|
783 | /*} ModeInfoBlock;*/
|
---|
784 | }
|
---|
785 | },
|
---|
786 |
|
---|
787 | {
|
---|
788 | VBE_VESA_MODE_640X480X888,
|
---|
789 | {
|
---|
790 | /*typedef struct ModeInfoBlock
|
---|
791 | {*/
|
---|
792 | // Mandatory information for all VBE revisions
|
---|
793 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
794 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
795 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
796 | #ifdef VBE_HAVE_LFB
|
---|
797 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
798 | #endif
|
---|
799 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
800 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
801 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
802 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
803 | /*Bit8u WinBAttributes*/ 0,
|
---|
804 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
805 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
806 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
807 | /*Bit16u WinBSegment*/ 0,
|
---|
808 | /*Bit32u WinFuncPtr*/ 0,
|
---|
809 | /*Bit16u BytesPerScanLine*/ 640*3,
|
---|
810 | // Mandatory information for VBE 1.2 and above
|
---|
811 | /*Bit16u XResolution*/ 640,
|
---|
812 | /*Bit16u YResolution*/ 480,
|
---|
813 | /*Bit8u XCharSize*/ 8,
|
---|
814 | /*Bit8u YCharSize*/ 16,
|
---|
815 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
816 | /*Bit8u BitsPerPixel*/ 24,
|
---|
817 | /*Bit8u NumberOfBanks*/ 1,
|
---|
818 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
819 | /*Bit8u BankSize*/ 0,
|
---|
820 | /*Bit8u NumberOfImagePages*/ 3,
|
---|
821 | /*Bit8u Reserved_page*/ 0,
|
---|
822 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
823 | /*Bit8u RedMaskSize*/ 8,
|
---|
824 | /*Bit8u RedFieldPosition*/ 16,
|
---|
825 | /*Bit8u GreenMaskSize*/ 8,
|
---|
826 | /*Bit8u GreenFieldPosition*/ 8,
|
---|
827 | /*Bit8u BlueMaskSize*/ 8,
|
---|
828 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
829 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
830 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
831 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
832 | // Mandatory information for VBE 2.0 and above
|
---|
833 | #ifdef VBE_HAVE_LFB
|
---|
834 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
835 | #else
|
---|
836 | /*Bit32u PhysBasePtr*/ 0,
|
---|
837 | #endif
|
---|
838 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
839 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
840 | // Mandatory information for VBE 3.0 and above
|
---|
841 | /*Bit16u LinBytesPerScanLine*/ 640*3,
|
---|
842 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
843 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
844 | /*Bit8u LinRedMaskSize*/ 8,
|
---|
845 | /*Bit8u LinRedFieldPosition*/ 16,
|
---|
846 | /*Bit8u LinGreenMaskSize*/ 8,
|
---|
847 | /*Bit8u LinGreenFieldPosition*/ 8,
|
---|
848 | /*Bit8u LinBlueMaskSize*/ 8,
|
---|
849 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
850 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
851 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
852 | /*Bit32u MaxPixelClock*/ 0,
|
---|
853 | /*} ModeInfoBlock;*/
|
---|
854 | }
|
---|
855 | },
|
---|
856 |
|
---|
857 | {
|
---|
858 | VBE_VESA_MODE_800X600X888,
|
---|
859 | {
|
---|
860 | /*typedef struct ModeInfoBlock
|
---|
861 | {*/
|
---|
862 | // Mandatory information for all VBE revisions
|
---|
863 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
864 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
865 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
866 | #ifdef VBE_HAVE_LFB
|
---|
867 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
868 | #endif
|
---|
869 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
870 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
871 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
872 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
873 | /*Bit8u WinBAttributes*/ 0,
|
---|
874 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
875 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
876 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
877 | /*Bit16u WinBSegment*/ 0,
|
---|
878 | /*Bit32u WinFuncPtr*/ 0,
|
---|
879 | /*Bit16u BytesPerScanLine*/ 800*3,
|
---|
880 | // Mandatory information for VBE 1.2 and above
|
---|
881 | /*Bit16u XResolution*/ 800,
|
---|
882 | /*Bit16u YResolution*/ 600,
|
---|
883 | /*Bit8u XCharSize*/ 8,
|
---|
884 | /*Bit8u YCharSize*/ 16,
|
---|
885 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
886 | /*Bit8u BitsPerPixel*/ 24,
|
---|
887 | /*Bit8u NumberOfBanks*/ 1,
|
---|
888 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
889 | /*Bit8u BankSize*/ 0,
|
---|
890 | /*Bit8u NumberOfImagePages*/ 1,
|
---|
891 | /*Bit8u Reserved_page*/ 0,
|
---|
892 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
893 | /*Bit8u RedMaskSize*/ 8,
|
---|
894 | /*Bit8u RedFieldPosition*/ 16,
|
---|
895 | /*Bit8u GreenMaskSize*/ 8,
|
---|
896 | /*Bit8u GreenFieldPosition*/ 8,
|
---|
897 | /*Bit8u BlueMaskSize*/ 8,
|
---|
898 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
899 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
900 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
901 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
902 | // Mandatory information for VBE 2.0 and above
|
---|
903 | #ifdef VBE_HAVE_LFB
|
---|
904 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
905 | #else
|
---|
906 | /*Bit32u PhysBasePtr*/ 0,
|
---|
907 | #endif
|
---|
908 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
909 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
910 | // Mandatory information for VBE 3.0 and above
|
---|
911 | /*Bit16u LinBytesPerScanLine*/ 800*3,
|
---|
912 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
913 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
914 | /*Bit8u LinRedMaskSize*/ 8,
|
---|
915 | /*Bit8u LinRedFieldPosition*/ 16,
|
---|
916 | /*Bit8u LinGreenMaskSize*/ 8,
|
---|
917 | /*Bit8u LinGreenFieldPosition*/ 8,
|
---|
918 | /*Bit8u LinBlueMaskSize*/ 8,
|
---|
919 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
920 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
921 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
922 | /*Bit32u MaxPixelClock*/ 0,
|
---|
923 | /*} ModeInfoBlock;*/
|
---|
924 | }
|
---|
925 | },
|
---|
926 |
|
---|
927 | {
|
---|
928 | VBE_VESA_MODE_1024X768X888,
|
---|
929 | {
|
---|
930 | /*typedef struct ModeInfoBlock
|
---|
931 | {*/
|
---|
932 | // Mandatory information for all VBE revisions
|
---|
933 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
934 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
935 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
936 | #ifdef VBE_HAVE_LFB
|
---|
937 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
938 | #endif
|
---|
939 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
940 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
941 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
942 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
943 | /*Bit8u WinBAttributes*/ 0,
|
---|
944 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
945 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
946 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
947 | /*Bit16u WinBSegment*/ 0,
|
---|
948 | /*Bit32u WinFuncPtr*/ 0,
|
---|
949 | /*Bit16u BytesPerScanLine*/ 1024*3,
|
---|
950 | // Mandatory information for VBE 1.2 and above
|
---|
951 | /*Bit16u XResolution*/ 1024,
|
---|
952 | /*Bit16u YResolution*/ 768,
|
---|
953 | /*Bit8u XCharSize*/ 8,
|
---|
954 | /*Bit8u YCharSize*/ 16,
|
---|
955 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
956 | /*Bit8u BitsPerPixel*/ 24,
|
---|
957 | /*Bit8u NumberOfBanks*/ 1,
|
---|
958 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
959 | /*Bit8u BankSize*/ 0,
|
---|
960 | /*Bit8u NumberOfImagePages*/ 0,
|
---|
961 | /*Bit8u Reserved_page*/ 0,
|
---|
962 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
963 | /*Bit8u RedMaskSize*/ 8,
|
---|
964 | /*Bit8u RedFieldPosition*/ 16,
|
---|
965 | /*Bit8u GreenMaskSize*/ 8,
|
---|
966 | /*Bit8u GreenFieldPosition*/ 8,
|
---|
967 | /*Bit8u BlueMaskSize*/ 8,
|
---|
968 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
969 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
970 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
971 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
972 | // Mandatory information for VBE 2.0 and above
|
---|
973 | #ifdef VBE_HAVE_LFB
|
---|
974 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
975 | #else
|
---|
976 | /*Bit32u PhysBasePtr*/ 0,
|
---|
977 | #endif
|
---|
978 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
979 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
980 | // Mandatory information for VBE 3.0 and above
|
---|
981 | /*Bit16u LinBytesPerScanLine*/ 1024*3,
|
---|
982 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
983 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
984 | /*Bit8u LinRedMaskSize*/ 8,
|
---|
985 | /*Bit8u LinRedFieldPosition*/ 16,
|
---|
986 | /*Bit8u LinGreenMaskSize*/ 8,
|
---|
987 | /*Bit8u LinGreenFieldPosition*/ 8,
|
---|
988 | /*Bit8u LinBlueMaskSize*/ 8,
|
---|
989 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
990 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
991 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
992 | /*Bit32u MaxPixelClock*/ 0,
|
---|
993 | /*} ModeInfoBlock;*/
|
---|
994 | }
|
---|
995 | },
|
---|
996 |
|
---|
997 | {
|
---|
998 | VBE_OWN_MODE_640X480X8888,
|
---|
999 | {
|
---|
1000 | /*typedef struct ModeInfoBlock
|
---|
1001 | {*/
|
---|
1002 | // Mandatory information for all VBE revisions
|
---|
1003 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
1004 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
1005 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
1006 | #ifdef VBE_HAVE_LFB
|
---|
1007 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
1008 | #endif
|
---|
1009 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
1010 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
1011 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
1012 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
1013 | /*Bit8u WinBAttributes*/ 0,
|
---|
1014 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1015 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1016 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
1017 | /*Bit16u WinBSegment*/ 0,
|
---|
1018 | /*Bit32u WinFuncPtr*/ 0,
|
---|
1019 | /*Bit16u BytesPerScanLine*/ 640*4,
|
---|
1020 | // Mandatory information for VBE 1.2 and above
|
---|
1021 | /*Bit16u XResolution*/ 640,
|
---|
1022 | /*Bit16u YResolution*/ 480,
|
---|
1023 | /*Bit8u XCharSize*/ 8,
|
---|
1024 | /*Bit8u YCharSize*/ 16,
|
---|
1025 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
1026 | /*Bit8u BitsPerPixel*/ 32,
|
---|
1027 | /*Bit8u NumberOfBanks*/ 1,
|
---|
1028 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
1029 | /*Bit8u BankSize*/ 0,
|
---|
1030 | /*Bit8u NumberOfImagePages*/ 1,
|
---|
1031 | /*Bit8u Reserved_page*/ 0,
|
---|
1032 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
1033 | /*Bit8u RedMaskSize*/ 8,
|
---|
1034 | /*Bit8u RedFieldPosition*/ 16,
|
---|
1035 | /*Bit8u GreenMaskSize*/ 8,
|
---|
1036 | /*Bit8u GreenFieldPosition*/ 8,
|
---|
1037 | /*Bit8u BlueMaskSize*/ 8,
|
---|
1038 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
1039 | /*Bit8u RsvdMaskSize*/ 8,
|
---|
1040 | /*Bit8u RsvdFieldPosition*/ 24,
|
---|
1041 | /*Bit8u DirectColorModeInfo*/ VBE_DIRECTCOLOR_RESERVED_BITS_AVAILABLE,
|
---|
1042 | // Mandatory information for VBE 2.0 and above
|
---|
1043 | #ifdef VBE_HAVE_LFB
|
---|
1044 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
1045 | #else
|
---|
1046 | /*Bit32u PhysBasePtr*/ 0,
|
---|
1047 | #endif
|
---|
1048 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
1049 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
1050 | // Mandatory information for VBE 3.0 and above
|
---|
1051 | /*Bit16u LinBytesPerScanLine*/ 640*4,
|
---|
1052 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
1053 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
1054 | /*Bit8u LinRedMaskSize*/ 8,
|
---|
1055 | /*Bit8u LinRedFieldPosition*/ 16,
|
---|
1056 | /*Bit8u LinGreenMaskSize*/ 8,
|
---|
1057 | /*Bit8u LinGreenFieldPosition*/ 8,
|
---|
1058 | /*Bit8u LinBlueMaskSize*/ 8,
|
---|
1059 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
1060 | /*Bit8u LinRsvdMaskSize*/ 8,
|
---|
1061 | /*Bit8u LinRsvdFieldPosition*/ 24,
|
---|
1062 | /*Bit32u MaxPixelClock*/ 0,
|
---|
1063 | /*} ModeInfoBlock;*/
|
---|
1064 | }
|
---|
1065 | },
|
---|
1066 |
|
---|
1067 | {
|
---|
1068 | VBE_OWN_MODE_800X600X8888,
|
---|
1069 | {
|
---|
1070 | /*typedef struct ModeInfoBlock
|
---|
1071 | {*/
|
---|
1072 | // Mandatory information for all VBE revisions
|
---|
1073 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
1074 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
1075 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
1076 | #ifdef VBE_HAVE_LFB
|
---|
1077 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
1078 | #endif
|
---|
1079 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
1080 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
1081 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
1082 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
1083 | /*Bit8u WinBAttributes*/ 0,
|
---|
1084 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1085 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1086 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
1087 | /*Bit16u WinBSegment*/ 0,
|
---|
1088 | /*Bit32u WinFuncPtr*/ 0,
|
---|
1089 | /*Bit16u BytesPerScanLine*/ 800*4,
|
---|
1090 | // Mandatory information for VBE 1.2 and above
|
---|
1091 | /*Bit16u XResolution*/ 800,
|
---|
1092 | /*Bit16u YResolution*/ 600,
|
---|
1093 | /*Bit8u XCharSize*/ 8,
|
---|
1094 | /*Bit8u YCharSize*/ 16,
|
---|
1095 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
1096 | /*Bit8u BitsPerPixel*/ 32,
|
---|
1097 | /*Bit8u NumberOfBanks*/ 1,
|
---|
1098 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
1099 | /*Bit8u BankSize*/ 0,
|
---|
1100 | /*Bit8u NumberOfImagePages*/ 1,
|
---|
1101 | /*Bit8u Reserved_page*/ 0,
|
---|
1102 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
1103 | /*Bit8u RedMaskSize*/ 8,
|
---|
1104 | /*Bit8u RedFieldPosition*/ 16,
|
---|
1105 | /*Bit8u GreenMaskSize*/ 8,
|
---|
1106 | /*Bit8u GreenFieldPosition*/ 8,
|
---|
1107 | /*Bit8u BlueMaskSize*/ 8,
|
---|
1108 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
1109 | /*Bit8u RsvdMaskSize*/ 8,
|
---|
1110 | /*Bit8u RsvdFieldPosition*/ 24,
|
---|
1111 | /*Bit8u DirectColorModeInfo*/ VBE_DIRECTCOLOR_RESERVED_BITS_AVAILABLE,
|
---|
1112 | // Mandatory information for VBE 2.0 and above
|
---|
1113 | #ifdef VBE_HAVE_LFB
|
---|
1114 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
1115 | #else
|
---|
1116 | /*Bit32u PhysBasePtr*/ 0,
|
---|
1117 | #endif
|
---|
1118 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
1119 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
1120 | // Mandatory information for VBE 3.0 and above
|
---|
1121 | /*Bit16u LinBytesPerScanLine*/ 800*4,
|
---|
1122 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
1123 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
1124 | /*Bit8u LinRedMaskSize*/ 8,
|
---|
1125 | /*Bit8u LinRedFieldPosition*/ 16,
|
---|
1126 | /*Bit8u LinGreenMaskSize*/ 8,
|
---|
1127 | /*Bit8u LinGreenFieldPosition*/ 8,
|
---|
1128 | /*Bit8u LinBlueMaskSize*/ 8,
|
---|
1129 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
1130 | /*Bit8u LinRsvdMaskSize*/ 8,
|
---|
1131 | /*Bit8u LinRsvdFieldPosition*/ 24,
|
---|
1132 | /*Bit32u MaxPixelClock*/ 0,
|
---|
1133 | /*} ModeInfoBlock;*/
|
---|
1134 | }
|
---|
1135 | },
|
---|
1136 |
|
---|
1137 | {
|
---|
1138 | VBE_OWN_MODE_1024X768X8888,
|
---|
1139 | {
|
---|
1140 | /*typedef struct ModeInfoBlock
|
---|
1141 | {*/
|
---|
1142 | // Mandatory information for all VBE revisions
|
---|
1143 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
1144 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
1145 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
1146 | #ifdef VBE_HAVE_LFB
|
---|
1147 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
1148 | #endif
|
---|
1149 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
1150 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_RELOCATABLE |
|
---|
1151 | VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
1152 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
1153 | /*Bit8u WinBAttributes*/ 0,
|
---|
1154 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1155 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1156 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
1157 | /*Bit16u WinBSegment*/ 0,
|
---|
1158 | /*Bit32u WinFuncPtr*/ 0,
|
---|
1159 | /*Bit16u BytesPerScanLine*/ 1024*4,
|
---|
1160 | // Mandatory information for VBE 1.2 and above
|
---|
1161 | /*Bit16u XResolution*/ 1024,
|
---|
1162 | /*Bit16u YResolution*/ 768,
|
---|
1163 | /*Bit8u XCharSize*/ 8,
|
---|
1164 | /*Bit8u YCharSize*/ 16,
|
---|
1165 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
1166 | /*Bit8u BitsPerPixel*/ 32,
|
---|
1167 | /*Bit8u NumberOfBanks*/ 1,
|
---|
1168 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_DIRECT_COLOR,
|
---|
1169 | /*Bit8u BankSize*/ 0,
|
---|
1170 | /*Bit8u NumberOfImagePages*/ 1,
|
---|
1171 | /*Bit8u Reserved_page*/ 0,
|
---|
1172 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
1173 | /*Bit8u RedMaskSize*/ 8,
|
---|
1174 | /*Bit8u RedFieldPosition*/ 16,
|
---|
1175 | /*Bit8u GreenMaskSize*/ 8,
|
---|
1176 | /*Bit8u GreenFieldPosition*/ 8,
|
---|
1177 | /*Bit8u BlueMaskSize*/ 8,
|
---|
1178 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
1179 | /*Bit8u RsvdMaskSize*/ 8,
|
---|
1180 | /*Bit8u RsvdFieldPosition*/ 24,
|
---|
1181 | /*Bit8u DirectColorModeInfo*/ VBE_DIRECTCOLOR_RESERVED_BITS_AVAILABLE,
|
---|
1182 | // Mandatory information for VBE 2.0 and above
|
---|
1183 | #ifdef VBE_HAVE_LFB
|
---|
1184 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
1185 | #else
|
---|
1186 | /*Bit32u PhysBasePtr*/ 0,
|
---|
1187 | #endif
|
---|
1188 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
1189 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
1190 | // Mandatory information for VBE 3.0 and above
|
---|
1191 | /*Bit16u LinBytesPerScanLine*/ 1024*4,
|
---|
1192 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
1193 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
1194 | /*Bit8u LinRedMaskSize*/ 8,
|
---|
1195 | /*Bit8u LinRedFieldPosition*/ 16,
|
---|
1196 | /*Bit8u LinGreenMaskSize*/ 8,
|
---|
1197 | /*Bit8u LinGreenFieldPosition*/ 8,
|
---|
1198 | /*Bit8u LinBlueMaskSize*/ 8,
|
---|
1199 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
1200 | /*Bit8u LinRsvdMaskSize*/ 8,
|
---|
1201 | /*Bit8u LinRsvdFieldPosition*/ 24,
|
---|
1202 | /*Bit32u MaxPixelClock*/ 0,
|
---|
1203 | /*} ModeInfoBlock;*/
|
---|
1204 | }
|
---|
1205 | },
|
---|
1206 |
|
---|
1207 | {
|
---|
1208 | VBE_OWN_MODE_320X200X8,
|
---|
1209 | {
|
---|
1210 | /*typedef struct ModeInfoBlock
|
---|
1211 | {*/
|
---|
1212 | // Mandatory information for all VBE revisions
|
---|
1213 | /*Bit16u ModeAttributes*/ VBE_MODE_ATTRIBUTE_SUPPORTED |
|
---|
1214 | VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
|
---|
1215 | VBE_MODE_ATTRIBUTE_COLOR_MODE |
|
---|
1216 | #ifdef VBE_HAVE_LFB
|
---|
1217 | VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE |
|
---|
1218 | #endif
|
---|
1219 | VBE_MODE_ATTRIBUTE_GRAPHICS_MODE,
|
---|
1220 | /*Bit8u WinAAttributes*/ VBE_WINDOW_ATTRIBUTE_READABLE |
|
---|
1221 | VBE_WINDOW_ATTRIBUTE_WRITEABLE,
|
---|
1222 | /*Bit8u WinBAttributes*/ 0,
|
---|
1223 | /*Bit16u WinGranularity*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1224 | /*Bit16u WinSize*/ VBE_DISPI_BANK_SIZE_KB,
|
---|
1225 | /*Bit16u WinASegment*/ VGAMEM_GRAPH,
|
---|
1226 | /*Bit16u WinBSegment*/ 0,
|
---|
1227 | /*Bit32u WinFuncPtr*/ 0,
|
---|
1228 | /*Bit16u BytesPerScanLine*/ 320,
|
---|
1229 | // Mandatory information for VBE 1.2 and above
|
---|
1230 | /*Bit16u XResolution*/ 320,
|
---|
1231 | /*Bit16u YResolution*/ 200,
|
---|
1232 | /*Bit8u XCharSize*/ 8,
|
---|
1233 | /*Bit8u YCharSize*/ 16,
|
---|
1234 | /*Bit8u NumberOfPlanes*/ 1,
|
---|
1235 | /*Bit8u BitsPerPixel*/ 8,
|
---|
1236 | /*Bit8u NumberOfBanks*/ 1,
|
---|
1237 | /*Bit8u MemoryModel*/ VBE_MEMORYMODEL_PACKED_PIXEL,
|
---|
1238 | /*Bit8u BankSize*/ 0,
|
---|
1239 | /*Bit8u NumberOfImagePages*/ 3,
|
---|
1240 | /*Bit8u Reserved_page*/ 0,
|
---|
1241 | // Direct Color fields (required for direct/6 and YUV/7 memory models)
|
---|
1242 | /*Bit8u RedMaskSize*/ 0,
|
---|
1243 | /*Bit8u RedFieldPosition*/ 0,
|
---|
1244 | /*Bit8u GreenMaskSize*/ 0,
|
---|
1245 | /*Bit8u GreenFieldPosition*/ 0,
|
---|
1246 | /*Bit8u BlueMaskSize*/ 0,
|
---|
1247 | /*Bit8u BlueFieldPosition*/ 0,
|
---|
1248 | /*Bit8u RsvdMaskSize*/ 0,
|
---|
1249 | /*Bit8u RsvdFieldPosition*/ 0,
|
---|
1250 | /*Bit8u DirectColorModeInfo*/ 0,
|
---|
1251 | // Mandatory information for VBE 2.0 and above
|
---|
1252 | #ifdef VBE_HAVE_LFB
|
---|
1253 | /*Bit32u PhysBasePtr*/ VBE_DISPI_LFB_PHYSICAL_ADDRESS,
|
---|
1254 | #else
|
---|
1255 | /*Bit32u PhysBasePtr*/ 0,
|
---|
1256 | #endif
|
---|
1257 | /*Bit32u OffScreenMemOffset*/ 0,
|
---|
1258 | /*Bit16u OffScreenMemSize*/ 0,
|
---|
1259 | // Mandatory information for VBE 3.0 and above
|
---|
1260 | /*Bit16u LinBytesPerScanLine*/ 320,
|
---|
1261 | /*Bit8u BnkNumberOfPages*/ 0,
|
---|
1262 | /*Bit8u LinNumberOfPages*/ 0,
|
---|
1263 | /*Bit8u LinRedMaskSize*/ 0,
|
---|
1264 | /*Bit8u LinRedFieldPosition*/ 0,
|
---|
1265 | /*Bit8u LinGreenMaskSize*/ 0,
|
---|
1266 | /*Bit8u LinGreenFieldPosition*/ 0,
|
---|
1267 | /*Bit8u LinBlueMaskSize*/ 0,
|
---|
1268 | /*Bit8u LinBlueFieldPosition*/ 0,
|
---|
1269 | /*Bit8u LinRsvdMaskSize*/ 0,
|
---|
1270 | /*Bit8u LinRsvdFieldPosition*/ 0,
|
---|
1271 | /*Bit32u MaxPixelClock*/ 0,
|
---|
1272 | /*} ModeInfoBlock;*/
|
---|
1273 | }
|
---|
1274 | },
|
---|
1275 |
|
---|
1276 | /** END OF THE LIST **/
|
---|
1277 | {
|
---|
1278 | VBE_VESA_MODE_END_OF_LIST,
|
---|
1279 | {
|
---|
1280 | 0,
|
---|
1281 | }
|
---|
1282 | }
|
---|
1283 | };
|
---|
1284 |
|
---|
1285 | #endif // VBE_NEW_DYN_LIST
|
---|
1286 |
|
---|
1287 | #endif
|
---|