Lines Matching refs:WR_HARPOON
792 #define WR_HARPOON(ioport,val) (OS_OutPortByte(ioport,val)) macro
822 #define WR_HARPOON(ioport,val) OS_OutPortByte((ULONG)ioport,(UCHAR) val) macro
831 #define WR_HARPOON(ioport,val) OS_OutPortByte((ULONG)ioport,(UCHAR) val) macro
840 #define WR_HARPOON(ioport,val) OS_OutPortByte((u32bits)ioport,(u08bits) val) macro
849 #define WR_HARPOON(ioport,val) OS_OutPortByte((ULONG)ioport,(UCHAR) val) macro
859 #define WR_HARPOON(ioport,val) OS_OutPortByte((ULONG)ioport,(UCHAR) val) macro
1966 #define CLR_XFER_CNT(port) (WR_HARPOON(port+hp_xfercnt_0, 0x00))
1982 WR_HARPOON(port+hp_xfer_cnt_hi, (count & 0xFF)))
1990 WR_HARPOON(port+hp_xfer_cnt_hi, (count & 0xFF)))
1994 WR_HARPOON(port+hp_scsisig, S_ILL_PH);}
1998 WR_HARPOON(port+hp_scsisig, (S_ILL_PH|SCSI_ATN));}
2001 WR_HARPOON(port+hp_scsisig, S_ILL_PH);}
2004 WR_HARPOON(port+hp_scsisig, (S_ILL_PH|SCSI_ATN));}
2006 #define DISABLE_AUTO(port) (WR_HARPOON(port+hp_scsireset, PROG_RESET),\
2007 WR_HARPOON(port+hp_scsireset, 0x00))
2009 #define ARAM_ACCESS(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \
2012 #define SGRAM_ACCESS(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \
2015 #define MDISABLE_INT(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \
2018 #define MENABLE_INT(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \
2467 WR_HARPOON(ioport+hp_semaphore, 0x00); in SccbMgr_sense_adapter()
2489 WR_HARPOON(ioport+hp_clkctrl_0, CLKCTRL_DEFAULT); in SccbMgr_sense_adapter()
2490 WR_HARPOON(ioport+hp_sys_ctrl, 0x00); in SccbMgr_sense_adapter()
2580 WR_HARPOON(ioport+hp_bm_ctrl, j ); in SccbMgr_sense_adapter()
2586 WR_HARPOON(ioport+hp_ee_ctrl, j ); in SccbMgr_sense_adapter()
2632 WR_HARPOON(ioport+hp_xfer_pad, (temp & ~BIT(4))); in SccbMgr_sense_adapter()
2635 WR_HARPOON(ioport+hp_xfer_pad, (temp | BIT(4))); in SccbMgr_sense_adapter()
2638 WR_HARPOON(ioport+hp_xfer_pad, temp); in SccbMgr_sense_adapter()
2644 WR_HARPOON(ioport+hp_ee_ctrl, (temp | SEE_CS)); in SccbMgr_sense_adapter()
2645 WR_HARPOON(ioport+hp_xfer_pad, (temp2 | BIT(4))); in SccbMgr_sense_adapter()
2652 WR_HARPOON(ioport+hp_xfer_pad, (temp2 & ~BIT(4))); in SccbMgr_sense_adapter()
2653 WR_HARPOON(ioport+hp_xfer_pad, (temp2 | BIT(4))); in SccbMgr_sense_adapter()
2655 WR_HARPOON(ioport+hp_ee_ctrl, temp); in SccbMgr_sense_adapter()
2656 WR_HARPOON(ioport+hp_xfer_pad, temp2); in SccbMgr_sense_adapter()
2795 WR_HARPOON(ioport+hp_selfid_0, id); in SccbMgr_config_adapter()
2796 WR_HARPOON(ioport+hp_selfid_1, 0x00); in SccbMgr_config_adapter()
2797 WR_HARPOON(ioport+hp_arb_id, pCardInfo->si_id); in SccbMgr_config_adapter()
2802 WR_HARPOON(ioport+hp_portctrl_1,(HOST_MODE8 | CHK_SCSI_P)); in SccbMgr_config_adapter()
2807 WR_HARPOON(ioport+hp_bm_ctrl, j); in SccbMgr_config_adapter()
2812 WR_HARPOON(ioport+hp_ee_ctrl, j ); in SccbMgr_config_adapter()
2915 WR_HARPOON((ioport+hp_semaphore), in SccbMgr_config_adapter()
3027 WR_HARPOON(ioport+hp_semaphore, 0x00); in probe_adapter()
3050 WR_HARPOON(ioport+hp_clkctrl_0, CLKCTRL_DEFAULT); in probe_adapter()
3051 WR_HARPOON(ioport+hp_sys_ctrl, 0x00); in probe_adapter()
3157 WR_HARPOON(ioport+hp_bm_ctrl, j ); in probe_adapter()
3164 WR_HARPOON(ioport+hp_ee_ctrl, j ); in probe_adapter()
3396 WR_HARPOON(ioport+hp_selfid_0, id); in init_adapter()
3397 WR_HARPOON(ioport+hp_selfid_1, 0x00); in init_adapter()
3398 WR_HARPOON(ioport+hp_arb_id, pCardInfo->ai_id); in init_adapter()
3403 WR_HARPOON(ioport+hp_portctrl_1,(HOST_MODE8 | CHK_SCSI_P)); in init_adapter()
3408 WR_HARPOON(ioport+hp_bm_ctrl, j); in init_adapter()
3413 WR_HARPOON(ioport+hp_ee_ctrl, j ); in init_adapter()
3517 WR_HARPOON((ioport+hp_semaphore), in init_adapter()
3732 WR_HARPOON(ioPort+hp_xfer_pad, (i | ID_UNLOCK)); in SetDevSyncRate()
3733 WR_HARPOON(ioPort+hp_select_id, ((scsiID << 4) | scsiID)); in SetDevSyncRate()
3735 WR_HARPOON(ioPort+hp_xfer_pad, i); /* restore value */ in SetDevSyncRate()
4163 WR_HARPOON(portBase + hp_stack_addr, index); in RdStack()
4173 WR_HARPOON(portBase + hp_stack_addr, index); in WrStack()
4174 WR_HARPOON(portBase + hp_stack_data, data); in WrStack()
4391 WR_HARPOON(ioport+hp_semaphore, (RD_HARPOON(ioport+hp_semaphore) in SccbMgr_start_sccb()
4396 WR_HARPOON(ioport+hp_clkctrl_0, CLKCTRL_DEFAULT); in SccbMgr_start_sccb()
4397 WR_HARPOON(ioport+hp_sys_ctrl, 0x00); in SccbMgr_start_sccb()
4405 WR_HARPOON(ioport+hp_semaphore, (RD_HARPOON(ioport+hp_semaphore) in SccbMgr_start_sccb()
4542 WR_HARPOON(ioport+hp_semaphore,(RD_HARPOON(ioport+hp_semaphore) in SccbMgr_abort_sccb()
4701 WR_HARPOON(ioport+hp_user_defined_D, RD_HARPOON(ioport+hp_int_status)); in SccbMgr_isr()
4709 WR_HARPOON(ioport+hp_int_mask, (INT_CMD_COMPL | SCSI_INTERRUPT)); in SccbMgr_isr()
4780 WR_HARPOON(ioport+hp_gp_reg_1, 0x00); in SccbMgr_isr()
4833 WR_HARPOON(ioport+hp_gp_reg_1, 0x00); in SccbMgr_isr()
4876 WR_HARPOON(ioport+hp_xfer_pad, (UCHAR) ID_UNLOCK); in SccbMgr_isr()
4877 WR_HARPOON(ioport+hp_select_id, (UCHAR)(target | target<<4)); in SccbMgr_isr()
4878 WR_HARPOON(ioport+hp_xfer_pad, (UCHAR) 0x00); in SccbMgr_isr()
4879 WR_HARPOON(ioport+hp_fifowrite, i); in SccbMgr_isr()
4880 WR_HARPOON(ioport+hp_autostart_3, (AUTO_IMMED+TAG_STRT)); in SccbMgr_isr()
4980 WR_HARPOON(p_port+hp_pci_stat_cfg, in SccbMgr_bad_isr()
4983 WR_HARPOON(p_port+hp_host_blk_cnt, 0x00); in SccbMgr_bad_isr()
4997 WR_HARPOON(p_port+hp_ee_ctrl, ((UCHAR)temp | SEE_MS | SEE_CS)); in SccbMgr_bad_isr()
4998 WR_HARPOON(p_port+hp_ee_ctrl, temp); in SccbMgr_bad_isr()
5011 WR_HARPOON(p_port+hp_clkctrl_0, CLKCTRL_DEFAULT); in SccbMgr_bad_isr()
5012 WR_HARPOON(p_port+hp_sys_ctrl, 0x00); in SccbMgr_bad_isr()
5065 WR_HARPOON((p_port+hp_xferstat), 0x01); in SccbMgr_bad_isr()
5158 WR_HARPOON(((PSCCBcard) pCurrCard)->ioPort+hp_clkctrl_0, CLKCTRL_DEFAULT); in SccbMgr_scsi_reset()
5159 WR_HARPOON(((PSCCBcard) pCurrCard)->ioPort+hp_sys_ctrl, 0x00); in SccbMgr_scsi_reset()
5166 WR_HARPOON(((PSCCBcard) pCurrCard)->ioPort+hp_page_ctrl, in SccbMgr_scsi_reset()
5170 WR_HARPOON(((PSCCBcard) pCurrCard)->ioPort+hp_sg_addr,0x00); in SccbMgr_scsi_reset()
5175 WR_HARPOON(((PSCCBcard) pCurrCard)->ioPort+hp_int_mask, in SccbMgr_scsi_reset()
5493 WR_HARPOON(port+hp_portctrl_0, SCSI_PORT); in sfm()
5497 WR_HARPOON(port+hp_scsisig, SCSI_ACK + S_MSGI_PH); in sfm()
5506 WR_HARPOON(port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in sfm()
5507 WR_HARPOON(port+hp_xferstat, 0); in sfm()
5508 WR_HARPOON(port+hp_fiforead, 0); in sfm()
5509 WR_HARPOON(port+hp_fifowrite, 0); in sfm()
5531 WR_HARPOON(port+hp_portctrl_0, SCSI_PORT); in sfm()
5535 WR_HARPOON(port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in sfm()
5540 WR_HARPOON(port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in sfm()
5541 WR_HARPOON(port+hp_xferstat, 0); in sfm()
5542 WR_HARPOON(port+hp_fiforead, 0); in sfm()
5543 WR_HARPOON(port+hp_fifowrite, 0); in sfm()
5694 WR_HARPOON(port+hp_select_id, target); in ssel()
5695 WR_HARPOON(port+hp_gp_reg_3, target); /* Use by new automation logic */ in ssel()
5705 WR_HARPOON(port+hp_autostart_3, (SELECT+SELCHK_STRT)); in ssel()
5742 WR_HARPOON(port+hp_autostart_3, (SELECT+SELCHK_STRT)); in ssel()
5786 WR_HARPOON(port+hp_autostart_3, (SELECT+SELCHK_STRT)); in ssel()
5829 WR_HARPOON(port+hp_autostart_3, (SELECT+SELCHK_STRT)); in ssel()
5844 WR_HARPOON(port+hp_autostart_3, (SELECT+SELCHK_STRT)); in ssel()
5872 WR_HARPOON(port+hp_xferstat, 0x00); in ssel()
5877 WR_HARPOON(port+hp_portctrl_0,(SCSI_PORT)); in ssel()
5882 WR_HARPOON(port+hp_scsictrl_0, (SEL_TAR | ENA_ATN | ENA_RESEL | ENA_SCAM_SEL)); in ssel()
5893 WR_HARPOON(port+hp_autostart_3, auto_loaded); in ssel()
5940 WR_HARPOON((port+hp_scsictrl_0),(ENA_RESEL | ENA_SCAM_SEL)); in sres()
6312 WR_HARPOON(port+hp_portctrl_0, SCSI_BUS_EN); in SendMsg()
6314 WR_HARPOON(port+hp_scsidata_0,message); in SendMsg()
6316 WR_HARPOON(port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in SendMsg()
6320 WR_HARPOON(port+hp_portctrl_0, 0x00); in SendMsg()
6368 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in sdecm()
6390 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in sdecm()
6470 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in sdecm()
6484 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in sdecm()
6505 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in sdecm()
6516 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in sdecm()
6577 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in shandem()
6587 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in shandem()
6594 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in shandem()
6599 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in shandem()
6661 WR_HARPOON(port+hp_autostart_3, (SELECT+SELCHK_STRT)); in sisyncn()
6667 WR_HARPOON(port+hp_autostart_3, (AUTO_IMMED + CMD_ONLY_STRT)); in sisyncn()
6709 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in stsyncn()
6720 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in stsyncn()
6810 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in stsyncn()
6849 WR_HARPOON(port+hp_portctrl_0, SCSI_PORT); in sisyncr()
6852 WR_HARPOON(port+hp_autostart_3, (AUTO_IMMED+CMD_ONLY_STRT)); in sisyncr()
6897 WR_HARPOON(port+hp_autostart_3, (SELECT+SELCHK_STRT)); in siwidn()
6943 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in stwidn()
6982 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in stwidn()
7025 WR_HARPOON(port+hp_portctrl_0, SCSI_PORT); in siwidr()
7028 WR_HARPOON(port+hp_autostart_3, (AUTO_IMMED+CMD_ONLY_STRT)); in siwidr()
7107 WR_HARPOON(p_port+hp_synctarg_base+index, p_sync_value); in sssyncv()
7130 WR_HARPOON(port+hp_page_ctrl, in sresb()
7134 WR_HARPOON(port+hp_scsictrl_0, SCSI_RST); in sresb()
7137 WR_HARPOON(port+hp_seltimeout,TO_5ms); in sresb()
7140 WR_HARPOON(port+hp_portctrl_0,(SCSI_PORT | START_TO)); in sresb()
7144 WR_HARPOON(port+hp_seltimeout,scsiID); in sresb()
7146 WR_HARPOON(port+hp_scsictrl_0, ENA_SCAM_SEL); in sresb()
7152 WR_HARPOON(port+hp_int_mask, (RD_HARPOON(port+hp_int_mask) | 0x00)); in sresb()
7185 WR_HARPOON(port+hp_page_ctrl, in sresb()
7269 WR_HARPOON(p_port+hp_xfercnt_0, 0x00); in sxfrp()
7276 WR_HARPOON(p_port+hp_scsisig, curr_phz); in sxfrp()
7283 WR_HARPOON(p_port+hp_portctrl_0, (SCSI_PORT | HOST_PORT | SCSI_INBIT)); in sxfrp()
7292 WR_HARPOON(p_port+hp_portctrl_0, (SCSI_PORT | HOST_PORT | HOST_WRT)); in sxfrp()
7295 WR_HARPOON(p_port+hp_fifodata_0,0xFA); in sxfrp()
7306 WR_HARPOON(p_port+hp_portctrl_0, (SCSI_PORT | HOST_PORT | SCSI_INBIT)); in sxfrp()
7314 WR_HARPOON(p_port+hp_autostart_0, (AUTO_IMMED+DISCONNECT_START)); in sxfrp()
7362 WR_HARPOON(port+hp_xferstat, 0x00); in schkdd()
7410 WR_HARPOON(port+hp_portctrl_0, SCSI_PORT); in schkdd()
7436 WR_HARPOON(port+hp_portctrl_0, 0x00); in schkdd()
7637 WR_HARPOON(port+hp_portctrl_0, SCSI_PORT); in phaseDataOut()
7641 WR_HARPOON(port+hp_autostart_0, (END_DATA+END_DATA_START)); in phaseDataOut()
7699 WR_HARPOON(port+hp_portctrl_0, SCSI_PORT); in phaseDataIn()
7703 WR_HARPOON(port+hp_autostart_0, (END_DATA+END_DATA_START)); in phaseDataIn()
7755 WR_HARPOON(p_port+hp_scsisig, 0x00); in phaseCommand()
7776 WR_HARPOON(p_port+hp_portctrl_0,(SCSI_PORT)); in phaseCommand()
7780 WR_HARPOON(p_port+hp_autostart_3, (AUTO_IMMED | CMD_ONLY_STRT)); in phaseCommand()
7808 WR_HARPOON(port+hp_scsisig, 0x00); in phaseStatus()
7810 WR_HARPOON(port+hp_autostart_0, (AUTO_IMMED+END_DATA_START)); in phaseStatus()
7910 WR_HARPOON(port+hp_portctrl_0, SCSI_BUS_EN); in phaseMsgOut()
7912 WR_HARPOON(port+hp_scsidata_0,message); in phaseMsgOut()
7914 WR_HARPOON(port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in phaseMsgOut()
7918 WR_HARPOON(port+hp_portctrl_0, 0x00); in phaseMsgOut()
7961 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in phaseMsgOut()
8004 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+END_DATA_START)); in phaseMsgIn()
8023 WR_HARPOON(port+hp_autostart_1, (AUTO_IMMED+DISCONNECT_START)); in phaseMsgIn()
8054 WR_HARPOON(port+hp_scsisig, RD_HARPOON(port+hp_scsisig)); in phaseIllegal()
8137 WR_HARPOON(port+hp_xfercnt_0, 0x00); in phaseChkFifo()
8140 WR_HARPOON(port+hp_portctrl_0, 0x00); in phaseChkFifo()
8157 WR_HARPOON(port+hp_fifowrite, 0x00); in phaseChkFifo()
8158 WR_HARPOON(port+hp_fiforead, 0x00); in phaseChkFifo()
8159 WR_HARPOON(port+hp_xferstat, 0x00); in phaseChkFifo()
8800 WR_HARPOON(p_port+hp_page_ctrl, i); in busMstrSGDataXferStart()
8849 WR_HARPOON(p_port+hp_sg_addr,(sg_count<<4)); in busMstrSGDataXferStart()
8856 WR_HARPOON(p_port+hp_portctrl_0,(DMA_PORT | SCSI_PORT | SCSI_INBIT)); in busMstrSGDataXferStart()
8857 WR_HARPOON(p_port+hp_scsisig, S_DATAI_PH); in busMstrSGDataXferStart()
8874 WR_HARPOON(p_port+hp_portctrl_0,(SCSI_PORT | DMA_PORT | DMA_RD)); in busMstrSGDataXferStart()
8875 WR_HARPOON(p_port+hp_scsisig, S_DATAO_PH); in busMstrSGDataXferStart()
8879 WR_HARPOON(p_port+hp_page_ctrl, (UCHAR) (i | SCATTER_EN)); in busMstrSGDataXferStart()
8947 WR_HARPOON(p_port+hp_portctrl_0,(DMA_PORT | SCSI_PORT | SCSI_INBIT)); in busMstrDataXferStart()
8948 WR_HARPOON(p_port+hp_scsisig, S_DATAI_PH); in busMstrDataXferStart()
8950 WR_HARPOON(p_port+hp_xfer_cmd, in busMstrDataXferStart()
8956 WR_HARPOON(p_port+hp_portctrl_0,(SCSI_PORT | DMA_PORT | DMA_RD)); in busMstrDataXferStart()
8957 WR_HARPOON(p_port+hp_scsisig, S_DATAO_PH); in busMstrDataXferStart()
8959 WR_HARPOON(p_port+hp_xfer_cmd, in busMstrDataXferStart()
8988 WR_HARPOON(p_port+hp_sys_ctrl, HALT_MACH); in busMstrTimeOut()
8995 WR_HARPOON(p_port+hp_sys_ctrl, HARD_ABORT); in busMstrTimeOut()
9038 WR_HARPOON(port+hp_bm_ctrl, (RD_HARPOON(port+hp_bm_ctrl) | FLUSH_XFER_CNTR)); in hostDataXferAbort()
9043 WR_HARPOON(port+hp_bm_ctrl, (RD_HARPOON(port+hp_bm_ctrl) & ~FLUSH_XFER_CNTR)); in hostDataXferAbort()
9064 WR_HARPOON(port+hp_dual_addr_lo, in hostDataXferAbort()
9077 WR_HARPOON(port+hp_page_ctrl, (RD_HARPOON(port+hp_page_ctrl) & in hostDataXferAbort()
9080 WR_HARPOON(port+hp_sg_addr,0x00); in hostDataXferAbort()
9163 WR_HARPOON(port+hp_dual_addr_lo, in hostDataXferAbort()
9187 WR_HARPOON(port+hp_bm_ctrl, (RD_HARPOON(port+hp_bm_ctrl) | in hostDataXferAbort()
9195 WR_HARPOON(port+hp_bm_ctrl, (RD_HARPOON(port+hp_bm_ctrl) & in hostDataXferAbort()
9218 WR_HARPOON(port+hp_dual_addr_lo, in hostDataXferAbort()
9257 WR_HARPOON(port+hp_dual_addr_lo, in hostDataXferAbort()
9267 WR_HARPOON(port+hp_page_ctrl, (RD_HARPOON(port+hp_page_ctrl) & in hostDataXferAbort()
9270 WR_HARPOON(port+hp_sg_addr,0x00); in hostDataXferAbort()
9295 WR_HARPOON(port+hp_int_mask,(INT_CMD_COMPL | SCSI_INTERRUPT)); in hostDataXferAbort()
9647 WR_HARPOON(p_port+hp_scsisig, (RD_HARPOON(p_port+hp_scsisig) | SCSI_BSY)); in scarb()
9651 WR_HARPOON(p_port+hp_scsisig, (RD_HARPOON(p_port+hp_scsisig) & in scarb()
9657 WR_HARPOON(p_port+hp_scsisig, (RD_HARPOON(p_port+hp_scsisig) | SCSI_SEL)); in scarb()
9661 WR_HARPOON(p_port+hp_scsisig, (RD_HARPOON(p_port+hp_scsisig) & in scarb()
9668 WR_HARPOON(p_port+hp_clkctrl_0, (RD_HARPOON(p_port+hp_clkctrl_0) in scarb()
9670 WR_HARPOON(p_port+hp_scsireset, SCAM_EN); in scarb()
9671 WR_HARPOON(p_port+hp_scsidata_0, 0x00); in scarb()
9673 WR_HARPOON(p_port+hp_scsidata_1, 0x00); in scarb()
9675 WR_HARPOON(p_port+hp_portctrl_0, SCSI_BUS_EN); in scarb()
9677 WR_HARPOON(p_port+hp_scsisig, (RD_HARPOON(p_port+hp_scsisig) | SCSI_MSG)); in scarb()
9679 WR_HARPOON(p_port+hp_scsisig, (RD_HARPOON(p_port+hp_scsisig) in scarb()
9702 WR_HARPOON(p_port+hp_page_ctrl, in scbusf()
9706 WR_HARPOON(p_port+hp_scsidata_0, 0x00); in scbusf()
9708 WR_HARPOON(p_port+hp_portctrl_0, (RD_HARPOON(p_port+hp_portctrl_0) in scbusf()
9711 WR_HARPOON(p_port+hp_scsisig, 0x00); in scbusf()
9714 WR_HARPOON(p_port+hp_scsireset, (RD_HARPOON(p_port+hp_scsireset) in scbusf()
9717 WR_HARPOON(p_port+hp_clkctrl_0, (RD_HARPOON(p_port+hp_clkctrl_0) in scbusf()
9726 WR_HARPOON(p_port+hp_page_ctrl, in scbusf()
9846 WR_HARPOON(p_port+hp_scsisig, SCSI_SEL); in scsel()
9849 WR_HARPOON(p_port+hp_scsisig, (SCSI_SEL | SCSI_BSY)); in scsel()
9852 WR_HARPOON(p_port+hp_scsisig, (SCSI_SEL | SCSI_BSY | SCSI_IOBIT | SCSI_CD)); in scsel()
9853 WR_HARPOON(p_port+hp_scsidata_0, (UCHAR)(RD_HARPOON(p_port+hp_scsidata_0) | in scsel()
9857 WR_HARPOON(p_port+hp_scsisig, (SCSI_BSY | SCSI_IOBIT | SCSI_CD)); in scsel()
9860 WR_HARPOON(p_port+hp_scsidata_0, (UCHAR)(RD_HARPOON(p_port+hp_scsidata_0) & in scsel()
9864 WR_HARPOON(p_port+hp_scsisig, (SCSI_SEL | SCSI_BSY | SCSI_IOBIT | SCSI_CD)); in scsel()
9887 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
9891 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
9900 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
9904 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
9911 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
9915 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
10157 WR_HARPOON(p_port+hp_page_ctrl, in scsell()
10162 WR_HARPOON(p_port+hp_addstat,(RD_HARPOON(p_port+hp_addstat) | SCAM_TIMER)); in scsell()
10163 WR_HARPOON(p_port+hp_seltimeout,TO_4ms); in scsell()
10174 WR_HARPOON(p_port+hp_select_id, targ_id); in scsell()
10176 WR_HARPOON(p_port+hp_portctrl_0, SCSI_PORT); in scsell()
10177 WR_HARPOON(p_port+hp_autostart_3, (SELECT | CMD_ONLY_STRT)); in scsell()
10178 WR_HARPOON(p_port+hp_scsictrl_0, (SEL_TAR | ENA_RESEL)); in scsell()
10189 WR_HARPOON(p_port+hp_addstat,(RD_HARPOON(p_port+hp_addstat) & ~SCAM_TIMER)); in scsell()
10190 WR_HARPOON(p_port+hp_seltimeout,TO_290ms); in scsell()
10199 WR_HARPOON(p_port+hp_page_ctrl, in scsell()
10210 WR_HARPOON(p_port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in scsell()
10217 WR_HARPOON(p_port+hp_page_ctrl, in scsell()
10241 WR_HARPOON(p_port+hp_page_ctrl, in scsellDOS()
10246 WR_HARPOON(p_port+hp_addstat,(RD_HARPOON(p_port+hp_addstat) | SCAM_TIMER)); in scsellDOS()
10247 WR_HARPOON(p_port+hp_seltimeout,TO_2ms); in scsellDOS()
10258 WR_HARPOON(p_port+hp_select_id, targ_id); in scsellDOS()
10260 WR_HARPOON(p_port+hp_portctrl_0, SCSI_PORT); in scsellDOS()
10261 WR_HARPOON(p_port+hp_autostart_3, (SELECT | CMD_ONLY_STRT)); in scsellDOS()
10262 WR_HARPOON(p_port+hp_scsictrl_0, (SEL_TAR | ENA_RESEL)); in scsellDOS()
10273 WR_HARPOON(p_port+hp_addstat,(RD_HARPOON(p_port+hp_addstat) & ~SCAM_TIMER)); in scsellDOS()
10274 WR_HARPOON(p_port+hp_seltimeout,TO_290ms); in scsellDOS()
10283 WR_HARPOON(p_port+hp_page_ctrl, in scsellDOS()
10294 WR_HARPOON(p_port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in scsellDOS()
10301 WR_HARPOON(p_port+hp_page_ctrl, in scsellDOS()
10633 WR_HARPOON(port+hp_page_ctrl, (UCHAR) (i | G_INT_DISABLE)); in XbowInit()
10635 WR_HARPOON(port+hp_scsireset,0x00); in XbowInit()
10636 WR_HARPOON(port+hp_portctrl_1,HOST_MODE8); in XbowInit()
10638 WR_HARPOON(port+hp_scsireset,(DMA_RESET | HPSCSI_RESET | PROG_RESET | \ in XbowInit()
10641 WR_HARPOON(port+hp_scsireset,SCSI_INI); in XbowInit()
10643 WR_HARPOON(port+hp_clkctrl_0,CLKCTRL_DEFAULT); in XbowInit()
10645 WR_HARPOON(port+hp_scsisig,0x00); /* Clear any signals we might */ in XbowInit()
10646 WR_HARPOON(port+hp_scsictrl_0,ENA_SCAM_SEL); in XbowInit()
10663 WR_HARPOON(port+hp_seltimeout,TO_290ms); in XbowInit()
10668 WR_HARPOON(port+hp_addstat,SCSI_MODE8); in XbowInit()
10672 WR_HARPOON(port+hp_synctarg_0,NARROW_SCSI); in XbowInit()
10673 WR_HARPOON(port+hp_synctarg_1,NARROW_SCSI); in XbowInit()
10674 WR_HARPOON(port+hp_synctarg_2,NARROW_SCSI); in XbowInit()
10675 WR_HARPOON(port+hp_synctarg_3,NARROW_SCSI); in XbowInit()
10676 WR_HARPOON(port+hp_synctarg_4,NARROW_SCSI); in XbowInit()
10677 WR_HARPOON(port+hp_synctarg_5,NARROW_SCSI); in XbowInit()
10678 WR_HARPOON(port+hp_synctarg_6,NARROW_SCSI); in XbowInit()
10679 WR_HARPOON(port+hp_synctarg_7,NARROW_SCSI); in XbowInit()
10680 WR_HARPOON(port+hp_synctarg_8,NARROW_SCSI); in XbowInit()
10681 WR_HARPOON(port+hp_synctarg_9,NARROW_SCSI); in XbowInit()
10682 WR_HARPOON(port+hp_synctarg_10,NARROW_SCSI); in XbowInit()
10683 WR_HARPOON(port+hp_synctarg_11,NARROW_SCSI); in XbowInit()
10684 WR_HARPOON(port+hp_synctarg_12,NARROW_SCSI); in XbowInit()
10685 WR_HARPOON(port+hp_synctarg_13,NARROW_SCSI); in XbowInit()
10686 WR_HARPOON(port+hp_synctarg_14,NARROW_SCSI); in XbowInit()
10687 WR_HARPOON(port+hp_synctarg_15,NARROW_SCSI); in XbowInit()
10690 WR_HARPOON(port+hp_page_ctrl, i); in XbowInit()
10711 WR_HARPOON(p_port+hp_sys_ctrl, DRVR_RST); in BusMasterInit()
10712 WR_HARPOON(p_port+hp_sys_ctrl, 0x00); in BusMasterInit()
10714 WR_HARPOON(p_port+hp_host_blk_cnt, XFER_BLK64); in BusMasterInit()
10717 WR_HARPOON(p_port+hp_bm_ctrl, (BMCTRL_DEFAULT)); in BusMasterInit()
10719 WR_HARPOON(p_port+hp_ee_ctrl, (SCSI_TERM_ENA_H)); in BusMasterInit()
10724 WR_HARPOON(p_port+hp_pci_cmd_cfg, (RD_HARPOON(p_port+hp_pci_cmd_cfg) in BusMasterInit()
10730 WR_HARPOON(p_port+hp_int_mask, (INT_CMD_COMPL | SCSI_INTERRUPT)); in BusMasterInit()
10731 WR_HARPOON(p_port+hp_page_ctrl, (RD_HARPOON(p_port+hp_page_ctrl) & in BusMasterInit()
10763 WR_HARPOON(port+hp_seltimeout,TO_5ms); in DiagXbow()
10765 WR_HARPOON(port+hp_portctrl_0,START_TO); in DiagXbow()
10770 WR_HARPOON(port+hp_selfid_0,fifodata[4]); in DiagXbow()
10771 WR_HARPOON(port+hp_selfid_1,fifodata[4]); in DiagXbow()
10781 WR_HARPOON(port+hp_portctrl_0,(HOST_PORT | HOST_WRT | START_TO)); in DiagXbow()
10786 WR_HARPOON(port+hp_fifodata_0, fifodata[loop_cnt]); in DiagXbow()
10794 WR_HARPOON(port+hp_portctrl_0,(HOST_PORT | START_TO)); in DiagXbow()
10811 WR_HARPOON(port+hp_seltimeout,TO_290ms); in DiagXbow()
10840 WR_HARPOON(port+hp_xfer_cnt_lo,testdata); in DiagBusMaster()
10841 WR_HARPOON(port+hp_xfer_cnt_mi,testdata); in DiagBusMaster()
10842 WR_HARPOON(port+hp_xfer_cnt_hi,testdata); in DiagBusMaster()
10843 WR_HARPOON(port+hp_host_addr_lo,testdata); in DiagBusMaster()
10844 WR_HARPOON(port+hp_host_addr_lmi,testdata); in DiagBusMaster()
10845 WR_HARPOON(port+hp_host_addr_hmi,testdata); in DiagBusMaster()
10846 WR_HARPOON(port+hp_host_addr_hi,testdata); in DiagBusMaster()
11300 WR_HARPOON(pCurrCard->ioPort+hp_clkctrl_0,(PWR_DWN | CLKCTRL_DEFAULT)); in queueCmdComplete()
11301 WR_HARPOON(pCurrCard->ioPort+hp_sys_ctrl, STOP_CLK); in queueCmdComplete()
11304 WR_HARPOON(pCurrCard->ioPort+hp_semaphore, in queueCmdComplete()
11393 WR_HARPOON(pCurrCard->ioPort+hp_clkctrl_0,(PWR_DWN | CLKCTRL_DEFAULT));
11394 WR_HARPOON(pCurrCard->ioPort+hp_sys_ctrl, STOP_CLK);
11397 WR_HARPOON(pCurrCard->ioPort+hp_semaphore,
11738 WR_HARPOON(p_port+hp_clkctrl_0, CLKCTRL_DEFAULT); in Wait()
11740 WR_HARPOON(p_port+hp_seltimeout,p_delay); in Wait()
11745 WR_HARPOON(p_port+hp_portctrl_0, in Wait()
11757 WR_HARPOON(p_port+hp_portctrl_0, in Wait()
11763 WR_HARPOON(p_port+hp_clkctrl_0,green_flag); in Wait()
11765 WR_HARPOON(p_port+hp_seltimeout,old_timer); in Wait()
11797 WR_HARPOON(p_port+hp_ee_ctrl, (ee_value | SEE_MS)); /*Turn off CS */ in utilEEWriteOnOff()
11798 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); /*Turn off Master Select */ in utilEEWriteOnOff()
11838 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEWrite()
11839 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEWrite()
11841 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEWrite()
11842 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEWrite()
11844 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEWrite()
11845 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEWrite()
11848 WR_HARPOON(p_port+hp_ee_ctrl, (ee_value | SEE_MS)); in utilEEWrite()
11852 WR_HARPOON(p_port+hp_ee_ctrl, (ee_value | SEE_MS | SEE_CS)); /* Set CS to EEPROM */ in utilEEWrite()
11853 WR_HARPOON(p_port+hp_ee_ctrl, (ee_value | SEE_MS)); /* Turn off CS */ in utilEEWrite()
11854 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); /* Turn off Master Select */ in utilEEWrite()
11923 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEReadOrg()
11924 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEReadOrg()
11926 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEReadOrg()
11927 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEEReadOrg()
11936 WR_HARPOON(p_port+hp_ee_ctrl, (ee_value | SEE_MS)); /*Turn off CS */ in utilEEReadOrg()
11937 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); /*Turn off Master Select */ in utilEEReadOrg()
11968 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
11971 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
11981 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
11982 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
11984 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
11985 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
11987 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
11988 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
12006 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
12007 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
12009 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
12010 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
12012 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()
12013 WR_HARPOON(p_port+hp_ee_ctrl, ee_value); in utilEESendCmdAddr()