sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA = TRUE; 
FPT_sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA = 1; 
void autoCmdCmplt(ULONG p_port, UCHAR p_card)#endif{   PSCCB currSCCB;   UCHAR status_byte;   currSCCB = BL_Card[p_card].currentSCCB;   status_byte = RD_HARPOON(p_port+hp_gp_reg_0);   sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA = FALSE;   if (status_byte != SSGOOD) {      if (status_byte == SSQ_FULL) {			if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) &&				((sccbMgrTbl[p_card][currSCCB->TargID].TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING)))			{	         sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB->Lun] = TRUE;				if(BL_Card[p_card].discQCount != 0)					BL_Card[p_card].discQCount--;				BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL;			}			else			{	         sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = TRUE;				if(currSCCB->Sccb_tag)				{					if(BL_Card[p_card].discQCount != 0)						BL_Card[p_card].discQCount--;					BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL;				}else				{					if(BL_Card[p_card].discQCount != 0)						BL_Card[p_card].discQCount--;					BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL;				}			}         currSCCB->Sccb_MGRFlags |= F_STATUSLOADED;         queueSelectFail(&BL_Card[p_card],p_card);         return;         }      if(currSCCB->Sccb_scsistat == SELECT_SN_ST)         {         sccbMgrTbl[p_card][currSCCB->TargID].TarStatus |=            (UCHAR)SYNC_SUPPORTED;	      sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= ~EE_SYNC_MASK;         BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD;			if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) &&				((sccbMgrTbl[p_card][currSCCB->TargID].TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING)))			{	         sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB->Lun] = TRUE;				if(BL_Card[p_card].discQCount != 0)					BL_Card[p_card].discQCount--;				BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL;			}			else			{	         sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = TRUE;				if(currSCCB->Sccb_tag)				{					if(BL_Card[p_card].discQCount != 0)						BL_Card[p_card].discQCount--;					BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL;				}else				{					if(BL_Card[p_card].discQCount != 0)						BL_Card[p_card].discQCount--;					BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL;				}			}         return;         }      if(currSCCB->Sccb_scsistat == SELECT_WN_ST)         {	      sccbMgrTbl[p_card][currSCCB->TargID].TarStatus =	         (sccbMgrTbl[p_card][currSCCB->TargID].	         TarStatus & ~WIDE_ENABLED) | WIDE_NEGOCIATED;	      sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue &= ~EE_WIDE_SCSI;         BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD;			if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) &&				((sccbMgrTbl[p_card][currSCCB->TargID].TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING)))			{	         sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB->Lun] = TRUE;				if(BL_Card[p_card].discQCount != 0)					BL_Card[p_card].discQCount--;				BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL;			}			else			{	         sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = TRUE;				if(currSCCB->Sccb_tag)				{					if(BL_Card[p_card].discQCount != 0)						BL_Card[p_card].discQCount--;					BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL;				}else				{					if(BL_Card[p_card].discQCount != 0)						BL_Card[p_card].discQCount--;					BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL;				}			}         return;               }     	   if (status_byte == SSCHECK) 		{			if(BL_Card[p_card].globalFlags & F_DO_RENEGO)			{				if (sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue & EE_SYNC_MASK)				{					sccbMgrTbl[p_card][currSCCB->TargID].TarStatus &= ~TAR_SYNC_MASK;				}				if (sccbMgrTbl[p_card][currSCCB->TargID].TarEEValue & EE_WIDE_SCSI)				{					sccbMgrTbl[p_card][currSCCB->TargID].TarStatus &= ~TAR_WIDE_MASK;				}			}		}      if (!(currSCCB->Sccb_XferState & F_AUTO_SENSE)) {         currSCCB->SccbStatus = SCCB_ERROR;         currSCCB->TargetStatus = status_byte;         if (status_byte == SSCHECK) {            sccbMgrTbl[p_card][currSCCB->TargID].TarLUN_CA               = TRUE;     #if (FW_TYPE==_SCCB_MGR_)            if (currSCCB->RequestSenseLength != NO_AUTO_REQUEST_SENSE) {               if (currSCCB->RequestSenseLength == 0)                  currSCCB->RequestSenseLength = 14;               ssenss(&BL_Card[p_card]);               BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD; 					if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) &&						((sccbMgrTbl[p_card][currSCCB->TargID].TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING)))					{			         sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB->Lun] = TRUE;						if(BL_Card[p_card].discQCount != 0)							BL_Card[p_card].discQCount--;						BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL;					}					else					{	   		      sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = TRUE;						if(currSCCB->Sccb_tag)						{							if(BL_Card[p_card].discQCount != 0)								BL_Card[p_card].discQCount--;							BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL;						}else						{							if(BL_Card[p_card].discQCount != 0)								BL_Card[p_card].discQCount--;							BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL;						}					}               return;               }#else				   if ((!(currSCCB->Sccb_ucb_ptr->UCB_opcode & OPC_NO_AUTO_SENSE)) &&			   		(currSCCB->RequestSenseLength))				   {				   	ssenss(&BL_Card[p_card]);				      BL_Card[p_card].globalFlags |= F_NEW_SCCB_CMD;						if(((BL_Card[p_card].globalFlags & F_CONLUN_IO) &&							((sccbMgrTbl[p_card][currSCCB->TargID].TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING)))						{	      			   sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB->Lun] = TRUE;							if(BL_Card[p_card].discQCount != 0)								BL_Card[p_card].discQCount--;							BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[currSCCB->Lun]] = NULL;						}						else						{	      			   sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = TRUE;							if(currSCCB->Sccb_tag)							{								if(BL_Card[p_card].discQCount != 0)									BL_Card[p_card].discQCount--;								BL_Card[p_card].discQ_Tbl[currSCCB->Sccb_tag] = NULL;							}else							{								if(BL_Card[p_card].discQCount != 0)									BL_Card[p_card].discQCount--;								BL_Card[p_card].discQ_Tbl[sccbMgrTbl[p_card][currSCCB->TargID].LunDiscQ_Idx[0]] = NULL;							}						}				      return;				   }#endif            }         }      }	if((BL_Card[p_card].globalFlags & F_CONLUN_IO) &&		((sccbMgrTbl[p_card][currSCCB->TargID].TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING))	   sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[currSCCB->Lun] = FALSE;	else	   sccbMgrTbl[p_card][currSCCB->TargID].TarLUNBusy[0] = FALSE;   queueCmdComplete(&BL_Card[p_card], currSCCB, p_card);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/47b5d69c4aa753fcfc9b2b8d28c0660a1e25c129/FlashPoint.c/buggy/drivers/scsi/FlashPoint.c