scxferc(p_port,SYNC_PTRN); scxferc(p_port,CFG_CMPLT); 
FPT_scxferc(p_port,SYNC_PTRN); FPT_scxferc(p_port,CFG_CMPLT); 
void scasid(UCHAR p_card, ULONG p_port)#endif{#if defined(DOS) || defined(OS2)   /* Use external defined in global space area, instead of Stack      space. WIN/95 DOS doesnot work TINY mode. The OS doesnot intialize      SS equal to DS. Thus the array allocated on stack doesnot get      access correctly */#else   UCHAR temp_id_string[ID_STRING_LENGTH];#endif   UCHAR i,k,scam_id;	UCHAR crcBytes[3];	PNVRamInfo pCurrNvRam;	ushort_ptr pCrcBytes;	pCurrNvRam = BL_Card[p_card].pNvRamInfo;   i=FALSE;   while (!i)      {      for (k=0; k < ID_STRING_LENGTH; k++)         {         temp_id_string[k] = (UCHAR) 0x00;         }      scxferc(p_port,SYNC_PTRN);      scxferc(p_port,ASSIGN_ID);      if (!(sciso(p_port,&temp_id_string[0])))         {			if(pCurrNvRam){				pCrcBytes = (ushort_ptr)&crcBytes[0];				*pCrcBytes = CalcCrc16(&temp_id_string[0]);				crcBytes[2] = CalcLrc(&temp_id_string[0]);				temp_id_string[1] = crcBytes[2];				temp_id_string[2] = crcBytes[0];				temp_id_string[3] = crcBytes[1];				for(k = 4; k < ID_STRING_LENGTH; k++)					temp_id_string[k] = (UCHAR) 0x00;			}         i = scmachid(p_card,temp_id_string);         if (i == CLR_PRIORITY)            {            scxferc(p_port,MISC_CODE);            scxferc(p_port,CLR_P_FLAG);            i = FALSE;  /*Not the last ID yet. */            }         else if (i != NO_ID_AVAIL)            {            if (i < 8 )               scxferc(p_port,ID_0_7);            else               scxferc(p_port,ID_8_F);            scam_id = (i & (UCHAR) 0x07);            for (k=1; k < 0x08; k <<= 1)               if (!( k & i ))                  scam_id += 0x08;        /*Count number of zeros in DB0-3. */            scxferc(p_port,scam_id);            i = FALSE;  /*Not the last ID yet. */            }         }      else         {         i = TRUE;         }      }  /*End while */   scxferc(p_port,SYNC_PTRN);   scxferc(p_port,CFG_CMPLT);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/47b5d69c4aa753fcfc9b2b8d28c0660a1e25c129/FlashPoint.c/buggy/drivers/scsi/FlashPoint.c