44 if (card->
unsafe == unsafe) {
62 for (i = 0; i < card->
nmodes; i++, mi++) {
85 for (i = 0; i < card->
nmodes; i++, mi++) {
86 int visible = mi->
x || mi->
y;
88 if ((mode == nmode && visible) ||
90 mode == (mi->
y << 8)+mi->
x) {
91 *real_mode = mi->
mode;
101 for (card = video_cards; card < video_cards_end; card++) {
103 mode < card->xmode_first+card->
xmode_n) {
118 static void vga_recalc_vertical(
void)
120 unsigned int font_size,
rows;
125 font_size = rdfs8(0x485);
133 pt = in_idx(crtc, 0x11);
135 out_idx(pt, crtc, 0x11);
137 out_idx((
u8)rows, crtc, 0x12);
139 ov = in_idx(crtc, 0x07);
141 ov |= (rows >> (8-1)) & 0x02;
142 ov |= (rows >> (9-6)) & 0x40;
143 out_idx(ov, crtc, 0x07);
160 rv = raw_set_mode(mode, &real_mode);
165 vga_recalc_vertical();