kernels/linux-2.4.0/drivers/scsi/3w-xxxx.c
/* This function will soft reset the controller */
This function will soft reset the controller
This function will soft reset the controller
void tw_soft_reset(TW_Device_Extension *tw_dev) 
{
	u32 control_reg_addr, control_reg_value;
	control_reg_addr = tw_dev->registers.control_reg_addr;
	control_reg_value = (	TW_CONTROL_ISSUE_SOFT_RESET |
				TW_CONTROL_CLEAR_HOST_INTERRUPT |
				TW_CONTROL_CLEAR_ATTENTION_INTERRUPT |
				TW_CONTROL_MASK_COMMAND_INTERRUPT |
				TW_CONTROL_MASK_RESPONSE_INTERRUPT |
				TW_CONTROL_CLEAR_ERROR_STATUS | 
				TW_CONTROL_DISABLE_INTERRUPTS);
	outl(control_reg_value, control_reg_addr);
}
void tw_soft_reset ( TW_Device_Extension * tw_dev ) { u32 control_reg_addr , control_reg_value ; control_reg_addr = tw_dev -> registers . control_reg_addr ; control_reg_value = ( TW_CONTROL_ISSUE_SOFT_RESET | TW_CONTROL_CLEAR_HOST_INTERRUPT | TW_CONTROL_CLEAR_ATTENTION_INTERRUPT | TW_CONTROL_MASK_COMMAND_INTERRUPT | TW_CONTROL_MASK_RESPONSE_INTERRUPT | TW_CONTROL_CLEAR_ERROR_STATUS | TW_CONTROL_DISABLE_INTERRUPTS ) ; outl ( control_reg_value , control_reg_addr ) ; }
This function will soft reset the controller
This function will soft reset the controller