Module Name: src
Committed By: kiyohara
Date: Sun Nov 29 10:17:01 UTC 2009
Modified Files:
src/sys/dev/ic: lan9118.c
Log Message:
Fix "+ 0x100" instead of "| 0x100" in the case ID 0x11[5678]A.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/lan9118.c
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/ic/lan9118.c
diff -u src/sys/dev/ic/lan9118.c:1.8 src/sys/dev/ic/lan9118.c:1.9
--- src/sys/dev/ic/lan9118.c:1.8 Sun Nov 29 10:06:19 2009
+++ src/sys/dev/ic/lan9118.c Sun Nov 29 10:17:01 2009
@@ -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);