volatile unsigned char *via; 
volatile unsigned char __iomem *via; 
via_calibrate_decr(void){	struct device_node *vias;	volatile unsigned char *via;	int count = VIA_TIMER_FREQ_6 / 100;	unsigned int dstart, dend;	vias = find_devices("via-cuda");	if (vias == 0)		vias = find_devices("via-pmu");	if (vias == 0)		vias = find_devices("via");	if (vias == 0 || vias->n_addrs == 0)		return 0;	via = (volatile unsigned char *)		ioremap(vias->addrs[0].address, vias->addrs[0].size);	/* set timer 1 for continuous interrupts */	out_8(&via[ACR], (via[ACR] & ~T1MODE) | T1MODE_CONT);	/* set the counter to a small value */	out_8(&via[T1CH], 2);	/* set the latch to `count' */	out_8(&via[T1LL], count);	out_8(&via[T1LH], count >> 8);	/* wait until it hits 0 */	while ((in_8(&via[IFR]) & T1_INT) == 0)		;	dstart = get_dec();	/* clear the interrupt & wait until it hits 0 again */	in_8(&via[T1CL]);	while ((in_8(&via[IFR]) & T1_INT) == 0)		;	dend = get_dec();	tb_ticks_per_jiffy = (dstart - dend) / (6 * (HZ/100));	tb_to_us = mulhwu_scale_factor(dstart - dend, 60000);	printk(KERN_INFO "via_calibrate_decr: ticks per jiffy = %u (%u ticks)\n",	       tb_ticks_per_jiffy, dstart - dend);	iounmap((void*)via);		return 1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/28a6815979b4eff29956549d62f72582a81f041e/pmac_time.c/clean/arch/ppc/platforms/pmac_time.c