Lines Matching refs:outb
281 outb(SE2CS | SE2DO, base + TUL_NVRAM); /* cs+start bit */ in initio_se2_instr()
283 outb(SE2CS | SE2CLK | SE2DO, base + TUL_NVRAM); /* +CLK */ in initio_se2_instr()
291 outb(b, base + TUL_NVRAM); in initio_se2_instr()
293 outb(b | SE2CLK, base + TUL_NVRAM); /* +CLK */ in initio_se2_instr()
297 outb(SE2CS, base + TUL_NVRAM); /* -CLK */ in initio_se2_instr()
311 outb(0, base + TUL_NVRAM); /* -CS */ in initio_se2_ew_en()
325 outb(0, base + TUL_NVRAM); /* -CS */ in initio_se2_ew_ds()
347 outb(SE2CS | SE2CLK, base + TUL_NVRAM); /* +CLK */ in initio_se2_rd()
349 outb(SE2CS, base + TUL_NVRAM); /* -CLK */ in initio_se2_rd()
358 outb(0, base + TUL_NVRAM); /* no chip select */ in initio_se2_rd()
382 outb(SE2CS | SE2DO, base + TUL_NVRAM); /* -CLK+dataBit 1 */ in initio_se2_wr()
384 outb(SE2CS, base + TUL_NVRAM); /* -CLK+dataBit 0 */ in initio_se2_wr()
386 outb(SE2CS | SE2CLK, base + TUL_NVRAM); /* +CLK */ in initio_se2_wr()
390 outb(SE2CS, base + TUL_NVRAM); /* -CLK */ in initio_se2_wr()
392 outb(0, base + TUL_NVRAM); /* -CS */ in initio_se2_wr()
395 outb(SE2CS, base + TUL_NVRAM); /* +CS */ in initio_se2_wr()
399 outb(SE2CS | SE2CLK, base + TUL_NVRAM); /* +CLK */ in initio_se2_wr()
401 outb(SE2CS, base + TUL_NVRAM); /* -CLK */ in initio_se2_wr()
406 outb(0, base + TUL_NVRAM); /* -CS */ in initio_se2_wr()
490 outb(gctrl | TUL_GCTRL_EEPROM_BIT, base + TUL_GCTRL); in initio_read_eeprom()
497 outb(gctrl & ~TUL_GCTRL_EEPROM_BIT, base + TUL_GCTRL); in initio_read_eeprom()
511 outb(TAX_X_ABT | TAX_X_CLR_FIFO, host->addr + TUL_XCmd); 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()
535 outb(0, host->addr + TUL_SSignal); in initio_reset_scsi()
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()
609 outb((host->config & (HCC_ACT_TERM1 | HCC_ACT_TERM2)), in initio_init()
611 outb(((host->config & HCC_AUTO_TERM) >> 4) | 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()
1057 outb(0x1F, host->addr + TUL_Mask); in initio_isr()
1064 outb(0x0F, host->addr + TUL_Mask); in initio_isr()
1183 outb((host->scsi_id << 4) | (scb->target & 0x0F), 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()
1527 outb(inb(host->addr + TUL_XCtrl) | 0x80, host->addr + TUL_XCtrl); in initio_state_5()
1541 outb(TAX_X_ABT, host->addr + TUL_XCmd); in initio_state_5()
1547 outb(TSC_XF_FIFO_OUT, host->addr + TUL_SCmd); 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()
1681 outb(TSC_XF_DMA_IN, host->addr + TUL_SCmd); /* 7/25/95 */ in initio_xfer_data_in()
1686 outb(TAX_SG_IN, host->addr + TUL_XCmd); in initio_xfer_data_in()
1690 outb(TAX_X_IN, host->addr + TUL_XCmd); in initio_xfer_data_in()
1713 outb(TSC_XF_DMA_OUT, host->addr + TUL_SCmd); in initio_xfer_data_out()
1718 outb(TAX_SG_OUT, host->addr + TUL_XCmd); in initio_xfer_data_out()
1722 outb(TAX_X_OUT, host->addr + TUL_XCmd); in initio_xfer_data_out()
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()
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()
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()
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()
1869 outb(TAX_X_ABT | TAX_X_CLR_FIFO, host->addr + TUL_XCmd); in int_initio_scsi_rst()
1873 outb(TSC_FLUSH_FIFO, host->addr + TUL_SCtrl0); in int_initio_scsi_rst()
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()
1928 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in int_initio_resel()
1943 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); 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()
2057 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); 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()
2075 outb(((inb(host->addr + TUL_SSignal) & (TSC_SET_ACK | 7)) | TSC_SET_ATN), 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()
2130 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in initio_msgin_extend()
2141 outb(TSC_XF_FIFO_IN, host->addr + TUL_SCmd); in initio_msgin_extend()
2161 outb((r & (TSC_SET_ACK | 7)) | TSC_SET_ATN, 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()
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()
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()
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()