Author: yongari
Date: Thu Jul 15 23:34:58 2010
New Revision: 210152
URL: http://svn.freebsd.org/changeset/base/210152

Log:
  Use Miscellaneous Configuration Register bit definition instead of
  magic number.

Modified:
  head/sys/dev/bge/if_bge.c
  head/sys/dev/bge/if_bgereg.h

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c   Thu Jul 15 23:32:53 2010        (r210151)
+++ head/sys/dev/bge/if_bge.c   Thu Jul 15 23:34:58 2010        (r210152)
@@ -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);

Modified: head/sys/dev/bge/if_bgereg.h
==============================================================================
--- head/sys/dev/bge/if_bgereg.h        Thu Jul 15 23:32:53 2010        
(r210151)
+++ head/sys/dev/bge/if_bgereg.h        Thu Jul 15 23:34:58 2010        
(r210152)
@@ -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)
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to