[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Thu Dec 15 12:06:43 UTC 2011


details:   http://zrouter.org/hg/FreeBSD/head//rev/5eb9252afab0
changeset: 251:5eb9252afab0
user:      ray at terran.dlink.ua
date:      Thu Dec 15 14:07:15 2011 +0200
description:
fix ar724x_chip, revert move from numeric speed to mediatime

diffstat:

 head/sys/mips/atheros/ar724x_chip.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (27 lines):

diff -r 330d491bc372 -r 5eb9252afab0 head/sys/mips/atheros/ar724x_chip.c
--- a/head/sys/mips/atheros/ar724x_chip.c	Thu Dec 15 13:42:00 2011 +0200
+++ b/head/sys/mips/atheros/ar724x_chip.c	Thu Dec 15 14:07:15 2011 +0200
@@ -143,18 +143,18 @@
 		}
 	}
 
-	switch(IFM_SUBTYPE(speed)) {
-	case IFM_10_T:
+	switch(speed) {
+	case 10:
 		pll = PLL_ETH_INT_CLK_10;
 		break;
-	case IFM_100_TX:
+	case 100:
 		pll = PLL_ETH_INT_CLK_100;
 		break;
-	case IFM_1000_T:
+	case 1000:
 		pll = PLL_ETH_INT_CLK_1000;
 		break;
 	default:
-		printf("ar71xx_chip_set_pll_ge%d: invalid media %#x\n", unit, speed);
+		printf("ar71xx_chip_set_pll_ge%d: invalid speed %d\n", unit, speed);
 		return;
 	}
 


More information about the Zrouter-src-freebsd mailing list