diff options
author | dg <dg@FreeBSD.org> | 1997-03-21 08:00:13 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-03-21 08:00:13 +0000 |
commit | 5bea6a2fcde4c8b944adc8c0b8715d447c6cc3da (patch) | |
tree | ee281c3eddd94f1f3a1a59fa92284635a8e70da0 /sys/dev/fxp/if_fxpreg.h | |
parent | 1275f95707e1f4f5f30944c7ee07058959c8dcbd (diff) | |
download | FreeBSD-src-5bea6a2fcde4c8b944adc8c0b8715d447c6cc3da.zip FreeBSD-src-5bea6a2fcde4c8b944adc8c0b8715d447c6cc3da.tar.gz |
Added support for newer cards that have the DP83840A PHY chip.
Fixed a bug in fxp_mdi_write - a hex number was missing a preceding 0x
and this was causing the routine to not wait for a PHY write to complete.
Added support for link0, link1, and link2 flags to toggle auto-
negotiation, 10/100, and half/full duplex:
link0 disable auto-negotiation
When set, these flags then have meaning:
-link1 10Mbps
link1 100Mbps
-link2 half duplex
link2 full duplex
...needs a manual page.
Diffstat (limited to 'sys/dev/fxp/if_fxpreg.h')
-rw-r--r-- | sys/dev/fxp/if_fxpreg.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/fxp/if_fxpreg.h b/sys/dev/fxp/if_fxpreg.h index b6005d7..693e243 100644 --- a/sys/dev/fxp/if_fxpreg.h +++ b/sys/dev/fxp/if_fxpreg.h @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_fxpreg.h,v 1.6 1997/02/22 09:44:06 peter Exp $ + * $Id: if_fxpreg.h,v 1.7 1997/03/17 11:08:16 davidg Exp $ */ #define FXP_VENDORID_INTEL 0x8086 @@ -292,6 +292,15 @@ struct fxp_stats { #define FXP_PHY_DP83840 4 #define FXP_PHY_80C240 5 #define FXP_PHY_80C24 6 +#define FXP_PHY_DP83840A 10 + +/* + * DP84830 PHY, BMCR Basic Mode Control Register + */ +#define FXP_DP83840_BMCR 0x0 +#define FXP_DP83840_BMCR_FULLDUPLEX 0x0100 +#define FXP_DP83840_BMCR_AUTOEN 0x1000 +#define FXP_DP83840_BMCR_SPEED_100M 0x2000 /* * DP84830 PHY, PCS Configuration Register |