Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Define MII_ADDRBITS and MII_ADDRMASK.



details:   https://anonhg.NetBSD.org/src/rev/626609153c89
branches:  trunk
changeset: 348592:626609153c89
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Oct 28 05:47:16 2016 +0000

description:
Define MII_ADDRBITS and MII_ADDRMASK.

diffstat:

 sys/dev/mii/mii.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 046c6712e1e1 -r 626609153c89 sys/dev/mii/mii.h
--- a/sys/dev/mii/mii.h Fri Oct 28 05:29:11 2016 +0000
+++ b/sys/dev/mii/mii.h Fri Oct 28 05:47:16 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii.h,v 1.19 2015/07/21 02:04:24 msaitoh Exp $ */
+/*     $NetBSD: mii.h,v 1.20 2016/10/28 05:47:16 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1997 Manuel Bouyer.  All rights reserved.
@@ -35,6 +35,8 @@
  */
 
 #define        MII_NPHY        32      /* max # of PHYs per MII */
+#define        MII_ADDRBITS    5       /* Register address bits (0x00..0x1f) */
+#define        MII_ADDRMASK    0x1f    /* Address mask */
 
 /*
  * MII commands, used if a device must drive the MII lines



Home | Main Index | Thread Index | Old Index