tag | line | file | source code |
bse | 238 | drivers/scsi/aha1542.c | static int aha1542_test_port(int bse, struct Scsi_Host * shpnt) |
bse | 248 | drivers/scsi/aha1542.c | if(inb(STATUS(bse)) == 0xff) return 0; |
bse | 255 | drivers/scsi/aha1542.c | aha1542_intr_reset(bse); /* reset interrupts, so they don't block */ |
bse | 256 | drivers/scsi/aha1542.c | outb(SRST|IRST/*|SCRST*/, CONTROL(bse)); |
bse | 263 | drivers/scsi/aha1542.c | WAIT(STATUS(bse), STATMASK, INIT|IDLE, STST|DIAGF|INVDCMD|DF|CDF); |
bse | 267 | drivers/scsi/aha1542.c | if (inb(INTRFLAGS(bse))&INTRMASK) goto fail; |
bse | 273 | drivers/scsi/aha1542.c | aha1542_out(bse, inquiry_cmd, 1); |
bse | 281 | drivers/scsi/aha1542.c | WAIT(STATUS(bse), DF, DF, 0); |
bse | 282 | drivers/scsi/aha1542.c | *cmdp++ = inb(DATA(bse)); |
bse | 287 | drivers/scsi/aha1542.c | if (inb(STATUS(bse)) & DF) goto fail; |
bse | 291 | drivers/scsi/aha1542.c | WAIT(INTRFLAGS(bse), HACC, HACC, 0); |
bse | 296 | drivers/scsi/aha1542.c | outb(IRST, CONTROL(bse)); |
bse | 651 | drivers/scsi/aha1542.c | static void setup_mailboxes(int bse, struct Scsi_Host * shpnt) |
bse | 666 | drivers/scsi/aha1542.c | aha1542_intr_reset(bse); /* reset interrupts, so they don't block */ |
bse | 668 | drivers/scsi/aha1542.c | aha1542_out(bse, cmd, 5); |
bse | 669 | drivers/scsi/aha1542.c | WAIT(INTRFLAGS(bse), INTRMASK, HACC, 0); |
bse | 674 | drivers/scsi/aha1542.c | aha1542_intr_reset(bse); |