Lines Matching refs:io_port
212 if (inb(STATUS(sh->io_port)) == 0xff)
218 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */
220 outb(SRST | IRST /*|SCRST */ , CONTROL(sh->io_port));
225 if (!wait_mask(STATUS(sh->io_port), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0))
229 if (inb(INTRFLAGS(sh->io_port)) & INTRMASK)
237 aha1542_outb(sh->io_port, CMD_INQUIRY);
240 if (!wait_mask(STATUS(sh->io_port), DF, DF, 0, 0))
242 (void)inb(DATA(sh->io_port));
246 if (inb(STATUS(sh->io_port)) & DF)
250 if (!wait_mask(INTRFLAGS(sh->io_port), HACC, HACC, 0, 0))
254 outb(IRST, CONTROL(sh->io_port));
292 flag = inb(INTRFLAGS(sh->io_port));
304 printk("status %02x\n", inb(STATUS(sh->io_port)));
311 flag = inb(INTRFLAGS(sh->io_port));
327 aha1542_intr_reset(sh->io_port);
519 aha1542_outb(cmd->device->host->io_port, CMD_START_SCSI);
538 aha1542_intr_reset(sh->io_port); /* reset interrupts, so they don't block */
540 if (aha1542_out(sh->io_port, mb_cmd, 5))
542 aha1542_intr_reset(sh->io_port);
549 i = inb(STATUS(sh->io_port));
551 i = inb(DATA(sh->io_port));
553 aha1542_outb(sh->io_port, CMD_RETCONF);
554 aha1542_in(sh->io_port, inquiry_result, 3, 0);
555 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0))
557 aha1542_intr_reset(sh->io_port);
622 aha1542_outb(sh->io_port, CMD_EXTBIOS);
623 if (aha1542_in(sh->io_port, mbenable_result, 2, 100))
625 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 100))
627 aha1542_intr_reset(sh->io_port);
637 if (aha1542_out(sh->io_port, mbenable_cmd, 3))
644 aha1542_intr_reset(sh->io_port);
654 i = inb(STATUS(sh->io_port));
656 i = inb(DATA(sh->io_port));
658 aha1542_outb(sh->io_port, CMD_INQUIRY);
659 aha1542_in(sh->io_port, inquiry_result, 4, 0);
660 if (!wait_mask(INTRFLAGS(sh->io_port), INTRMASK, HACC, 0, 0))
662 aha1542_intr_reset(sh->io_port);
712 aha1542_intr_reset(sh->io_port);
713 if (aha1542_out(sh->io_port, oncmd, 2))
720 aha1542_intr_reset(sh->io_port);
721 if (aha1542_out(sh->io_port, offcmd, 2))
728 aha1542_intr_reset(sh->io_port);
729 if (aha1542_out(sh->io_port, dmacmd, 2))
732 aha1542_intr_reset(sh->io_port);
736 aha1542_intr_reset(sh->io_port);
760 sh->io_port = base_io;
853 if (sh->io_port && sh->n_io_port)
854 release_region(sh->io_port, sh->n_io_port);
914 aha1542_outb(sh->io_port, CMD_START_SCSI);
937 outb(reset_cmd, CONTROL(cmd->device->host->io_port));
939 if (!wait_mask(STATUS(cmd->device->host->io_port),