out_be16(imap->im_sit.sit_piscr, (mk_int_int_mask(PIT_INTERRUPT) << 8) | PISCR_PIE | PISCR_PTE); 
out_be16(&imap->im_sit.sit_piscr, (mk_int_int_mask(PIT_INTERRUPT) << 8) | PISCR_PIE | PISCR_PTE); 
void __init m8xx_wdt_handler_install(bd_t * binfo){	volatile immap_t *imap = (volatile immap_t *)IMAP_ADDR;	u32 pitc;	u32 sypcr;	u32 pitrtclk;	sypcr = in_be32(imap->im_siu_conf.sc_sypcr);	if (!(sypcr & 0x04)) {		printk(KERN_NOTICE "m8xx_wdt: wdt disabled (SYPCR: 0x%08X)\n",		       sypcr);		return;	}	m8xx_wdt_reset();	printk(KERN_NOTICE	       "m8xx_wdt: active wdt found (SWTC: 0x%04X, SWP: 0x%01X)\n",	       (sypcr >> 16), sypcr & 0x01);	wdt_timeout = (sypcr >> 16) & 0xFFFF;	if (!wdt_timeout)		wdt_timeout = 0xFFFF;	if (sypcr & 0x01)		wdt_timeout *= 2048;	/*	 * Fire trigger if half of the wdt ticked down 	 */	if (imap->im_sit.sit_rtcsc & RTCSC_38K)		pitrtclk = 9600;	else		pitrtclk = 8192;	if ((wdt_timeout) > (UINT_MAX / pitrtclk))		pitc = wdt_timeout / binfo->bi_intfreq * pitrtclk / 2;	else		pitc = pitrtclk * wdt_timeout / binfo->bi_intfreq / 2;	out_be32(imap->im_sit.sit_pitc, pitc << 16);	out_be16(imap->im_sit.sit_piscr, (mk_int_int_mask(PIT_INTERRUPT) << 8) | PISCR_PIE | PISCR_PTE);	if (setup_irq(PIT_INTERRUPT, &m8xx_wdt_irqaction))		panic("m8xx_wdt: error setting up the watchdog irq!");	printk(KERN_NOTICE	       "m8xx_wdt: keep-alive trigger installed (PITC: 0x%04X)\n", pitc);	wdt_timeout /= binfo->bi_intfreq;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c6d95044a2e124b606b78896a3a2d512e90ef65c/m8xx_wdt.c/buggy/arch/ppc/syslib/m8xx_wdt.c