diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2004-09-30 14:58:03 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2004-09-30 14:58:03 +0000 |
commit | 2c6a67e45c0d849f4691c2ee1d04db2dfce6dc9d (patch) | |
tree | e2e8cfd2c3d24bd45902847818ce1cf78cb4e8cf /sys/dev/ic/rtl81x9.c | |
parent | bcbad27ca9f84142e7c2bb04715b995d2705ca3d (diff) |
rtl8139 doesn't setup ANLPAR if the other side is not NWay compatible,
to try to deduce what the link partner is the hardway. Based on FreeBSD.
Diffstat (limited to 'sys/dev/ic/rtl81x9.c')
-rw-r--r-- | sys/dev/ic/rtl81x9.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/rtl81x9.c b/sys/dev/ic/rtl81x9.c index 1409a41ba2c..6efc9c0cc39 100644 --- a/sys/dev/ic/rtl81x9.c +++ b/sys/dev/ic/rtl81x9.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtl81x9.c,v 1.29 2004/09/28 07:05:50 brad Exp $ */ +/* $OpenBSD: rtl81x9.c,v 1.30 2004/09/30 14:58:02 jason Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1359,10 +1359,12 @@ rl_miibus_readreg(self, phy, reg) case MII_ANLPAR: rl8139_reg = RL_LPAR; break; + case RL_MEDIASTAT: + return (CSR_READ_1(sc, RL_MEDIASTAT)); case MII_PHYIDR1: case MII_PHYIDR2: + default: return (0); - break; } return (CSR_READ_2(sc, rl8139_reg)); } |