summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-08-14 17:23:33 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-08-14 17:23:33 +0000
commit4bfc264124521173231556c250c0588d64a95543 (patch)
tree9cb3e3777850d873d051f1873f224faae0227dce /sys/dev/pci/if_em.c
parentfe99b5b16ad14a829d2f6cefac7666ca72a644b9 (diff)
replace a incorrect number with a proper define. this is a no-op change
since E1000_FDX_COLLISION_DISTANCE and E1000_HDX_COLLISION_DISTANCE use the same values. From glebius@FreeBSD
Diffstat (limited to 'sys/dev/pci/if_em.c')
-rw-r--r--sys/dev/pci/if_em.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c
index 5a227687256..b3a87976ec2 100644
--- a/sys/dev/pci/if_em.c
+++ b/sys/dev/pci/if_em.c
@@ -31,7 +31,7 @@ POSSIBILITY OF SUCH DAMAGE.
***************************************************************************/
-/* $OpenBSD: if_em.c,v 1.144 2006/08/09 17:12:58 brad Exp $ */
+/* $OpenBSD: if_em.c,v 1.145 2006/08/14 17:23:32 brad Exp $ */
/* $FreeBSD: if_em.c,v 1.46 2004/09/29 18:28:28 mlaier Exp $ */
#include <dev/pci/if_em.h>
@@ -1893,7 +1893,7 @@ em_initialize_transmit_unit(struct em_softc *sc)
(E1000_COLLISION_THRESHOLD << E1000_CT_SHIFT);
if (sc->hw.mac_type >= em_82571)
reg_tctl |= E1000_TCTL_MULR;
- if (sc->link_duplex == 1)
+ if (sc->link_duplex == FULL_DUPLEX)
reg_tctl |= E1000_FDX_COLLISION_DISTANCE << E1000_COLD_SHIFT;
else
reg_tctl |= E1000_HDX_COLLISION_DISTANCE << E1000_COLD_SHIFT;