kernels/linux-2.4.0/drivers/scsi/3w-xxxx.c
/* This function will report controller error status */
This function will report controller error status
This function will report controller error status
int tw_check_errors(TW_Device_Extension *tw_dev) 
{
	u32 status_reg_addr, status_reg_value;
	status_reg_addr = tw_dev->registers.status_reg_addr;
	status_reg_value = inl(status_reg_addr);
	if (TW_STATUS_ERRORS(status_reg_value) || tw_check_bits(status_reg_value))
		return 1;
	return 0;
}
int tw_check_errors ( TW_Device_Extension * tw_dev ) { u32 status_reg_addr , status_reg_value ; status_reg_addr = tw_dev -> registers . status_reg_addr ; status_reg_value = inl ( status_reg_addr ) ; if ( TW_STATUS_ERRORS ( status_reg_value ) || tw_check_bits ( status_reg_value ) ) return 1 ; return 0 ; }
This function will report controller error status
This function will report controller error status