kernels/linux-2.4.0/arch/ppc/kernel/open_pic.c
/*
 *  Enable/disable an interrupt source
 */
Enable/disable an interrupt source
Enable / disable an interrupt source
void openpic_enable_irq(u_int irq)
{
	check_arg_irq(irq);
	openpic_clearfield(&ISU[irq - open_pic_irq_offset].Vector_Priority, OPENPIC_MASK);
	do {
		mb(); 
	} while(openpic_readfield(&ISU[irq - open_pic_irq_offset].Vector_Priority,
			OPENPIC_MASK));
}
void openpic_enable_irq ( u_int irq ) { check_arg_irq ( irq ) ; openpic_clearfield ( & ISU [ irq - open_pic_irq_offset ] . Vector_Priority , OPENPIC_MASK ) ; do { mb ( ) ; } while ( openpic_readfield ( & ISU [ irq - open_pic_irq_offset ] . Vector_Priority , OPENPIC_MASK ) ) ; }
Enable/disable an interrupt source
Enable / disable an interrupt source
/* make sure mask gets to controller before we return to user */ /* sync is probably useless here */