From 7eac366be18c2ec09d8eacbce7464080a26f1a21 Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Mon, 12 May 2003 19:50:21 +0000 Subject: Add support for 3Com OfficeConnect 10/100B. PR: 49059, 50747 Submitted by: Dax Eckenberg Reviewed by: imp, jhb Approved by: jhb MFC after: 2 weeks --- 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(+) (limited to 'sys') diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 294f81b0c991..c083bc40a423 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -46,6 +46,7 @@ * Xircom X3201 (www.xircom.com) * Abocom FE2500 * Conexant LANfinity (www.conexant.com) + * 3Com OfficeConnect 10/100B 3CSOHO100B (www.3com.com) * * Datasheets for the 21143 are available at developer.intel.com. * Datasheets for the clone parts can be found at their respective sites. @@ -196,6 +197,8 @@ static struct dc_type dc_devs[] = { "Hawking CB102 CardBus 10/100" }, { DC_VENDORID_PLANEX, DC_DEVICEID_FNW3602T, "PlaneX FNW-3602-T CardBus 10/100" }, + { DC_VENDORID_3COM, DC_DEVICEID_3CSOHOB, + "3Com OfficeConnect 10/100B" }, { 0, 0, NULL } }; @@ -1987,6 +1990,7 @@ dc_attach(dev) case DC_DEVICEID_FE2500: case DC_DEVICEID_EN2242: case DC_DEVICEID_HAWKING_PN672TX: + case DC_DEVICEID_3CSOHOB: sc->dc_type = DC_TYPE_AN985; sc->dc_flags |= DC_64BIT_HASH; sc->dc_flags |= DC_TX_USE_TX_INTR; diff --git a/sys/dev/dc/if_dcreg.h b/sys/dev/dc/if_dcreg.h index d4536c7f4c05..d15d68cb3c66 100644 --- a/sys/dev/dc/if_dcreg.h +++ b/sys/dev/dc/if_dcreg.h @@ -867,6 +867,16 @@ struct dc_softc { #define DC_DEVICEID_AL981 0x0981 #define DC_DEVICEID_AN985 0x0985 +/* + * 3COM PCI vendor ID + */ +#define DC_VENDORID_3COM 0x10b7 + +/* + * 3COM OfficeConnect 10/100B (3CSOHO100B-TX) + */ +#define DC_DEVICEID_3CSOHOB 0x9300 + /* * ASIX vendor ID. */ diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 294f81b0c991..c083bc40a423 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -46,6 +46,7 @@ * Xircom X3201 (www.xircom.com) * Abocom FE2500 * Conexant LANfinity (www.conexant.com) + * 3Com OfficeConnect 10/100B 3CSOHO100B (www.3com.com) * * Datasheets for the 21143 are available at developer.intel.com. * Datasheets for the clone parts can be found at their respective sites. @@ -196,6 +197,8 @@ static struct dc_type dc_devs[] = { "Hawking CB102 CardBus 10/100" }, { DC_VENDORID_PLANEX, DC_DEVICEID_FNW3602T, "PlaneX FNW-3602-T CardBus 10/100" }, + { DC_VENDORID_3COM, DC_DEVICEID_3CSOHOB, + "3Com OfficeConnect 10/100B" }, { 0, 0, NULL } }; @@ -1987,6 +1990,7 @@ dc_attach(dev) case DC_DEVICEID_FE2500: case DC_DEVICEID_EN2242: case DC_DEVICEID_HAWKING_PN672TX: + case DC_DEVICEID_3CSOHOB: sc->dc_type = DC_TYPE_AN985; sc->dc_flags |= DC_64BIT_HASH; sc->dc_flags |= DC_TX_USE_TX_INTR; diff --git a/sys/pci/if_dcreg.h b/sys/pci/if_dcreg.h index d4536c7f4c05..d15d68cb3c66 100644 --- a/sys/pci/if_dcreg.h +++ b/sys/pci/if_dcreg.h @@ -867,6 +867,16 @@ struct dc_softc { #define DC_DEVICEID_AL981 0x0981 #define DC_DEVICEID_AN985 0x0985 +/* + * 3COM PCI vendor ID + */ +#define DC_VENDORID_3COM 0x10b7 + +/* + * 3COM OfficeConnect 10/100B (3CSOHO100B-TX) + */ +#define DC_DEVICEID_3CSOHOB 0x9300 + /* * ASIX vendor ID. */ -- cgit v1.3