summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasmodai <asmodai@FreeBSD.org>2000-06-11 11:54:52 +0000
committerasmodai <asmodai@FreeBSD.org>2000-06-11 11:54:52 +0000
commite6fce1adbbb93c8f9080e4071bad434582250994 (patch)
tree9025d213a03a90282d0bddf2bed7095447b8d1a9
parentd6f5631720a1dee82d7e3f72f32e741d01cdac56 (diff)
downloadFreeBSD-src-e6fce1adbbb93c8f9080e4071bad434582250994.zip
FreeBSD-src-e6fce1adbbb93c8f9080e4071bad434582250994.tar.gz
Add support for the Accton EN1217.
PR: 18735 Submitted by: Adoal Xu <adoal@iname.com>
-rw-r--r--sys/dev/dc/if_dc.c4
-rw-r--r--sys/dev/dc/if_dcreg.h10
-rw-r--r--sys/pci/if_dc.c4
-rw-r--r--sys/pci/if_dcreg.h10
4 files changed, 28 insertions, 0 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index af00514..dcb6ee9 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -44,6 +44,7 @@
* ADMtek AL981 (www.admtek.com.tw)
* ADMtek AN985 (www.admtek.com.tw)
* Davicom DM9100, DM9102, DM9102A (www.davicom8.com)
+ * Accton EN1217 (www.accton.com)
*
* Datasheets for the 21143 are available at developer.intel.com.
* Datasheets for the clone parts can be found at their respective sites.
@@ -190,6 +191,8 @@ static struct dc_type dc_devs[] = {
"82c168 PNIC 10/100BaseTX" },
{ DC_VENDORID_LO, DC_DEVICEID_82C168,
"82c169 PNIC 10/100BaseTX" },
+ { DC_VENDORID_ACCTON, DC_DEVICEID_EN1217,
+ "Accton EN1217 10/100BaseTX" },
{ 0, 0, NULL }
};
@@ -1548,6 +1551,7 @@ static int dc_attach(dev)
sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
break;
case DC_DEVICEID_987x5:
+ case DC_DEVICEID_EN1217:
sc->dc_type = DC_TYPE_987x5;
sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
sc->dc_flags |= DC_REDUCED_MII_POLL|DC_21143_NWAY;
diff --git a/sys/dev/dc/if_dcreg.h b/sys/dev/dc/if_dcreg.h
index 486a2e2..4f56a45 100644
--- a/sys/dev/dc/if_dcreg.h
+++ b/sys/dev/dc/if_dcreg.h
@@ -794,6 +794,16 @@ struct dc_softc {
#define DC_REVISION_88141 0x10
/*
+ * Accton vendor ID.
+ */
+#define DC_VENDORID_ACCTON 0x1113
+
+/*
+ * Accton device IDs.
+ */
+#define DC_DEVICEID_EN1217 0x1217
+
+/*
* PCI low memory base and low I/O base register, and
* other PCI registers.
*/
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index af00514..dcb6ee9 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -44,6 +44,7 @@
* ADMtek AL981 (www.admtek.com.tw)
* ADMtek AN985 (www.admtek.com.tw)
* Davicom DM9100, DM9102, DM9102A (www.davicom8.com)
+ * Accton EN1217 (www.accton.com)
*
* Datasheets for the 21143 are available at developer.intel.com.
* Datasheets for the clone parts can be found at their respective sites.
@@ -190,6 +191,8 @@ static struct dc_type dc_devs[] = {
"82c168 PNIC 10/100BaseTX" },
{ DC_VENDORID_LO, DC_DEVICEID_82C168,
"82c169 PNIC 10/100BaseTX" },
+ { DC_VENDORID_ACCTON, DC_DEVICEID_EN1217,
+ "Accton EN1217 10/100BaseTX" },
{ 0, 0, NULL }
};
@@ -1548,6 +1551,7 @@ static int dc_attach(dev)
sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
break;
case DC_DEVICEID_987x5:
+ case DC_DEVICEID_EN1217:
sc->dc_type = DC_TYPE_987x5;
sc->dc_flags |= DC_TX_POLL|DC_TX_USE_TX_INTR;
sc->dc_flags |= DC_REDUCED_MII_POLL|DC_21143_NWAY;
diff --git a/sys/pci/if_dcreg.h b/sys/pci/if_dcreg.h
index 486a2e2..4f56a45 100644
--- a/sys/pci/if_dcreg.h
+++ b/sys/pci/if_dcreg.h
@@ -794,6 +794,16 @@ struct dc_softc {
#define DC_REVISION_88141 0x10
/*
+ * Accton vendor ID.
+ */
+#define DC_VENDORID_ACCTON 0x1113
+
+/*
+ * Accton device IDs.
+ */
+#define DC_DEVICEID_EN1217 0x1217
+
+/*
* PCI low memory base and low I/O base register, and
* other PCI registers.
*/
OpenPOWER on IntegriCloud