diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-08-27 21:06:17 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-08-27 21:06:17 +0000 |
commit | a0f43a3590ae069bc43846d13b3bbbe17488122f (patch) | |
tree | bcc98fa88d9175481a2b7a85610daa5c89abe526 /sys/dev/mii/brgphy.c | |
parent | fbae5ca93f1391c422f92f1634389c7bf9041962 (diff) |
pack several boolean fields into the existing bge_flags field.
Diffstat (limited to 'sys/dev/mii/brgphy.c')
-rw-r--r-- | sys/dev/mii/brgphy.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index 7151fd9a5a2..fe68b9fdc68 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: brgphy.c,v 1.50 2006/07/23 06:34:03 brad Exp $ */ +/* $OpenBSD: brgphy.c,v 1.51 2006/08/27 21:06:16 brad Exp $ */ /* * Copyright (c) 2000 @@ -339,6 +339,8 @@ setit: break; } } + + /* Callback if something changed. */ mii_phy_update(sc, cmd); return (0); @@ -482,7 +484,7 @@ brgphy_reset(struct mii_softc *sc) PHY_WRITE(sc, BRGPHY_MII_AUXCTL, val | (1 << 15) | (1 << 4)); /* Enable Link LED on Dell boxes */ - if (bge_sc->bge_no_3_led) { + if (bge_sc->bge_flags & BGE_NO3LED) { PHY_WRITE(sc, BRGPHY_MII_PHY_EXTCTL, PHY_READ(sc, BRGPHY_MII_PHY_EXTCTL) & ~BRGPHY_PHY_EXTCTL_3_LED); |