tag | line | file | source code |
bse | 180 | drivers/scsi/aha1542.c | static int aha1542_test_port(int bse, struct Scsi_Host * shpnt) |
bse | 190 | drivers/scsi/aha1542.c | if(inb(STATUS(bse)) == 0xff) return 0; |
bse | 196 | drivers/scsi/aha1542.c | outb(SRST|IRST/*|SCRST*/, CONTROL(bse)); |
bse | 203 | drivers/scsi/aha1542.c | WAIT(STATUS(bse), STATMASK, INIT|IDLE, STST|DIAGF|INVDCMD|DF|CDF); |
bse | 207 | drivers/scsi/aha1542.c | if (inb(INTRFLAGS(bse))&INTRMASK) goto fail; |
bse | 213 | drivers/scsi/aha1542.c | aha1542_out(bse, inquiry_cmd, 1); |
bse | 221 | drivers/scsi/aha1542.c | WAIT(STATUS(bse), DF, DF, 0); |
bse | 222 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(bse)); |
bse | 227 | drivers/scsi/aha1542.c | if (inb(STATUS(bse)) & DF) goto fail; |
bse | 231 | drivers/scsi/aha1542.c | WAIT(INTRFLAGS(bse), HACC, HACC, 0); |
bse | 236 | drivers/scsi/aha1542.c | outb(IRST, CONTROL(bse)); |
bse | 570 | drivers/scsi/aha1542.c | static void setup_mailboxes(int bse, struct Scsi_Host * shpnt) |
bse | 585 | drivers/scsi/aha1542.c | aha1542_intr_reset(bse); /* reset interrupts, so they don't block */ |
bse | 587 | drivers/scsi/aha1542.c | aha1542_out(bse, cmd, 5); |
bse | 588 | drivers/scsi/aha1542.c | WAIT(INTRFLAGS(bse), INTRMASK, HACC, 0); |
bse | 593 | drivers/scsi/aha1542.c | aha1542_intr_reset(bse); |