VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/BIOS/vgatables.h@ 76520

Last change on this file since 76520 was 76520, checked in by vboxsync, 6 years ago

Devices: scm --fix-header-guards. bugref:9344

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 24.6 KB
Line 
1
2#ifndef VBOX_INCLUDED_Graphics_vgatables_h
3#define VBOX_INCLUDED_Graphics_vgatables_h
4#ifndef RT_WITHOUT_PRAGMA_ONCE
5# pragma once
6#endif
7
8/* Video memory */
9#define VGAMEM_GRAPH 0xA000
10#define VGAMEM_CTEXT 0xB800
11#define VGAMEM_MTEXT 0xB000
12
13/*
14 *
15 * Tables of default values for each mode
16 *
17 */
18#define MODE_MAX 15
19#define TEXT 0x00
20#define GRAPH 0x01
21
22#define CTEXT 0x00
23#define MTEXT 0x01
24#define CGA 0x02
25#define PLANAR1 0x03
26#define PLANAR4 0x04
27#define LINEAR8 0x05
28
29// for SVGA
30#define LINEAR15 0x10
31#define LINEAR16 0x11
32#define LINEAR24 0x12
33#define LINEAR32 0x13
34
35typedef struct
36{uint8_t svgamode;
37 uint8_t class; /* TEXT, GRAPH */
38 uint8_t memmodel; /* CTEXT,MTEXT,CGA,PL1,PL2,PL4,P8,P15,P16,P24,P32 */
39 uint8_t pixbits;
40 uint16_t sstart;
41 uint8_t pelmask;
42 uint8_t dacmodel; /* 0 1 2 3 */
43} VGAMODES;
44
45static VGAMODES vga_modes[MODE_MAX+1]=
46{//mode class model bits sstart pelm dac
47 {0x00, TEXT, CTEXT, 4, 0xB800, 0xFF, 0x02},
48 {0x01, TEXT, CTEXT, 4, 0xB800, 0xFF, 0x02},
49 {0x02, TEXT, CTEXT, 4, 0xB800, 0xFF, 0x02},
50 {0x03, TEXT, CTEXT, 4, 0xB800, 0xFF, 0x02},
51 {0x04, GRAPH, CGA, 2, 0xB800, 0xFF, 0x01},
52 {0x05, GRAPH, CGA, 2, 0xB800, 0xFF, 0x01},
53 {0x06, GRAPH, CGA, 1, 0xB800, 0xFF, 0x01},
54 {0x07, TEXT, MTEXT, 4, 0xB000, 0xFF, 0x00},
55 {0x0D, GRAPH, PLANAR4, 4, 0xA000, 0xFF, 0x01},
56 {0x0E, GRAPH, PLANAR4, 4, 0xA000, 0xFF, 0x01},
57 {0x0F, GRAPH, PLANAR1, 1, 0xA000, 0xFF, 0x00},
58 {0x10, GRAPH, PLANAR4, 4, 0xA000, 0xFF, 0x02},
59 {0x11, GRAPH, PLANAR1, 1, 0xA000, 0xFF, 0x02},
60 {0x12, GRAPH, PLANAR4, 4, 0xA000, 0xFF, 0x02},
61 {0x13, GRAPH, LINEAR8, 8, 0xA000, 0xFF, 0x03},
62 {0x6A, GRAPH, PLANAR4, 4, 0xA000, 0xFF, 0x02}
63};
64
65/* convert index in vga_modes[] to index in video_param_table[] */
66static uint8_t line_to_vpti[MODE_MAX+1]={
67 0x17, 0x17, 0x18, 0x18, 0x04, 0x05, 0x06, 0x07,
68 0x0d, 0x0e, 0x11, 0x12, 0x1a, 0x1b, 0x1c, 0x1d,
69};
70
71/* Default Palette */
72#define DAC_MAX_MODEL 3
73
74static uint8_t dac_regs[DAC_MAX_MODEL+1]=
75{0x3f,0x3f,0x3f,0xff};
76
77/* standard BIOS Video Parameter Table */
78typedef struct {
79 uint8_t twidth;
80 uint8_t theightm1;
81 uint8_t cheight;
82 uint8_t slength_l;
83 uint8_t slength_h;
84 uint8_t sequ_regs[4];
85 uint8_t miscreg;
86 uint8_t crtc_regs[25];
87 uint8_t actl_regs[20];
88 uint8_t grdc_regs[9];
89} VideoParamTableEntry;
90
91static VideoParamTableEntry video_param_table[30] = {
92{
93 /* index=0x00 no mode defined */
94 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
95 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
96 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
97 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
98 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
99 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
100 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
101 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
102},
103{
104 /* index=0x01 no mode defined */
105 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
106 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
107 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
108 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
109 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
110 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
111 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
112 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
113},
114{
115 /* index=0x02 no mode defined */
116 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
117 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
118 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
119 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
120 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
121 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
122 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
123 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
124},
125{
126 /* index=0x03 no mode defined */
127 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
128 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
129 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
130 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
131 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
132 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
133 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
134 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
135},
136{
137 /* index=0x04 vga mode 0x04 */
138 40, 24, 8, 0x00, 0x08, /* tw, th-1, ch, slength */
139 0x09, 0x03, 0x00, 0x02, /* sequ_regs */
140 0x63, /* miscreg */
141 0x2d, 0x27, 0x28, 0x90, 0x2b, 0x80, 0xbf, 0x1f,
142 0x00, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
143 0x9c, 0x8e, 0x8f, 0x14, 0x00, 0x96, 0xb9, 0xa2,
144 0xff, /* crtc_regs */
145 0x00, 0x13, 0x15, 0x17, 0x02, 0x04, 0x06, 0x07,
146 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
147 0x01, 0x00, 0x03, 0x00, /* actl_regs */
148 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0f, 0x0f, 0xff, /* grdc_regs */
149},
150{
151 /* index=0x05 vga mode 0x05 */
152 40, 24, 8, 0x00, 0x08, /* tw, th-1, ch, slength */
153 0x09, 0x03, 0x00, 0x02, /* sequ_regs */
154 0x63, /* miscreg */
155 0x2d, 0x27, 0x28, 0x90, 0x2b, 0x80, 0xbf, 0x1f,
156 0x00, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
157 0x9c, 0x8e, 0x8f, 0x14, 0x00, 0x96, 0xb9, 0xa2,
158 0xff, /* crtc_regs */
159 0x00, 0x13, 0x15, 0x17, 0x02, 0x04, 0x06, 0x07,
160 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
161 0x01, 0x00, 0x03, 0x00, /* actl_regs */
162 0x00, 0x00, 0x00, 0x00, 0x00, 0x30, 0x0f, 0x0f, 0xff, /* grdc_regs */
163},
164{
165 /* index=0x06 vga mode 0x06 */
166 80, 24, 8, 0x00, 0x10, /* tw, th-1, ch, slength */
167 0x01, 0x01, 0x00, 0x06, /* sequ_regs */
168 0x63, /* miscreg */
169 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0xbf, 0x1f,
170 0x00, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
171 0x9c, 0x8e, 0x8f, 0x28, 0x00, 0x96, 0xb9, 0xc2,
172 0xff, /* crtc_regs */
173 0x00, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17,
174 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17, 0x17,
175 0x01, 0x00, 0x01, 0x00, /* actl_regs */
176 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x0f, 0xff, /* grdc_regs */
177},
178{
179 /* index=0x07 vga mode 0x07 */
180 80, 24, 16, 0x00, 0x10, /* tw, th-1, ch, slength */
181 0x00, 0x03, 0x00, 0x02, /* sequ_regs */
182 0x66, /* miscreg */
183 0x5f, 0x4f, 0x50, 0x82, 0x55, 0x81, 0xbf, 0x1f,
184 0x00, 0x4f, 0x0d, 0x0e, 0x00, 0x00, 0x00, 0x00,
185 0x9c, 0x8e, 0x8f, 0x28, 0x0f, 0x96, 0xb9, 0xa3,
186 0xff, /* crtc_regs */
187 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
188 0x10, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
189 0x0e, 0x00, 0x0f, 0x08, /* actl_regs */
190 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0a, 0x0f, 0xff, /* grdc_regs */
191},
192{
193 /* index=0x08 no mode defined */
194 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
195 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
196 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
197 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
198 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
199 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
200 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
201 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
202},
203{
204 /* index=0x09 no mode defined */
205 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
206 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
207 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
208 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
209 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
210 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
211 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
212 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
213},
214{
215 /* index=0x0a no mode defined */
216 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
217 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
218 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
219 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
220 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
221 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
222 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
223 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
224},
225{
226 /* index=0x0b no mode defined */
227 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
228 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
229 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
230 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
231 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
232 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
233 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
234 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
235},
236{
237 /* index=0x0c no mode defined */
238 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
239 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
240 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
241 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
242 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
243 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
244 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
245 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
246},
247{
248 /* index=0x0d vga mode 0x0d */
249 40, 24, 8, 0x00, 0x20, /* tw, th-1, ch, slength */
250 0x09, 0x0f, 0x00, 0x06, /* sequ_regs */
251 0x63, /* miscreg */
252 0x2d, 0x27, 0x28, 0x90, 0x2b, 0x80, 0xbf, 0x1f,
253 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
254 0x9c, 0x8e, 0x8f, 0x14, 0x00, 0x96, 0xb9, 0xe3,
255 0xff, /* crtc_regs */
256 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
257 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
258 0x01, 0x00, 0x0f, 0x00, /* actl_regs */
259 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* grdc_regs */
260},
261{
262 /* index=0x0e vga mode 0x0e */
263 80, 24, 8, 0x00, 0x40, /* tw, th-1, ch, slength */
264 0x01, 0x0f, 0x00, 0x06, /* sequ_regs */
265 0x63, /* miscreg */
266 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0xbf, 0x1f,
267 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
268 0x9c, 0x8e, 0x8f, 0x28, 0x00, 0x96, 0xb9, 0xe3,
269 0xff, /* crtc_regs */
270 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
271 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
272 0x01, 0x00, 0x0f, 0x00, /* actl_regs */
273 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* grdc_regs */
274},
275{
276 /* index=0x0f no mode defined */
277 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
278 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
279 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
280 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
281 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
282 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
283 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
284 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
285},
286{
287 /* index=0x10 no mode defined */
288 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
289 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
290 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
291 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
292 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
293 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
294 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
295 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
296},
297{
298 /* index=0x11 vga mode 0x0f */
299 80, 24, 14, 0x00, 0x80, /* tw, th-1, ch, slength */
300 0x01, 0x0f, 0x00, 0x06, /* sequ_regs */
301 0xa3, /* miscreg */
302 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0xbf, 0x1f,
303 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
304 0x83, 0x85, 0x5d, 0x28, 0x0f, 0x63, 0xba, 0xe3,
305 0xff, /* crtc_regs */
306 0x00, 0x08, 0x00, 0x00, 0x18, 0x18, 0x00, 0x00,
307 0x00, 0x08, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00,
308 0x01, 0x00, 0x01, 0x00, /* actl_regs */
309 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* grdc_regs */
310},
311{
312 /* index=0x12 vga mode 0x10 */
313 80, 24, 14, 0x00, 0x80, /* tw, th-1, ch, slength */
314 0x01, 0x0f, 0x00, 0x06, /* sequ_regs */
315 0xa3, /* miscreg */
316 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0xbf, 0x1f,
317 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
318 0x83, 0x85, 0x5d, 0x28, 0x0f, 0x63, 0xba, 0xe3,
319 0xff, /* crtc_regs */
320 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
321 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
322 0x01, 0x00, 0x0f, 0x00, /* actl_regs */
323 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* grdc_regs */
324},
325{
326 /* index=0x13 no mode defined */
327 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
328 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
329 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
330 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
331 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
332 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
333 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
334 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
335},
336{
337 /* index=0x14 no mode defined */
338 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
339 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
340 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
341 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
342 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
343 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
344 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
345 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
346},
347{
348 /* index=0x15 no mode defined */
349 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
350 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
351 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
352 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
353 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
354 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
355 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
356 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
357},
358{
359 /* index=0x16 ega mode 0x03 */
360 80, 24, 14, 0x00, 0x10, /* tw, th-1, ch, slength */
361 0x00, 0x03, 0x00, 0x02, /* sequ_regs */
362 0x67, /* miscreg */
363 0x5f, 0x4f, 0x50, 0x82, 0x55, 0x81, 0xbf, 0x1f,
364 0x00, 0x4f, 0x0d, 0x0e, 0x00, 0x00, 0x00, 0x00,
365 0x9c, 0x8e, 0x8f, 0x28, 0x1f, 0x96, 0xb9, 0xa3,
366 0xff, /* crtc_regs */
367 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
368 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
369 0x0c, 0x00, 0x0f, 0x08, /* actl_regs */
370 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0e, 0x0f, 0xff, /* grdc_regs */
371},
372{
373 /* index=0x17 vga mode 0x01 */
374 40, 24, 16, 0x00, 0x08, /* tw, th-1, ch, slength */
375 0x08, 0x03, 0x00, 0x02, /* sequ_regs */
376 0x67, /* miscreg */
377 0x2d, 0x27, 0x28, 0x90, 0x2b, 0xa0, 0xbf, 0x1f,
378 0x00, 0x4f, 0x0d, 0x0e, 0x00, 0x00, 0x00, 0x00,
379 0x9c, 0x8e, 0x8f, 0x14, 0x1f, 0x96, 0xb9, 0xa3,
380 0xff, /* crtc_regs */
381 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
382 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
383 0x0c, 0x00, 0x0f, 0x08, /* actl_regs */
384 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0e, 0x0f, 0xff, /* grdc_regs */
385},
386{
387 /* index=0x18 vga mode 0x03 */
388 80, 24, 16, 0x00, 0x10, /* tw, th-1, ch, slength */
389 0x00, 0x03, 0x00, 0x02, /* sequ_regs */
390 0x67, /* miscreg */
391 0x5f, 0x4f, 0x50, 0x82, 0x55, 0x81, 0xbf, 0x1f,
392 0x00, 0x4f, 0x0d, 0x0e, 0x00, 0x00, 0x00, 0x00,
393 0x9c, 0x8e, 0x8f, 0x28, 0x1f, 0x96, 0xb9, 0xa3,
394 0xff, /* crtc_regs */
395 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
396 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
397 0x0c, 0x00, 0x0f, 0x08, /* actl_regs */
398 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0e, 0x0f, 0xff, /* grdc_regs */
399},
400{
401 /* index=0x19 vga mode 0x07 */
402 80, 24, 16, 0x00, 0x10, /* tw, th-1, ch, slength */
403 0x00, 0x03, 0x00, 0x02, /* sequ_regs */
404 0x66, /* miscreg */
405 0x5f, 0x4f, 0x50, 0x82, 0x55, 0x81, 0xbf, 0x1f,
406 0x00, 0x4f, 0x0d, 0x0e, 0x00, 0x00, 0x00, 0x00,
407 0x9c, 0x8e, 0x8f, 0x28, 0x0f, 0x96, 0xb9, 0xa3,
408 0xff, /* crtc_regs */
409 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
410 0x10, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18, 0x18,
411 0x0e, 0x00, 0x0f, 0x08, /* actl_regs */
412 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x0a, 0x0f, 0xff, /* grdc_regs */
413},
414{
415 /* index=0x1a vga mode 0x11 */
416 80, 29, 16, 0x00, 0x00, /* tw, th-1, ch, slength */
417 0x01, 0x0f, 0x00, 0x06, /* sequ_regs */
418 0xe3, /* miscreg */
419 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0x0b, 0x3e,
420 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
421 0xea, 0x8c, 0xdf, 0x28, 0x00, 0xe7, 0x04, 0xe3,
422 0xff, /* crtc_regs */
423 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f,
424 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f, 0x00, 0x3f,
425 0x01, 0x00, 0x0f, 0x00, /* actl_regs */
426 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* grdc_regs */
427},
428{
429 /* index=0x1b vga mode 0x12 */
430 80, 29, 16, 0x00, 0x00, /* tw, th-1, ch, slength */
431 0x01, 0x0f, 0x00, 0x06, /* sequ_regs */
432 0xe3, /* miscreg */
433 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0x0b, 0x3e,
434 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
435 0xea, 0x8c, 0xdf, 0x28, 0x00, 0xe7, 0x04, 0xe3,
436 0xff, /* crtc_regs */
437 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
438 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
439 0x01, 0x00, 0x0f, 0x00, /* actl_regs */
440 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* grdc_regs */
441},
442{
443 /* index=0x1c vga mode 0x13 */
444 40, 24, 8, 0x00, 0x00, /* tw, th-1, ch, slength */
445 0x01, 0x0f, 0x00, 0x0e, /* sequ_regs */
446 0x63, /* miscreg */
447 0x5f, 0x4f, 0x50, 0x82, 0x54, 0x80, 0xbf, 0x1f,
448 0x00, 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
449 0x9c, 0x8e, 0x8f, 0x28, 0x40, 0x96, 0xb9, 0xa3,
450 0xff, /* crtc_regs */
451 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
452 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
453 0x41, 0x00, 0x0f, 0x00, /* actl_regs */
454 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x05, 0x0f, 0xff, /* grdc_regs */
455},
456{
457 /* index=0x1d vga mode 0x6a */
458 100, 36, 16, 0x00, 0x00, /* tw, th-1, ch, slength */
459 0x01, 0x0f, 0x00, 0x06, /* sequ_regs */
460 0xe3, /* miscreg */
461 0x7f, 0x63, 0x63, 0x83, 0x6b, 0x1b, 0x72, 0xf0,
462 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
463 0x59, 0x8d, 0x57, 0x32, 0x00, 0x57, 0x73, 0xe3,
464 0xff, /* crtc_regs */
465 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x14, 0x07,
466 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
467 0x01, 0x00, 0x0f, 0x00, /* actl_regs */
468 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0f, 0xff, /* grdc_regs */
469},
470};
471
472/* Mono */
473static uint8_t palette0[63+1][3]=
474{
475 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00,
476 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
477 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
478 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f,
479 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00,
480 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
481 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,
482 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f
483};
484
485static uint8_t palette1[63+1][3]=
486{
487 0x00,0x00,0x00, 0x00,0x00,0x2a, 0x00,0x2a,0x00, 0x00,0x2a,0x2a, 0x2a,0x00,0x00, 0x2a,0x00,0x2a, 0x2a,0x15,0x00, 0x2a,0x2a,0x2a,
488 0x00,0x00,0x00, 0x00,0x00,0x2a, 0x00,0x2a,0x00, 0x00,0x2a,0x2a, 0x2a,0x00,0x00, 0x2a,0x00,0x2a, 0x2a,0x15,0x00, 0x2a,0x2a,0x2a,
489 0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f,
490 0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f,
491 0x00,0x00,0x00, 0x00,0x00,0x2a, 0x00,0x2a,0x00, 0x00,0x2a,0x2a, 0x2a,0x00,0x00, 0x2a,0x00,0x2a, 0x2a,0x15,0x00, 0x2a,0x2a,0x2a,
492 0x00,0x00,0x00, 0x00,0x00,0x2a, 0x00,0x2a,0x00, 0x00,0x2a,0x2a, 0x2a,0x00,0x00, 0x2a,0x00,0x2a, 0x2a,0x15,0x00, 0x2a,0x2a,0x2a,
493 0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f,
494 0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f
495};
496
497static uint8_t palette2[63+1][3]=
498{
499 0x00,0x00,0x00, 0x00,0x00,0x2a, 0x00,0x2a,0x00, 0x00,0x2a,0x2a, 0x2a,0x00,0x00, 0x2a,0x00,0x2a, 0x2a,0x2a,0x00, 0x2a,0x2a,0x2a,
500 0x00,0x00,0x15, 0x00,0x00,0x3f, 0x00,0x2a,0x15, 0x00,0x2a,0x3f, 0x2a,0x00,0x15, 0x2a,0x00,0x3f, 0x2a,0x2a,0x15, 0x2a,0x2a,0x3f,
501 0x00,0x15,0x00, 0x00,0x15,0x2a, 0x00,0x3f,0x00, 0x00,0x3f,0x2a, 0x2a,0x15,0x00, 0x2a,0x15,0x2a, 0x2a,0x3f,0x00, 0x2a,0x3f,0x2a,
502 0x00,0x15,0x15, 0x00,0x15,0x3f, 0x00,0x3f,0x15, 0x00,0x3f,0x3f, 0x2a,0x15,0x15, 0x2a,0x15,0x3f, 0x2a,0x3f,0x15, 0x2a,0x3f,0x3f,
503 0x15,0x00,0x00, 0x15,0x00,0x2a, 0x15,0x2a,0x00, 0x15,0x2a,0x2a, 0x3f,0x00,0x00, 0x3f,0x00,0x2a, 0x3f,0x2a,0x00, 0x3f,0x2a,0x2a,
504 0x15,0x00,0x15, 0x15,0x00,0x3f, 0x15,0x2a,0x15, 0x15,0x2a,0x3f, 0x3f,0x00,0x15, 0x3f,0x00,0x3f, 0x3f,0x2a,0x15, 0x3f,0x2a,0x3f,
505 0x15,0x15,0x00, 0x15,0x15,0x2a, 0x15,0x3f,0x00, 0x15,0x3f,0x2a, 0x3f,0x15,0x00, 0x3f,0x15,0x2a, 0x3f,0x3f,0x00, 0x3f,0x3f,0x2a,
506 0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f
507};
508
509static uint8_t palette3[256][3]=
510{
511 0x00,0x00,0x00, 0x00,0x00,0x2a, 0x00,0x2a,0x00, 0x00,0x2a,0x2a, 0x2a,0x00,0x00, 0x2a,0x00,0x2a, 0x2a,0x15,0x00, 0x2a,0x2a,0x2a,
512 0x15,0x15,0x15, 0x15,0x15,0x3f, 0x15,0x3f,0x15, 0x15,0x3f,0x3f, 0x3f,0x15,0x15, 0x3f,0x15,0x3f, 0x3f,0x3f,0x15, 0x3f,0x3f,0x3f,
513 0x00,0x00,0x00, 0x05,0x05,0x05, 0x08,0x08,0x08, 0x0b,0x0b,0x0b, 0x0e,0x0e,0x0e, 0x11,0x11,0x11, 0x14,0x14,0x14, 0x18,0x18,0x18,
514 0x1c,0x1c,0x1c, 0x20,0x20,0x20, 0x24,0x24,0x24, 0x28,0x28,0x28, 0x2d,0x2d,0x2d, 0x32,0x32,0x32, 0x38,0x38,0x38, 0x3f,0x3f,0x3f,
515 0x00,0x00,0x3f, 0x10,0x00,0x3f, 0x1f,0x00,0x3f, 0x2f,0x00,0x3f, 0x3f,0x00,0x3f, 0x3f,0x00,0x2f, 0x3f,0x00,0x1f, 0x3f,0x00,0x10,
516 0x3f,0x00,0x00, 0x3f,0x10,0x00, 0x3f,0x1f,0x00, 0x3f,0x2f,0x00, 0x3f,0x3f,0x00, 0x2f,0x3f,0x00, 0x1f,0x3f,0x00, 0x10,0x3f,0x00,
517 0x00,0x3f,0x00, 0x00,0x3f,0x10, 0x00,0x3f,0x1f, 0x00,0x3f,0x2f, 0x00,0x3f,0x3f, 0x00,0x2f,0x3f, 0x00,0x1f,0x3f, 0x00,0x10,0x3f,
518 0x1f,0x1f,0x3f, 0x27,0x1f,0x3f, 0x2f,0x1f,0x3f, 0x37,0x1f,0x3f, 0x3f,0x1f,0x3f, 0x3f,0x1f,0x37, 0x3f,0x1f,0x2f, 0x3f,0x1f,0x27,
519
520 0x3f,0x1f,0x1f, 0x3f,0x27,0x1f, 0x3f,0x2f,0x1f, 0x3f,0x37,0x1f, 0x3f,0x3f,0x1f, 0x37,0x3f,0x1f, 0x2f,0x3f,0x1f, 0x27,0x3f,0x1f,
521 0x1f,0x3f,0x1f, 0x1f,0x3f,0x27, 0x1f,0x3f,0x2f, 0x1f,0x3f,0x37, 0x1f,0x3f,0x3f, 0x1f,0x37,0x3f, 0x1f,0x2f,0x3f, 0x1f,0x27,0x3f,
522 0x2d,0x2d,0x3f, 0x31,0x2d,0x3f, 0x36,0x2d,0x3f, 0x3a,0x2d,0x3f, 0x3f,0x2d,0x3f, 0x3f,0x2d,0x3a, 0x3f,0x2d,0x36, 0x3f,0x2d,0x31,
523 0x3f,0x2d,0x2d, 0x3f,0x31,0x2d, 0x3f,0x36,0x2d, 0x3f,0x3a,0x2d, 0x3f,0x3f,0x2d, 0x3a,0x3f,0x2d, 0x36,0x3f,0x2d, 0x31,0x3f,0x2d,
524 0x2d,0x3f,0x2d, 0x2d,0x3f,0x31, 0x2d,0x3f,0x36, 0x2d,0x3f,0x3a, 0x2d,0x3f,0x3f, 0x2d,0x3a,0x3f, 0x2d,0x36,0x3f, 0x2d,0x31,0x3f,
525 0x00,0x00,0x1c, 0x07,0x00,0x1c, 0x0e,0x00,0x1c, 0x15,0x00,0x1c, 0x1c,0x00,0x1c, 0x1c,0x00,0x15, 0x1c,0x00,0x0e, 0x1c,0x00,0x07,
526 0x1c,0x00,0x00, 0x1c,0x07,0x00, 0x1c,0x0e,0x00, 0x1c,0x15,0x00, 0x1c,0x1c,0x00, 0x15,0x1c,0x00, 0x0e,0x1c,0x00, 0x07,0x1c,0x00,
527 0x00,0x1c,0x00, 0x00,0x1c,0x07, 0x00,0x1c,0x0e, 0x00,0x1c,0x15, 0x00,0x1c,0x1c, 0x00,0x15,0x1c, 0x00,0x0e,0x1c, 0x00,0x07,0x1c,
528
529 0x0e,0x0e,0x1c, 0x11,0x0e,0x1c, 0x15,0x0e,0x1c, 0x18,0x0e,0x1c, 0x1c,0x0e,0x1c, 0x1c,0x0e,0x18, 0x1c,0x0e,0x15, 0x1c,0x0e,0x11,
530 0x1c,0x0e,0x0e, 0x1c,0x11,0x0e, 0x1c,0x15,0x0e, 0x1c,0x18,0x0e, 0x1c,0x1c,0x0e, 0x18,0x1c,0x0e, 0x15,0x1c,0x0e, 0x11,0x1c,0x0e,
531 0x0e,0x1c,0x0e, 0x0e,0x1c,0x11, 0x0e,0x1c,0x15, 0x0e,0x1c,0x18, 0x0e,0x1c,0x1c, 0x0e,0x18,0x1c, 0x0e,0x15,0x1c, 0x0e,0x11,0x1c,
532 0x14,0x14,0x1c, 0x16,0x14,0x1c, 0x18,0x14,0x1c, 0x1a,0x14,0x1c, 0x1c,0x14,0x1c, 0x1c,0x14,0x1a, 0x1c,0x14,0x18, 0x1c,0x14,0x16,
533 0x1c,0x14,0x14, 0x1c,0x16,0x14, 0x1c,0x18,0x14, 0x1c,0x1a,0x14, 0x1c,0x1c,0x14, 0x1a,0x1c,0x14, 0x18,0x1c,0x14, 0x16,0x1c,0x14,
534 0x14,0x1c,0x14, 0x14,0x1c,0x16, 0x14,0x1c,0x18, 0x14,0x1c,0x1a, 0x14,0x1c,0x1c, 0x14,0x1a,0x1c, 0x14,0x18,0x1c, 0x14,0x16,0x1c,
535 0x00,0x00,0x10, 0x04,0x00,0x10, 0x08,0x00,0x10, 0x0c,0x00,0x10, 0x10,0x00,0x10, 0x10,0x00,0x0c, 0x10,0x00,0x08, 0x10,0x00,0x04,
536 0x10,0x00,0x00, 0x10,0x04,0x00, 0x10,0x08,0x00, 0x10,0x0c,0x00, 0x10,0x10,0x00, 0x0c,0x10,0x00, 0x08,0x10,0x00, 0x04,0x10,0x00,
537
538 0x00,0x10,0x00, 0x00,0x10,0x04, 0x00,0x10,0x08, 0x00,0x10,0x0c, 0x00,0x10,0x10, 0x00,0x0c,0x10, 0x00,0x08,0x10, 0x00,0x04,0x10,
539 0x08,0x08,0x10, 0x0a,0x08,0x10, 0x0c,0x08,0x10, 0x0e,0x08,0x10, 0x10,0x08,0x10, 0x10,0x08,0x0e, 0x10,0x08,0x0c, 0x10,0x08,0x0a,
540 0x10,0x08,0x08, 0x10,0x0a,0x08, 0x10,0x0c,0x08, 0x10,0x0e,0x08, 0x10,0x10,0x08, 0x0e,0x10,0x08, 0x0c,0x10,0x08, 0x0a,0x10,0x08,
541 0x08,0x10,0x08, 0x08,0x10,0x0a, 0x08,0x10,0x0c, 0x08,0x10,0x0e, 0x08,0x10,0x10, 0x08,0x0e,0x10, 0x08,0x0c,0x10, 0x08,0x0a,0x10,
542 0x0b,0x0b,0x10, 0x0c,0x0b,0x10, 0x0d,0x0b,0x10, 0x0f,0x0b,0x10, 0x10,0x0b,0x10, 0x10,0x0b,0x0f, 0x10,0x0b,0x0d, 0x10,0x0b,0x0c,
543 0x10,0x0b,0x0b, 0x10,0x0c,0x0b, 0x10,0x0d,0x0b, 0x10,0x0f,0x0b, 0x10,0x10,0x0b, 0x0f,0x10,0x0b, 0x0d,0x10,0x0b, 0x0c,0x10,0x0b,
544 0x0b,0x10,0x0b, 0x0b,0x10,0x0c, 0x0b,0x10,0x0d, 0x0b,0x10,0x0f, 0x0b,0x10,0x10, 0x0b,0x0f,0x10, 0x0b,0x0d,0x10, 0x0b,0x0c,0x10,
545 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00, 0x00,0x00,0x00
546};
547
548static uint8_t static_functionality[0x10]=
549{
550 /* 0 */ 0xff, // All modes supported #1
551 /* 1 */ 0xe0, // All modes supported #2
552 /* 2 */ 0x0f, // All modes supported #3
553 /* 3 */ 0x00, 0x00, 0x00, 0x00, // reserved
554 /* 7 */ 0x07, // 200, 350, 400 scan lines
555 /* 8 */ 0x02, // maximum number of visible charsets in text mode
556 /* 9 */ 0x08, // total number of charset blocks in text mode
557 /* a */ 0xe7, // Change to add new functions
558 /* b */ 0x0c, // Change to add new functions
559 /* c */ 0x00, // reserved
560 /* d */ 0x00, // reserved
561 /* e */ 0x00, // Change to add new functions
562 /* f */ 0x00 // reserved
563};
564
565#endif
566
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette