kernels/linux-2.4.0/drivers/video/sis/sis_main.c
/*
 *    Get the Fixed Part of the Display
 */
Get the Fixed Part of the Display
Get the Fixed Part of the Display
static int sisfb_get_fix(struct fb_fix_screeninfo *fix, int con,
			 struct fb_info *info)
{
	DPRINTK("sisfb: sisfb_get_fix:[%d]\n", con);
	memset(fix, 0, sizeof(struct fb_fix_screeninfo));
	strcpy(fix->id, fb_info.modename);
	fix->smem_start = ivideo.video_base;
	if(ivideo.video_size > 0x800000)
		fix->smem_len = RESERVED_MEM_SIZE_8M;	
	else
		fix->smem_len = RESERVED_MEM_SIZE_4M;	
	fix->type = video_type;
	fix->type_aux = 0;
	if (ivideo.video_bpp == 8)
		fix->visual = FB_VISUAL_PSEUDOCOLOR;
	else
		fix->visual = FB_VISUAL_TRUECOLOR;
	fix->xpanstep = 0;
	fix->ypanstep = 0;
	fix->ywrapstep = 0;
	fix->line_length = video_linelength;
	fix->mmio_start = ivideo.mmio_base;
	fix->mmio_len = MMIO_SIZE;
	fix->accel = FB_ACCEL_SIS_GLAMOUR;
	fix->reserved[0] = ivideo.video_size & 0xFFFF;
	fix->reserved[1] = (ivideo.video_size >> 16) & 0xFFFF;
	fix->reserved[2] = caps;	
	return 0;
}
static int sisfb_get_fix ( struct fb_fix_screeninfo * fix , int con , struct fb_info * info ) { DPRINTK ( " \n " , con ) ; memset ( fix , 0 , sizeof ( struct fb_fix_screeninfo ) ) ; strcpy ( fix -> id , fb_info . modename ) ; fix -> smem_start = ivideo . video_base ; if ( ivideo . video_size > 0x800000 ) fix -> smem_len = RESERVED_MEM_SIZE_8M ; else fix -> smem_len = RESERVED_MEM_SIZE_4M ; fix -> type = video_type ; fix -> type_aux = 0 ; if ( ivideo . video_bpp == 8 ) fix -> visual = FB_VISUAL_PSEUDOCOLOR ; else fix -> visual = FB_VISUAL_TRUECOLOR ; fix -> xpanstep = 0 ; fix -> ypanstep = 0 ; fix -> ywrapstep = 0 ; fix -> line_length = video_linelength ; fix -> mmio_start = ivideo . mmio_base ; fix -> mmio_len = MMIO_SIZE ; fix -> accel = FB_ACCEL_SIS_GLAMOUR ; fix -> reserved [ 0 ] = ivideo . video_size & 0xFFFF ; fix -> reserved [ 1 ] = ( ivideo . video_size >> 16 ) & 0xFFFF ; fix -> reserved [ 2 ] = caps ; return 0 ; }
Get the Fixed Part of the Display
Get the Fixed Part of the Display
/* reserved for Xserver */ /* reserved for Xserver */ /* capabilities */