sxfrp(p_port,p_card); #endif 
FPT_sxfrp(p_port,p_card); 
UCHAR SccbMgr_bad_isr(ULONG p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int)#endif{#if defined(HARP_REVX)   ULONG timer;#endifUCHAR temp, ScamFlg;PSCCBMgr_tar_info currTar_Info;PNVRamInfo pCurrNvRam;   if (RD_HARPOON(p_port+hp_ext_status) &         (BM_FORCE_OFF | PCI_DEV_TMOUT | BM_PARITY_ERR | PIO_OVERRUN) )      {      if (pCurrCard->globalFlags & F_HOST_XFER_ACT)         {         hostDataXferAbort(p_port,p_card, pCurrCard->currentSCCB);         }      if (RD_HARPOON(p_port+hp_pci_stat_cfg) & REC_MASTER_ABORT)         {         WR_HARPOON(p_port+hp_pci_stat_cfg,            (RD_HARPOON(p_port+hp_pci_stat_cfg) & ~REC_MASTER_ABORT));         WR_HARPOON(p_port+hp_host_blk_cnt, 0x00);         }      if (pCurrCard->currentSCCB != NULL)         {         if (!pCurrCard->currentSCCB->HostStatus)            pCurrCard->currentSCCB->HostStatus = SCCB_BM_ERR;         sxfrp(p_port,p_card);	     temp = (UCHAR)(RD_HARPOON(p_port+hp_ee_ctrl) &							(EXT_ARB_ACK | SCSI_TERM_ENA_H));      	WR_HARPOON(p_port+hp_ee_ctrl, ((UCHAR)temp | SEE_MS | SEE_CS));         WR_HARPOON(p_port+hp_ee_ctrl, temp);         if (!(RDW_HARPOON((p_port+hp_intstat)) & (BUS_FREE | RESET)))            {            phaseDecode(p_port,p_card);            }         }      }   else if (p_int & RESET)         {				WR_HARPOON(p_port+hp_clkctrl_0, CLKCTRL_DEFAULT);				WR_HARPOON(p_port+hp_sys_ctrl, 0x00);           if (pCurrCard->currentSCCB != NULL) {               if (pCurrCard->globalFlags & F_HOST_XFER_ACT)               hostDataXferAbort(p_port,p_card, pCurrCard->currentSCCB);               }           DISABLE_AUTO(p_port);           sresb(p_port,p_card);           while(RD_HARPOON(p_port+hp_scsictrl_0) & SCSI_RST) {}				pCurrNvRam = pCurrCard->pNvRamInfo;				if(pCurrNvRam){					ScamFlg = pCurrNvRam->niScamConf;				}				else{				   ScamFlg = (UCHAR) utilEERead(p_port, SCAM_CONFIG/2);				}           XbowInit(p_port, ScamFlg);               scini(p_card, pCurrCard->ourId, 0);           return(0xFF);         }   else if (p_int & FIFO) {      WRW_HARPOON((p_port+hp_intstat), FIFO);#if defined(HARP_REVX)      for (timer=0x00FFFFFFL; timer != 0x00000000L; timer--) {         if (RD_HARPOON(p_port+hp_xferstat) & FIFO_EMPTY)            break;         if (RDW_HARPOON((p_port+hp_intstat)) & BUS_FREE)            break;         }      if ( (RD_HARPOON(p_port+hp_xferstat) & FIFO_EMPTY) &&           (RD_HARPOON(p_port+hp_fiforead) !=            RD_HARPOON(p_port+hp_fifowrite)) &&           (RD_HARPOON(p_port+hp_xfercnt_0))         )            WR_HARPOON((p_port+hp_xferstat), 0x01);/*      else *//*         sxfrp(p_port,p_card); */#else      if (pCurrCard->currentSCCB != NULL)         sxfrp(p_port,p_card);#endif      }   else if (p_int & TIMEOUT)      {      DISABLE_AUTO(p_port);      WRW_HARPOON((p_port+hp_intstat),		  (PROG_HLT | TIMEOUT | SEL |BUS_FREE | PHASE | IUNKWN));      pCurrCard->currentSCCB->HostStatus = SCCB_SELECTION_TIMEOUT;		currTar_Info = &sccbMgrTbl[p_card][pCurrCard->currentSCCB->TargID];		if((pCurrCard->globalFlags & F_CONLUN_IO) &&			((currTar_Info->TarStatus & TAR_TAG_Q_MASK) != TAG_Q_TRYING))	      currTar_Info->TarLUNBusy[pCurrCard->currentSCCB->Lun] = FALSE;		else	      currTar_Info->TarLUNBusy[0] = FALSE;      if (currTar_Info->TarEEValue & EE_SYNC_MASK)         {	       currTar_Info->TarSyncCtrl = 0;         currTar_Info->TarStatus &= ~TAR_SYNC_MASK;         }      if (currTar_Info->TarEEValue & EE_WIDE_SCSI)         {         currTar_Info->TarStatus &= ~TAR_WIDE_MASK;         }      sssyncv(p_port, pCurrCard->currentSCCB->TargID, NARROW_SCSI,currTar_Info);      queueCmdComplete(pCurrCard, pCurrCard->currentSCCB, p_card);      }#if defined(SCAM_LEV_2)   else if (p_int & SCAM_SEL)      {      scarb(p_port,LEVEL2_TAR);      scsel(p_port);      scasid(p_card, p_port);      scbusf(p_port);      WRW_HARPOON((p_port+hp_intstat), SCAM_SEL);      }#endif   return(0x00);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/47b5d69c4aa753fcfc9b2b8d28c0660a1e25c129/FlashPoint.c/buggy/drivers/scsi/FlashPoint.c