void enable_video(int on) { int s, ena; s = splhigh(); ena = get_control_byte(SYSTEM_ENAB); if (on) ena |= ENA_VIDEO; else ena &= ~ENA_VIDEO; set_control_byte(SYSTEM_ENAB, ena); splx(s); }
/* * This is called by the clock interrupt. */ void leds_intr() { register u_char i; if (led_countdown) { led_countdown--; return; } led_countdown = ledpat.divisor - 1; i = led_px; #ifdef _SUN3X_ *diagreg = (char) ledpat.pat[i]; #else set_control_byte(DIAG_REG, ledpat.pat[i]); #endif i = i+1; if (i == ledpat.patlen) i = 0; led_px = i; }
void set_segmap(vaddr_t va, int sme) { set_control_byte(CONTROL_ADDR_BUILD(SEGMAP_BASE, va), sme); }
void set_context(int c) { set_control_byte(CONTEXT_REG, (c & CONTEXT_MASK)); }