kernels/linux-2.4.0/drivers/video/sa1100fb.c
/*
 *  sa1100fb_disable_lcd_controller():
 *    	Disables LCD controller by and enables LDD interrupt.  The controller_state
 *      is not changed until the LDD interrupt is received to indicate the current
 *      frame has completed.  Platform specific hardware disabling is also included.
 */
Disables LCD controller by and enables LDD interrupt.  The controller_state
is not changed until the LDD interrupt is received to indicate the current
frame has completed.  Platform specific hardware disabling is also included.
Disables LCD controller by and enables LDD interrupt . The controller_state is not changed until the LDD interrupt is received to indicate the current frame has completed . Platform specific hardware disabling is also included .
static void sa1100fb_disable_lcd_controller(void)
{
        DPRINTK("Disabling LCD controller\n");
	if ((current_par.controller_state == LCD_MODE_DISABLED) ||
	    (!(LCCR0 & LCCR0_LDM))) {
		DPRINTK("LCD already disabled\n");
		return;
	}
	LCSR = 0;	
	LCCR0 &= ~(LCCR0_LDM);	
	enable_irq(IRQ_LCD);	      
	LCCR0 &= ~(LCCR0_LEN);	
}
static void sa1100fb_disable_lcd_controller ( void ) { DPRINTK ( " \n " ) ; if ( ( current_par . controller_state == LCD_MODE_DISABLED ) || ( ! ( LCCR0 & LCCR0_LDM ) ) ) { DPRINTK ( " \n " ) ; return ; } LCSR = 0 ; LCCR0 &= ~ ( LCCR0_LDM ) ; enable_irq ( IRQ_LCD ) ; LCCR0 &= ~ ( LCCR0_LEN ) ; }
sa1100fb_disable_lcd_controller():
      Disables LCD controller by and enables LDD interrupt.
sa1100fb_disable_lcd_controller () : Disables LCD controller by and enables LDD interrupt .
/* Exit if already LCD disabled, or LDD IRQ unmasked */ /* Clear LCD Status Register */ /* Enable LCD Disable Done Interrupt */ /* Enable LCD IRQ */ /* Disable LCD Controller */