From: Bill Joy Date: Thu, 1 Jul 1982 12:32:27 +0000 (-0800) Subject: handle multiple uba's X-Git-Tag: BSD-4_1c_2-Snapshot-Development~3037 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/88948a4c4631cd5c8012e381fe17ac41856fda8a?hp=32dc2b7e69b9f33bff62e98a9163da54aef1ffc6 handle multiple uba's SCCS-vsn: sys/vax/if/if_ec.c 4.21 --- diff --git a/usr/src/sys/vax/if/if_ec.c b/usr/src/sys/vax/if/if_ec.c index 2bfc401183..4e115567c9 100644 --- a/usr/src/sys/vax/if/if_ec.c +++ b/usr/src/sys/vax/if/if_ec.c @@ -1,4 +1,4 @@ -/* if_ec.c 4.20 82/06/23 */ +/* if_ec.c 4.21 82/06/30 */ #include "ec.h" @@ -75,7 +75,7 @@ ecprobe(reg) { register int br, cvec; /* r11, r10 value-result */ register struct ecdevice *addr = (struct ecdevice *)reg; - register caddr_t ecbuf = (caddr_t) &umem[0][0600000]; + register caddr_t ecbuf = (caddr_t) &umem[numuba][0600000]; #ifdef lint br = 0; cvec = br; br = cvec; @@ -98,7 +98,7 @@ ecprobe(reg) * Tell the system that the board has memory here, so it won't * attempt to allocate the addresses later. */ - ubamem(0, 0600000, 32*2); + ubamem(numuba, 0600000, 32*2); /* * Make a one byte packet in what should be buffer #0. @@ -111,6 +111,7 @@ ecprobe(reg) addr->ec_xcr = EC_XINTEN|EC_XWBN; DELAY(100000); addr->ec_xcr = EC_XCLR; + /* will this work if there's a collision? */ if (cvec > 0 && cvec != 0x200) { cvec -= 010; br += 2; /* rcv is xmit + 2 */