Lines Matching refs:RD_HARPOON
182 #define RD_HARPOON(ioport) inb((u32)ioport) macro
740 #define ACCEPT_MSG(port) {while(RD_HARPOON(port+hp_scsisig) & SCSI_REQ){}\
743 #define ACCEPT_MSG_ATN(port) {while(RD_HARPOON(port+hp_scsisig) & SCSI_REQ){}\
750 (RD_HARPOON(p_port+hp_page_ctrl) | SGRAM_ARAM)))
753 (RD_HARPOON(p_port+hp_page_ctrl) & ~SGRAM_ARAM)))
756 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE)))
759 (RD_HARPOON(p_port+hp_page_ctrl) & ~G_INT_DISABLE)))
921 if (RD_HARPOON(ioport + hp_vendor_id_0) != ORION_VEND_0) in FlashPoint_ProbeHostAdapter()
924 if ((RD_HARPOON(ioport + hp_vendor_id_1) != ORION_VEND_1)) in FlashPoint_ProbeHostAdapter()
927 if ((RD_HARPOON(ioport + hp_device_id_0) != ORION_DEV_0)) in FlashPoint_ProbeHostAdapter()
930 if ((RD_HARPOON(ioport + hp_device_id_1) != ORION_DEV_1)) in FlashPoint_ProbeHostAdapter()
933 if (RD_HARPOON(ioport + hp_rev_num) != 0x0f) { in FlashPoint_ProbeHostAdapter()
940 if (RD_HARPOON(ioport + hp_sub_device_id_0) & 0x0f) in FlashPoint_ProbeHostAdapter()
1065 j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); in FlashPoint_ProbeHostAdapter()
1071 j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); in FlashPoint_ProbeHostAdapter()
1077 if (!(RD_HARPOON(ioport + hp_page_ctrl) & NARROW_SCSI_CARD)) in FlashPoint_ProbeHostAdapter()
1114 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1117 temp = RD_HARPOON(ioport + hp_xfer_pad); in FlashPoint_ProbeHostAdapter()
1119 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1122 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1126 temp = RD_HARPOON(ioport + hp_ee_ctrl); in FlashPoint_ProbeHostAdapter()
1127 temp2 = RD_HARPOON(ioport + hp_xfer_pad); in FlashPoint_ProbeHostAdapter()
1133 if (!(RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7))) in FlashPoint_ProbeHostAdapter()
1151 RD_HARPOON(ioport + hp_aramBase + BIOS_DATA_OFFSET + i); in FlashPoint_ProbeHostAdapter()
1159 char)(RD_HARPOON(ioport + hp_aramBase + BIOS_RELATIVE_CARD) - 1); in FlashPoint_ProbeHostAdapter()
1254 j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); in FlashPoint_HardwareResetHostAdapter()
1259 j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); in FlashPoint_HardwareResetHostAdapter()
1363 (unsigned char)(RD_HARPOON((ioport + hp_semaphore)) | in FlashPoint_HardwareResetHostAdapter()
1438 return RD_HARPOON(portBase + hp_stack_data); in FPT_RdStack()
1449 if ((RD_HARPOON(ioPort + hp_arb_id) & 0x0f) != FPT_RdStack(ioPort, 4)) in FPT_ChkIfChipInitialized()
1451 if ((RD_HARPOON(ioPort + hp_clkctrl_0) & CLKCTRL_DEFAULT) in FPT_ChkIfChipInitialized()
1454 if ((RD_HARPOON(ioPort + hp_seltimeout) == TO_250ms) || in FPT_ChkIfChipInitialized()
1455 (RD_HARPOON(ioPort + hp_seltimeout) == TO_290ms)) in FPT_ChkIfChipInitialized()
1496 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_StartCCB()
1507 if (RD_HARPOON(ioport + hp_semaphore) & BIOS_IN_USE) { in FlashPoint_StartCCB()
1510 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_StartCCB()
1524 else if ((RD_HARPOON(ioport + hp_page_ctrl) & G_INT_DISABLE)) { in FlashPoint_StartCCB()
1597 if (!(RD_HARPOON(ioport + hp_page_ctrl) & G_INT_DISABLE)) { in FlashPoint_AbortCCB()
1605 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_AbortCCB()
1694 if (RD_HARPOON(ioport + hp_int_status) & INT_ASSERTED) { in FlashPoint_InterruptPending()
1726 if (RD_HARPOON(ioport + hp_int_status) & EXT_STATUS_ON) in FlashPoint_HandleInterrupt()
1727 bm_status = RD_HARPOON(ioport + hp_ext_status) & in FlashPoint_HandleInterrupt()
1786 if (RD_HARPOON(ioport + hp_gp_reg_1) == in FlashPoint_HandleInterrupt()
1807 && RD_HARPOON((ioport + hp_scsisig)) == in FlashPoint_HandleInterrupt()
1839 if (RD_HARPOON(ioport + hp_gp_reg_1) == in FlashPoint_HandleInterrupt()
1870 if ((RD_HARPOON(ioport + hp_prgmcnt_0) & (unsigned char) in FlashPoint_HandleInterrupt()
1882 char)(RD_HARPOON(ioport + hp_fifowrite)); in FlashPoint_HandleInterrupt()
1885 char)(RD_HARPOON(ioport + hp_gp_reg_3)); in FlashPoint_HandleInterrupt()
1968 if (RD_HARPOON(p_port + hp_ext_status) & in FPT_SccbMgr_bad_isr()
1977 if (RD_HARPOON(p_port + hp_pci_stat_cfg) & REC_MASTER_ABORT) in FPT_SccbMgr_bad_isr()
1980 (RD_HARPOON(p_port + hp_pci_stat_cfg) & in FPT_SccbMgr_bad_isr()
1995 temp = (unsigned char)(RD_HARPOON(p_port + hp_ee_ctrl) & in FPT_SccbMgr_bad_isr()
2025 while (RD_HARPOON(p_port + hp_scsictrl_0) & SCSI_RST) { in FPT_SccbMgr_bad_isr()
2213 while ((!(RD_HARPOON(port + hp_scsisig) & SCSI_REQ)) && in FPT_sfm()
2219 message = RD_HARPOON(port + hp_scsidata_0); in FPT_sfm()
2227 (RD_HARPOON(port + hp_addstat) & SCSI_PAR_ERR)) { in FPT_sfm()
2239 while ((!(RD_HARPOON(port + hp_scsisig) & SCSI_REQ)) && in FPT_sfm()
2246 if ((RD_HARPOON(port + hp_scsisig) & S_SCSI_PHZ) != in FPT_sfm()
2253 RD_HARPOON(port + hp_scsidata_0); in FPT_sfm()
2633 our_target = (unsigned char)(RD_HARPOON(port + hp_select_id) >> 4); in FPT_sres()
2641 while (!(RD_HARPOON(port + hp_scsisig) & SCSI_REQ)) { in FPT_sres()
2642 if (!(RD_HARPOON(port + hp_scsisig) & SCSI_BSY)) { in FPT_sres()
2650 if ((RD_HARPOON(port + hp_scsisig) & S_SCSI_PHZ) == S_MSGI_PH) { in FPT_sres()
2723 && !(RD_HARPOON(port + hp_scsisig) & SCSI_REQ) in FPT_sres()
2724 && (RD_HARPOON(port + hp_scsisig) & SCSI_BSY)) ; in FPT_sres()
2805 !(RD_HARPOON(port + hp_scsisig) & SCSI_REQ) && in FPT_sres()
2806 (RD_HARPOON(port + hp_scsisig) & SCSI_BSY)) ; in FPT_sres()
2811 while (!(RD_HARPOON(port + hp_scsisig) & SCSI_REQ)) { in FPT_SendMsg()
2812 if (!(RD_HARPOON(port + hp_scsisig) & SCSI_BSY)) { in FPT_SendMsg()
2820 if ((RD_HARPOON(port + hp_scsisig) & S_SCSI_PHZ) == S_MSGO_PH) { in FPT_SendMsg()
2912 while ((!(RD_HARPOON(port + hp_scsisig) & SCSI_REQ)) && in FPT_sdecm()
2989 while ((!(RD_HARPOON(port + hp_scsisig) & SCSI_REQ)) && in FPT_sdecm()
3582 (RD_HARPOON(port + hp_page_ctrl) | G_INT_DISABLE)); in FPT_sresb()
3587 scsiID = RD_HARPOON(port + hp_seltimeout); in FPT_sresb()
3604 WR_HARPOON(port + hp_int_mask, (RD_HARPOON(port + hp_int_mask) | 0x00)); in FPT_sresb()
3635 (RD_HARPOON(port + hp_page_ctrl) & ~G_INT_DISABLE)); in FPT_sresb()
3714 curr_phz = RD_HARPOON(p_port + hp_scsisig) & (unsigned char)S_SCSI_PHZ; in FPT_sxfrp()
3722 (RD_HARPOON(p_port + hp_scsisig) & (unsigned char)S_SCSI_PHZ))) in FPT_sxfrp()
3728 if (!(RD_HARPOON(p_port + hp_xferstat) & FIFO_EMPTY)) { in FPT_sxfrp()
3729 RD_HARPOON(p_port + hp_fifodata_0); in FPT_sxfrp()
3734 if (RD_HARPOON(p_port + hp_xferstat) & FIFO_EMPTY) { in FPT_sxfrp()
3741 if (RD_HARPOON(p_port + hp_scsisig) & SCSI_REQ) in FPT_sxfrp()
3747 while (!(RD_HARPOON(p_port + hp_xferstat) & FIFO_EMPTY)) { in FPT_sxfrp()
3748 RD_HARPOON(p_port + hp_fifodata_0); in FPT_sxfrp()
3815 while (RD_HARPOON(port + hp_scsisig) & SCSI_ACK) { in FPT_schkdd()
3820 while (RD_HARPOON(port + hp_xferstat) & FIFO_EMPTY) { in FPT_schkdd()
3824 if (RD_HARPOON(port + hp_offsetctr) & (unsigned char)0x1F) { in FPT_schkdd()
3830 if ((RD_HARPOON(port + hp_scsisig) & SCSI_REQ) in FPT_schkdd()
3835 sPhase = RD_HARPOON(port + hp_scsisig) & (SCSI_BSY | S_SCSI_PHZ); in FPT_schkdd()
3836 if ((!(RD_HARPOON(port + hp_xferstat) & FIFO_EMPTY)) || in FPT_schkdd()
3837 (RD_HARPOON(port + hp_offsetctr) & (unsigned char)0x1F) || in FPT_schkdd()
3957 (unsigned char)(RD_HARPOON(p_port + hp_scsisig) & S_SCSI_PHZ); in FPT_phaseDecode()
4280 message = RD_HARPOON(port + hp_scsidata_0); in FPT_phaseMsgIn()
4321 WR_HARPOON(port + hp_scsisig, RD_HARPOON(port + hp_scsisig)); in FPT_phaseIllegal()
4350 while ((!(RD_HARPOON(port + hp_xferstat) & FIFO_EMPTY)) && in FPT_phaseChkFifo()
4351 (RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY)) { in FPT_phaseChkFifo()
4354 if (!(RD_HARPOON(port + hp_xferstat) & FIFO_EMPTY)) { in FPT_phaseChkFifo()
4369 while ((!(RD_HARPOON(port + hp_xferstat) & FIFO_EMPTY)) in FPT_phaseChkFifo()
4370 && (RD_HARPOON(port + hp_ext_status) & in FPT_phaseChkFifo()
4461 if ((!(RD_HARPOON(port + hp_scsisig) & SCSI_BSY)) || in FPT_phaseBusFree()
4621 status_byte = RD_HARPOON(p_port + hp_gp_reg_0); in FPT_autoCmdCmplt()
4938 i = (unsigned char)(RD_HARPOON(p_port + hp_page_ctrl) & in FPT_busMstrSGDataXferStart()
4988 if ((!(RD_HARPOON(p_port + hp_synctarg_0) & NARROW_SCSI)) && in FPT_busMstrSGDataXferStart()
5074 while ((!(RD_HARPOON(p_port + hp_ext_status) & CMD_ABORTED)) in FPT_busMstrTimeOut()
5078 if (RD_HARPOON(p_port + hp_ext_status) & BM_CMD_BUSY) { in FPT_busMstrTimeOut()
5082 while ((RD_HARPOON(p_port + hp_ext_status) & BM_CMD_BUSY) in FPT_busMstrTimeOut()
5087 RD_HARPOON(p_port + hp_int_status); /*Clear command complete */ in FPT_busMstrTimeOut()
5089 if (RD_HARPOON(p_port + hp_ext_status) & BM_CMD_BUSY) { in FPT_busMstrTimeOut()
5118 if (!(RD_HARPOON(port + hp_int_status) & INT_CMD_COMPL)) { in FPT_hostDataXferAbort()
5121 (RD_HARPOON(port + hp_bm_ctrl) | in FPT_hostDataXferAbort()
5125 while ((RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY) in FPT_hostDataXferAbort()
5130 (RD_HARPOON(port + hp_bm_ctrl) & in FPT_hostDataXferAbort()
5133 if (RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY) { in FPT_hostDataXferAbort()
5144 if (RD_HARPOON(port + hp_int_status) & in FPT_hostDataXferAbort()
5147 if (RD_HARPOON(port + hp_ext_status) & in FPT_hostDataXferAbort()
5165 (RD_HARPOON(port + hp_page_ctrl) & in FPT_hostDataXferAbort()
5219 if (RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY) { in FPT_hostDataXferAbort()
5226 if (RD_HARPOON(port + hp_int_status) & in FPT_hostDataXferAbort()
5229 if (RD_HARPOON(port + hp_ext_status) & in FPT_hostDataXferAbort()
5246 if ((RD_HARPOON(port + hp_fifo_cnt)) >= BM_THRESHOLD) { in FPT_hostDataXferAbort()
5250 while ((RD_HARPOON(port + hp_ext_status) & in FPT_hostDataXferAbort()
5252 && ((RD_HARPOON(port + hp_fifo_cnt)) >= in FPT_hostDataXferAbort()
5257 if (RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY) { in FPT_hostDataXferAbort()
5260 (RD_HARPOON(port + hp_bm_ctrl) | in FPT_hostDataXferAbort()
5265 while ((RD_HARPOON(port + hp_ext_status) & in FPT_hostDataXferAbort()
5270 (RD_HARPOON(port + hp_bm_ctrl) & in FPT_hostDataXferAbort()
5273 if (RD_HARPOON(port + hp_ext_status) & in FPT_hostDataXferAbort()
5286 if (RD_HARPOON(port + hp_int_status) & INT_EXT_STATUS) { in FPT_hostDataXferAbort()
5288 if (RD_HARPOON(port + hp_ext_status) & in FPT_hostDataXferAbort()
5304 if (RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY) { in FPT_hostDataXferAbort()
5308 while ((RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY) in FPT_hostDataXferAbort()
5312 if (RD_HARPOON(port + hp_ext_status) & BM_CMD_BUSY) { in FPT_hostDataXferAbort()
5323 if (RD_HARPOON(port + hp_int_status) & INT_EXT_STATUS) { in FPT_hostDataXferAbort()
5325 if (RD_HARPOON(port + hp_ext_status) & BAD_EXT_STATUS) { in FPT_hostDataXferAbort()
5338 (RD_HARPOON(port + hp_page_ctrl) & in FPT_hostDataXferAbort()
5638 while (RD_HARPOON(p_port + hp_scsisig) & (SCSI_SEL | SCSI_BSY)) { in FPT_scarb()
5641 if (RD_HARPOON(p_port + hp_scsisig) & SCSI_SEL) in FPT_scarb()
5644 if (RD_HARPOON(p_port + hp_scsidata_0) != 00) in FPT_scarb()
5648 (RD_HARPOON(p_port + hp_scsisig) | SCSI_BSY)); in FPT_scarb()
5650 if (RD_HARPOON(p_port + hp_scsisig) & SCSI_SEL) { in FPT_scarb()
5653 (RD_HARPOON(p_port + hp_scsisig) & in FPT_scarb()
5659 (RD_HARPOON(p_port + hp_scsisig) | SCSI_SEL)); in FPT_scarb()
5661 if (RD_HARPOON(p_port + hp_scsidata_0) != 00) { in FPT_scarb()
5664 (RD_HARPOON(p_port + hp_scsisig) & in FPT_scarb()
5670 WR_HARPOON(p_port + hp_clkctrl_0, (RD_HARPOON(p_port + hp_clkctrl_0) in FPT_scarb()
5678 (RD_HARPOON(p_port + hp_scsisig) | SCSI_MSG)); in FPT_scarb()
5680 WR_HARPOON(p_port + hp_scsisig, (RD_HARPOON(p_port + hp_scsisig) in FPT_scarb()
5699 (RD_HARPOON(p_port + hp_page_ctrl) | G_INT_DISABLE)); in FPT_scbusf()
5703 WR_HARPOON(p_port + hp_portctrl_0, (RD_HARPOON(p_port + hp_portctrl_0) in FPT_scbusf()
5708 WR_HARPOON(p_port + hp_scsireset, (RD_HARPOON(p_port + hp_scsireset) in FPT_scbusf()
5711 WR_HARPOON(p_port + hp_clkctrl_0, (RD_HARPOON(p_port + hp_clkctrl_0) in FPT_scbusf()
5717 (RD_HARPOON(p_port + hp_page_ctrl) & ~G_INT_DISABLE)); in FPT_scbusf()
5816 (unsigned char)(RD_HARPOON(p_port + hp_scsidata_0) | in FPT_scsel()
5823 (unsigned char)(RD_HARPOON(p_port + hp_scsidata_0) & in FPT_scsel()
5852 while (!(RD_HARPOON(p_port + hp_scsidata_0) & BIT(5))) ; in FPT_scxferc()
5854 ret_data = (RD_HARPOON(p_port + hp_scsidata_0) & (unsigned char)0x1F); in FPT_scxferc()
6005 if (RD_HARPOON(p_port + hp_scsidata_0) & p_data_bit) in FPT_scwirod()
6032 if (RD_HARPOON(p_port + hp_scsisig) & p_data_bit) in FPT_scwiros()
6082 (RD_HARPOON(p_port + hp_page_ctrl) | G_INT_DISABLE)); in FPT_scsell()
6087 (RD_HARPOON(p_port + hp_addstat) | SCAM_TIMER)); in FPT_scsell()
6114 (RD_HARPOON(p_port + hp_addstat) & ~SCAM_TIMER)); in FPT_scsell()
6125 (RD_HARPOON(p_port + hp_page_ctrl) & in FPT_scsell()
6134 if (RD_HARPOON(p_port + hp_scsisig) & SCSI_REQ) { in FPT_scsell()
6144 (RD_HARPOON(p_port + hp_page_ctrl) & in FPT_scsell()
6181 if (RD_HARPOON(p_port + hp_page_ctrl) & NARROW_SCSI_CARD) in FPT_inisci()
6372 if (RD_HARPOON(p_port + hp_page_ctrl) & NARROW_SCSI_CARD) in FPT_scsavdi()
6408 i = RD_HARPOON(port + hp_page_ctrl); in FPT_XbowInit()
6438 if (RD_HARPOON(port + hp_page_ctrl) & NARROW_SCSI_CARD) in FPT_XbowInit()
6465 RD_HARPOON(p_port + hp_int_status); /*Clear interrupts. */ in FPT_BusMasterInit()
6467 WR_HARPOON(p_port + hp_page_ctrl, (RD_HARPOON(p_port + hp_page_ctrl) & in FPT_BusMasterInit()
6484 if (RD_HARPOON(p_port + hp_page_ctrl) & NARROW_SCSI_CARD) in FPT_DiagEEPROM()
6887 (RD_HARPOON(pCurrCard->ioPort + hp_semaphore) & in FPT_queueCmdComplete()
7181 if ((RD_HARPOON(p_port + hp_scsictrl_0) & SCSI_RST)) in FPT_Wait1Second()
7202 old_timer = RD_HARPOON(p_port + hp_seltimeout); in FPT_Wait()
7204 green_flag = RD_HARPOON(p_port + hp_clkctrl_0); in FPT_Wait()
7212 (RD_HARPOON(p_port + hp_portctrl_0) | START_TO)); in FPT_Wait()
7216 if ((RD_HARPOON(p_port + hp_scsictrl_0) & SCSI_RST)) in FPT_Wait()
7224 (RD_HARPOON(p_port + hp_portctrl_0) & ~START_TO)); in FPT_Wait()
7248 (unsigned char)(RD_HARPOON(p_port + hp_ee_ctrl) & in FPT_utilEEWriteOnOff()
7281 char)((RD_HARPOON(p_port + hp_ee_ctrl) & in FPT_utilEEWrite()
7361 char)((RD_HARPOON(p_port + hp_ee_ctrl) & in FPT_utilEEReadOrg()
7380 if (RD_HARPOON(p_port + hp_ee_ctrl) & SEE_DI) in FPT_utilEEReadOrg()
7409 (unsigned char)(RD_HARPOON(p_port + hp_page_ctrl) & in FPT_utilEESendCmdAddr()