summaryrefslogtreecommitdiffstats
path: root/sys/dev/dc
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-01-10 05:37:15 +0000
committerimp <imp@FreeBSD.org>2003-01-10 05:37:15 +0000
commitd8624a90a21f889b227fd945069f7b0cc9bf14b9 (patch)
treef5243330bd4370e7916f9d7862a857f4b52fe8d7 /sys/dev/dc
parent87092eb3737a12bab804799042be8a6af704e9ba (diff)
downloadFreeBSD-src-d8624a90a21f889b227fd945069f7b0cc9bf14b9.zip
FreeBSD-src-d8624a90a21f889b227fd945069f7b0cc9bf14b9.tar.gz
Add preliminary support for the Hawking PN672TX CardBus cards.
# Preliminary because there are some subtle things the NetBSD driver does # that we don't do yet. My card works for me w/o them.
Diffstat (limited to 'sys/dev/dc')
-rw-r--r--sys/dev/dc/if_dc.c3
-rw-r--r--sys/dev/dc/if_dcreg.h12
2 files changed, 15 insertions, 0 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c
index 68395bb..daed180 100644
--- a/sys/dev/dc/if_dc.c
+++ b/sys/dev/dc/if_dc.c
@@ -194,6 +194,8 @@ static struct dc_type dc_devs[] = {
"Abocom FE2500 10/100BaseTX" },
{ DC_VENDORID_CONEXANT, DC_DEVICEID_RS7112,
"Conexant LANfinity MiniPCI 10/100BaseTX" },
+ { DC_VENDORID_HAWKING, DC_DEVICEID_HAWKING_PN672TX,
+ "Hawking CB102 CardBus 10/100" },
{ 0, 0, NULL }
};
@@ -2013,6 +2015,7 @@ dc_attach(dev)
case DC_DEVICEID_AN985:
case DC_DEVICEID_FE2500:
case DC_DEVICEID_EN2242:
+ case DC_DEVICEID_HAWKING_PN672TX:
sc->dc_type = DC_TYPE_AN985;
sc->dc_flags |= DC_TX_USE_TX_INTR;
sc->dc_flags |= DC_TX_ADMTEK_WAR;
diff --git a/sys/dev/dc/if_dcreg.h b/sys/dev/dc/if_dcreg.h
index 7255da2..12bf54b 100644
--- a/sys/dev/dc/if_dcreg.h
+++ b/sys/dev/dc/if_dcreg.h
@@ -926,6 +926,18 @@ struct dc_softc {
#define DC_DEVICEID_RS7112 0x1803
/*
+ * Not sure who this vendor should be, so we'll go with HAWKING until
+ * I can locate the right one.
+ */
+#define DC_VENDORID_HAWKING 0x17b3
+
+/*
+ * Sure looks like an abocom device ID, but it found on my hawking PN672TX
+ * card. Use that for now, and upgrade later.
+ */
+#define DC_DEVICEID_HAWKING_PN672TX 0xab08
+
+/*
* PCI low memory base and low I/O base register, and
* other PCI registers.
*/
OpenPOWER on IntegriCloud