1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Grr... don't touch the PN_GEN (general purpose) register in pn_setcfg()

unless this is a NIC without an MII-based PHY (i.e. an older LinkSys
LNE100TX).
This commit is contained in:
Bill Paul 1999-04-12 21:13:12 +00:00
parent 980e28f69a
commit d90ce12302
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45631

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_pn.c,v 1.47 1999/04/12 02:44:28 wpaul Exp $
* $Id: if_pn.c,v 1.48 1999/04/12 21:08:27 wpaul Exp $
*/
/*
@ -97,7 +97,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_pn.c,v 1.47 1999/04/12 02:44:28 wpaul Exp $";
"$Id: if_pn.c,v 1.48 1999/04/12 21:08:27 wpaul Exp $";
#endif
/*
@ -874,12 +874,14 @@ static void pn_setcfg(sc, media)
if (IFM_SUBTYPE(media) == IFM_100_TX) {
PN_CLRBIT(sc, PN_NETCFG, PN_NETCFG_SPEEDSEL);
CSR_WRITE_4(sc, PN_GEN, PN_GEN_MUSTBEONE|
PN_GEN_SPEEDSEL|PN_GEN_100TX_LOOP);
if (sc->pn_pinfo == NULL)
CSR_WRITE_4(sc, PN_GEN, PN_GEN_MUSTBEONE|
PN_GEN_SPEEDSEL|PN_GEN_100TX_LOOP);
} else {
PN_SETBIT(sc, PN_NETCFG, PN_NETCFG_SPEEDSEL);
CSR_WRITE_4(sc, PN_GEN,
PN_GEN_MUSTBEONE|PN_GEN_100TX_LOOP);
if (sc->pn_pinfo == NULL)
CSR_WRITE_4(sc, PN_GEN,
PN_GEN_MUSTBEONE|PN_GEN_100TX_LOOP);
}
if ((media & IFM_GMASK) == IFM_FDX)