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

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Fri Jan 6 17:51:54 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/4e8fd22d4a56
changeset: 265:4e8fd22d4a56
user:      ray at terran.dlink.ua
date:      Fri Jan 06 19:51:58 2012 +0200
description:
No brain, no pain.
So if we not have real PHY's on MDIO bus, we don't attach it.
Only hinted childs attached.

diffstat:

 head/sys/mips/atheros/if_argevar.h |  14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diffs (27 lines):

diff -r 7c6e7a9c1e7a -r 4e8fd22d4a56 head/sys/mips/atheros/if_argevar.h
--- a/head/sys/mips/atheros/if_argevar.h	Fri Jan 06 14:02:44 2012 +0200
+++ b/head/sys/mips/atheros/if_argevar.h	Fri Jan 06 19:51:58 2012 +0200
@@ -69,21 +69,11 @@
 #define ARGE_CLEAR_BITS(sc, reg, bits)	\
 	ARGE_WRITE(sc, reg, ARGE_READ(sc, (reg)) & ~(bits))
 
-/*
- * MII registers access macros
- * AR7240 control single MII on both arge
- * ??? other - one MII per MAC.
- */
 #define ARGE_MII_READ(sc, reg) \
-        *((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((AR71XX_MII_BASE +	\
-        ((ar71xx_soc == AR71XX_SOC_AR7240)?0:				\
-        (sc->arge_mac_unit * 0x01000000)) + reg)))
+	    ARGE_READ((sc), (reg))
 
 #define ARGE_MII_WRITE(sc, reg, val) \
-        *((volatile uint32_t *)MIPS_PHYS_TO_KSEG1((AR71XX_MII_BASE + 	\
-        ((ar71xx_soc == AR71XX_SOC_AR7240)?0:				\
-        (sc->arge_mac_unit * 0x01000000)) + reg))) = (val)
-
+	    ARGE_WRITE((sc), (reg), (val))
 
 #define ARGE_DESC_EMPTY		(1 << 31)
 #define ARGE_DESC_MORE		(1 << 24)


More information about the Zrouter-src-freebsd mailing list