SCCS-vsn: sys/vax/if/if_ex.c 6.12
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
- * @(#)if_ex.c 6.11 (Berkeley) %G%
+ * @(#)if_ex.c 6.12 (Berkeley) %G%
*/
br = 0x15;
cvec = (uba_hd[numuba].uh_lastiv -= 4);
*/
br = 0x15;
cvec = (uba_hd[numuba].uh_lastiv -= 4);
-#ifdef DEBUG
-printf("exprobe%d: cvec = %o\n", ex_ncall, cvec);
-#endif
ex_cvecs[ex_ncall].xc_csraddr = addr;
ex_cvecs[ex_ncall].xc_csraddr = addr;
- ex_cvecs[ex_ncall++].xc_cvec = cvec;
+ ex_cvecs[ex_ncall].xc_cvec = cvec;
/*
* Reset EXOS and run self-test (guaranteed to
* complete within 2 seconds).
*/
addr->xd_porta = EX_RESET;
/*
* Reset EXOS and run self-test (guaranteed to
* complete within 2 seconds).
*/
addr->xd_porta = EX_RESET;
while (((addr->xd_portb & EX_TESTOK) == 0) && --i)
while (((addr->xd_portb & EX_TESTOK) == 0) && --i)
if ((addr->xd_portb & EX_TESTOK) == 0) {
printf("ex: self-test failed\n");
return 0;
if ((addr->xd_portb & EX_TESTOK) == 0) {
printf("ex: self-test failed\n");
return 0;
#ifdef lint
br = br;
#endif
#ifdef lint
br = br;
#endif
return (sizeof(struct exdevice));
}
return (sizeof(struct exdevice));
}
while ((bp->mb_status & MH_OWNER) == MH_EXOS) /* poll for reply */
;
printf("ex%d: HW %c.%c, NX %c.%c, hardware address %s\n",
while ((bp->mb_status & MH_OWNER) == MH_EXOS) /* poll for reply */
;
printf("ex%d: HW %c.%c, NX %c.%c, hardware address %s\n",
- ui->ui_unit, ether_sprintf(bp->mb_na.na_addrs),
- xs->xs_cm.cm_vc[2], xs->xs_cm.cm_vc[3],
- xs->xs_cm.cm_vc[0], xs->xs_cm.cm_vc[1]);
+ ui->ui_unit, xs->xs_cm.cm_vc[2], xs->xs_cm.cm_vc[3],
+ xs->xs_cm.cm_vc[0], xs->xs_cm.cm_vc[1],
+ ether_sprintf(bp->mb_na.na_addrs));
bcopy((caddr_t)bp->mb_na.na_addrs, (caddr_t)xs->xs_addr,
sizeof (xs->xs_addr));
bcopy((caddr_t)bp->mb_na.na_addrs, (caddr_t)xs->xs_addr,
sizeof (xs->xs_addr));