kernels/linux-2.4.0/drivers/video/cyber2000fb.c
/*
 * Disable access to the extended registers
 */
Disable access to the extended registers
Disable access to the extended registers
static void cyber2000fb_disable_extregs(struct cfb_info *cfb)
{
	if (cfb->func_use_count == 1) {
		int old;
		old = cyber2000_grphr(FUNC_CTL);
		cyber2000_grphw(FUNC_CTL, old & ~FUNC_CTL_EXTREGENBL);
	}
	cfb->func_use_count -= 1;
}
static void cyber2000fb_disable_extregs ( struct cfb_info * cfb ) { if ( cfb -> func_use_count == 1 ) { int old ; old = cyber2000_grphr ( FUNC_CTL ) ; cyber2000_grphw ( FUNC_CTL , old & ~ FUNC_CTL_EXTREGENBL ) ; } cfb -> func_use_count -= 1 ; }
Disable access to the extended registers
Disable access to the extended registers