[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Support for MII SEEQ 84220 [patch]
- To: tech@openbsd.org
- Subject: Support for MII SEEQ 84220 [patch]
- From: Henning Brauer <lists-openbsdtech@bsws.de>
- Date: Wed, 30 May 2001 23:26:58 +0200
- Content-Disposition: inline
- Mail-Followup-To: tech@openbsd.org
Hi List,
looks like a have an affinity to network cards with unusual PHYs... - well,
here's the patch for SEEQ 84220. It's trivial, the IDs are already in miidevs.
--- sqphy.c.orig Wed May 30 23:15:40 2001
+++ sqphy.c Wed May 30 23:25:06 2001
@@ -116,6 +116,10 @@
MII_MODEL(ma->mii_id2) == MII_MODEL_xxSEEQ_80220)
return (10);
+ if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxSEEQ &&
+ MII_MODEL(ma->mii_id2) == MII_MODEL_xxSEEQ_84220)
+ return (10);
+
return (0);
}
@@ -128,8 +132,17 @@
struct mii_attach_args *ma = aux;
struct mii_data *mii = ma->mii_data;
- printf(": %s, rev. %d\n", MII_STR_xxSEEQ_80220,
- MII_REV(ma->mii_id2));
+ if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxSEEQ &&
+ MII_MODEL(ma->mii_id2) == MII_MODEL_xxSEEQ_80220)
+ printf(": %s, rev. %d\n", MII_STR_xxSEEQ_80220,
+ MII_REV(ma->mii_id2));
+
+
+ if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxSEEQ &&
+ MII_MODEL(ma->mii_id2) == MII_MODEL_xxSEEQ_84220)
+ printf(": %s, rev. %d\n", MII_STR_xxSEEQ_84220,
+ MII_REV(ma->mii_id2));
+
sc->mii_inst = mii->mii_instance;
sc->mii_phy = ma->mii_phyno;
runs fine here. Card is "CompuShack Fastline II", using an intel (ex
DEC) 21143.
Greetings
Henning
--
* Henning Brauer, hostmaster@bsws.de, http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)