diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2001-05-14 17:29:12 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2001-05-14 17:29:12 +0000 |
commit | 76275009b6d534e2489f9f0167a9ee191050ce24 (patch) | |
tree | d42959104ea8f3d57a7ef7b35e8e68eaa9c330bc /sys/dev | |
parent | c4107c6ce9713c0727131c0dae63e0e99158dba0 (diff) |
From PR 1820 - initialize builin CSU/DSU card properly
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_lmc_media.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sys/dev/pci/if_lmc_media.c b/sys/dev/pci/if_lmc_media.c index 1b1e252e2c8..f3a07a11bd6 100644 --- a/sys/dev/pci/if_lmc_media.c +++ b/sys/dev/pci/if_lmc_media.c @@ -1,5 +1,5 @@ -/* $OpenBSD: if_lmc_media.c,v 1.4 2000/02/06 17:57:56 chris Exp $ */ -/* $Id: if_lmc_media.c,v 1.4 2000/02/06 17:57:56 chris Exp $ */ +/* $OpenBSD: if_lmc_media.c,v 1.5 2001/05/14 17:29:11 chris Exp $ */ +/* $Id: if_lmc_media.c,v 1.5 2001/05/14 17:29:11 chris Exp $ */ /*- * Copyright (c) 1997-1999 LAN Media Corporation (LMC) @@ -894,6 +894,10 @@ static void sc->ictl.cardtype = LMC_CTL_CARDTYPE_LMC1200; mii16 = lmc_mii_readreg(sc, 0, 16); + mii16 &= ~LMC_MII16_T1_XOE; + lmc_mii_writereg (sc, 0, 16, mii16); + sc->lmc_miireg16 = mii16; + /* reset 8370 */ mii16 &= ~LMC_MII16_T1_RST; lmc_mii_writereg(sc, 0, 16, mii16 | LMC_MII16_T1_RST); @@ -943,9 +947,10 @@ static void { lmc_t1_write(sc, 0x0E0+i, 0x0D); /* SBCn - sys bus per-channel ctl */ } - /* XXX - mii16 |= LMC_MII16_T1_XOE; lmc_mii_writereg(sc, 0, 16, mii16); - sc->lmc_miireg16 = mii16; */ + + mii16 |= LMC_MII16_T1_XOE; + lmc_mii_writereg(sc, 0, 16, mii16); + sc->lmc_miireg16 = mii16; } static void lmc_t1_default(lmc_softc_t * const sc) |