void phaseChkFifo(ULONG port, UCHAR p_card) #endif 
static void FPT_phaseChkFifo(ULONG port, UCHAR p_card) 
void phaseChkFifo(ULONG port, UCHAR p_card)#endif{   ULONG xfercnt;   PSCCB currSCCB;   currSCCB = BL_Card[p_card].currentSCCB;   if (currSCCB->Sccb_scsistat == DATA_IN_ST)      {      while((!(RD_HARPOON(port+hp_xferstat) & FIFO_EMPTY)) &&	      (RD_HARPOON(port+hp_ext_status) & BM_CMD_BUSY)) {}      if (!(RD_HARPOON(port+hp_xferstat) & FIFO_EMPTY))         {	      currSCCB->Sccb_ATC += currSCCB->Sccb_XferCnt;	      currSCCB->Sccb_XferCnt = 0;	      if ((RDW_HARPOON((port+hp_intstat)) & PARITY) &&	            (currSCCB->HostStatus == SCCB_COMPLETE))            {	         currSCCB->HostStatus = SCCB_PARITY_ERR;	         WRW_HARPOON((port+hp_intstat), PARITY);	         }	      hostDataXferAbort(port,p_card,currSCCB);	      dataXferProcessor(port, &BL_Card[p_card]);	      while((!(RD_HARPOON(port+hp_xferstat) & FIFO_EMPTY)) &&	         (RD_HARPOON(port+hp_ext_status) & BM_CMD_BUSY)) {}	      }      }  /*End Data In specific code. */#if defined(DOS)   asm { mov dx,port;      add dx,hp_xfercnt_2;      in  al,dx;      dec dx;      xor ah,ah;      mov word ptr xfercnt+2,ax;      in  al,dx;      dec dx;      mov ah,al;      in  al,dx;      mov word ptr xfercnt,ax;      }#else   GET_XFER_CNT(port,xfercnt);#endif   WR_HARPOON(port+hp_xfercnt_0, 0x00);   WR_HARPOON(port+hp_portctrl_0, 0x00);   currSCCB->Sccb_ATC += (currSCCB->Sccb_XferCnt - xfercnt);   currSCCB->Sccb_XferCnt = xfercnt;   if ((RDW_HARPOON((port+hp_intstat)) & PARITY) &&      (currSCCB->HostStatus == SCCB_COMPLETE)) {      currSCCB->HostStatus = SCCB_PARITY_ERR;      WRW_HARPOON((port+hp_intstat), PARITY);      }   hostDataXferAbort(port,p_card,currSCCB);   WR_HARPOON(port+hp_fifowrite, 0x00);   WR_HARPOON(port+hp_fiforead, 0x00);   WR_HARPOON(port+hp_xferstat, 0x00);   WRW_HARPOON((port+hp_intstat), XFER_CNT_0);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/47b5d69c4aa753fcfc9b2b8d28c0660a1e25c129/FlashPoint.c/buggy/drivers/scsi/FlashPoint.c