kernels/linux-2.4.0/drivers/video/cyber2000fb.c
/*
 * Attach a capture/tv driver to the core CyberX0X0 driver.
 */
Attach a capture/tv driver to the core CyberX0X0 driver.
Attach a capture / tv driver to the core CyberX0X0 driver .
int cyber2000fb_attach(struct cyberpro_info *info, int idx)
{
	if (int_cfb_info != NULL) {
		info->dev	      = int_cfb_info->dev;
		info->regs	      = CyberRegs;
		info->fb	      = int_cfb_info->fb.screen_base;
		info->fb_size	      = int_cfb_info->fb.fix.smem_len;
		info->enable_extregs  = cyber2000fb_enable_extregs;
		info->disable_extregs = cyber2000fb_disable_extregs;
		info->info            = int_cfb_info;
		strncpy(info->dev_name, int_cfb_info->fb.fix.id, sizeof(info->dev_name));
		MOD_INC_USE_COUNT;
	}
	return int_cfb_info != NULL;
}
int cyber2000fb_attach ( struct cyberpro_info * info , int idx ) { if ( int_cfb_info != NULL ) { info -> dev = int_cfb_info -> dev ; info -> regs = CyberRegs ; info -> fb = int_cfb_info -> fb . screen_base ; info -> fb_size = int_cfb_info -> fb . fix . smem_len ; info -> enable_extregs = cyber2000fb_enable_extregs ; info -> disable_extregs = cyber2000fb_disable_extregs ; info -> info = int_cfb_info ; strncpy ( info -> dev_name , int_cfb_info -> fb . fix . id , sizeof ( info -> dev_name ) ) ; MOD_INC_USE_COUNT ; } return int_cfb_info != NULL ; }
Attach a capture/tv driver to the core CyberX0X0 driver.
Attach a capture / tv driver to the core CyberX0X0 driver .