Lines Matching refs:bse
348 static int __init aha1542_test_port(int bse, struct Scsi_Host *shpnt) in aha1542_test_port() argument
357 if (inb(STATUS(bse)) == 0xff) in aha1542_test_port()
365 aha1542_intr_reset(bse); /* reset interrupts, so they don't block */ in aha1542_test_port()
367 outb(SRST | IRST /*|SCRST */ , CONTROL(bse)); in aha1542_test_port()
373 WAIT(STATUS(bse), STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF); in aha1542_test_port()
377 if (inb(INTRFLAGS(bse)) & INTRMASK) in aha1542_test_port()
384 aha1542_out(bse, inquiry_cmd, 1); in aha1542_test_port()
391 WAIT(STATUS(bse), DF, DF, 0); in aha1542_test_port()
392 *cmdp++ = inb(DATA(bse)); in aha1542_test_port()
397 if (inb(STATUS(bse)) & DF) in aha1542_test_port()
402 WAIT(INTRFLAGS(bse), HACC, HACC, 0); in aha1542_test_port()
407 outb(IRST, CONTROL(bse)); in aha1542_test_port()
790 static void setup_mailboxes(int bse, struct Scsi_Host *shpnt) in setup_mailboxes() argument
805 aha1542_intr_reset(bse); /* reset interrupts, so they don't block */ in setup_mailboxes()
807 aha1542_out(bse, cmd, 5); in setup_mailboxes()
808 WAIT(INTRFLAGS(bse), INTRMASK, HACC, 0); in setup_mailboxes()
813 aha1542_intr_reset(bse); in setup_mailboxes()