From e6fce1adbbb93c8f9080e4071bad434582250994 Mon Sep 17 00:00:00 2001 From: asmodai Date: Sun, 11 Jun 2000 11:54:52 +0000 Subject: Add support for the Accton EN1217. PR: 18735 Submitted by: Adoal Xu --- sys/dev/dc/if_dc.c | 4 ++++ sys/dev/dc/if_dcreg.h | 10 ++++++++++ sys/pci/if_dc.c | 4 ++++ sys/pci/if_dcreg.h | 10 ++++++++++ 4 files changed, 28 insertions(+) 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. */ -- cgit v1.1