Lines Matching full:ioport

182 #define RD_HARPOON(ioport)          inb((u32)ioport)  argument
183 #define RDW_HARPOON(ioport) inw((u32)ioport) argument
184 #define RD_HARP32(ioport,offset,data) (data = inl((u32)(ioport + offset))) argument
185 #define WR_HARPOON(ioport,val) outb((u8) val, (u32)ioport) argument
186 #define WRW_HARPOON(ioport,val) outw((u16)val, (u32)ioport) argument
187 #define WR_HARP32(ioport,offset,data) outl(data, (u32)(ioport + offset)) argument
252 u32 ioPort; member
780 static unsigned char FPT_ChkIfChipInitialized(u32 ioPort);
916 u32 ioport; in FlashPoint_ProbeHostAdapter() local
919 ioport = pCardInfo->si_baseaddr; in FlashPoint_ProbeHostAdapter()
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()
950 if (FPT_RdStack(ioport, 0) != 0x00) { in FlashPoint_ProbeHostAdapter()
951 if (FPT_ChkIfChipInitialized(ioport) == 0) { in FlashPoint_ProbeHostAdapter()
953 WR_HARPOON(ioport + hp_semaphore, 0x00); in FlashPoint_ProbeHostAdapter()
954 FPT_XbowInit(ioport, 0); /*Must Init the SCSI before attempting */ in FlashPoint_ProbeHostAdapter()
955 FPT_DiagEEPROM(ioport); in FlashPoint_ProbeHostAdapter()
960 pCurrNvRam->niBaseAddr = ioport; in FlashPoint_ProbeHostAdapter()
968 WR_HARPOON(ioport + hp_clkctrl_0, CLKCTRL_DEFAULT); in FlashPoint_ProbeHostAdapter()
969 WR_HARPOON(ioport + hp_sys_ctrl, 0x00); in FlashPoint_ProbeHostAdapter()
976 char)(FPT_utilEERead(ioport, in FlashPoint_ProbeHostAdapter()
996 FPT_utilEERead(ioport, in FlashPoint_ProbeHostAdapter()
1040 char)(FPT_utilEERead(ioport, (SYSTEM_CONFIG / 2))); in FlashPoint_ProbeHostAdapter()
1046 (unsigned char)FPT_utilEERead(ioport, SCAM_CONFIG / 2); in FlashPoint_ProbeHostAdapter()
1065 j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); in FlashPoint_ProbeHostAdapter()
1069 WR_HARPOON(ioport + hp_bm_ctrl, j); in FlashPoint_ProbeHostAdapter()
1071 j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); in FlashPoint_ProbeHostAdapter()
1075 WR_HARPOON(ioport + hp_ee_ctrl, j); in FlashPoint_ProbeHostAdapter()
1077 if (!(RD_HARPOON(ioport + hp_page_ctrl) & NARROW_SCSI_CARD)) in FlashPoint_ProbeHostAdapter()
1105 temp = FPT_utilEERead(ioport, (MODEL_NUMB_0 / 2)); in FlashPoint_ProbeHostAdapter()
1107 temp = FPT_utilEERead(ioport, (MODEL_NUMB_2 / 2)); 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()
1118 WR_HARPOON(ioport + hp_xfer_pad, (temp & ~BIT(4))); in FlashPoint_ProbeHostAdapter()
1119 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1121 WR_HARPOON(ioport + hp_xfer_pad, (temp | BIT(4))); in FlashPoint_ProbeHostAdapter()
1122 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1124 WR_HARPOON(ioport + hp_xfer_pad, temp); 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()
1128 WR_HARPOON(ioport + hp_ee_ctrl, (temp | SEE_CS)); in FlashPoint_ProbeHostAdapter()
1129 WR_HARPOON(ioport + hp_xfer_pad, (temp2 | BIT(4))); in FlashPoint_ProbeHostAdapter()
1133 if (!(RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7))) in FlashPoint_ProbeHostAdapter()
1135 WR_HARPOON(ioport + hp_xfer_pad, (temp2 & ~BIT(4))); in FlashPoint_ProbeHostAdapter()
1136 WR_HARPOON(ioport + hp_xfer_pad, (temp2 | BIT(4))); in FlashPoint_ProbeHostAdapter()
1138 WR_HARPOON(ioport + hp_ee_ctrl, temp); in FlashPoint_ProbeHostAdapter()
1139 WR_HARPOON(ioport + hp_xfer_pad, temp2); in FlashPoint_ProbeHostAdapter()
1146 ARAM_ACCESS(ioport); 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()
1161 SGRAM_ACCESS(ioport); in FlashPoint_ProbeHostAdapter()
1192 u32 ioport; in FlashPoint_HardwareResetHostAdapter() local
1194 ioport = pCardInfo->si_baseaddr; in FlashPoint_HardwareResetHostAdapter()
1201 if (FPT_BL_Card[thisCard].ioPort == ioport) { in FlashPoint_HardwareResetHostAdapter()
1208 else if (FPT_BL_Card[thisCard].ioPort == 0x00) { in FlashPoint_HardwareResetHostAdapter()
1210 FPT_BL_Card[thisCard].ioPort = ioport; in FlashPoint_HardwareResetHostAdapter()
1215 if (CurrCard->ioPort == in FlashPoint_HardwareResetHostAdapter()
1234 (unsigned char)FPT_utilEERead(ioport, SCAM_CONFIG / 2); in FlashPoint_HardwareResetHostAdapter()
1237 FPT_BusMasterInit(ioport); in FlashPoint_HardwareResetHostAdapter()
1238 FPT_XbowInit(ioport, ScamFlg); in FlashPoint_HardwareResetHostAdapter()
1240 FPT_autoLoadDefaultMap(ioport); in FlashPoint_HardwareResetHostAdapter()
1245 WR_HARPOON(ioport + hp_selfid_0, id); in FlashPoint_HardwareResetHostAdapter()
1246 WR_HARPOON(ioport + hp_selfid_1, 0x00); in FlashPoint_HardwareResetHostAdapter()
1247 WR_HARPOON(ioport + hp_arb_id, pCardInfo->si_id); in FlashPoint_HardwareResetHostAdapter()
1252 WR_HARPOON(ioport + hp_portctrl_1, (HOST_MODE8 | CHK_SCSI_P)); in FlashPoint_HardwareResetHostAdapter()
1254 j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); in FlashPoint_HardwareResetHostAdapter()
1257 WR_HARPOON(ioport + hp_bm_ctrl, j); in FlashPoint_HardwareResetHostAdapter()
1259 j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); in FlashPoint_HardwareResetHostAdapter()
1262 WR_HARPOON(ioport + hp_ee_ctrl, j); in FlashPoint_HardwareResetHostAdapter()
1266 FPT_sresb(ioport, thisCard); in FlashPoint_HardwareResetHostAdapter()
1278 if (FPT_utilEERead(ioport, (SYSTEM_CONFIG / 2)) & GREEN_PC_ENA) in FlashPoint_HardwareResetHostAdapter()
1288 if (FPT_utilEERead(ioport, (SCSI_CONFIG / 2)) & RENEGO_ENA) in FlashPoint_HardwareResetHostAdapter()
1296 if (FPT_utilEERead(ioport, (SCSI_CONFIG / 2)) & CONNIO_ENA) in FlashPoint_HardwareResetHostAdapter()
1318 FPT_utilEERead(ioport, in FlashPoint_HardwareResetHostAdapter()
1362 WR_HARPOON((ioport + hp_semaphore), in FlashPoint_HardwareResetHostAdapter()
1363 (unsigned char)(RD_HARPOON((ioport + hp_semaphore)) | in FlashPoint_HardwareResetHostAdapter()
1402 FPT_WrStack(((struct sccb_card *)pCurrCard)->ioPort, 0, 0); in FlashPoint_ReleaseHostAdapter()
1447 static unsigned char FPT_ChkIfChipInitialized(u32 ioPort) in FPT_ChkIfChipInitialized() argument
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()
1472 u32 ioport; in FlashPoint_StartCCB() local
1479 ioport = pCurrCard->ioPort; in FlashPoint_StartCCB()
1495 WR_HARPOON(ioport + hp_semaphore, in FlashPoint_StartCCB()
1496 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_StartCCB()
1500 WR_HARPOON(ioport + hp_clkctrl_0, CLKCTRL_DEFAULT); in FlashPoint_StartCCB()
1501 WR_HARPOON(ioport + hp_sys_ctrl, 0x00); in FlashPoint_StartCCB()
1507 if (RD_HARPOON(ioport + hp_semaphore) & BIOS_IN_USE) { in FlashPoint_StartCCB()
1509 WR_HARPOON(ioport + hp_semaphore, 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()
1540 MDISABLE_INT(ioport); in FlashPoint_StartCCB()
1570 MENABLE_INT(ioport); in FlashPoint_StartCCB()
1586 u32 ioport; in FlashPoint_AbortCCB() local
1593 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_AbortCCB()
1597 if (!(RD_HARPOON(ioport + hp_page_ctrl) & G_INT_DISABLE)) { in FlashPoint_AbortCCB()
1604 WR_HARPOON(ioport + hp_semaphore, in FlashPoint_AbortCCB()
1605 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_AbortCCB()
1627 MDISABLE_INT(ioport); in FlashPoint_AbortCCB()
1643 FPT_ssel(ioport, in FlashPoint_AbortCCB()
1659 MENABLE_INT(ioport); in FlashPoint_AbortCCB()
1690 u32 ioport; in FlashPoint_InterruptPending() local
1692 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_InterruptPending()
1694 if (RD_HARPOON(ioport + hp_int_status) & INT_ASSERTED) { in FlashPoint_InterruptPending()
1719 u32 ioport; in FlashPoint_HandleInterrupt() local
1722 ioport = pCurrCard->ioPort; in FlashPoint_HandleInterrupt()
1724 MDISABLE_INT(ioport); in FlashPoint_HandleInterrupt()
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()
1732 WR_HARPOON(ioport + hp_int_mask, (INT_CMD_COMPL | SCSI_INTERRUPT)); in FlashPoint_HandleInterrupt()
1734 while ((hp_int = RDW_HARPOON((ioport + hp_intstat)) & in FlashPoint_HandleInterrupt()
1741 FPT_SccbMgr_bad_isr(ioport, thisCard, pCurrCard, in FlashPoint_HandleInterrupt()
1743 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1749 MENABLE_INT(ioport); in FlashPoint_HandleInterrupt()
1763 (RDW_HARPOON((ioport + hp_intstat)) & in FlashPoint_HandleInterrupt()
1769 FPT_phaseChkFifo(ioport, thisCard); in FlashPoint_HandleInterrupt()
1771 /* WRW_HARPOON((ioport+hp_intstat), in FlashPoint_HandleInterrupt()
1775 WRW_HARPOON((ioport + hp_intstat), CLR_ALL_INT_1); in FlashPoint_HandleInterrupt()
1777 FPT_autoCmdCmplt(ioport, thisCard); in FlashPoint_HandleInterrupt()
1784 FPT_phaseChkFifo(ioport, thisCard); in FlashPoint_HandleInterrupt()
1786 if (RD_HARPOON(ioport + hp_gp_reg_1) == in FlashPoint_HandleInterrupt()
1789 WR_HARPOON(ioport + hp_gp_reg_1, 0x00); in FlashPoint_HandleInterrupt()
1804 (RDW_HARPOON((ioport + hp_intstat)) & in FlashPoint_HandleInterrupt()
1806 && !((RDW_HARPOON((ioport + hp_intstat)) & PHASE) in FlashPoint_HandleInterrupt()
1807 && RD_HARPOON((ioport + hp_scsisig)) == in FlashPoint_HandleInterrupt()
1817 (RDW_HARPOON((ioport + hp_intstat)) & in FlashPoint_HandleInterrupt()
1819 MENABLE_INT(ioport); in FlashPoint_HandleInterrupt()
1823 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1832 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1835 if (RDW_HARPOON((ioport + hp_intstat)) & ITAR_DISC) { in FlashPoint_HandleInterrupt()
1837 FPT_phaseChkFifo(ioport, thisCard); in FlashPoint_HandleInterrupt()
1839 if (RD_HARPOON(ioport + hp_gp_reg_1) == in FlashPoint_HandleInterrupt()
1841 WR_HARPOON(ioport + hp_gp_reg_1, 0x00); in FlashPoint_HandleInterrupt()
1848 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1854 FPT_sres(ioport, thisCard, pCurrCard); in FlashPoint_HandleInterrupt()
1855 FPT_phaseDecode(ioport, thisCard); in FlashPoint_HandleInterrupt()
1861 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1863 FPT_phaseDecode(ioport, thisCard); in FlashPoint_HandleInterrupt()
1868 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1870 if ((RD_HARPOON(ioport + hp_prgmcnt_0) & (unsigned char) in FlashPoint_HandleInterrupt()
1872 FPT_phaseDecode(ioport, thisCard); 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()
1886 WR_HARPOON(ioport + hp_xfer_pad, in FlashPoint_HandleInterrupt()
1888 WR_HARPOON(ioport + hp_select_id, in FlashPoint_HandleInterrupt()
1891 WR_HARPOON(ioport + hp_xfer_pad, in FlashPoint_HandleInterrupt()
1893 WR_HARPOON(ioport + hp_fifowrite, i); in FlashPoint_HandleInterrupt()
1894 WR_HARPOON(ioport + hp_autostart_3, in FlashPoint_HandleInterrupt()
1901 WRW_HARPOON((ioport + hp_intstat), XFER_CNT_0); in FlashPoint_HandleInterrupt()
1903 FPT_schkdd(ioport, thisCard); in FlashPoint_HandleInterrupt()
1909 WRW_HARPOON((ioport + hp_intstat), BUS_FREE); in FlashPoint_HandleInterrupt()
1913 FPT_hostDataXferAbort(ioport, thisCard, in FlashPoint_HandleInterrupt()
1917 FPT_phaseBusFree(ioport, thisCard); in FlashPoint_HandleInterrupt()
1922 WRW_HARPOON((ioport + hp_intstat), ITICKLE); in FlashPoint_HandleInterrupt()
1936 FPT_ssel(ioport, thisCard); in FlashPoint_HandleInterrupt()
1945 MENABLE_INT(ioport); in FlashPoint_HandleInterrupt()
2117 FPT_BL_Card[thisCard].ioPort = 0x00; in FPT_SccbMgrTableInitAll()
5437 p_port = currCard->ioPort; in FPT_scini()
6882 WR_HARPOON(pCurrCard->ioPort + hp_clkctrl_0, in FPT_queueCmdComplete()
6884 WR_HARPOON(pCurrCard->ioPort + hp_sys_ctrl, STOP_CLK); in FPT_queueCmdComplete()
6887 WR_HARPOON(pCurrCard->ioPort + hp_semaphore, in FPT_queueCmdComplete()
6888 (RD_HARPOON(pCurrCard->ioPort + hp_semaphore) & in FPT_queueCmdComplete()