summaryrefslogtreecommitdiff
path: root/sys/dev/ic/dcreg.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-04-18 19:11:19 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-04-18 19:11:19 +0000
commit36c7caf13d1d96dec21bae27533d4b416c6e3c76 (patch)
tree268ff264bce21216702dd6d647fde875b82659bb /sys/dev/ic/dcreg.h
parentad977949dab4b3dec2641bc7f8664713f59fc40a (diff)
add support for Conexant LANfinity RS7112; based on patch from Maurice Nonnekes <maurice@amaze.nl> based on FreeBSD (only minor surgery necessary)
Diffstat (limited to 'sys/dev/ic/dcreg.h')
-rw-r--r--sys/dev/ic/dcreg.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/ic/dcreg.h b/sys/dev/ic/dcreg.h
index aa50f945255..51978e7d586 100644
--- a/sys/dev/ic/dcreg.h
+++ b/sys/dev/ic/dcreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dcreg.h,v 1.23 2002/04/16 21:29:54 jason Exp $ */
+/* $OpenBSD: dcreg.h,v 1.24 2002/04/18 19:11:18 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -83,6 +83,7 @@
#define DC_TYPE_PNICII 0x9 /* 82c115 PNIC II */
#define DC_TYPE_PNIC 0xA /* 82c168/82c169 PNIC I */
#define DC_TYPE_XIRCOM 0xB /* Xircom X3201 */
+#define DC_TYPE_CONEXANT 0xC /* Conexant LANfinity RS7112 */
#define DC_IS_MACRONIX(x) \
(x->dc_type == DC_TYPE_98713 || \
@@ -101,6 +102,7 @@
#define DC_IS_PNICII(x) (x->dc_type == DC_TYPE_PNICII)
#define DC_IS_PNIC(x) (x->dc_type == DC_TYPE_PNIC)
#define DC_IS_XIRCOM(x) (x->dc_type == DC_TYPE_XIRCOM)
+#define DC_IS_CONEXANT(x) (x->dc_type == DC_TYPE_CONEXANT)
/* MII/symbol mode port types */
#define DC_PMODE_MII 0x1
@@ -679,6 +681,15 @@ struct dc_mii_frame {
/* End of PNIC specific registers */
+/*
+ * CONEXANT specific registers.
+ */
+
+#define DC_CONEXANT_PHYADDR 0x1
+#define DC_CONEXANT_EE_NODEADDR 0x19A
+
+/* End of CONEXANT specific register */
+
struct dc_softc {
struct device sc_dev;
void *sc_ih;