summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2002-01-10 18:06:41 +0000
committerarchie <archie@FreeBSD.org>2002-01-10 18:06:41 +0000
commitb1b76298955733b1a81b0ad61a1fa263d5858aa4 (patch)
tree40b0f832412f77f87a22f2d5bc7e83c6c30fadfd /sys/dev/mii
parent3f968609cd4bc3339d65d0b6c4ebdce66183c610 (diff)
downloadFreeBSD-src-b1b76298955733b1a81b0ad61a1fa263d5858aa4.zip
FreeBSD-src-b1b76298955733b1a81b0ad61a1fa263d5858aa4.tar.gz
Fix reversed definitions for the bits that select half vs. full duplex.
Submitted by: Darren Croke <djc@packetdesign.com>
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/xmphyreg.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mii/xmphyreg.h b/sys/dev/mii/xmphyreg.h
index 51fc4a1..e06b197 100644
--- a/sys/dev/mii/xmphyreg.h
+++ b/sys/dev/mii/xmphyreg.h
@@ -61,16 +61,16 @@
#define XMPHY_ANAR_ACK 0x4000 /* Next page or base received */
#define XMPHY_ANAR_RFBITS 0x3000 /* Remote fault bits */
#define XMPHY_ANAR_PAUSEBITS 0x0180 /* Pause bits */
-#define XMPHY_ANAR_FDX 0x0040 /* Select full duplex */
-#define XMPHY_ANAR_HDX 0x0020 /* Select half duplex */
+#define XMPHY_ANAR_HDX 0x0040 /* Select half duplex */
+#define XMPHY_ANAR_FDX 0x0020 /* Select full duplex */
#define XMPHY_MII_ANLPAR 0x05
#define XMPHY_ANLPAR_NP 0x8000 /* Next page */
#define XMPHY_ANLPAR_ACK 0x4000 /* Next page or base received */
#define XMPHY_ANLPAR_RFBITS 0x3000 /* Remote fault bits */
#define XMPHY_ANLPAR_PAUSEBITS 0x0180 /* Pause bits */
-#define XMPHY_ANLPAR_FDX 0x0040 /* Select full duplex */
-#define XMPHY_ANLPAR_HDX 0x0020 /* Select half duplex */
+#define XMPHY_ANLPAR_HDX 0x0040 /* Select half duplex */
+#define XMPHY_ANLPAR_FDX 0x0020 /* Select full duplex */
#define XMPHY_RF_OK 0x0000 /* No error -- link is good */
#define XMPHY_RF_LINKFAIL 0x1000 /* Link failure */
OpenPOWER on IntegriCloud