static int logo_saver(video_adapter_t *adp, int blank) { int i; if (blank) { /* switch to graphics mode */ if (blanked <= 0) { crit_enter(); set_video_mode(adp, scrmode); load_palette(adp, logo_pal); #if 0 /* XXX conflict */ set_border(adp, 0); #endif blanked++; vid = (u_char *)adp->va_window; banksize = adp->va_window_size; bpsl = adp->va_line_width; crit_exit(); for (i = 0; i < bpsl*scrh; i += banksize) { set_origin(adp, i); bzero(vid, banksize); } } logo_update(adp); } else { blanked = 0; } return 0; }
static int logo_saver(video_adapter_t *adp, int blank) { int pl; if (blank) { /* switch to graphics mode */ if (blanked <= 0) { pl = splhigh(); vidd_set_mode(adp, scrmode); vidd_load_palette(adp, logo_pal); vidd_set_border(adp, 0); blanked++; vid = (u_char *)adp->va_window; banksize = adp->va_window_size; bpsl = adp->va_line_width; splx(pl); vidd_clear(adp); } logo_update(adp); } else { blanked = 0; } return (0); }
static int logo_saver(video_adapter_t *adp, int blank) { int i, pl; if (blank) { /* switch to graphics mode */ if (blanked <= 0) { pl = splhigh(); set_video_mode(adp, scrmode); load_palette(adp, logo_pal); set_border(adp, 0); blanked++; vid = (u_char *)adp->va_window; banksize = adp->va_window_size; bpsl = adp->va_line_width; splx(pl); for (i = 0; i < bpsl * scrh; i += banksize) { set_origin(adp, i); bzero(vid, banksize); } } logo_update(adp); } else { blanked = 0; } return (0); }