Date: Thu, 25 May 2000 03:20:03 -0700 (PDT) From: yab@astem.or.jp To: freebsd-bugs@FreeBSD.org Subject: Re: kern/18526: mx does not receive ethernet broadcast packet Message-ID: <200005251020.DAA39909@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/18526; it has been noted by GNATS.
From: yab@astem.or.jp
To: freebsd-gnats-submit@FreeBSD.org, yab@astem.or.jp
Cc:
Subject: Re: kern/18526: mx does not receive ethernet broadcast packet
Date: Thu, 25 May 2000 19:14:49 +0900
I ported 4.0 dc driver fix to 3.0 mx driver.
--- if_mx.c 2000/05/25 09:08:27 1.1
+++ if_mx.c 2000/05/25 10:05:28
@@ -110,6 +110,8 @@
{ CP_VENDORID, CP_DEVICEID_98713,
"Compex RL100-TX 10/100BaseTX" },
{ MX_VENDORID, MX_DEVICEID_987x5,
+ "Macronix 98715AEC 10/100BaseTX" },
+ { MX_VENDORID, MX_DEVICEID_987x5,
"Macronix 98715/98715A 10/100BaseTX" },
{ MX_VENDORID, MX_DEVICEID_987x5,
"Macronix 98725 10/100BaseTX" },
@@ -586,7 +588,8 @@
}
/* The hash table on the PNIC II is only 128 bits wide. */
- if (sc->mx_info->mx_vid == PN_VENDORID)
+ if (sc->mx_info->mx_vid == PN_VENDORID
+ || sc->mx_type == MX_TYPE_98715AEC)
return (crc & ((1 << MX_BITS_PNIC_II) - 1));
return (crc & ((1 << MX_BITS) - 1));
@@ -1200,9 +1203,11 @@
if (t->mx_did == CP_DEVICEID_98713 &&
rev >= MX_REVISION_98713A)
t++;
- if (t->mx_did == MX_DEVICEID_987x5 &&
- rev >= MX_REVISION_98725)
- t++;
+ if (t->mx_did == MX_DEVICEID_987x5)
+ if (rev != MX_REVISION_98715AEC)
+ t++;
+ else if (rev >= MX_REVISION_98725)
+ t++;
return(t);
}
t++;
@@ -1359,7 +1364,9 @@
sc->mx_type = MX_TYPE_98713;
else if (pci_id == MX_DEVICEID_98713 && revision >=
MX_REVISION_98713A)
sc->mx_type = MX_TYPE_98713A;
- else
+ else if (revision == MX_REVISION_98715AEC)
+ sc->mx_type = MX_TYPE_98715AEC;
+ else
sc->mx_type = MX_TYPE_987x5;
/* Save the cache line size. */
--- if_mxreg.h 2000/05/25 09:19:59 1.1
+++ if_mxreg.h 2000/05/25 09:22:07
@@ -69,6 +69,7 @@
#define MX_REVISION_98713 0x00
#define MX_REVISION_98713A 0x10
#define MX_REVISION_98715 0x20
+#define MX_REVISION_98715AEC 0x25
#define MX_REVISION_98725 0x30
/*
@@ -83,6 +84,7 @@
#define MX_TYPE_98713 0x1
#define MX_TYPE_98713A 0x2
#define MX_TYPE_987x5 0x3
+#define MX_TYPE_98715AEC 0xB /* used in 4.0 driver */
/*
* Bus control bits.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005251020.DAA39909>
