diff options
author | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-05-15 18:52:40 +0000 |
---|---|---|
committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-05-15 18:52:40 +0000 |
commit | dedabebf33fe13a3127337c98b274a42deacfd40 (patch) | |
tree | 5f71dca10139dc78e88513f80df1c5044dc1e897 /sys/dev/fxp | |
parent | e89c933c5bd6940ea6b29359c1e8dc351a66ee49 (diff) | |
download | src-dedabebf33fe13a3127337c98b274a42deacfd40.tar.gz src-dedabebf33fe13a3127337c98b274a42deacfd40.zip |
Use " |= " to enable special media handling for fxp with no MII, instead
of " &= ". Also change the MII PHY device mask to check the correct bits.
Cookie to: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Pointy hat to: me
Notes
Notes:
svn path=/head/; revision=76630
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 2 | ||||
-rw-r--r-- | sys/dev/fxp/if_fxpreg.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 9eddd165bbb5..34fef8d67a44 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -448,7 +448,7 @@ fxp_attach(device_t dev) fxp_read_eeprom(sc, &data, 6, 1); if ((data & FXP_PHY_DEVICE_MASK) != 0 && (data & FXP_PHY_SERIAL_ONLY)) - sc->flags &= FXP_FLAG_SERIAL_MEDIA; + sc->flags |= FXP_FLAG_SERIAL_MEDIA; /* * Find out the basic controller type; we currently only diff --git a/sys/dev/fxp/if_fxpreg.h b/sys/dev/fxp/if_fxpreg.h index 9f7e6863fa66..a1c76b7cf8c6 100644 --- a/sys/dev/fxp/if_fxpreg.h +++ b/sys/dev/fxp/if_fxpreg.h @@ -355,7 +355,7 @@ struct fxp_stats { /* * PHY device types */ -#define FXP_PHY_DEVICE_MASK 0x03f0 +#define FXP_PHY_DEVICE_MASK 0x3f00 #define FXP_PHY_SERIAL_ONLY 0x8000 #define FXP_PHY_NONE 0 #define FXP_PHY_82553A 1 |