diff options
author | phk <phk@FreeBSD.org> | 2002-04-29 11:57:30 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-29 11:57:30 +0000 |
commit | 2715240fe7a7238d5caa38cf8f6fb16ee0755a5c (patch) | |
tree | ab00a27fad6535ee94d5573484470b55ed8fe2c5 /sys/dev/mii/nsgphyreg.h | |
parent | 6685a257879878dde6afb0ae79cc136a587b275b (diff) | |
download | FreeBSD-src-2715240fe7a7238d5caa38cf8f6fb16ee0755a5c.zip FreeBSD-src-2715240fe7a7238d5caa38cf8f6fb16ee0755a5c.tar.gz |
Move a lot closer to NetBSDs MII support for GigE.
Move fxp and nge drivers over to use the new stuff.
Diffstat (limited to 'sys/dev/mii/nsgphyreg.h')
-rw-r--r-- | sys/dev/mii/nsgphyreg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/mii/nsgphyreg.h b/sys/dev/mii/nsgphyreg.h index 0c6ef4b..c7680f1 100644 --- a/sys/dev/mii/nsgphyreg.h +++ b/sys/dev/mii/nsgphyreg.h @@ -54,10 +54,14 @@ #define NSGPHY_STRAPOPT_SPDSEL (NSGPHY_STRAPOPT_SPEED1|NSGPHY_STRAPOPT_SPEED0) #define NSGPHY_MII_PHYSUP 0x11 /* PHY support/current status */ +#define PHY_SUP_SPEED1 0x0010 /* speed bit 1 */ +#define PHY_SUP_SPEED0 0x0008 /* speed bit 1 */ #define NSGPHY_PHYSUP_SPEED1 0x0010 /* speed status */ #define NSGPHY_PHYSUP_SPEED0 0x0008 /* speed status */ #define NSGPHY_PHYSUP_SPDSTS (NSGPHY_PHYSUP_SPEED1|NSGPHY_PHYSUP_SPEED0) #define NSGPHY_PHYSUP_LNKSTS 0x0004 /* link status */ +#define PHY_SUP_LINK 0x0004 /* link status */ +#define PHY_SUP_DUPLEX 0x0002 /* 1 == full-duplex */ #define NSGPHY_PHYSUP_DUPSTS 0x0002 /* duplex status 1 == full */ #define NSGPHY_PHYSUP_10BT 0x0001 /* 10baseT resolved */ |