diff options
author | 2006-02-09 03:31:44 +0000 | |
---|---|---|
committer | 2006-02-09 03:31:44 +0000 | |
commit | a3a4e63a0325be71c9ba2e7fe7779404562c7545 (patch) | |
tree | 63a9f820e590e7a88dad3ff8fc2cc3a8e25d4ebf | |
parent | adjust timeouts a bit. (diff) | |
download | wireguard-openbsd-a3a4e63a0325be71c9ba2e7fe7779404562c7545.tar.xz wireguard-openbsd-a3a4e63a0325be71c9ba2e7fe7779404562c7545.zip |
cleaning.
-rw-r--r-- | sys/dev/pci/if_bge.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 5d946e28265..27413c4ca8f 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.130 2006/02/09 01:17:24 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.131 2006/02/09 03:31:44 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -631,17 +631,15 @@ bge_miibus_statchg(struct device *dev) struct mii_data *mii = &sc->bge_mii; BGE_CLRBIT(sc, BGE_MAC_MODE, BGE_MACMODE_PORTMODE); - if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) { + if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) BGE_SETBIT(sc, BGE_MAC_MODE, BGE_PORTMODE_GMII); - } else { + else BGE_SETBIT(sc, BGE_MAC_MODE, BGE_PORTMODE_MII); - } - if ((mii->mii_media_active & IFM_GMASK) == IFM_FDX) { + if ((mii->mii_media_active & IFM_GMASK) == IFM_FDX) BGE_CLRBIT(sc, BGE_MAC_MODE, BGE_MACMODE_HALF_DUPLEX); - } else { + else BGE_SETBIT(sc, BGE_MAC_MODE, BGE_MACMODE_HALF_DUPLEX); - } } /* |