add support for LXT971 PHYs.

This commit is contained in:
chs 2002-03-14 04:40:26 +00:00
parent fe523d7ec2
commit dc3bc0c490
3 changed files with 18 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: lxtphy.4,v 1.2 1999/03/16 01:19:16 garbled Exp $
.\" $NetBSD: lxtphy.4,v 1.3 2002/03/14 04:40:27 chs Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@ -46,7 +46,8 @@
.Sh DESCRIPTION
The
.Nm
driver supports the Level One LXT-970 and LXT-970A 10/100 Ethernet PHYs.
driver supports the Level One LXT-970, LXT-970A and LXT-971 10/100 Ethernet
PHYs.
These PHYs are found on a variety of high-performance Ethernet interfaces.
.Sh SEE ALSO
.Xr ifmedia 4 ,

View File

@ -1,4 +1,4 @@
/* $NetBSD: lxtphy.c,v 1.26 2001/11/13 07:41:36 lukem Exp $ */
/* $NetBSD: lxtphy.c,v 1.27 2002/03/14 04:40:26 chs Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: lxtphy.c,v 1.26 2001/11/13 07:41:36 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: lxtphy.c,v 1.27 2002/03/14 04:40:26 chs Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -110,10 +110,17 @@ const struct mii_phy_funcs lxtphy_funcs = {
lxtphy_service, lxtphy_status, lxtphy_reset,
};
const struct mii_phy_funcs lxtphy971_funcs = {
lxtphy_service, ukphy_status, lxtphy_reset,
};
const struct mii_phydesc lxtphys[] = {
{ MII_OUI_xxLEVEL1, MII_MODEL_xxLEVEL1_LXT970,
MII_STR_xxLEVEL1_LXT970 },
{ MII_OUI_LEVEL1, MII_MODEL_LEVEL1_LXT971,
MII_STR_LEVEL1_LXT971 },
{ 0, 0,
NULL },
};
@ -142,7 +149,10 @@ lxtphyattach(struct device *parent, struct device *self, void *aux)
sc->mii_inst = mii->mii_instance;
sc->mii_phy = ma->mii_phyno;
sc->mii_funcs = &lxtphy_funcs;
if (mpd->mpd_model == MII_MODEL_LEVEL1_LXT971)
sc->mii_funcs = &lxtphy971_funcs;
else
sc->mii_funcs = &lxtphy_funcs;
sc->mii_pdata = mii;
sc->mii_flags = mii->mii_flags | ma->mii_flags;
sc->mii_anegticks = 5;

View File

@ -1,4 +1,4 @@
$NetBSD: miidevs,v 1.34 2002/02/10 17:08:24 wiz Exp $
$NetBSD: miidevs,v 1.35 2002/03/14 04:40:27 chs Exp $
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -138,6 +138,7 @@ model yyINTEL I82553 0x0035 i82553 10/100 media interface
/* Level 1 PHYs */
model xxLEVEL1 LXT970 0x0000 LXT970 10/100 media interface
model LEVEL1 LXT971 0x000e LXT971 10/100 media interface
model LEVEL1 LXT1000_OLD 0x0003 LXT1000 1000BASE-T media interface
model LEVEL1 LXT1000 0x000c LXT1000 1000BASE-T media interface