Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jul 2010 23:34:58 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r210152 - head/sys/dev/bge
Message-ID:  <201007152334.o6FNYwq6035060@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007152334.o6FNYwq6035060>