FreeBSD/sys/dev/fb/vga.c
/*
 * show_font():
 * Activate the requested font page.
 * NOTE: it appears that some recent video adapters do not support
 * the font page other than 0... XXX
 *
 * EGA/VGA
 */
Activate the requested font page.
NOTE: it appears that some recent video adapters do not support
the font page other than 0... XXX

EGA/VGA
Activate the requested font page . NOTE : it appears that some recent video adapters do not support the font page other than 0 ... XXX EGA / VGA
static int
vga_show_font(video_adapter_t *adp, int page)
{
#ifndef VGA_NO_FONT_LOADING
    static u_char cg[] = { 0x00, 0x05, 0x0a, 0x0f, 0x30, 0x35, 0x3a, 0x3f };
    int s;
    prologue(adp, V_ADP_FONT, ENODEV);
    if (page < 0 || page >= 8)
	return EINVAL;
    s = splhigh();
    outb(TSIDX, 0x03); outb(TSREG, cg[page]);
    splx(s);
    return 0;
#else 
    return ENODEV;
#endif 
}
static int vga_show_font ( video_adapter_t * adp , int page ) { #ifndef VGA_NO_FONT_LOADING static u_char cg [ ] = { 0x00 , 0x05 , 0x0a , 0x0f , 0x30 , 0x35 , 0x3a , 0x3f } ; int s ; prologue ( adp , V_ADP_FONT , ENODEV ) ; if ( page < 0 || page >= 8 ) return EINVAL ; s = splhigh ( ) ; outb ( TSIDX , 0x03 ) ; outb ( TSREG , cg [ page ] ) ; splx ( s ) ; return 0 ; #else return ENODEV ; #endif }
show_font():
 Activate the requested font page.
show_font () : Activate the requested font page .
/* VGA_NO_FONT_LOADING */ /* VGA_NO_FONT_LOADING */