summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_fxpreg.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-03-17 11:08:16 +0000
committerdg <dg@FreeBSD.org>1997-03-17 11:08:16 +0000
commit8032f5328d8046c507154b8fdad9c17459bfb0c9 (patch)
tree1927984bcafa4dee1f2bec9126ab19549f49c537 /sys/pci/if_fxpreg.h
parent1062c914df46ad60942bb36e0bf0e6d8dc429171 (diff)
downloadFreeBSD-src-8032f5328d8046c507154b8fdad9c17459bfb0c9.zip
FreeBSD-src-8032f5328d8046c507154b8fdad9c17459bfb0c9.tar.gz
Fixed two deficiencies in the driver that have existed since it was
written: 1) Full duplex mode is now supported (and works!) 2) The 10Mbps-only PCI Pro/10 should now work (untested, however) Thanks to Justin Gibbs for providing a PCI bus analyzer trace while the Intel Windows driver was configuring the board...this made it possible to figure out the mystery bit that I wasn't setting in the PHY for full duplex to work.
Diffstat (limited to 'sys/pci/if_fxpreg.h')
-rw-r--r--sys/pci/if_fxpreg.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/sys/pci/if_fxpreg.h b/sys/pci/if_fxpreg.h
index e62e727..b6005d7 100644
--- a/sys/pci/if_fxpreg.h
+++ b/sys/pci/if_fxpreg.h
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: if_fxpreg.h,v 1.6 1997/02/22 09:44:06 peter Exp $
*/
#define FXP_VENDORID_INTEL 0x8086
@@ -275,3 +275,29 @@ struct fxp_stats {
#define FXP_EEPROM_OPC_ERASE 0x4
#define FXP_EEPROM_OPC_WRITE 0x5
#define FXP_EEPROM_OPC_READ 0x6
+
+/*
+ * Management Data Interface opcodes
+ */
+#define FXP_MDI_WRITE 0x1
+#define FXP_MDI_READ 0x2
+
+/*
+ * PHY device types
+ */
+#define FXP_PHY_NONE 0
+#define FXP_PHY_82553A 1
+#define FXP_PHY_82553C 2
+#define FXP_PHY_82503 3
+#define FXP_PHY_DP83840 4
+#define FXP_PHY_80C240 5
+#define FXP_PHY_80C24 6
+
+/*
+ * DP84830 PHY, PCS Configuration Register
+ */
+#define FXP_DP83840_PCR 0x17
+#define FXP_DP83840_PCR_LED4_MODE 0x0002 /* 1 = LED4 always indicates full duplex */
+#define FXP_DP83840_PCR_F_CONNECT 0x0020 /* 1 = force link disconnect function bypass */
+#define FXP_DP83840_PCR_BIT8 0x0100
+#define FXP_DP83840_PCR_BIT10 0x0400
OpenPOWER on IntegriCloud