projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle multiple uba's
[unix-history]
/
usr
/
src
/
sys
/
vax
/
if
/
if_ec.c
diff --git
a/usr/src/sys/vax/if/if_ec.c
b/usr/src/sys/vax/if/if_ec.c
index
2bfc401
..
4e11556
100644
(file)
--- 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.2
0 82/06/23
*/
+/* if_ec.c 4.2
1 82/06/30
*/
#include "ec.h"
#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 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;
#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.
*/
* 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.
/*
* 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;
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 */
if (cvec > 0 && cvec != 0x200) {
cvec -= 010;
br += 2; /* rcv is xmit + 2 */