diff options
author | yongari <yongari@FreeBSD.org> | 2010-07-15 23:34:58 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-07-15 23:34:58 +0000 |
commit | 72cddfd851f497bdcc38a6f0ef9684a626b4d16d (patch) | |
tree | c6b5916def755489ed0d44a98085b7f9c30a70b5 /sys/dev/bge | |
parent | 699b4feb6f8e1958ec4ce2c29a2a791f89924d17 (diff) | |
download | FreeBSD-src-72cddfd851f497bdcc38a6f0ef9684a626b4d16d.zip FreeBSD-src-72cddfd851f497bdcc38a6f0ef9684a626b4d16d.tar.gz |
Use Miscellaneous Configuration Register bit definition instead of
magic number.
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 2 | ||||
-rw-r--r-- | sys/dev/bge/if_bgereg.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 6741c96..a473919 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -3117,7 +3117,7 @@ bge_reset(struct bge_softc *sc) * powered up in D0 uninitialized. */ if (BGE_IS_5705_PLUS(sc)) - reset |= 0x04000000; + reset |= BGE_MISCCFG_GPHY_PD_OVERRIDE; /* Issue global reset */ write_op(sc, BGE_MISC_CFG, reset); diff --git a/sys/dev/bge/if_bgereg.h b/sys/dev/bge/if_bgereg.h index 4e75149..6664d5b 100644 --- a/sys/dev/bge/if_bgereg.h +++ b/sys/dev/bge/if_bgereg.h @@ -1823,6 +1823,7 @@ #define BGE_MISCCFG_BOARD_ID_5788 0x00010000 #define BGE_MISCCFG_BOARD_ID_5788M 0x00018000 #define BGE_MISCCFG_EPHY_IDDQ 0x00200000 +#define BGE_MISCCFG_GPHY_PD_OVERRIDE 0x04000000 #define BGE_32BITTIME_66MHZ (0x41 << 1) |