Lines Matching refs:addr
337 static u16 initio_se2_rd(unsigned long base, u8 addr) in initio_se2_rd() argument
343 instr = (u8) (addr | 0x80); in initio_se2_rd()
372 static void initio_se2_wr(unsigned long base, u8 addr, u16 val) in initio_se2_wr() argument
378 instr = (u8) (addr | 0x40); in initio_se2_wr()
510 if (inb(host->addr + TUL_XStatus) & XPEND) { /* if DMA xfer is pending, abort DMA xfer */ in initio_stop_bm()
511 outb(TAX_X_ABT | TAX_X_CLR_FIFO, host->addr + TUL_XCmd); in initio_stop_bm()
513 while ((inb(host->addr + TUL_Int) & XABT) == 0) in initio_stop_bm()
516 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_stop_bm()
529 outb(TSC_RST_BUS, host->addr + TUL_SCtrl0); in initio_reset_scsi()
531 while (!((host->jsint = inb(host->addr + TUL_SInt)) & TSS_SCSIRST_INT)) in initio_reset_scsi()
535 outb(0, host->addr + TUL_SSignal); in initio_reset_scsi()
542 inb(host->addr + TUL_SInt); in initio_reset_scsi()
566 initio_read_eeprom(host->addr); in initio_init()
579 outb(inb(host->addr + TUL_PCMD) | 0x40, host->addr + TUL_PCMD); in initio_init()
583 outb(0x1F, host->addr + TUL_Mask); in initio_init()
587 outb(TSC_RST_CHIP, host->addr + TUL_SCtrl0); in initio_init()
590 outb(host->scsi_id << 4, host->addr + TUL_SScsiId); in initio_init()
598 outb(host->sconf1, host->addr + TUL_SConfig); in initio_init()
601 outb(TSC_HW_RESELECT, host->addr + TUL_SCtrl1); in initio_init()
603 outb(0, host->addr + TUL_SPeriod); in initio_init()
606 outb(153, host->addr + TUL_STimeOut); in initio_init()
610 host->addr + TUL_XCtrl); in initio_init()
612 (inb(host->addr + TUL_GCTRL1) & 0xFE), in initio_init()
613 host->addr + TUL_GCTRL1); in initio_init()
638 host->addr, host->pci_dev->irq, in initio_init()
645 outb(0x17, host->addr + TUL_SCFG1); in initio_init()
646 outb(0xE9, host->addr + TUL_SIntEnable); in initio_init()
929 outb(0x1F, host->addr + TUL_Mask); in initio_abort_srb()
935 outb(0x0F, host->addr + TUL_Mask); in initio_abort_srb()
1038 outb(0x1F, host->addr + TUL_Mask); in initio_exec_scb()
1046 outb(0x0F, host->addr + TUL_Mask); in initio_exec_scb()
1055 if (inb(host->addr + TUL_Int) & TSS_INT_PENDING) { in initio_isr()
1057 outb(0x1F, host->addr + TUL_Mask); in initio_isr()
1064 outb(0x0F, host->addr + TUL_Mask); in initio_isr()
1132 if (inb(host->addr + TUL_SStatus0) & TSS_INT_PENDING) in tulip_main()
1149 if ((host->jsstatus0 = inb(host->addr + TUL_SStatus0)) & TSS_INT_PENDING) { in tulip_scsi()
1151 host->jsstatus1 = inb(host->addr + TUL_SStatus1); in tulip_scsi()
1152 host->jsint = inb(host->addr + TUL_SInt); in tulip_scsi()
1184 host->addr + TUL_SScsiId); in tulip_scsi()
1193 outb(active_tc->js_period, host->addr + TUL_SPeriod); in tulip_scsi()
1306 outb(active_tc->sconfig0, host->addr + TUL_SConfig ); in initio_state_1()
1309 outb(TSC_EN_BUS_IN | TSC_HW_RESELECT, host->addr + TUL_SCtrl1); in initio_state_1()
1310 outb(scb->ident, host->addr + TUL_SFifo); in initio_state_1()
1313 outb(scb->tagmsg, host->addr + TUL_SFifo); in initio_state_1()
1314 outb(scb->tagid, host->addr + TUL_SFifo); in initio_state_1()
1318 outb(MSG_EXTEND, host->addr + TUL_SFifo); in initio_state_1()
1319 outb(2, host->addr + TUL_SFifo); /* Extended msg length */ in initio_state_1()
1320 outb(3, host->addr + TUL_SFifo); /* Sync request */ in initio_state_1()
1321 outb(1, host->addr + TUL_SFifo); /* Start from 16 bits */ in initio_state_1()
1324 outb(MSG_EXTEND, host->addr + TUL_SFifo); in initio_state_1()
1325 outb(3, host->addr + TUL_SFifo); /* extended msg length */ in initio_state_1()
1326 outb(1, host->addr + TUL_SFifo); /* sync request */ in initio_state_1()
1327 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_1()
1328 outb(MAX_OFFSET, host->addr + TUL_SFifo); /* REQ/ACK offset */ in initio_state_1()
1330 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_state_1()
1334 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_state_1()
1335 outb((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)), host->addr + TUL_SSignal); in initio_state_1()
1360 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in initio_state_2()
1365 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_state_2()
1366 outb((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)), host->addr + TUL_SSignal); in initio_state_2()
1391 outb(scb->cdb[i], host->addr + TUL_SFifo); in initio_state_3()
1392 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_state_3()
1412 outb(MSG_NOP, host->addr + TUL_SFifo); /* msg nop */ in initio_state_3()
1413 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_state_3()
1419 outb(MSG_EXTEND, host->addr + TUL_SFifo); in initio_state_3()
1420 outb(3, host->addr + TUL_SFifo); /* ext. msg len */ in initio_state_3()
1421 outb(1, host->addr + TUL_SFifo); /* sync request */ in initio_state_3()
1422 outb(initio_rate_tbl[active_tc->flags & TCF_SCSI_RATE], host->addr + TUL_SFifo); in initio_state_3()
1423 outb(MAX_OFFSET, host->addr + TUL_SFifo); /* REQ/ACK offset */ in initio_state_3()
1424 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_state_3()
1427 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_state_3()
1428 outb(inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7), host->addr + TUL_SSignal); in initio_state_3()
1482 outb(MSG_NOP, host->addr + TUL_SFifo); /* msg nop */ in initio_state_4()
1483 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_state_4()
1518 cnt = inl(host->addr + TUL_SCnt0) & 0x0FFFFFF; in initio_state_5()
1520 if (inb(host->addr + TUL_XCmd) & 0x20) { in initio_state_5()
1525 if (inb(host->addr + TUL_XStatus) & XPEND) { /* DMA xfer pending, Send STOP */ in initio_state_5()
1527 outb(inb(host->addr + TUL_XCtrl) | 0x80, host->addr + TUL_XCtrl); in initio_state_5()
1529 while (inb(host->addr + TUL_XStatus) & XPEND) in initio_state_5()
1534 if ((inb(host->addr + TUL_SStatus1) & TSS_XFER_CMP) == 0) { in initio_state_5()
1536 cnt += (inb(host->addr + TUL_SFifoCnt) & 0x1F) << 1; in initio_state_5()
1538 cnt += (inb(host->addr + TUL_SFifoCnt) & 0x1F); in initio_state_5()
1540 if (inb(host->addr + TUL_XStatus) & XPEND) { /* if DMA xfer is pending, abort DMA xfer */ in initio_state_5()
1541 outb(TAX_X_ABT, host->addr + TUL_XCmd); in initio_state_5()
1543 while ((inb(host->addr + TUL_Int) & XABT) == 0) in initio_state_5()
1547 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_state_5()
1552 if ((inb(host->addr + TUL_SStatus1) & TSS_XFER_CMP) == 0) in initio_state_5()
1553 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_state_5()
1619 outb(MSG_NOP, host->addr + TUL_SFifo); /* msg nop */ in initio_state_6()
1620 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_state_6()
1651 cnt = inb(host->addr + TUL_SFifoCnt) & 0x1F; in initio_state_7()
1654 inb(host->addr + TUL_SFifo); in initio_state_7()
1680 outl(scb->buflen, host->addr + TUL_SCnt0); in initio_xfer_data_in()
1681 outb(TSC_XF_DMA_IN, host->addr + TUL_SCmd); /* 7/25/95 */ in initio_xfer_data_in()
1684 outl(((u32) scb->sglen) << 3, host->addr + TUL_XCntH); in initio_xfer_data_in()
1685 outl(scb->bufptr, host->addr + TUL_XAddH); in initio_xfer_data_in()
1686 outb(TAX_SG_IN, host->addr + TUL_XCmd); in initio_xfer_data_in()
1688 outl(scb->buflen, host->addr + TUL_XCntH); in initio_xfer_data_in()
1689 outl(scb->bufptr, host->addr + TUL_XAddH); in initio_xfer_data_in()
1690 outb(TAX_X_IN, host->addr + TUL_XCmd); in initio_xfer_data_in()
1712 outl(scb->buflen, host->addr + TUL_SCnt0); in initio_xfer_data_out()
1713 outb(TSC_XF_DMA_OUT, host->addr + TUL_SCmd); in initio_xfer_data_out()
1716 outl(((u32) scb->sglen) << 3, host->addr + TUL_XCntH); in initio_xfer_data_out()
1717 outl(scb->bufptr, host->addr + TUL_XAddH); in initio_xfer_data_out()
1718 outb(TAX_SG_OUT, host->addr + TUL_XCmd); in initio_xfer_data_out()
1720 outl(scb->buflen, host->addr + TUL_XCntH); in initio_xfer_data_out()
1721 outl(scb->bufptr, host->addr + TUL_XAddH); in initio_xfer_data_out()
1722 outb(TAX_X_OUT, host->addr + TUL_XCmd); in initio_xfer_data_out()
1738 outl(2, host->addr + TUL_SCnt0); in initio_xpad_in()
1740 outl(1, host->addr + TUL_SCnt0); in initio_xpad_in()
1742 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in initio_xpad_in()
1746 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_xpad_in()
1749 inb(host->addr + TUL_SFifo); in initio_xpad_in()
1762 outl(2, host->addr + TUL_SCnt0); in initio_xpad_out()
1764 outl(1, host->addr + TUL_SCnt0); in initio_xpad_out()
1766 outb(0, host->addr + TUL_SFifo); in initio_xpad_out()
1767 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_xpad_out()
1771 outb(TSC_HW_RESELECT, host->addr + TUL_SCtrl1); in initio_xpad_out()
1772 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_xpad_out()
1783 outb(TSC_CMD_COMP, host->addr + TUL_SCmd); in initio_status_msg()
1788 scb->tastat = inb(host->addr + TUL_SFifo); in initio_status_msg()
1792 outb(MSG_PARITY, host->addr + TUL_SFifo); in initio_status_msg()
1794 outb(MSG_NOP, host->addr + TUL_SFifo); in initio_status_msg()
1795 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_status_msg()
1799 msg = inb(host->addr + TUL_SFifo); in initio_status_msg()
1805 outb(MSG_PARITY, host->addr + TUL_SFifo); in initio_status_msg()
1806 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_status_msg()
1813 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_status_msg()
1814 outb(TSC_MSG_ACCEPT, host->addr + TUL_SCmd); in initio_status_msg()
1845 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); /* Flush SCSI FIFO */ in int_initio_busfree()
1846 outb(TSC_INITDEFAULT, host->addr + TUL_SConfig); in int_initio_busfree()
1847 outb(TSC_HW_RESELECT, host->addr + TUL_SCtrl1); /* Enable HW reselect */ in int_initio_busfree()
1868 if (inb(host->addr + TUL_XStatus) & 0x01) { in int_initio_scsi_rst()
1869 outb(TAX_X_ABT | TAX_X_CLR_FIFO, host->addr + TUL_XCmd); in int_initio_scsi_rst()
1871 while ((inb(host->addr + TUL_Int) & 0x04) == 0) in int_initio_scsi_rst()
1873 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in int_initio_scsi_rst()
1912 tar = inb(host->addr + TUL_SBusId); in int_initio_resel()
1914 lun = inb(host->addr + TUL_SIdent) & 0x0F; in int_initio_resel()
1918 outb(active_tc->sconfig0, host->addr + TUL_SConfig); in int_initio_resel()
1919 outb(active_tc->js_period, host->addr + TUL_SPeriod); in int_initio_resel()
1927 outl(1, host->addr + TUL_SCnt0); in int_initio_resel()
1928 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in int_initio_resel()
1931 msg = inb(host->addr + TUL_SFifo); /* Read Tag Message */ in int_initio_resel()
1942 outl(1, host->addr + TUL_SCnt0); in int_initio_resel()
1943 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in int_initio_resel()
1946 tag = inb(host->addr + TUL_SFifo); /* Read Tag ID */ in int_initio_resel()
2007 …outb(((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)) | TSC_SET_ATN), host->addr + TUL_SSignal… in initio_msgout_abort_targ()
2013 outb(MSG_ABORT, host->addr + TUL_SFifo); in initio_msgout_abort_targ()
2014 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_msgout_abort_targ()
2030 …outb(((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)) | TSC_SET_ATN), host->addr + TUL_SSignal… in initio_msgout_abort_tag()
2036 outb(MSG_ABORT_TAG, host->addr + TUL_SFifo); in initio_msgout_abort_tag()
2037 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_msgout_abort_tag()
2054 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_msgin()
2056 outl(1, host->addr + TUL_SCnt0); in initio_msgin()
2057 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in initio_msgin()
2061 switch (inb(host->addr + TUL_SFifo)) { in initio_msgin()
2063 outb(TSC_MSG_ACCEPT, host->addr + TUL_SCmd); in initio_msgin()
2071 outb((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)), in initio_msgin()
2072 host->addr + TUL_SSignal); in initio_msgin()
2075 outb(((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)) | TSC_SET_ATN), in initio_msgin()
2076 host->addr + TUL_SSignal); in initio_msgin()
2086 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_msgin()
2087 outb(TSC_MSG_ACCEPT, host->addr + TUL_SCmd); in initio_msgin()
2101 …outb(((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)) | TSC_SET_ATN), host->addr + TUL_SSignal… in initio_msgout_reject()
2107 outb(MSG_REJ, host->addr + TUL_SFifo); /* Msg reject */ in initio_msgout_reject()
2108 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_msgout_reject()
2116 outb(MSG_IDE, host->addr + TUL_SFifo); /* Initiator Detected Error */ in initio_msgout_ide()
2117 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_msgout_ide()
2129 outl(1, host->addr + TUL_SCnt0); in initio_msgin_extend()
2130 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in initio_msgin_extend()
2134 len = inb(host->addr + TUL_SFifo); in initio_msgin_extend()
2140 outl(1, host->addr + TUL_SCnt0); in initio_msgin_extend()
2141 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in initio_msgin_extend()
2144 host->msg[idx++] = inb(host->addr + TUL_SFifo); in initio_msgin_extend()
2160 r = inb(host->addr + TUL_SSignal); in initio_msgin_extend()
2162 host->addr + TUL_SSignal); in initio_msgin_extend()
2166 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in initio_msgin_extend()
2170 outb(MSG_EXTEND, host->addr + TUL_SFifo); in initio_msgin_extend()
2171 outb(3, host->addr + TUL_SFifo); in initio_msgin_extend()
2172 outb(1, host->addr + TUL_SFifo); in initio_msgin_extend()
2173 outb(host->msg[2], host->addr + TUL_SFifo); in initio_msgin_extend()
2174 outb(host->msg[3], host->addr + TUL_SFifo); in initio_msgin_extend()
2175 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_msgin_extend()
2192 …outb(((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)) | TSC_SET_ATN), host->addr + TUL_SSignal… in initio_msgin_extend()
2197 …outb(((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)) | TSC_SET_ATN), host->addr + TUL_SSignal… in initio_msgin_extend()
2202 outb(MSG_EXTEND, host->addr + TUL_SFifo); in initio_msgin_extend()
2203 outb(2, host->addr + TUL_SFifo); in initio_msgin_extend()
2204 outb(3, host->addr + TUL_SFifo); in initio_msgin_extend()
2205 outb(host->msg[2], host->addr + TUL_SFifo); in initio_msgin_extend()
2206 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_msgin_extend()
2249 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in wdtr_done()
2250 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in wdtr_done()
2270 outb(host->active_tc->sconfig0, host->addr + TUL_SConfig); in initio_sync_done()
2271 outb(host->active_tc->js_period, host->addr + TUL_SPeriod); in initio_sync_done()
2311 outb(TSC_SELATNSTOP, host->addr + TUL_SCmd); in initio_select_atn_stop()
2322 outb(scb->ident, host->addr + TUL_SFifo); in initio_select_atn()
2324 outb(scb->cdb[i], host->addr + TUL_SFifo); in initio_select_atn()
2327 outb(TSC_SEL_ATN, host->addr + TUL_SCmd); in initio_select_atn()
2337 outb(scb->ident, host->addr + TUL_SFifo); in initio_select_atn3()
2338 outb(scb->tagmsg, host->addr + TUL_SFifo); in initio_select_atn3()
2339 outb(scb->tagid, host->addr + TUL_SFifo); in initio_select_atn3()
2341 outb(scb->cdb[i], host->addr + TUL_SFifo); in initio_select_atn3()
2344 outb(TSC_SEL_ATN3, host->addr + TUL_SCmd); in initio_select_atn3()
2394 outb(MSG_DEVRST, host->addr + TUL_SFifo); in initio_bus_device_reset()
2395 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); in initio_bus_device_reset()
2402 outb(TSC_MSG_ACCEPT, host->addr + TUL_SCmd); in initio_msgin_accept()
2409 while (!((host->jsstatus0 = inb(host->addr + TUL_SStatus0)) in wait_tulip()
2413 host->jsint = inb(host->addr + TUL_SInt); in wait_tulip()
2415 host->jsstatus1 = inb(host->addr + TUL_SStatus1); in wait_tulip()
2426 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); /* Flush SCSI FIFO */ in wait_tulip()
2433 outb(TSC_INITDEFAULT, host->addr + TUL_SConfig); in wait_tulip()
2434 outb(TSC_HW_RESELECT, host->addr + TUL_SCtrl1); /* Enable HW reselect */ in wait_tulip()
2438 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); /* Flush SCSI FIFO */ in wait_tulip()
2442 outb(TSC_INITDEFAULT, host->addr + TUL_SConfig); in wait_tulip()
2443 outb(TSC_HW_RESELECT, host->addr + TUL_SCtrl1); /* Enable HW reselect */ in wait_tulip()
2456 while (!((host->jsstatus0 = inb(host->addr + TUL_SStatus0)) & TSS_INT_PENDING)) in initio_wait_disc()
2459 host->jsint = inb(host->addr + TUL_SInt); in initio_wait_disc()
2464 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); /* Flush SCSI FIFO */ in initio_wait_disc()
2465 outb(TSC_INITDEFAULT, host->addr + TUL_SConfig); in initio_wait_disc()
2466 outb(TSC_HW_RESELECT, host->addr + TUL_SCtrl1); /* Enable HW reselect */ in initio_wait_disc()
2475 while (!((host->jsstatus0 = inb(host->addr + TUL_SStatus0)) in initio_wait_done_disc()
2479 host->jsint = inb(host->addr + TUL_SInt); in initio_wait_done_disc()
2484 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); /* Flush SCSI FIFO */ in initio_wait_done_disc()
2485 outb(TSC_INITDEFAULT, host->addr + TUL_SConfig); in initio_wait_done_disc()
2486 outb(TSC_HW_RESELECT, host->addr + TUL_SCtrl1); /* Enable HW reselect */ in initio_wait_done_disc()
2841 host->addr = pci_resource_start(pdev, 0); in initio_probe_one()
2844 if (!request_region(host->addr, 256, "i91u")) { in initio_probe_one()
2845 printk(KERN_WARNING "initio: I/O port range 0x%x is busy.\n", host->addr); in initio_probe_one()
2891 shost->io_port = host->addr; in initio_probe_one()
2894 shost->unique_id = host->addr; in initio_probe_one()
2899 shost->base = host->addr; in initio_probe_one()
2920 release_region(host->addr, 256); in initio_probe_one()
2942 release_region(s->addr, 256); in initio_remove_one()