• Home
  • Raw
  • Download

Lines Matching refs: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
938 unsigned long ioport; in FlashPoint_ProbeHostAdapter() local
941 ioport = pCardInfo->si_baseaddr; in FlashPoint_ProbeHostAdapter()
943 if (RD_HARPOON(ioport + hp_vendor_id_0) != ORION_VEND_0) in FlashPoint_ProbeHostAdapter()
946 if ((RD_HARPOON(ioport + hp_vendor_id_1) != ORION_VEND_1)) in FlashPoint_ProbeHostAdapter()
949 if ((RD_HARPOON(ioport + hp_device_id_0) != ORION_DEV_0)) in FlashPoint_ProbeHostAdapter()
952 if ((RD_HARPOON(ioport + hp_device_id_1) != ORION_DEV_1)) in FlashPoint_ProbeHostAdapter()
955 if (RD_HARPOON(ioport + hp_rev_num) != 0x0f) { in FlashPoint_ProbeHostAdapter()
962 if (RD_HARPOON(ioport + hp_sub_device_id_0) & 0x0f) in FlashPoint_ProbeHostAdapter()
972 if (FPT_RdStack(ioport, 0) != 0x00) { in FlashPoint_ProbeHostAdapter()
973 if (FPT_ChkIfChipInitialized(ioport) == 0) { in FlashPoint_ProbeHostAdapter()
975 WR_HARPOON(ioport + hp_semaphore, 0x00); in FlashPoint_ProbeHostAdapter()
976 FPT_XbowInit(ioport, 0); /*Must Init the SCSI before attempting */ in FlashPoint_ProbeHostAdapter()
977 FPT_DiagEEPROM(ioport); in FlashPoint_ProbeHostAdapter()
982 pCurrNvRam->niBaseAddr = ioport; in FlashPoint_ProbeHostAdapter()
990 WR_HARPOON(ioport + hp_clkctrl_0, CLKCTRL_DEFAULT); in FlashPoint_ProbeHostAdapter()
991 WR_HARPOON(ioport + hp_sys_ctrl, 0x00); in FlashPoint_ProbeHostAdapter()
998 char)(FPT_utilEERead(ioport, in FlashPoint_ProbeHostAdapter()
1018 FPT_utilEERead(ioport, in FlashPoint_ProbeHostAdapter()
1059 char)(FPT_utilEERead(ioport, (SYSTEM_CONFIG / 2))); in FlashPoint_ProbeHostAdapter()
1065 (unsigned char)FPT_utilEERead(ioport, SCAM_CONFIG / 2); in FlashPoint_ProbeHostAdapter()
1084 j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); in FlashPoint_ProbeHostAdapter()
1088 WR_HARPOON(ioport + hp_bm_ctrl, j); in FlashPoint_ProbeHostAdapter()
1090 j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); in FlashPoint_ProbeHostAdapter()
1094 WR_HARPOON(ioport + hp_ee_ctrl, j); in FlashPoint_ProbeHostAdapter()
1096 if (!(RD_HARPOON(ioport + hp_page_ctrl) & NARROW_SCSI_CARD)) in FlashPoint_ProbeHostAdapter()
1124 temp = FPT_utilEERead(ioport, (MODEL_NUMB_0 / 2)); in FlashPoint_ProbeHostAdapter()
1126 temp = FPT_utilEERead(ioport, (MODEL_NUMB_2 / 2)); in FlashPoint_ProbeHostAdapter()
1133 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1136 temp = RD_HARPOON(ioport + hp_xfer_pad); in FlashPoint_ProbeHostAdapter()
1137 WR_HARPOON(ioport + hp_xfer_pad, (temp & ~BIT(4))); in FlashPoint_ProbeHostAdapter()
1138 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1140 WR_HARPOON(ioport + hp_xfer_pad, (temp | BIT(4))); in FlashPoint_ProbeHostAdapter()
1141 if (RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7)) in FlashPoint_ProbeHostAdapter()
1143 WR_HARPOON(ioport + hp_xfer_pad, temp); in FlashPoint_ProbeHostAdapter()
1145 temp = RD_HARPOON(ioport + hp_ee_ctrl); in FlashPoint_ProbeHostAdapter()
1146 temp2 = RD_HARPOON(ioport + hp_xfer_pad); in FlashPoint_ProbeHostAdapter()
1147 WR_HARPOON(ioport + hp_ee_ctrl, (temp | SEE_CS)); in FlashPoint_ProbeHostAdapter()
1148 WR_HARPOON(ioport + hp_xfer_pad, (temp2 | BIT(4))); in FlashPoint_ProbeHostAdapter()
1152 if (!(RD_HARPOON(ioport + hp_ee_ctrl) & BIT(7))) in FlashPoint_ProbeHostAdapter()
1154 WR_HARPOON(ioport + hp_xfer_pad, (temp2 & ~BIT(4))); in FlashPoint_ProbeHostAdapter()
1155 WR_HARPOON(ioport + hp_xfer_pad, (temp2 | BIT(4))); in FlashPoint_ProbeHostAdapter()
1157 WR_HARPOON(ioport + hp_ee_ctrl, temp); in FlashPoint_ProbeHostAdapter()
1158 WR_HARPOON(ioport + hp_xfer_pad, temp2); in FlashPoint_ProbeHostAdapter()
1165 ARAM_ACCESS(ioport); in FlashPoint_ProbeHostAdapter()
1170 RD_HARPOON(ioport + hp_aramBase + BIOS_DATA_OFFSET + i); in FlashPoint_ProbeHostAdapter()
1178 char)(RD_HARPOON(ioport + hp_aramBase + BIOS_RELATIVE_CARD) - 1); in FlashPoint_ProbeHostAdapter()
1180 SGRAM_ACCESS(ioport); in FlashPoint_ProbeHostAdapter()
1211 unsigned long ioport; in FlashPoint_HardwareResetHostAdapter() local
1213 ioport = pCardInfo->si_baseaddr; in FlashPoint_HardwareResetHostAdapter()
1222 if (FPT_BL_Card[thisCard].ioPort == ioport) { in FlashPoint_HardwareResetHostAdapter()
1231 FPT_BL_Card[thisCard].ioPort = ioport; in FlashPoint_HardwareResetHostAdapter()
1255 (unsigned char)FPT_utilEERead(ioport, SCAM_CONFIG / 2); in FlashPoint_HardwareResetHostAdapter()
1258 FPT_BusMasterInit(ioport); in FlashPoint_HardwareResetHostAdapter()
1259 FPT_XbowInit(ioport, ScamFlg); in FlashPoint_HardwareResetHostAdapter()
1261 FPT_autoLoadDefaultMap(ioport); in FlashPoint_HardwareResetHostAdapter()
1266 WR_HARPOON(ioport + hp_selfid_0, id); in FlashPoint_HardwareResetHostAdapter()
1267 WR_HARPOON(ioport + hp_selfid_1, 0x00); in FlashPoint_HardwareResetHostAdapter()
1268 WR_HARPOON(ioport + hp_arb_id, pCardInfo->si_id); in FlashPoint_HardwareResetHostAdapter()
1273 WR_HARPOON(ioport + hp_portctrl_1, (HOST_MODE8 | CHK_SCSI_P)); in FlashPoint_HardwareResetHostAdapter()
1275 j = (RD_HARPOON(ioport + hp_bm_ctrl) & ~SCSI_TERM_ENA_L); in FlashPoint_HardwareResetHostAdapter()
1278 WR_HARPOON(ioport + hp_bm_ctrl, j); in FlashPoint_HardwareResetHostAdapter()
1280 j = (RD_HARPOON(ioport + hp_ee_ctrl) & ~SCSI_TERM_ENA_H); in FlashPoint_HardwareResetHostAdapter()
1283 WR_HARPOON(ioport + hp_ee_ctrl, j); in FlashPoint_HardwareResetHostAdapter()
1287 FPT_sresb(ioport, thisCard); in FlashPoint_HardwareResetHostAdapter()
1299 if (FPT_utilEERead(ioport, (SYSTEM_CONFIG / 2)) & GREEN_PC_ENA) in FlashPoint_HardwareResetHostAdapter()
1309 if (FPT_utilEERead(ioport, (SCSI_CONFIG / 2)) & RENEGO_ENA) in FlashPoint_HardwareResetHostAdapter()
1317 if (FPT_utilEERead(ioport, (SCSI_CONFIG / 2)) & CONNIO_ENA) in FlashPoint_HardwareResetHostAdapter()
1339 FPT_utilEERead(ioport, in FlashPoint_HardwareResetHostAdapter()
1383 WR_HARPOON((ioport + hp_semaphore), in FlashPoint_HardwareResetHostAdapter()
1384 (unsigned char)(RD_HARPOON((ioport + hp_semaphore)) | in FlashPoint_HardwareResetHostAdapter()
1494 unsigned long ioport; in FlashPoint_StartCCB() local
1500 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_StartCCB()
1516 WR_HARPOON(ioport + hp_semaphore, in FlashPoint_StartCCB()
1517 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_StartCCB()
1521 WR_HARPOON(ioport + hp_clkctrl_0, CLKCTRL_DEFAULT); in FlashPoint_StartCCB()
1522 WR_HARPOON(ioport + hp_sys_ctrl, 0x00); in FlashPoint_StartCCB()
1528 if (RD_HARPOON(ioport + hp_semaphore) & BIOS_IN_USE) { in FlashPoint_StartCCB()
1530 WR_HARPOON(ioport + hp_semaphore, in FlashPoint_StartCCB()
1531 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_StartCCB()
1545 else if ((RD_HARPOON(ioport + hp_page_ctrl) & G_INT_DISABLE)) { in FlashPoint_StartCCB()
1561 MDISABLE_INT(ioport); in FlashPoint_StartCCB()
1596 MENABLE_INT(ioport); in FlashPoint_StartCCB()
1612 unsigned long ioport; in FlashPoint_AbortCCB() local
1620 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_AbortCCB()
1624 if (!(RD_HARPOON(ioport + hp_page_ctrl) & G_INT_DISABLE)) { in FlashPoint_AbortCCB()
1631 WR_HARPOON(ioport + hp_semaphore, in FlashPoint_AbortCCB()
1632 (RD_HARPOON(ioport + hp_semaphore) in FlashPoint_AbortCCB()
1657 MDISABLE_INT(ioport); in FlashPoint_AbortCCB()
1673 FPT_ssel(ioport, in FlashPoint_AbortCCB()
1689 MENABLE_INT(ioport); in FlashPoint_AbortCCB()
1720 unsigned long ioport; in FlashPoint_InterruptPending() local
1722 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_InterruptPending()
1724 if (RD_HARPOON(ioport + hp_int_status) & INT_ASSERTED) { in FlashPoint_InterruptPending()
1748 unsigned long ioport; in FlashPoint_HandleInterrupt() local
1751 ioport = ((struct sccb_card *)pCurrCard)->ioPort; in FlashPoint_HandleInterrupt()
1753 MDISABLE_INT(ioport); in FlashPoint_HandleInterrupt()
1755 if ((bm_int_st = RD_HARPOON(ioport + hp_int_status)) & EXT_STATUS_ON) in FlashPoint_HandleInterrupt()
1757 RD_HARPOON(ioport + in FlashPoint_HandleInterrupt()
1762 WR_HARPOON(ioport + hp_int_mask, (INT_CMD_COMPL | SCSI_INTERRUPT)); in FlashPoint_HandleInterrupt()
1765 RDW_HARPOON((ioport + in FlashPoint_HandleInterrupt()
1772 FPT_SccbMgr_bad_isr(ioport, thisCard, in FlashPoint_HandleInterrupt()
1775 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1781 MENABLE_INT(ioport); in FlashPoint_HandleInterrupt()
1795 (RDW_HARPOON((ioport + hp_intstat)) & in FlashPoint_HandleInterrupt()
1802 FPT_phaseChkFifo(ioport, thisCard); in FlashPoint_HandleInterrupt()
1808 WRW_HARPOON((ioport + hp_intstat), CLR_ALL_INT_1); in FlashPoint_HandleInterrupt()
1810 FPT_autoCmdCmplt(ioport, thisCard); in FlashPoint_HandleInterrupt()
1819 FPT_phaseChkFifo(ioport, thisCard); in FlashPoint_HandleInterrupt()
1823 if (RD_HARPOON(ioport + hp_gp_reg_1) == SMSAVE_DATA_PTR) { in FlashPoint_HandleInterrupt()
1825 WR_HARPOON(ioport + hp_gp_reg_1, 0x00); in FlashPoint_HandleInterrupt()
1840 (RDW_HARPOON((ioport + hp_intstat)) & in FlashPoint_HandleInterrupt()
1842 && !((RDW_HARPOON((ioport + hp_intstat)) & PHASE) in FlashPoint_HandleInterrupt()
1843 && RD_HARPOON((ioport + hp_scsisig)) == in FlashPoint_HandleInterrupt()
1853 (RDW_HARPOON((ioport + hp_intstat)) & in FlashPoint_HandleInterrupt()
1855 MENABLE_INT(ioport); in FlashPoint_HandleInterrupt()
1859 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1869 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1872 if (RDW_HARPOON((ioport + hp_intstat)) & ITAR_DISC) { in FlashPoint_HandleInterrupt()
1875 FPT_phaseChkFifo(ioport, thisCard); in FlashPoint_HandleInterrupt()
1878 if (RD_HARPOON(ioport + hp_gp_reg_1) == in FlashPoint_HandleInterrupt()
1880 WR_HARPOON(ioport + hp_gp_reg_1, 0x00); in FlashPoint_HandleInterrupt()
1887 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1893 FPT_sres(ioport, thisCard, in FlashPoint_HandleInterrupt()
1895 FPT_phaseDecode(ioport, thisCard); in FlashPoint_HandleInterrupt()
1901 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1903 FPT_phaseDecode(ioport, thisCard); in FlashPoint_HandleInterrupt()
1908 WRW_HARPOON((ioport + hp_intstat), in FlashPoint_HandleInterrupt()
1910 if ((RD_HARPOON(ioport + hp_prgmcnt_0) & (unsigned char) in FlashPoint_HandleInterrupt()
1912 FPT_phaseDecode(ioport, thisCard); in FlashPoint_HandleInterrupt()
1922 char)(RD_HARPOON(ioport + hp_fifowrite)); in FlashPoint_HandleInterrupt()
1925 char)(RD_HARPOON(ioport + hp_gp_reg_3)); in FlashPoint_HandleInterrupt()
1926 WR_HARPOON(ioport + hp_xfer_pad, in FlashPoint_HandleInterrupt()
1928 WR_HARPOON(ioport + hp_select_id, in FlashPoint_HandleInterrupt()
1931 WR_HARPOON(ioport + hp_xfer_pad, in FlashPoint_HandleInterrupt()
1933 WR_HARPOON(ioport + hp_fifowrite, i); in FlashPoint_HandleInterrupt()
1934 WR_HARPOON(ioport + hp_autostart_3, in FlashPoint_HandleInterrupt()
1941 WRW_HARPOON((ioport + hp_intstat), XFER_CNT_0); in FlashPoint_HandleInterrupt()
1943 FPT_schkdd(ioport, thisCard); in FlashPoint_HandleInterrupt()
1949 WRW_HARPOON((ioport + hp_intstat), BUS_FREE); in FlashPoint_HandleInterrupt()
1954 FPT_hostDataXferAbort(ioport, thisCard, in FlashPoint_HandleInterrupt()
1958 FPT_phaseBusFree(ioport, thisCard); in FlashPoint_HandleInterrupt()
1963 WRW_HARPOON((ioport + hp_intstat), ITICKLE); in FlashPoint_HandleInterrupt()
1985 FPT_ssel(ioport, thisCard); in FlashPoint_HandleInterrupt()
1994 MENABLE_INT(ioport); in FlashPoint_HandleInterrupt()