mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Added support for the 82553 and 'B' 82555 PHY.
This commit is contained in:
parent
c9b2724d99
commit
9292429115
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=34014
@ -27,7 +27,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_fxp.c,v 1.48 1998/02/09 06:10:51 eivind Exp $
|
||||
* $Id: if_fxp.c,v 1.49 1998/02/20 13:11:53 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -191,9 +191,18 @@ static const struct fxp_supported_media fxp_media[] = {
|
||||
{ FXP_PHY_DP83840A, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82553A, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82553C, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82555, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82555B, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_80C24, fxp_media_default,
|
||||
sizeof(fxp_media_default) / sizeof(fxp_media_default[0]),
|
||||
FXP_MEDIA_DEFAULT_DEFMEDIA },
|
||||
@ -1370,7 +1379,10 @@ fxp_set_media(sc, media)
|
||||
FXP_DP83840_PCR_F_CONNECT | /* force link disconnect bypass */
|
||||
FXP_DP83840_PCR_BIT10); /* XXX I have no idea */
|
||||
/* fall through */
|
||||
case FXP_PHY_82553A:
|
||||
case FXP_PHY_82553C: /* untested */
|
||||
case FXP_PHY_82555:
|
||||
case FXP_PHY_82555B:
|
||||
if (IFM_SUBTYPE(media) != IFM_AUTO) {
|
||||
int flags;
|
||||
|
||||
|
@ -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.10 1997/09/05 10:23:56 davidg Exp $
|
||||
* $Id: if_fxpreg.h,v 1.11 1997/09/29 11:27:42 davidg Exp $
|
||||
*/
|
||||
|
||||
#define FXP_VENDORID_INTEL 0x8086
|
||||
@ -327,6 +327,7 @@ struct fxp_stats {
|
||||
#define FXP_PHY_80C24 6
|
||||
#define FXP_PHY_82555 7
|
||||
#define FXP_PHY_DP83840A 10
|
||||
#define FXP_PHY_82555B 11
|
||||
|
||||
/*
|
||||
* PHY BMCR Basic Mode Control Register
|
||||
|
@ -27,7 +27,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_fxp.c,v 1.48 1998/02/09 06:10:51 eivind Exp $
|
||||
* $Id: if_fxp.c,v 1.49 1998/02/20 13:11:53 bde Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -191,9 +191,18 @@ static const struct fxp_supported_media fxp_media[] = {
|
||||
{ FXP_PHY_DP83840A, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82553A, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82553C, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82555, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_82555B, fxp_media_standard,
|
||||
sizeof(fxp_media_standard) / sizeof(fxp_media_standard[0]),
|
||||
FXP_MEDIA_STANDARD_DEFMEDIA },
|
||||
{ FXP_PHY_80C24, fxp_media_default,
|
||||
sizeof(fxp_media_default) / sizeof(fxp_media_default[0]),
|
||||
FXP_MEDIA_DEFAULT_DEFMEDIA },
|
||||
@ -1370,7 +1379,10 @@ fxp_set_media(sc, media)
|
||||
FXP_DP83840_PCR_F_CONNECT | /* force link disconnect bypass */
|
||||
FXP_DP83840_PCR_BIT10); /* XXX I have no idea */
|
||||
/* fall through */
|
||||
case FXP_PHY_82553A:
|
||||
case FXP_PHY_82553C: /* untested */
|
||||
case FXP_PHY_82555:
|
||||
case FXP_PHY_82555B:
|
||||
if (IFM_SUBTYPE(media) != IFM_AUTO) {
|
||||
int flags;
|
||||
|
||||
|
@ -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.10 1997/09/05 10:23:56 davidg Exp $
|
||||
* $Id: if_fxpreg.h,v 1.11 1997/09/29 11:27:42 davidg Exp $
|
||||
*/
|
||||
|
||||
#define FXP_VENDORID_INTEL 0x8086
|
||||
@ -327,6 +327,7 @@ struct fxp_stats {
|
||||
#define FXP_PHY_80C24 6
|
||||
#define FXP_PHY_82555 7
|
||||
#define FXP_PHY_DP83840A 10
|
||||
#define FXP_PHY_82555B 11
|
||||
|
||||
/*
|
||||
* PHY BMCR Basic Mode Control Register
|
||||
|
Loading…
Reference in New Issue
Block a user