Lines Matching refs:io_port

199 	if (inb(STATUS(sh->io_port)) == 0xff)
205 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */
207 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port));
212 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0))
216 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK)
222 aha1542_outb(sh->io_port, CMD_INQUIRY);
225 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0))
227 inquiry_result[i] = inb(DATA(sh->io_port));
231 if (inb(STATUS(sh->io_port)) & DF)
235 if (!wait_mask(INTRFLAGS(sh->io_port), HACC, HACC, 0, 0))
239 outb(IRST, CONTROL(sh->io_port));
274 flag = inb(INTRFLAGS(sh->io_port));
286 printk("status %02x\n", inb(STATUS(sh->io_port)));
293 flag = inb(INTRFLAGS(sh->io_port));
307 aha1542_intr_reset(sh->io_port);
509 aha1542_outb(cmd->device->host->io_port, CMD_START_SCSI);
534 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */
536 if (aha1542_out(sh->io_port, mb_cmd, 5))
538 aha1542_intr_reset(sh->io_port);
545 i = inb(STATUS(sh->io_port));
547 i = inb(DATA(sh->io_port));
549 aha1542_outb(sh->io_port, CMD_RETCONF);
550 aha1542_in(sh->io_port, inquiry_result, 3, 0);
551 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0))
553 aha1542_intr_reset(sh->io_port);
614 aha1542_outb(sh->io_port, CMD_EXTBIOS);
615 if (aha1542_in(sh->io_port, mbenable_result, 2, 100))
617 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 100))
619 aha1542_intr_reset(sh->io_port);
629 if (aha1542_out(sh->io_port, mbenable_cmd, 3))
636 aha1542_intr_reset(sh->io_port);
646 i = inb(STATUS(sh->io_port));
648 i = inb(DATA(sh->io_port));
650 aha1542_outb(sh->io_port, CMD_INQUIRY);
651 aha1542_in(sh->io_port, inquiry_result, 4, 0);
652 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0))
654 aha1542_intr_reset(sh->io_port);
701 aha1542_intr_reset(sh->io_port);
702 if (aha1542_out(sh->io_port, oncmd, 2))
709 aha1542_intr_reset(sh->io_port);
710 if (aha1542_out(sh->io_port, offcmd, 2))
717 aha1542_intr_reset(sh->io_port);
718 if (aha1542_out(sh->io_port, dmacmd, 2))
721 aha1542_intr_reset(sh->io_port);
725 aha1542_intr_reset(sh->io_port);
748 sh->io_port = base_io;
841 if (sh->io_port && sh->n_io_port)
842 release_region(sh->io_port, sh->n_io_port);
901 aha1542_outb(sh->io_port, CMD_START_SCSI);
924 outb(reset_cmd, CONTROL(cmd->device->host->io_port));
926 if (!wait_mask(STATUS(cmd->device->host->io_port),