summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-08-31 22:39:46 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-08-31 22:39:46 +0200
commit2d9147a33ce2bca64704d8da4f35b2f1468797d3 (patch)
tree5742ff1fceeb654def636da87f4bb2b65e0422ae
parent55e0fd603151867eac865be660767dcc4289ed87 (diff)
rtl8169: fix receive for nuc BOXNUC7CJYH
-rw-r--r--sys/src/9/pc/ether8169.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/src/9/pc/ether8169.c b/sys/src/9/pc/ether8169.c
index 42068c5a0..8c256a2ba 100644
--- a/sys/src/9/pc/ether8169.c
+++ b/sys/src/9/pc/ether8169.c
@@ -725,7 +725,14 @@ rtl8169init(Ether* edev)
csr32w(ctlr, Tcr, Ifg1|Ifg0|Mtxdmaunlimited);
ctlr->tcr = csr32r(ctlr, Tcr);
- ctlr->rcr = Rxfthnone|Mrxdmaunlimited|Ab|Am|Apm;
+ switch(ctlr->macv){
+ case Macv45:
+ ctlr->rcr = Rxfth256|Mrxdmaunlimited|Ab|Am|Apm;
+ break;
+ default:
+ ctlr->rcr = Rxfthnone|Mrxdmaunlimited|Ab|Am|Apm;
+ break;
+ }
ctlr->mchash = 0;
csr32w(ctlr, Mar0, 0);
csr32w(ctlr, Mar0+4, 0);