summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorsemenu <semenu@FreeBSD.org>2000-06-21 19:26:01 +0000
committersemenu <semenu@FreeBSD.org>2000-06-21 19:26:01 +0000
commit700071ef27cb4aa07c9ef35704b461fb41a77855 (patch)
tree11338cc13ed0c51b32d8556e65883ed6c2efcfd6 /sys/dev/mii
parentefbb3f90a51815345b46716cd7f233318a2b14bc (diff)
downloadFreeBSD-src-700071ef27cb4aa07c9ef35704b461fb41a77855.zip
FreeBSD-src-700071ef27cb4aa07c9ef35704b461fb41a77855.tar.gz
Added Altima Communications OUI and their AC101 10/100
media interface to the list of known chips. miidevs.h regenerated also.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/miidevs5
-rw-r--r--sys/dev/mii/miidevs.h6
-rw-r--r--sys/dev/mii/nsphy.c3
3 files changed, 14 insertions, 0 deletions
diff --git a/sys/dev/mii/miidevs b/sys/dev/mii/miidevs
index 917050c..d6fac5a 100644
--- a/sys/dev/mii/miidevs
+++ b/sys/dev/mii/miidevs
@@ -49,6 +49,7 @@ $FreeBSD$
* mangled accordingly to compensate.
*/
+oui ALTIMA 0x0010a9 Altima Communications
oui AMD 0x00001a Advanced Micro Devices
oui BROADCOM 0x001018 Broadcom Corporation
oui DAVICOM 0x00606e Davicom Semiconductor
@@ -67,6 +68,7 @@ oui xxAMD 0x00606e Advanced Micro Devices
/* some vendors have the bits swapped within bytes
(ie, ordered as on the wire) */
+oui xxALTIMA 0x000895 Altima Communications
oui xxBROADCOM 0x000818 Broadcom Corporation
oui xxICS 0x00057d Integrated Circuit Systems
oui xxSEEQ 0x0005be Seeq
@@ -86,6 +88,9 @@ oui xxDAVICOM 0x006040 Davicom Semiconductor
* List of known models. Grouped by oui.
*/
+/* Altima Communications PHYs */
+model xxALTIMA AC101 0x0021 AC101 10/100 media interface
+
/* Advanced Micro Devices PHYs */
model xxAMD 79C873 0x0000 Am79C873 10/100 media interface
model AMD 79c973phy 0x0036 Am79c973 internal PHY
diff --git a/sys/dev/mii/miidevs.h b/sys/dev/mii/miidevs.h
index 1fde5dd..671f4ee 100644
--- a/sys/dev/mii/miidevs.h
+++ b/sys/dev/mii/miidevs.h
@@ -56,6 +56,7 @@
* mangled accordingly to compensate.
*/
+#define MII_OUI_ALTIMA 0x0010a9 /* Altima Communications */
#define MII_OUI_AMD 0x00001a /* Advanced Micro Devices */
#define MII_OUI_BROADCOM 0x001018 /* Broadcom Corporation */
#define MII_OUI_DAVICOM 0x00606e /* Davicom Semiconductor */
@@ -74,6 +75,7 @@
/* some vendors have the bits swapped within bytes
(ie, ordered as on the wire) */
+#define MII_OUI_xxALTIMA 0x000895 /* Altima Communications */
#define MII_OUI_xxBROADCOM 0x000818 /* Broadcom Corporation */
#define MII_OUI_xxICS 0x00057d /* Integrated Circuit Systems */
#define MII_OUI_xxSEEQ 0x0005be /* Seeq */
@@ -93,6 +95,10 @@
* List of known models. Grouped by oui.
*/
+/* Altima Communications PHYs */
+#define MII_MODEL_xxALTIMA_AC101 0x0021
+#define MII_STR_xxALTIMA_AC101 "AC101 10/100 media interface"
+
/* Advanced Micro Devices PHYs */
#define MII_MODEL_xxAMD_79C873 0x0000
#define MII_STR_xxAMD_79C873 "Am79C873 10/100 media interface"
diff --git a/sys/dev/mii/nsphy.c b/sys/dev/mii/nsphy.c
index 8de91c7..aee90da 100644
--- a/sys/dev/mii/nsphy.c
+++ b/sys/dev/mii/nsphy.c
@@ -134,6 +134,9 @@ static int nsphy_probe(dev)
} else if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_QUALSEMI &&
MII_MODEL(ma->mii_id2) == MII_MODEL_QUALSEMI_QS6612) {
device_set_desc(dev, MII_STR_QUALSEMI_QS6612);
+ } else if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxALTIMA &&
+ MII_MODEL(ma->mii_id2) == MII_MODEL_xxALTIMA_AC101) {
+ device_set_desc(dev, MII_STR_xxALTIMA_AC101);
} else
return (ENXIO);
OpenPOWER on IntegriCloud