Lines Matching refs:io_port

191 	if (inb(STATUS(sh->io_port)) == 0xff)  in aha1542_test_port()
197 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in aha1542_test_port()
199 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port)); in aha1542_test_port()
204 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) in aha1542_test_port()
208 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK) in aha1542_test_port()
214 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_test_port()
217 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0)) in aha1542_test_port()
219 inquiry_result[i] = inb(DATA(sh->io_port)); in aha1542_test_port()
223 if (inb(STATUS(sh->io_port)) & DF) in aha1542_test_port()
227 if (!wait_mask(INTRFLAGS(sh->io_port), HACC, HACC, 0, 0)) in aha1542_test_port()
231 outb(IRST, CONTROL(sh->io_port)); in aha1542_test_port()
251 flag = inb(INTRFLAGS(sh->io_port)); in aha1542_interrupt()
263 printk("status %02x\n", inb(STATUS(sh->io_port))); in aha1542_interrupt()
270 flag = inb(INTRFLAGS(sh->io_port)); in aha1542_interrupt()
284 aha1542_intr_reset(sh->io_port); in aha1542_interrupt()
483 aha1542_outb(cmd->device->host->io_port, CMD_START_SCSI); in aha1542_queuecommand()
503 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */ in setup_mailboxes()
505 if (aha1542_out(sh->io_port, mb_cmd, 5)) in setup_mailboxes()
507 aha1542_intr_reset(sh->io_port); in setup_mailboxes()
514 i = inb(STATUS(sh->io_port)); in aha1542_getconfig()
516 i = inb(DATA(sh->io_port)); in aha1542_getconfig()
518 aha1542_outb(sh->io_port, CMD_RETCONF); in aha1542_getconfig()
519 aha1542_in(sh->io_port, inquiry_result, 3, 0); in aha1542_getconfig()
520 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0)) in aha1542_getconfig()
522 aha1542_intr_reset(sh->io_port); in aha1542_getconfig()
583 aha1542_outb(sh->io_port, CMD_EXTBIOS); in aha1542_mbenable()
584 if (aha1542_in(sh->io_port, mbenable_result, 2, 100)) in aha1542_mbenable()
586 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 100)) in aha1542_mbenable()
588 aha1542_intr_reset(sh->io_port); in aha1542_mbenable()
598 if (aha1542_out(sh->io_port, mbenable_cmd, 3)) in aha1542_mbenable()
605 aha1542_intr_reset(sh->io_port); in aha1542_mbenable()
615 i = inb(STATUS(sh->io_port)); in aha1542_query()
617 i = inb(DATA(sh->io_port)); in aha1542_query()
619 aha1542_outb(sh->io_port, CMD_INQUIRY); in aha1542_query()
620 aha1542_in(sh->io_port, inquiry_result, 4, 0); in aha1542_query()
621 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0)) in aha1542_query()
623 aha1542_intr_reset(sh->io_port); in aha1542_query()
670 aha1542_intr_reset(sh->io_port); in aha1542_set_bus_times()
671 if (aha1542_out(sh->io_port, oncmd, 2)) in aha1542_set_bus_times()
678 aha1542_intr_reset(sh->io_port); in aha1542_set_bus_times()
679 if (aha1542_out(sh->io_port, offcmd, 2)) in aha1542_set_bus_times()
686 aha1542_intr_reset(sh->io_port); in aha1542_set_bus_times()
687 if (aha1542_out(sh->io_port, dmacmd, 2)) in aha1542_set_bus_times()
690 aha1542_intr_reset(sh->io_port); in aha1542_set_bus_times()
694 aha1542_intr_reset(sh->io_port); in aha1542_set_bus_times()
717 sh->io_port = base_io; in aha1542_hw_init()
781 if (sh->io_port && sh->n_io_port) in aha1542_release()
782 release_region(sh->io_port, sh->n_io_port); in aha1542_release()
840 aha1542_outb(sh->io_port, CMD_START_SCSI); in aha1542_dev_reset()
863 outb(reset_cmd, CONTROL(cmd->device->host->io_port)); in aha1542_reset()
865 if (!wait_mask(STATUS(cmd->device->host->io_port), in aha1542_reset()