Date: Wed, 9 Jan 2002 14:00:53 -0800 (PST) From: Archie Cobbs <archie@dellroad.org> To: freebsd-net@freebsd.org Cc: wpaul@freebsd.org Subject: Duplex fix for xmphyreg.h Message-ID: <200201092200.g09M0rB48288@arch20m.dellroad.org>
next in thread | raw e-mail | index | archive | help
Does anybody object to the patch below? It fixes two reversed bit definitions for the duplex mode in sys/dev/mii/xmphyreg.h. Thanks, -Archie Reference: XaQti XQ11800FP data sheet, sections 6.0.43 and 6.0.44 __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com Index: src/sys/dev/mii/xmphyreg.h =================================================================== RCS file: /home/ncvs/src/sys/dev/mii/xmphyreg.h,v retrieving revision 1.2 diff -u -r1.2 xmphyreg.h --- xmphyreg.h 23 May 2001 22:10:55 -0000 1.2 +++ xmphyreg.h 9 Jan 2002 21:58:30 -0000 @@ -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 */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201092200.g09M0rB48288>