Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Change page of the OEM_BITS register back to 0 a...



details:   https://anonhg.NetBSD.org/src/rev/2523e7827e14
branches:  trunk
changeset: 347868:2523e7827e14
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Sep 20 09:24:12 2016 +0000

description:
Change page of the OEM_BITS register back to 0 again. The document
(Intel Ethernet Connection I219 Datasheet) says its in page 0.
FreeBSD/Linux code access page 768. WHY?

This change will fix a bug that the LPLU function isn't disabled.

 See: http://mail-index.netbsd.org/source-changes-d/2016/09/19/msg008720.html

diffstat:

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

diffs (18 lines):

diff -r 89d1e7c180b5 -r 2523e7827e14 sys/dev/mii/inbmphyreg.h
--- a/sys/dev/mii/inbmphyreg.h  Tue Sep 20 08:56:34 2016 +0000
+++ b/sys/dev/mii/inbmphyreg.h  Tue Sep 20 09:24:12 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inbmphyreg.h,v 1.4 2016/09/09 06:34:10 msaitoh Exp $   */
+/*     $NetBSD: inbmphyreg.h,v 1.5 2016/09/20 09:24:12 msaitoh Exp $   */
 /*******************************************************************************
 Copyright (c) 2001-2005, Intel Corporation 
 All rights reserved.
@@ -87,7 +87,7 @@
 #define HV_INTC_FC_PAGE_START  768
 #define        BM_PORT_CTRL_PAGE       769
 
-#define HV_OEM_BITS            BME1000_REG(768, 25)
+#define HV_OEM_BITS            BME1000_REG(0, 25)
 #define HV_OEM_BITS_LPLU       (1 << 2)
 #define HV_OEM_BITS_A1KDIS     (1 << 6)
 #define HV_OEM_BITS_ANEGNOW    (1 << 10)



Home | Main Index | Thread Index | Old Index