diff options
author | mbr <mbr@FreeBSD.org> | 2003-02-05 21:21:26 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-02-05 21:21:26 +0000 |
commit | 1be933f3291a1b440b0abcef21625ac310a3bcad (patch) | |
tree | 845847ee8052b600943ac1e46087984cb24a8497 /sys/pci | |
parent | 82db7fddb82ae93d1040280d319f8ae467726144 (diff) | |
download | FreeBSD-src-1be933f3291a1b440b0abcef21625ac310a3bcad.zip FreeBSD-src-1be933f3291a1b440b0abcef21625ac310a3bcad.tar.gz |
Move the DC_SETBIT to the attach function.
Reviewed by: phk
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_dc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 2aa4e33..23a2243 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -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. */ |