Module Name: src
Committed By: msaitoh
Date: Fri Oct 28 05:47:17 UTC 2016
Modified Files:
src/sys/dev/mii: mii.h
Log Message:
Define MII_ADDRBITS and MII_ADDRMASK.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/mii/mii.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/mii/mii.h
diff -u src/sys/dev/mii/mii.h:1.19 src/sys/dev/mii/mii.h:1.20
--- src/sys/dev/mii/mii.h:1.19 Tue Jul 21 02:04:24 2015
+++ src/sys/dev/mii/mii.h Fri Oct 28 05:47:16 2016
@@ -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