Move the DC_SETBIT to the attach function.

Reviewed by:		phk
This commit is contained in:
mbr 2003-02-05 21:21:26 +00:00
parent 82db7fddb8
commit 1be933f329
2 changed files with 14 additions and 6 deletions

View File

@ -1557,9 +1557,6 @@ dc_setcfg(sc, media)
}
}
if (DC_IS_ADMTEK(sc))
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
if ((media & IFM_GMASK) == IFM_FDX) {
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_FULLDUPLEX);
if (sc->dc_pmode == DC_PMODE_SYM && DC_IS_PNIC(sc))
@ -2245,6 +2242,13 @@ dc_attach(dev)
DELAY(10);
}
if (DC_IS_ADMTEK(sc)) {
/*
* Set automatic TX underrun recovery for the ADMtek chips
*/
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
}
/*
* Tell the upper layer(s) we support long frames.
*/

View File

@ -1557,9 +1557,6 @@ dc_setcfg(sc, media)
}
}
if (DC_IS_ADMTEK(sc))
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
if ((media & IFM_GMASK) == IFM_FDX) {
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_FULLDUPLEX);
if (sc->dc_pmode == DC_PMODE_SYM && DC_IS_PNIC(sc))
@ -2245,6 +2242,13 @@ dc_attach(dev)
DELAY(10);
}
if (DC_IS_ADMTEK(sc)) {
/*
* Set automatic TX underrun recovery for the ADMtek chips
*/
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
}
/*
* Tell the upper layer(s) we support long frames.
*/