svn commit: r202822 - head/sys/dev/bge

Pyun YongHyeon yongari at FreeBSD.org
Fri Jan 22 18:46:37 UTC 2010


Author: yongari
Date: Fri Jan 22 18:46:37 2010
New Revision: 202822
URL: http://svn.freebsd.org/changeset/base/202822

Log:
  Use new handshake command for BCM5750 or new controllers.

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

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Fri Jan 22 18:35:50 2010	(r202821)
+++ head/sys/dev/bge/if_bge.c	Fri Jan 22 18:46:37 2010	(r202822)
@@ -2744,9 +2744,8 @@ bge_attach(device_t dev)
 		    & BGE_HWCFG_ASF) {
 			sc->bge_asf_mode |= ASF_ENABLE;
 			sc->bge_asf_mode |= ASF_STACKUP;
-			if (sc->bge_asicrev == BGE_ASICREV_BCM5750) {
+			if (BGE_IS_575X_PLUS(sc))
 				sc->bge_asf_mode |= ASF_NEW_HANDSHAKE;
-			}
 		}
 	}
 


More information about the svn-src-all mailing list