Lines Matching refs:mode

191 static int int10_set_mode(int mode);
193 static int vesa_bios_get_mode(int mode, struct vesa_mode *vmode, int flags);
194 static int vesa_bios_set_mode(int mode);
220 static int vesa_map_gen_mode_num(int type, int color, int mode);
234 int10_set_mode(int mode)
239 regs.R_AL = mode;
303 vesa_bios_get_mode(int mode, struct vesa_mode *vmode, int flags)
315 regs.R_CX = mode;
334 vesa_bios_set_mode(int mode)
340 regs.R_BX = mode;
642 /* map a generic video mode to a known mode */
644 vesa_map_gen_mode_num(int type, int color, int mode)
658 if (mode_map[i].from == mode)
661 return (mode);
739 /* Return the minimum if the mode table looks absurd. */
782 * If the VBE real mode interrupt vector is not found, try BIOS POST.
905 printf("Rejecting VESA %s mode: %d x %d x %d bpp "
920 /* Does it have enough memory to support this mode? */
923 printf("Rejecting VESA %s mode: %d x %d x %d bpp "
952 printf("Found VESA %s mode: %d x %d x %d bpp\n",
1033 printf("VESA: %d mode(s) found\n", modes);
1212 vesa_get_info(video_adapter_t *adp, int mode, video_info_t *info)
1216 if ((*prevvidsw->get_info)(adp, mode, info) == 0)
1222 mode = vesa_map_gen_mode_num(vesa_adp->va_type,
1223 vesa_adp->va_flags & V_ADP_COLOR, mode);
1227 if (vesa_vmode[i].vi_mode == mode) {
1275 vesa_set_mode(video_adapter_t *adp, int mode)
1280 return ((*prevvidsw->set_mode)(adp, mode));
1282 mode = vesa_map_gen_mode_num(adp->va_type,
1283 adp->va_flags & V_ADP_COLOR, mode);
1286 adp->va_mode, adp->va_mode, mode, mode);
1289 * If the current mode is a VESA mode and the new mode is not,
1291 * standard VGA mode, so that non-standard, extended SVGA registers
1294 * the new mode correctly.
1297 if (!VESA_MODE(mode) &&
1298 (*prevvidsw->get_info)(adp, mode, &info) == 0) {
1313 /* we may not need to handle this mode after all... */
1314 if (!VESA_MODE(mode) && (*prevvidsw->set_mode)(adp, mode) == 0)
1317 /* is the new mode supported? */
1318 if (vesa_get_info(adp, mode, &info))
1320 /* assert(VESA_MODE(mode)); */
1323 printf("VESA: about to set a VESA mode...\n");
1330 mode |= 0x4000;
1331 if (vesa_bios_set_mode(mode | 0x8000))
1346 printf("VESA: mode set!\n");
1348 vesa_adp->va_mode = mode & 0x1ff; /* Mode number is 9-bit. */
1503 int error, mode;
1511 mode = adp->va_mode;
1513 if (mode != adp->va_initial_mode)
1514 error = vesa_set_mode(adp, mode);
1517 if (error == 0 && VESA_MODE(mode)) {
1614 vesa_blank_display(video_adapter_t *adp, int mode)
1618 return ((*prevvidsw->blank_display)(adp, mode));
1847 "VESA: v%d.%d, %dk memory, flags:0x%x, mode table:%p (%x)\n",
1870 /* mode information */
1878 printf("VESA: mode:0x%03x, flags:0x%04x",
1937 /* if the adapter is currently in a VESA mode, don't unload */
1941 * FIXME: if there is at least one vty which is in a VESA mode,