drsprintk((KERN_WARNING MYNAM ": %s: Sending IOC reset(0x%02x)!\n", 
drsprintk((KERN_INFO MYNAM ": %s: Sending IOC reset(0x%02x)!\n", 
SendIocReset(MPT_ADAPTER *ioc, u8 reset_type, int sleepFlag){	int r;	u32 state;	int cntdn, count;	drsprintk((KERN_WARNING MYNAM ": %s: Sending IOC reset(0x%02x)!\n",			ioc->name, reset_type));	CHIPREG_WRITE32(&ioc->chip->Doorbell, reset_type<<MPI_DOORBELL_FUNCTION_SHIFT);	if ((r = WaitForDoorbellAck(ioc, 5, sleepFlag)) < 0)		return r;	/* FW ACK'd request, wait for READY state	 */	count = 0;	cntdn = ((sleepFlag == CAN_SLEEP) ? HZ : 1000) * 15;	/* 15 seconds */	while ((state = mpt_GetIocState(ioc, 1)) != MPI_IOC_STATE_READY) {		cntdn--;		count++;		if (!cntdn) {			if (sleepFlag != CAN_SLEEP)				count *= 10;			printk(KERN_ERR MYNAM ": %s: ERROR - Wait IOC_READY state timeout(%d)!\n",					ioc->name, (int)((count+5)/HZ));			return -ETIME;		}		if (sleepFlag == CAN_SLEEP) {			msleep_interruptible(1);		} else {			mdelay (1);	/* 1 msec delay */		}	}	/* TODO!	 *  Cleanup all event stuff for this IOC; re-issue EventNotification	 *  request if needed.	 */	if (ioc->facts.Function)		ioc->facts.EventState = 0;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/c6678e0cfb41b029c3600c54b5bb65954de1230a/mptbase.c/clean/drivers/message/fusion/mptbase.c