void *port = (void *)ap->ioaddr.cmd_addr; int cnt; u32 tmp;  
static void sil24_reset_controller(struct ata_port *ap){	void *port = (void *)ap->ioaddr.cmd_addr;	int cnt;	u32 tmp;	printk(KERN_NOTICE DRV_NAME	       " ata%u: resetting controller...\n", ap->id);	/* Reset controller state.  Is this correct? */	writel(PORT_CS_DEV_RST, port + PORT_CTRL_STAT);	readl(port + PORT_CTRL_STAT);	/* sync */	/* Max ~100ms */	for (cnt = 0; cnt < 1000; cnt++) {		udelay(100);		tmp = readl(port + PORT_CTRL_STAT);		if (!(tmp & PORT_CS_DEV_RST))			break;	}	if (tmp & PORT_CS_DEV_RST)		printk(KERN_ERR DRV_NAME		       " ata%u: failed to reset controller\n", ap->id);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/923f122573851d18a3832ca808269fa2d5046fb1/sata_sil24.c/buggy/drivers/scsi/sata_sil24.c