taglinefilesource code
bse238drivers/scsi/aha1542.cstatic int aha1542_test_port(int bse, struct Scsi_Host * shpnt)
bse248drivers/scsi/aha1542.cif(inb(STATUS(bse)) == 0xff) return 0;
bse255drivers/scsi/aha1542.caha1542_intr_reset(bse);     /* reset interrupts, so they don't block */  
bse256drivers/scsi/aha1542.coutb(SRST|IRST/*|SCRST*/, CONTROL(bse));
bse263drivers/scsi/aha1542.cWAIT(STATUS(bse), STATMASK, INIT|IDLE, STST|DIAGF|INVDCMD|DF|CDF);
bse267drivers/scsi/aha1542.cif (inb(INTRFLAGS(bse))&INTRMASK) goto fail;
bse273drivers/scsi/aha1542.caha1542_out(bse, inquiry_cmd, 1);
bse281drivers/scsi/aha1542.cWAIT(STATUS(bse), DF, DF, 0);
bse282drivers/scsi/aha1542.c*cmdp++ = inb(DATA(bse));
bse287drivers/scsi/aha1542.cif (inb(STATUS(bse)) & DF) goto fail;
bse291drivers/scsi/aha1542.cWAIT(INTRFLAGS(bse), HACC, HACC, 0);
bse296drivers/scsi/aha1542.coutb(IRST, CONTROL(bse));
bse651drivers/scsi/aha1542.cstatic void setup_mailboxes(int bse, struct Scsi_Host * shpnt)
bse666drivers/scsi/aha1542.caha1542_intr_reset(bse);     /* reset interrupts, so they don't block */  
bse668drivers/scsi/aha1542.caha1542_out(bse, cmd, 5);
bse669drivers/scsi/aha1542.cWAIT(INTRFLAGS(bse), INTRMASK, HACC, 0);
bse674drivers/scsi/aha1542.caha1542_intr_reset(bse);