Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/arch/amiga/dev Pull up following revision(s) (request...
details: https://anonhg.NetBSD.org/src/rev/2a332b54b879
branches: netbsd-6
changeset: 776351:2a332b54b879
user: riz <riz%NetBSD.org@localhost>
date: Thu Jun 06 02:52:28 2013 +0000
description:
Pull up following revision(s) (requested by rkujawa in ticket #892):
sys/arch/amiga/dev/if_ne_zbus.c: revision 1.15
Workaround for the fake X-Surf autoconfig entry, created by the Deneb =
firmware v11.
diffstat:
sys/arch/amiga/dev/if_ne_zbus.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 21e15f6a9c23 -r 2a332b54b879 sys/arch/amiga/dev/if_ne_zbus.c
--- a/sys/arch/amiga/dev/if_ne_zbus.c Mon Jun 03 02:47:23 2013 +0000
+++ b/sys/arch/amiga/dev/if_ne_zbus.c Thu Jun 06 02:52:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ne_zbus.c,v 1.14 2011/07/19 15:55:27 dyoung Exp $ */
+/* $NetBSD: if_ne_zbus.c,v 1.14.8.1 2013/06/06 02:52:28 riz Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ne_zbus.c,v 1.14 2011/07/19 15:55:27 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ne_zbus.c,v 1.14.8.1 2013/06/06 02:52:28 riz Exp $");
/*
* Thanks to Village Tronic for giving me a card.
@@ -86,6 +86,13 @@
#define NE_ARIADNE_II_ASICBASE 0x0310 /* 0x0620 */
#define NE_ARIADNE_II_ASICSIZE 0x10
+/*
+ * E3B Deneb firmware v11 creates fake X-Surf autoconfig entry.
+ * Do not attach ne driver to this fake card, otherwise kernel panic
+ * may occur.
+ */
+#define DENEB_XSURF_SERNO 0xC0FFEE01 /* Serial of the fake card */
+
int
ne_zbus_match(device_t parent, cfdata_t cf, void *aux)
{
@@ -96,8 +103,10 @@
return (1);
/* X-surf ethernet card */
- if (zap->manid == 4626 && zap->prodid == 23)
- return (1);
+ if (zap->manid == 4626 && zap->prodid == 23) {
+ if (zap->serno != DENEB_XSURF_SERNO)
+ return (1);
+ }
return (0);
}
Home |
Main Index |
Thread Index |
Old Index