Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/mii new register.



details:   https://anonhg.NetBSD.org/src/rev/f474a49ffc8b
branches:  trunk
changeset: 329173:f474a49ffc8b
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 13 02:53:54 2014 +0000

description:
new register.

diffstat:

 sys/dev/mii/makphyreg.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 8b3f5027669b -r f474a49ffc8b sys/dev/mii/makphyreg.h
--- a/sys/dev/mii/makphyreg.h   Tue May 13 02:11:26 2014 +0000
+++ b/sys/dev/mii/makphyreg.h   Tue May 13 02:53:54 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: makphyreg.h,v 1.5 2009/04/19 11:17:46 msaitoh Exp $    */
+/*     $NetBSD: makphyreg.h,v 1.6 2014/05/13 02:53:54 christos Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -94,6 +94,8 @@
 
 #define        MII_MAKPHY_REC          0x15    /* receive error counter */
 
+#define        MII_MAKPHY_EADR         0x16    /* extended address register */
+
 #define        MII_MAKPHY_LEDCTRL      0x18    /* LED control */
 #define        LEDCTRL_LED_TX          (1U << 0)   /* 1 = activ/link, 0 = xmit */
 #define        LEDCTRL_LED_RX          (1U << 1)   /* 1 = activ/link, 1 = recv */
@@ -103,4 +105,12 @@
 #define        LEDCTRL_PULSE_STRCH(x)  ((x) << 12)
 #define        LEDCTRL_DISABLE         (1U << 15)  /* disable LED */
 
+#define MII_MAKPHY_ESSR                0x1b    /* Extended PHY specific status */
+#define ESSR_FIBER_LINK                0x2000
+#define ESSR_GMII_COPPER       0x000f
+#define ESSR_GMII_FIBER                0x0007
+#define ESSR_TBI_COPPER                0x000d
+#define ESSR_TBI_FIBER         0x0005
+
+
 #endif /* _DEV_MII_MAKPHYREG_H_ */



Home | Main Index | Thread Index | Old Index