Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Fix "+ 0x100" instead of "| 0x100" in the case ID...



details:   https://anonhg.NetBSD.org/src/rev/f17152b528a6
branches:  trunk
changeset: 749421:f17152b528a6
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sun Nov 29 10:17:01 2009 +0000

description:
Fix "+ 0x100" instead of "| 0x100" in the case ID 0x11[5678]A.

diffstat:

 sys/dev/ic/lan9118.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b651f3162cda -r f17152b528a6 sys/dev/ic/lan9118.c
--- a/sys/dev/ic/lan9118.c      Sun Nov 29 10:15:07 2009 +0000
+++ b/sys/dev/ic/lan9118.c      Sun Nov 29 10:17:01 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lan9118.c,v 1.8 2009/11/29 10:06:19 kiyohara Exp $     */
+/*     $NetBSD: lan9118.c,v 1.9 2009/11/29 10:17:01 kiyohara Exp $     */
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.8 2009/11/29 10:06:19 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lan9118.c,v 1.9 2009/11/29 10:17:01 kiyohara Exp $");
 
 /*
  * The LAN9118 Family
@@ -179,7 +179,7 @@
        sc->sc_rev = LAN9118_ID_REV_REV(val);
 
 #define LAN9xxx_ID(id) ((id) >= 0x9000 ? (id) & 0xfff : \
-                           ((id) >= 0x1000 ? ((id) >> 4) | 0x100 : (id)))
+                           ((id) >= 0x1000 ? ((id) >> 4) + 0x100 : (id)))
 
        aprint_normal(": SMSC LAN9%03x Rev %d\n",
            LAN9xxx_ID(sc->sc_id), sc->sc_rev);



Home | Main Index | Thread Index | Old Index