summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_edreg.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-03-03 08:31:37 +0000
committerimp <imp@FreeBSD.org>2001-03-03 08:31:37 +0000
commitc2257f6c8a69b4a7cae98128bd89f28f3893f3c5 (patch)
tree6a6e8077b17a02e0d83e4b1fad4660dd6562ccad /sys/dev/ed/if_edreg.h
parent5f89669270bed456c02457eab0709fc74466f733 (diff)
downloadFreeBSD-src-c2257f6c8a69b4a7cae98128bd89f28f3893f3c5.zip
FreeBSD-src-c2257f6c8a69b4a7cae98128bd89f28f3893f3c5.tar.gz
Add support for Dlink DL10022 to the ed driver. This is a mii part
bolted to a ne-2000 chip. This is necessary for the NetGear FA-410TX and other cards. This also requires you add mii to your kernel if you have an ed driver configured. This code will result in a couple of timeout messages for ed on the impacted cards. Additional work will be needed, but this does work right now, and many people need these cards. Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
Diffstat (limited to 'sys/dev/ed/if_edreg.h')
-rw-r--r--sys/dev/ed/if_edreg.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys/dev/ed/if_edreg.h b/sys/dev/ed/if_edreg.h
index e42ef42d2..a2e1882 100644
--- a/sys/dev/ed/if_edreg.h
+++ b/sys/dev/ed/if_edreg.h
@@ -1113,3 +1113,32 @@ struct ed_ring {
#define ED_AX88190_IOBASE0 0x3ca
#define ED_AX88190_IOBASE1 0x3cc
+
+/*
+ * MII bus definitions.
+ */
+#define ED_MII_STARTDELIM 0x01
+#define ED_MII_WRITEOP 0x01
+#define ED_MII_READOP 0x02
+#define ED_MII_TURNAROUND 0x02
+#define ED_MII_IDLE 0x01
+
+#define ED_MII_STARTDELIM_BITS 2
+#define ED_MII_OP_BITS 2
+#define ED_MII_PHY_BITS 5
+#define ED_MII_REG_BITS 5
+#define ED_MII_TURNAROUND_BITS 2
+#define ED_MII_DATA_BITS 16
+#define ED_MII_ACK_BITS 1
+#define ED_MII_IDLE_BITS 1
+
+/* Dlink chipset used on some Netgear and Dlink PCMCIA cards */
+#define ED_DLINK_MIIBUS 0x0c /* MII bus register on ASIC */
+
+#define ED_DLINK_MII_RESET1 0x04
+#define ED_DLINK_MII_RESET2 0x08
+
+#define ED_DLINK_MII_DATATIN 0x10
+#define ED_DLINK_MII_DIROUT 0x20
+#define ED_DLINK_MII_DATAOUT 0x40
+#define ED_DLINK_MII_CLK 0x80
OpenPOWER on IntegriCloud