kernels/linux-2.4.0/drivers/video/sa1100fb.c
/*
 *  sa1100fb_switch():       
 *	Change to the specified console.  Palette and video mode
 *      are changed to the console's stored parameters. 
 */
Change to the specified console.  Palette and video mode
are changed to the console's stored parameters.
Change to the specified console . Palette and video mode are changed to the console ' s stored parameters .
static int
sa1100fb_switch(int con, struct fb_info *info)
{
  	DPRINTK("con=%d info->modename=%s\n", con, info->modename);
        if (current_par.visual != FB_VISUAL_TRUECOLOR) {
                struct fb_cmap *cmap;
		if (current_par.currcon >= 0) {
			cmap = &fb_display[current_par.currcon].cmap;
			if (cmap->len)
				fb_get_cmap(cmap, 1, sa1100fb_getcolreg, info);
		}
        }
	current_par.currcon = con;
	fb_display[con].var.activate = FB_ACTIVATE_NOW;
	DPRINTK("fb_display[%d].var.activate=%x\n", con, fb_display[con].var.activate);
	sa1100fb_set_var(&fb_display[con].var, con, info);
	current_par.v_palette_base[0] = (current_par.v_palette_base[0] &
		0xcfff) | SA1100_PALETTE_MODE_VAL(current_par.bits_per_pixel);
	return 0;
}
static int sa1100fb_switch ( int con , struct fb_info * info ) { DPRINTK ( " \n " , con , info -> modename ) ; if ( current_par . visual != FB_VISUAL_TRUECOLOR ) { struct fb_cmap * cmap ; if ( current_par . currcon >= 0 ) { cmap = & fb_display [ current_par . currcon ] . cmap ; if ( cmap -> len ) fb_get_cmap ( cmap , 1 , sa1100fb_getcolreg , info ) ; } } current_par . currcon = con ; fb_display [ con ] . var . activate = FB_ACTIVATE_NOW ; DPRINTK ( " \n " , con , fb_display [ con ] . var . activate ) ; sa1100fb_set_var ( & fb_display [ con ] . var , con , info ) ; current_par . v_palette_base [ 0 ] = ( current_par . v_palette_base [ 0 ] & 0xcfff ) | SA1100_PALETTE_MODE_VAL ( current_par . bits_per_pixel ) ; return 0 ; }
sa1100fb_switch():
      Change to the specified console.
sa1100fb_switch () : Change to the specified console .
// Get the colormap for the selected console 