From e1bd49a1e1823eab71c293efd1bd0c9b83c350c9 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Sat, 7 Apr 2007 12:52:27 +0000 Subject: 20070407-1350 more updates from plan 9 pc kernel, and a few unreachable fixes(!) --- os/pc/ether79c970.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'os/pc/ether79c970.c') diff --git a/os/pc/ether79c970.c b/os/pc/ether79c970.c index 25bf4185..43924a3f 100644 --- a/os/pc/ether79c970.c +++ b/os/pc/ether79c970.c @@ -300,6 +300,12 @@ promiscuous(void* arg, int on) iunlock(ctlr); } +static void +multicast(void* arg, uchar*, int) +{ + promiscuous(arg, 1); +} + static void txstart(Ether* ether) { @@ -522,7 +528,6 @@ reset(Ether* ether) ctlr->iow = io32w; }else{ print("#l%d: card doesn't talk right\n", ether->ctlrno); -iprint("#l%d: card doesn't talk right\n", ether->ctlrno); iunlock(ctlr); return -1; } @@ -539,8 +544,6 @@ iprint("#l%d: card doesn't talk right\n", ether->ctlrno); default: print("#l%d: unknown PCnet card version %.7ux\n", ether->ctlrno, x&0xFFFFFFF); -iprint("#l%d: unknown PCnet card version %.7ux\n", - ether->ctlrno, x&0xFFFFFFF); iunlock(ctlr); return -1; } @@ -629,6 +632,8 @@ iprint("#l%d: unknown PCnet card version %.7ux\n", ether->arg = ether; ether->promiscuous = promiscuous; + ether->multicast = multicast; +// ether->shutdown = shutdown; return 0; } -- cgit v1.2.3