Lines Matching refs:p_port

2009 #define ARAM_ACCESS(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \  argument
2010 (RD_HARPOON(p_port+hp_page_ctrl) | SGRAM_ARAM)))
2012 #define SGRAM_ACCESS(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \ argument
2013 (RD_HARPOON(p_port+hp_page_ctrl) & ~SGRAM_ARAM)))
2015 #define MDISABLE_INT(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \ argument
2016 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE)))
2018 #define MENABLE_INT(p_port) (WR_HARPOON(p_port+hp_page_ctrl, \ argument
2019 (RD_HARPOON(p_port+hp_page_ctrl) & ~G_INT_DISABLE)))
2042 void sssyncv(USHORT p_port, UCHAR p_id, UCHAR p_sync_value, PSCCBMgr_tar_info currTar_Info);
2044 void sxfrp(USHORT p_port, UCHAR p_card);
2056 UCHAR scsellDOS(USHORT p_port, UCHAR targ_id);
2067 void sssyncv(ULONG p_port, UCHAR p_id, UCHAR p_sync_value, PSCCBMgr_tar_info currTar_Info);
2069 void sxfrp(ULONG p_port, UCHAR p_card);
2113 void Wait1Second(USHORT p_port);
2114 void Wait(USHORT p_port, UCHAR p_delay);
2115 void utilEEWriteOnOff(USHORT p_port,UCHAR p_mode);
2116 void utilEEWrite(USHORT p_port, USHORT ee_data, USHORT ee_addr);
2117 USHORT utilEERead(USHORT p_port, USHORT ee_addr);
2118 USHORT utilEEReadOrg(USHORT p_port, USHORT ee_addr);
2119 void utilEESendCmdAddr(USHORT p_port, UCHAR ee_cmd, USHORT ee_addr);
2121 void Wait1Second(ULONG p_port);
2122 void Wait(ULONG p_port, UCHAR p_delay);
2123 void utilEEWriteOnOff(ULONG p_port,UCHAR p_mode);
2124 void utilEEWrite(ULONG p_port, USHORT ee_data, USHORT ee_addr);
2125 USHORT utilEERead(ULONG p_port, USHORT ee_addr);
2126 USHORT utilEEReadOrg(ULONG p_port, USHORT ee_addr);
2127 void utilEESendCmdAddr(ULONG p_port, UCHAR ee_cmd, USHORT ee_addr);
2163 void phaseBusFree(USHORT p_port, UCHAR p_card);
2167 void phaseBusFree(ULONG p_port, UCHAR p_card);
2175 void BusMasterInit(USHORT p_port);
2178 void DiagEEPROM(USHORT p_port);
2181 void BusMasterInit(ULONG p_port);
2184 void DiagEEPROM(ULONG p_port);
2209 UCHAR SccbMgr_bad_isr(USHORT p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int);
2211 UCHAR SccbMgr_bad_isr(ULONG p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int);
2224 int scarb(USHORT p_port, UCHAR p_sel_type);
2225 void scbusf(USHORT p_port);
2226 void scsel(USHORT p_port);
2227 void scasid(UCHAR p_card, USHORT p_port);
2228 UCHAR scxferc(USHORT p_port, UCHAR p_data);
2229 UCHAR scsendi(USHORT p_port, UCHAR p_id_string[]);
2230 UCHAR sciso(USHORT p_port, UCHAR p_id_string[]);
2231 void scwirod(USHORT p_port, UCHAR p_data_bit);
2232 void scwiros(USHORT p_port, UCHAR p_data_bit);
2234 UCHAR scsell(USHORT p_port, UCHAR targ_id);
2235 void scwtsel(USHORT p_port);
2236 void inisci(UCHAR p_card, USHORT p_port, UCHAR p_our_id);
2237 void scsavdi(UCHAR p_card, USHORT p_port);
2239 int scarb(ULONG p_port, UCHAR p_sel_type);
2240 void scbusf(ULONG p_port);
2241 void scsel(ULONG p_port);
2242 void scasid(UCHAR p_card, ULONG p_port);
2243 UCHAR scxferc(ULONG p_port, UCHAR p_data);
2244 UCHAR scsendi(ULONG p_port, UCHAR p_id_string[]);
2245 UCHAR sciso(ULONG p_port, UCHAR p_id_string[]);
2246 void scwirod(ULONG p_port, UCHAR p_data_bit);
2247 void scwiros(ULONG p_port, UCHAR p_data_bit);
2249 UCHAR scsell(ULONG p_port, UCHAR targ_id);
2250 void scwtsel(ULONG p_port);
2251 void inisci(UCHAR p_card, ULONG p_port, UCHAR p_our_id);
2252 void scsavdi(UCHAR p_card, ULONG p_port);
2258 void autoCmdCmplt(USHORT p_port, UCHAR p_card);
2259 void autoLoadDefaultMap(USHORT p_port);
2261 void autoCmdCmplt(ULONG p_port, UCHAR p_card);
2262 void autoLoadDefaultMap(ULONG p_port);
4954 UCHAR SccbMgr_bad_isr(USHORT p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int) in SccbMgr_bad_isr() argument
4956 UCHAR SccbMgr_bad_isr(ULONG p_port, UCHAR p_card, PSCCBcard pCurrCard, USHORT p_int) in SccbMgr_bad_isr()
4967 if (RD_HARPOON(p_port+hp_ext_status) & in SccbMgr_bad_isr()
4974 hostDataXferAbort(p_port,p_card, pCurrCard->currentSCCB); in SccbMgr_bad_isr()
4977 if (RD_HARPOON(p_port+hp_pci_stat_cfg) & REC_MASTER_ABORT) in SccbMgr_bad_isr()
4980 WR_HARPOON(p_port+hp_pci_stat_cfg, in SccbMgr_bad_isr()
4981 (RD_HARPOON(p_port+hp_pci_stat_cfg) & ~REC_MASTER_ABORT)); in SccbMgr_bad_isr()
4983 WR_HARPOON(p_port+hp_host_blk_cnt, 0x00); in SccbMgr_bad_isr()
4993 sxfrp(p_port,p_card); in SccbMgr_bad_isr()
4995 temp = (UCHAR)(RD_HARPOON(p_port+hp_ee_ctrl) & 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()
5000 if (!(RDW_HARPOON((p_port+hp_intstat)) & (BUS_FREE | RESET))) in SccbMgr_bad_isr()
5002 phaseDecode(p_port,p_card); 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()
5017 hostDataXferAbort(p_port,p_card, pCurrCard->currentSCCB); in SccbMgr_bad_isr()
5021 DISABLE_AUTO(p_port); in SccbMgr_bad_isr()
5023 sresb(p_port,p_card); in SccbMgr_bad_isr()
5025 while(RD_HARPOON(p_port+hp_scsictrl_0) & SCSI_RST) {} in SccbMgr_bad_isr()
5032 ScamFlg = (UCHAR) utilEERead(p_port, SCAM_CONFIG/2); in SccbMgr_bad_isr()
5035 XbowInit(p_port, ScamFlg); in SccbMgr_bad_isr()
5045 WRW_HARPOON((p_port+hp_intstat), FIFO); in SccbMgr_bad_isr()
5051 if (RD_HARPOON(p_port+hp_xferstat) & FIFO_EMPTY) in SccbMgr_bad_isr()
5054 if (RDW_HARPOON((p_port+hp_intstat)) & BUS_FREE) in SccbMgr_bad_isr()
5059 if ( (RD_HARPOON(p_port+hp_xferstat) & FIFO_EMPTY) && in SccbMgr_bad_isr()
5060 (RD_HARPOON(p_port+hp_fiforead) != in SccbMgr_bad_isr()
5061 RD_HARPOON(p_port+hp_fifowrite)) && in SccbMgr_bad_isr()
5062 (RD_HARPOON(p_port+hp_xfercnt_0)) in SccbMgr_bad_isr()
5065 WR_HARPOON((p_port+hp_xferstat), 0x01); in SccbMgr_bad_isr()
5073 sxfrp(p_port,p_card); in SccbMgr_bad_isr()
5080 DISABLE_AUTO(p_port); in SccbMgr_bad_isr()
5082 WRW_HARPOON((p_port+hp_intstat), in SccbMgr_bad_isr()
5107 sssyncv(p_port, pCurrCard->currentSCCB->TargID, NARROW_SCSI,currTar_Info); in SccbMgr_bad_isr()
5118 scarb(p_port,LEVEL2_TAR); in SccbMgr_bad_isr()
5119 scsel(p_port); in SccbMgr_bad_isr()
5120 scasid(p_card, p_port); in SccbMgr_bad_isr()
5122 scbusf(p_port); in SccbMgr_bad_isr()
5124 WRW_HARPOON((p_port+hp_intstat), SCAM_SEL); in SccbMgr_bad_isr()
7046 void sssyncv(USHORT p_port, UCHAR p_id, UCHAR p_sync_value,PSCCBMgr_tar_info currTar_Info) in sssyncv() argument
7048 void sssyncv(ULONG p_port, UCHAR p_id, UCHAR p_sync_value,PSCCBMgr_tar_info currTar_Info) in sssyncv()
7107 WR_HARPOON(p_port+hp_synctarg_base+index, p_sync_value); in sssyncv()
7247 void sxfrp(USHORT p_port, UCHAR p_card) in sxfrp() argument
7249 void sxfrp(ULONG p_port, UCHAR p_card) in sxfrp()
7255 DISABLE_AUTO(p_port); in sxfrp()
7259 hostDataXferAbort(p_port,p_card,BL_Card[p_card].currentSCCB); in sxfrp()
7266 if (RDW_HARPOON((p_port+hp_intstat)) & (BUS_FREE | XFER_CNT_0 | AUTO_INT)) in sxfrp()
7269 WR_HARPOON(p_port+hp_xfercnt_0, 0x00); in sxfrp()
7271 curr_phz = RD_HARPOON(p_port+hp_scsisig) & (UCHAR)S_SCSI_PHZ; in sxfrp()
7273 WRW_HARPOON((p_port+hp_intstat), XFER_CNT_0); in sxfrp()
7276 WR_HARPOON(p_port+hp_scsisig, curr_phz); in sxfrp()
7278 while ( !(RDW_HARPOON((p_port+hp_intstat)) & (BUS_FREE | RESET)) && in sxfrp()
7279 (curr_phz == (RD_HARPOON(p_port+hp_scsisig) & (UCHAR)S_SCSI_PHZ)) ) in sxfrp()
7283 WR_HARPOON(p_port+hp_portctrl_0, (SCSI_PORT | HOST_PORT | SCSI_INBIT)); in sxfrp()
7285 if (!(RD_HARPOON(p_port+hp_xferstat) & FIFO_EMPTY)) in sxfrp()
7287 RD_HARPOON(p_port+hp_fifodata_0); in sxfrp()
7292 WR_HARPOON(p_port+hp_portctrl_0, (SCSI_PORT | HOST_PORT | HOST_WRT)); in sxfrp()
7293 if (RD_HARPOON(p_port+hp_xferstat) & FIFO_EMPTY) in sxfrp()
7295 WR_HARPOON(p_port+hp_fifodata_0,0xFA); in sxfrp()
7300 while ( !(RDW_HARPOON((p_port+hp_intstat)) & (BUS_FREE | RESET))) in sxfrp()
7302 if (RD_HARPOON(p_port+hp_scsisig) & SCSI_REQ) in sxfrp()
7306 WR_HARPOON(p_port+hp_portctrl_0, (SCSI_PORT | HOST_PORT | SCSI_INBIT)); in sxfrp()
7307 while (!(RD_HARPOON(p_port+hp_xferstat) & FIFO_EMPTY)) in sxfrp()
7309 RD_HARPOON(p_port+hp_fifodata_0); in sxfrp()
7312 if ( !(RDW_HARPOON((p_port+hp_intstat)) & (BUS_FREE | RESET))) in sxfrp()
7314 WR_HARPOON(p_port+hp_autostart_0, (AUTO_IMMED+DISCONNECT_START)); in sxfrp()
7315 while (!(RDW_HARPOON((p_port+hp_intstat)) & AUTO_INT)) {} in sxfrp()
7317 if (RDW_HARPOON((p_port+hp_intstat)) & (ICMD_COMP | ITAR_DISC)) in sxfrp()
7318 while (!(RDW_HARPOON((p_port+hp_intstat)) & (BUS_FREE | RSEL))) ; in sxfrp()
7579 void phaseDecode(USHORT p_port, UCHAR p_card) in phaseDecode() argument
7581 void phaseDecode(ULONG p_port, UCHAR p_card) in phaseDecode()
7596 DISABLE_AUTO(p_port); in phaseDecode()
7598 phase_ref = (UCHAR) (RD_HARPOON(p_port+hp_scsisig) & S_SCSI_PHZ); in phaseDecode()
7602 (*phase)(p_port, p_card); /* Call the correct phase func */ in phaseDecode()
7730 void far phaseCommand(ULONG p_port, UCHAR p_card) in phaseCommand() argument
7733 void phaseCommand(USHORT p_port, UCHAR p_card) in phaseCommand()
7735 void phaseCommand(ULONG p_port, UCHAR p_card) in phaseCommand()
7755 WR_HARPOON(p_port+hp_scsisig, 0x00); in phaseCommand()
7757 ARAM_ACCESS(p_port); in phaseCommand()
7760 cdb_reg = p_port + CMD_STRT; 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()
7781 SGRAM_ACCESS(p_port); in phaseCommand()
8316 void autoLoadDefaultMap(USHORT p_port) in autoLoadDefaultMap() argument
8318 void autoLoadDefaultMap(ULONG p_port) in autoLoadDefaultMap()
8327 ARAM_ACCESS(p_port); in autoLoadDefaultMap()
8328 map_addr = p_port + hp_aramBase; in autoLoadDefaultMap()
8419 SGRAM_ACCESS(p_port); in autoLoadDefaultMap()
8432 void autoCmdCmplt(USHORT p_port, UCHAR p_card) in autoCmdCmplt() argument
8434 void autoCmdCmplt(ULONG p_port, UCHAR p_card) in autoCmdCmplt()
8442 status_byte = RD_HARPOON(p_port+hp_gp_reg_0); in autoCmdCmplt()
8767 void busMstrSGDataXferStart(USHORT p_port, PSCCB pcurrSCCB) in busMstrSGDataXferStart() argument
8769 void busMstrSGDataXferStart(ULONG p_port, PSCCB pcurrSCCB) in busMstrSGDataXferStart()
8797 i = (UCHAR) (RD_HARPOON(p_port+hp_page_ctrl) & ~(SGRAM_ARAM|SCATTER_EN)); in busMstrSGDataXferStart()
8800 WR_HARPOON(p_port+hp_page_ctrl, i); in busMstrSGDataXferStart()
8835 WR_HARP32(p_port,reg_offset,addr); in busMstrSGDataXferStart()
8838 WR_HARP32(p_port,reg_offset,count); in busMstrSGDataXferStart()
8849 WR_HARPOON(p_port+hp_sg_addr,(sg_count<<4)); in busMstrSGDataXferStart()
8853 WR_HARP32(p_port,hp_xfercnt_0,tmpSGCnt); 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()
8863 if ((!(RD_HARPOON(p_port+hp_synctarg_0) & NARROW_SCSI)) && in busMstrSGDataXferStart()
8872 WR_HARP32(p_port,hp_xfercnt_0,tmpSGCnt); 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()
8892 void busMstrDataXferStart(USHORT p_port, PSCCB pcurrSCCB) in busMstrDataXferStart() argument
8894 void busMstrDataXferStart(ULONG p_port, PSCCB pcurrSCCB) in busMstrDataXferStart()
8913 asm { mov dx,p_port; in busMstrDataXferStart() local
8938 WR_HARP32(p_port,hp_xfercnt_0,count); in busMstrDataXferStart()
8941 HP_SETUP_ADDR_CNT(p_port,addr,count); in busMstrDataXferStart()
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()
8979 UCHAR busMstrTimeOut(USHORT p_port) in busMstrTimeOut() argument
8981 UCHAR busMstrTimeOut(ULONG p_port) in busMstrTimeOut()
8988 WR_HARPOON(p_port+hp_sys_ctrl, HALT_MACH); in busMstrTimeOut()
8990 while ((!(RD_HARPOON(p_port+hp_ext_status) & CMD_ABORTED)) && timeout--) {} in busMstrTimeOut()
8994 if (RD_HARPOON(p_port+hp_ext_status) & BM_CMD_BUSY) { in busMstrTimeOut()
8995 WR_HARPOON(p_port+hp_sys_ctrl, HARD_ABORT); in busMstrTimeOut()
8998 while ((RD_HARPOON(p_port+hp_ext_status) & BM_CMD_BUSY) && timeout--) {} in busMstrTimeOut()
9001 RD_HARPOON(p_port+hp_int_status); /*Clear command complete */ in busMstrTimeOut()
9003 if (RD_HARPOON(p_port+hp_ext_status) & BM_CMD_BUSY) { in busMstrTimeOut()
9416 USHORT p_port; in scini() local
9418 ULONG p_port; in scini() local
9426 p_port = currCard->ioPort; in scini()
9435 ScamFlg = (UCHAR) utilEERead(p_port, SCAM_CONFIG/2); in scini()
9436 i = (UCHAR)(utilEERead(p_port, (SYSTEM_CONFIG/2))); in scini()
9441 inisci(p_card,p_port, p_our_id); in scini()
9451 Wait1Second(p_port); in scini()
9457 while (!(scarb(p_port,INIT_SELTD))) {} in scini()
9459 scsel(p_port); in scini()
9462 scxferc(p_port,SYNC_PTRN); in scini()
9463 scxferc(p_port,DOM_MSTR); in scini()
9464 loser = scsendi(p_port,&scamInfo[p_our_id].id_string[0]); in scini()
9467 scbusf(p_port); in scini()
9471 sresb(p_port,p_card); in scini()
9472 Wait(p_port, TO_250ms); in scini()
9474 while (!(scarb(p_port,INIT_SELTD))) {} in scini()
9476 scsel(p_port); in scini()
9479 scxferc(p_port, SYNC_PTRN); in scini()
9480 scxferc(p_port, DOM_MSTR); in scini()
9481 loser = scsendi(p_port,&scamInfo[p_our_id]. in scini()
9485 scbusf(p_port); in scini()
9511 if (scsell(p_port,i)) in scini()
9527 sresb(p_port,p_card); in scini()
9528 Wait1Second(p_port); in scini()
9529 while (!(scarb(p_port,INIT_SELTD))) {} in scini()
9530 scsel(p_port); in scini()
9531 scasid(p_card, p_port); in scini()
9542 scwtsel(p_port); in scini()
9545 while (scxferc(p_port,0x00) != SYNC_PTRN) {} in scini()
9547 i = scxferc(p_port,0x00); in scini()
9550 if (!(scsendi(p_port,&scamInfo[p_our_id].id_string[0]))) in scini()
9552 i = scxferc(p_port,0x00); in scini()
9555 k = scxferc(p_port,0x00); in scini()
9561 inisci(p_card, p_port, p_our_id); in scini()
9573 if (!(scsendi(p_port, in scini()
9579 while (scxferc(p_port,0x00) != CFG_CMPLT) {} in scini()
9585 scbusf(p_port); in scini()
9588 scsavdi(p_card, p_port); in scini()
9600 scsellDOS(p_port,i); in scini()
9630 int scarb(USHORT p_port, UCHAR p_sel_type) in scarb() argument
9632 int scarb(ULONG p_port, UCHAR p_sel_type) in scarb()
9638 while (RD_HARPOON(p_port+hp_scsisig) & (SCSI_SEL | SCSI_BSY)) {} in scarb()
9641 if (RD_HARPOON(p_port+hp_scsisig) & SCSI_SEL) in scarb()
9644 if (RD_HARPOON(p_port+hp_scsidata_0) != 00) in scarb()
9647 WR_HARPOON(p_port+hp_scsisig, (RD_HARPOON(p_port+hp_scsisig) | SCSI_BSY)); in scarb()
9649 if (RD_HARPOON(p_port+hp_scsisig) & SCSI_SEL) { 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()
9659 if (RD_HARPOON(p_port+hp_scsidata_0) != 00) { 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()
9682 Wait(p_port,TO_250ms); in scarb()
9697 void scbusf(USHORT p_port) in scbusf() argument
9699 void scbusf(ULONG p_port) in scbusf()
9702 WR_HARPOON(p_port+hp_page_ctrl, in scbusf()
9703 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE)); 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()
9721 WRW_HARPOON((p_port+hp_intstat), (BUS_FREE | AUTO_INT | SCAM_SEL)); in scbusf()
9723 WRW_HARPOON((p_port+hp_intstat), (BUS_FREE | AUTO_INT)); in scbusf()
9726 WR_HARPOON(p_port+hp_page_ctrl, in scbusf()
9727 (RD_HARPOON(p_port+hp_page_ctrl) & ~G_INT_DISABLE)); in scbusf()
9741 void scasid(UCHAR p_card, USHORT p_port) in scasid() argument
9743 void scasid(UCHAR p_card, ULONG p_port) in scasid()
9772 scxferc(p_port,SYNC_PTRN); in scasid()
9773 scxferc(p_port,ASSIGN_ID); in scasid()
9775 if (!(sciso(p_port,&temp_id_string[0]))) in scasid()
9791 scxferc(p_port,MISC_CODE); in scasid()
9792 scxferc(p_port,CLR_P_FLAG); in scasid()
9799 scxferc(p_port,ID_0_7); in scasid()
9801 scxferc(p_port,ID_8_F); in scasid()
9810 scxferc(p_port,scam_id); in scasid()
9823 scxferc(p_port,SYNC_PTRN); in scasid()
9824 scxferc(p_port,CFG_CMPLT); in scasid()
9840 void scsel(USHORT p_port) in scsel() argument
9842 void scsel(ULONG p_port) in scsel()
9846 WR_HARPOON(p_port+hp_scsisig, SCSI_SEL); in scsel()
9847 scwiros(p_port, SCSI_MSG); 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()
9858 scwiros(p_port, SCSI_SEL); in scsel()
9860 WR_HARPOON(p_port+hp_scsidata_0, (UCHAR)(RD_HARPOON(p_port+hp_scsidata_0) & in scsel()
9862 scwirod(p_port, BIT(6)); in scsel()
9864 WR_HARPOON(p_port+hp_scsisig, (SCSI_SEL | SCSI_BSY | SCSI_IOBIT | SCSI_CD)); in scsel()
9878 UCHAR scxferc(USHORT p_port, UCHAR p_data) in scxferc() argument
9880 UCHAR scxferc(ULONG p_port, UCHAR p_data) in scxferc()
9887 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
9891 WR_HARPOON(p_port+hp_scsidata_0, curr_data); in scxferc()
9893 scwirod(p_port,BIT(7)); /*Wait for DB7 to be released. */ in scxferc()
9894 while (!(RD_HARPOON(p_port+hp_scsidata_0) & BIT(5))); in scxferc()
9896 ret_data = (RD_HARPOON(p_port+hp_scsidata_0) & (UCHAR) 0x1F); 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()
9906 scwirod(p_port,BIT(5)); /*Wait for DB5 to be released. */ 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()
9917 scwirod(p_port,BIT(6)); /*Wait for DB6 to be released. */ in scxferc()
9933 UCHAR scsendi(USHORT p_port, UCHAR p_id_string[]) in scsendi() argument
9935 UCHAR scsendi(ULONG p_port, UCHAR p_id_string[]) in scsendi()
9947 ret_data = scxferc(p_port,00); in scsendi()
9951 ret_data = scxferc(p_port,02); in scsendi()
9955 ret_data = scxferc(p_port,01); in scsendi()
9990 UCHAR sciso(USHORT p_port, UCHAR p_id_string[]) in sciso() argument
9992 UCHAR sciso(ULONG p_port, UCHAR p_id_string[]) in sciso()
10003 ret_data = scxferc(p_port,0); in sciso()
10055 void scwirod(USHORT p_port, UCHAR p_data_bit) in scwirod() argument
10057 void scwirod(ULONG p_port, UCHAR p_data_bit) in scwirod()
10065 if (RD_HARPOON(p_port+hp_scsidata_0) & p_data_bit) in scwirod()
10088 void scwiros(USHORT p_port, UCHAR p_data_bit) in scwiros() argument
10090 void scwiros(ULONG p_port, UCHAR p_data_bit) in scwiros()
10098 if (RD_HARPOON(p_port+hp_scsisig) & p_data_bit) in scwiros()
10146 UCHAR scsell(USHORT p_port, UCHAR targ_id) in scsell() argument
10148 UCHAR scsell(ULONG p_port, UCHAR targ_id) in scsell()
10157 WR_HARPOON(p_port+hp_page_ctrl, in scsell()
10158 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE)); in scsell()
10160 ARAM_ACCESS(p_port); 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()
10166 for (i = p_port+CMD_STRT; i < p_port+CMD_STRT+12; i+=2) { in scsell()
10171 WRW_HARPOON((p_port+hp_intstat), 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()
10181 while (!(RDW_HARPOON((p_port+hp_intstat)) & in scsell()
10184 if (RDW_HARPOON((p_port+hp_intstat)) & RESET) in scsell()
10185 Wait(p_port, TO_250ms); in scsell()
10187 DISABLE_AUTO(p_port); 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()
10192 SGRAM_ACCESS(p_port); in scsell()
10194 if (RDW_HARPOON((p_port+hp_intstat)) & (RESET | TIMEOUT) ) { in scsell()
10196 WRW_HARPOON((p_port+hp_intstat), in scsell()
10199 WR_HARPOON(p_port+hp_page_ctrl, in scsell()
10200 (RD_HARPOON(p_port+hp_page_ctrl) & ~G_INT_DISABLE)); in scsell()
10207 while(!(RDW_HARPOON((p_port+hp_intstat)) & BUS_FREE)) { in scsell()
10208 if (RD_HARPOON(p_port+hp_scsisig) & SCSI_REQ) in scsell()
10210 WR_HARPOON(p_port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in scsell()
10211 ACCEPT_MSG(p_port); in scsell()
10215 WRW_HARPOON((p_port+hp_intstat), CLR_ALL_INT_1); in scsell()
10217 WR_HARPOON(p_port+hp_page_ctrl, in scsell()
10218 (RD_HARPOON(p_port+hp_page_ctrl) & ~G_INT_DISABLE)); in scsell()
10237 UCHAR scsellDOS(USHORT p_port, UCHAR targ_id) in scsellDOS() argument
10241 WR_HARPOON(p_port+hp_page_ctrl, in scsellDOS()
10242 (RD_HARPOON(p_port+hp_page_ctrl) | G_INT_DISABLE)); in scsellDOS()
10244 ARAM_ACCESS(p_port); 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()
10250 for (i = p_port+CMD_STRT; i < p_port+CMD_STRT+12; i+=2) { in scsellDOS()
10255 WRW_HARPOON((p_port+hp_intstat), 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()
10265 while (!(RDW_HARPOON((p_port+hp_intstat)) & in scsellDOS()
10268 if (RDW_HARPOON((p_port+hp_intstat)) & RESET) in scsellDOS()
10269 Wait(p_port, TO_250ms); in scsellDOS()
10271 DISABLE_AUTO(p_port); 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()
10276 SGRAM_ACCESS(p_port); in scsellDOS()
10278 if (RDW_HARPOON((p_port+hp_intstat)) & (RESET | TIMEOUT) ) { in scsellDOS()
10280 WRW_HARPOON((p_port+hp_intstat), in scsellDOS()
10283 WR_HARPOON(p_port+hp_page_ctrl, in scsellDOS()
10284 (RD_HARPOON(p_port+hp_page_ctrl) & ~G_INT_DISABLE)); in scsellDOS()
10291 while(!(RDW_HARPOON((p_port+hp_intstat)) & BUS_FREE)) { in scsellDOS()
10292 if (RD_HARPOON(p_port+hp_scsisig) & SCSI_REQ) in scsellDOS()
10294 WR_HARPOON(p_port+hp_scsisig, (SCSI_ACK + S_ILL_PH)); in scsellDOS()
10295 ACCEPT_MSG(p_port); in scsellDOS()
10299 WRW_HARPOON((p_port+hp_intstat), CLR_ALL_INT_1); in scsellDOS()
10301 WR_HARPOON(p_port+hp_page_ctrl, in scsellDOS()
10302 (RD_HARPOON(p_port+hp_page_ctrl) & ~G_INT_DISABLE)); in scsellDOS()
10318 void scwtsel(USHORT p_port) in scwtsel() argument
10320 void scwtsel(ULONG p_port) in scwtsel()
10323 while(!(RDW_HARPOON((p_port+hp_intstat)) & SCAM_SEL)) {} in scwtsel()
10336 void inisci(UCHAR p_card, USHORT p_port, UCHAR p_our_id) in inisci() argument
10338 void inisci(UCHAR p_card, ULONG p_port, UCHAR p_our_id) in inisci()
10347 if (RD_HARPOON(p_port+hp_page_ctrl) & NARROW_SCSI_CARD) in inisci()
10372 ee_data = utilEERead(p_port, (USHORT)((EE_SCAMBASE/2) + in inisci()
10541 void scsavdi(UCHAR p_card, USHORT p_port) in scsavdi() argument
10543 void scsavdi(UCHAR p_card, ULONG p_port) in scsavdi()
10554 sum_data += utilEERead(p_port, i); in scsavdi()
10558 utilEEWriteOnOff(p_port,1); /* Enable write access to the EEPROM */ in scsavdi()
10560 if (RD_HARPOON(p_port+hp_page_ctrl) & NARROW_SCSI_CARD) in scsavdi()
10575 utilEEWrite(p_port, ee_data, (USHORT)((EE_SCAMBASE/2) + in scsavdi()
10581 utilEEWrite(p_port, sum_data, EEPROM_CHECK_SUM/2); in scsavdi()
10582 utilEEWriteOnOff(p_port,0); /* Turn off write access */ in scsavdi()
10704 void BusMasterInit(USHORT p_port) in BusMasterInit() argument
10706 void BusMasterInit(ULONG p_port) in BusMasterInit()
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()
10729 RD_HARPOON(p_port+hp_int_status); /*Clear interrupts. */ 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()
10874 void DiagEEPROM(USHORT p_port) in DiagEEPROM() argument
10876 void DiagEEPROM(ULONG p_port) in DiagEEPROM()
10882 if (RD_HARPOON(p_port+hp_page_ctrl) & NARROW_SCSI_CARD) in DiagEEPROM()
10887 temp = utilEERead(p_port, FW_SIGNATURE/2); in DiagEEPROM()
10893 temp += utilEERead(p_port, index); in DiagEEPROM()
10897 if (temp == utilEERead(p_port, EEPROM_CHECK_SUM/2)) { in DiagEEPROM()
10904 utilEEWriteOnOff(p_port,(UCHAR)1); in DiagEEPROM()
10908 utilEEWrite(p_port, 0x0000, index); in DiagEEPROM()
10913 utilEEWrite(p_port, 0x4641, FW_SIGNATURE/2); in DiagEEPROM()
10915 utilEEWrite(p_port, 0x3920, MODEL_NUMB_0/2); in DiagEEPROM()
10917 utilEEWrite(p_port, 0x3033, MODEL_NUMB_2/2); in DiagEEPROM()
10919 utilEEWrite(p_port, 0x2020, MODEL_NUMB_4/2); in DiagEEPROM()
10921 utilEEWrite(p_port, 0x70D3, SYSTEM_CONFIG/2); in DiagEEPROM()
10923 utilEEWrite(p_port, 0x0010, BIOS_CONFIG/2); in DiagEEPROM()
10925 utilEEWrite(p_port, 0x0003, SCAM_CONFIG/2); in DiagEEPROM()
10927 utilEEWrite(p_port, 0x0007, ADAPTER_SCSI_ID/2); in DiagEEPROM()
10930 utilEEWrite(p_port, 0x0000, IGNORE_B_SCAN/2); in DiagEEPROM()
10932 utilEEWrite(p_port, 0x0000, SEND_START_ENA/2); in DiagEEPROM()
10934 utilEEWrite(p_port, 0x0000, DEVICE_ENABLE/2); in DiagEEPROM()
10937 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBL01/2); in DiagEEPROM()
10939 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBL23/2); in DiagEEPROM()
10941 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBL45/2); in DiagEEPROM()
10943 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBL67/2); in DiagEEPROM()
10945 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBL89/2); in DiagEEPROM()
10947 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBLab/2); in DiagEEPROM()
10949 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBLcd/2); in DiagEEPROM()
10951 utilEEWrite(p_port, 0x4242, SYNC_RATE_TBLef/2); in DiagEEPROM()
10955 utilEEWrite(p_port, 0x6C46, 64/2); /*PRODUCT ID */ in DiagEEPROM()
10957 utilEEWrite(p_port, 0x7361, 66/2); /* FlashPoint LT */ in DiagEEPROM()
10959 utilEEWrite(p_port, 0x5068, 68/2); in DiagEEPROM()
10961 utilEEWrite(p_port, 0x696F, 70/2); in DiagEEPROM()
10963 utilEEWrite(p_port, 0x746E, 72/2); in DiagEEPROM()
10965 utilEEWrite(p_port, 0x4C20, 74/2); in DiagEEPROM()
10967 utilEEWrite(p_port, 0x2054, 76/2); in DiagEEPROM()
10969 utilEEWrite(p_port, 0x2020, 78/2); in DiagEEPROM()
10973 utilEEWrite(p_port, (0x0700+TYPE_CODE0), index); in DiagEEPROM()
10976 utilEEWrite(p_port, 0x5542, index); /*Vendor ID code */ in DiagEEPROM()
10979 utilEEWrite(p_port, 0x4C53, index); in DiagEEPROM()
10982 utilEEWrite(p_port, 0x474F, index); in DiagEEPROM()
10985 utilEEWrite(p_port, 0x4349, index); in DiagEEPROM()
10988 utilEEWrite(p_port, 0x5442, index); /*Vendor unique code */ in DiagEEPROM()
10991 utilEEWrite(p_port, 0x202D, index); in DiagEEPROM()
10994 utilEEWrite(p_port, 0x3339, index); in DiagEEPROM()
10997 utilEEWrite(p_port, 0x2030, index); /* 01234567 */ in DiagEEPROM()
11000 utilEEWrite(p_port, 0x5453, index); in DiagEEPROM()
11003 utilEEWrite(p_port, 0x5645, index); in DiagEEPROM()
11006 utilEEWrite(p_port, 0x2045, index); in DiagEEPROM()
11009 utilEEWrite(p_port, 0x202F, index); in DiagEEPROM()
11012 utilEEWrite(p_port, 0x4F4A, index); in DiagEEPROM()
11015 utilEEWrite(p_port, 0x204E, index); in DiagEEPROM()
11018 utilEEWrite(p_port, 0x3539, index); in DiagEEPROM()
11023 utilEEWrite(p_port, temp, EEPROM_CHECK_SUM/2); in DiagEEPROM()
11025 utilEEWriteOnOff(p_port,(UCHAR)0); in DiagEEPROM()
11698 void Wait1Second(USHORT p_port) in Wait1Second() argument
11700 void Wait1Second(ULONG p_port) in Wait1Second()
11707 Wait(p_port, TO_250ms); in Wait1Second()
11709 if ((RD_HARPOON(p_port+hp_scsictrl_0) & SCSI_RST)) in Wait1Second()
11712 if((RDW_HARPOON((p_port+hp_intstat)) & SCAM_SEL)) in Wait1Second()
11727 void Wait(USHORT p_port, UCHAR p_delay) in Wait() argument
11729 void Wait(ULONG p_port, UCHAR p_delay) in Wait()
11735 old_timer = RD_HARPOON(p_port+hp_seltimeout); in Wait()
11737 green_flag=RD_HARPOON(p_port+hp_clkctrl_0); in Wait()
11738 WR_HARPOON(p_port+hp_clkctrl_0, CLKCTRL_DEFAULT); in Wait()
11740 WR_HARPOON(p_port+hp_seltimeout,p_delay); in Wait()
11741 WRW_HARPOON((p_port+hp_intstat), TIMEOUT); in Wait()
11742 WRW_HARPOON((p_port+hp_intena), (default_intena & ~TIMEOUT)); in Wait()
11745 WR_HARPOON(p_port+hp_portctrl_0, in Wait()
11746 (RD_HARPOON(p_port+hp_portctrl_0) | START_TO)); in Wait()
11748 while (!(RDW_HARPOON((p_port+hp_intstat)) & TIMEOUT)) { in Wait()
11750 if ((RD_HARPOON(p_port+hp_scsictrl_0) & SCSI_RST)) in Wait()
11753 if ((RDW_HARPOON((p_port+hp_intstat)) & SCAM_SEL)) in Wait()
11757 WR_HARPOON(p_port+hp_portctrl_0, in Wait()
11758 (RD_HARPOON(p_port+hp_portctrl_0) & ~START_TO)); in Wait()
11760 WRW_HARPOON((p_port+hp_intstat), TIMEOUT); in Wait()
11761 WRW_HARPOON((p_port+hp_intena), default_intena); 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()
11779 void utilEEWriteOnOff(USHORT p_port,UCHAR p_mode) in utilEEWriteOnOff() argument
11781 void utilEEWriteOnOff(ULONG p_port,UCHAR p_mode) in utilEEWriteOnOff()
11786 ee_value = (UCHAR)(RD_HARPOON(p_port+hp_ee_ctrl) & (EXT_ARB_ACK | SCSI_TERM_ENA_H)); in utilEEWriteOnOff()
11790 utilEESendCmdAddr(p_port, EWEN, EWEN_ADDR); in utilEEWriteOnOff()
11795 utilEESendCmdAddr(p_port, EWDS, EWDS_ADDR); in utilEEWriteOnOff()
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()
11812 void utilEEWrite(USHORT p_port, USHORT ee_data, USHORT ee_addr) in utilEEWrite() argument
11814 void utilEEWrite(ULONG p_port, USHORT ee_data, USHORT ee_addr) in utilEEWrite()
11821 ee_value = (UCHAR)((RD_HARPOON(p_port+hp_ee_ctrl) & (EXT_ARB_ACK | SCSI_TERM_ENA_H))| in utilEEWrite()
11826 utilEESendCmdAddr(p_port, EE_WRITE, ee_addr); in utilEEWrite()
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()
11850 Wait(p_port, TO_10ms); 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()
11867 USHORT utilEERead(USHORT p_port, USHORT ee_addr) in utilEERead() argument
11869 USHORT utilEERead(ULONG p_port, USHORT ee_addr) in utilEERead()
11875 ee_data1 = utilEEReadOrg(p_port, ee_addr); in utilEERead()
11878 ee_data2 = utilEEReadOrg(p_port, ee_addr); in utilEERead()
11901 USHORT utilEEReadOrg(USHORT p_port, USHORT ee_addr) in utilEEReadOrg() argument
11903 USHORT utilEEReadOrg(ULONG p_port, USHORT ee_addr) in utilEEReadOrg()
11910 ee_value = (UCHAR)((RD_HARPOON(p_port+hp_ee_ctrl) & (EXT_ARB_ACK | SCSI_TERM_ENA_H))| in utilEEReadOrg()
11914 utilEESendCmdAddr(p_port, EE_READ, ee_addr); in utilEEReadOrg()
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()
11931 if (RD_HARPOON(p_port+hp_ee_ctrl) & SEE_DI) 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()
11953 void utilEESendCmdAddr(USHORT p_port, UCHAR ee_cmd, USHORT ee_addr) in utilEESendCmdAddr() argument
11955 void utilEESendCmdAddr(ULONG p_port, UCHAR ee_cmd, USHORT ee_addr) in utilEESendCmdAddr()
11964 narrow_flg= (UCHAR)(RD_HARPOON(p_port+hp_page_ctrl) & NARROW_SCSI_CARD); in utilEESendCmdAddr()
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()