diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-10-10 12:14:27 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-10-10 12:14:27 +0000 |
commit | 5cd59df5b113b55740a4c17d728457d2f4f3b850 (patch) | |
tree | 0b5e6692a141ec11d2f0f73883cb51b9369c5c9b /sys/dev/mii/rgephyreg.h | |
parent | ae21673ba1ff8f55993332f0e1bb893237f042d5 (diff) |
Add support for the RTL8211B PHY based on a patch by
Michael Eisele for FreeBSD.
This fixes nfe/rgephy for ckuethe & couderc.
Tested on re/rgephy by pyr.
Diffstat (limited to 'sys/dev/mii/rgephyreg.h')
-rw-r--r-- | sys/dev/mii/rgephyreg.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/dev/mii/rgephyreg.h b/sys/dev/mii/rgephyreg.h index cf22daae07c..d4a66f3b6d0 100644 --- a/sys/dev/mii/rgephyreg.h +++ b/sys/dev/mii/rgephyreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rgephyreg.h,v 1.2 2004/10/28 23:37:11 pvalchev Exp $ */ +/* $OpenBSD: rgephyreg.h,v 1.3 2007/10/10 12:14:26 jsg Exp $ */ /* * Copyright (c) 2003 * Bill Paul <wpaul@windriver.com>. All rights reserved. @@ -138,6 +138,15 @@ #define RGEPHY_EXTSTS_T_FD_CAP 0x2000 /* 1000base-T FD capable */ #define RGEPHY_EXTSTS_T_HD_CAP 0x1000 /* 1000base-T HD capable */ - +/* RTL8211B */ +#define RGEPHY_SR 0x11 /* PHY Specific Status */ +#define RGEPHY_SR_CROSSOVER (1 << 6) +#define RGEPHY_SR_LINK (1 << 10) +#define RGEPHY_SR_FDX (1 << 13) +#define RGEPHY_SR_SPEED_MASK (3 << 14) +#define RGEPHY_SR_SPEED_1000MBPS (2 << 14) +#define RGEPHY_SR_SPEED_100MBPS (1 << 14) +#define RGEPHY_SR_SPEED_10MBPS (0 << 14) +#define RGEPHY_SR_SPEED(X) ((X) & RGEPHY_SR_SPEED_MASK) #endif /* _DEV_RGEPHY_MIIREG_H_ */ |