kernels/linux-2.4.0/arch/ppc/8xx_io/commproc.c
/* Install a CPM interrupt handler.
*/
Install a CPM interrupt handler.
Install a CPM interrupt handler .
void
cpm_install_handler(int vec, void (*handler)(void *), void *dev_id)
{
	if (cpm_vecs[vec].handler != 0)
		printk("CPM interrupt %x replacing %x\n",
			(uint)handler, (uint)cpm_vecs[vec].handler);
	cpm_vecs[vec].handler = handler;
	cpm_vecs[vec].dev_id = dev_id;
	((immap_t *)IMAP_ADDR)->im_cpic.cpic_cimr |= (1 << vec);
}
void cpm_install_handler ( int vec , void ( * handler ) ( void * ) , void * dev_id ) { if ( cpm_vecs [ vec ] . handler != 0 ) printk ( " \n " , ( uint ) handler , ( uint ) cpm_vecs [ vec ] . handler ) ; cpm_vecs [ vec ] . handler = handler ; cpm_vecs [ vec ] . dev_id = dev_id ; ( ( immap_t * ) IMAP_ADDR ) -> im_cpic . cpic_cimr |= ( 1 << vec ) ; }
Install a CPM interrupt handler.
Install a CPM interrupt handler .