Add PHY mii-id for the Broadcom 1000base-T PHY integral to the

bcm5714, added yesterday to sys/dev/pci/if_bge.c in revision 1.98,
since it appears the 5714 has a new PHY revision.  Pending further
details, follow the FreeBSD code (as submitted by
John Cagle <john dot cagle at hp dot com> and committed by
ps@FreeBSD.ORG), and treat the 5714 integral PHY the same way as we
treat the bcm5750 integral PHY.
This commit is contained in:
jonathan 2005-12-08 03:16:43 +00:00
parent 9bdc42727c
commit a92fde1678
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: brgphy.c,v 1.23 2005/02/27 00:27:31 perry Exp $ */
/* $NetBSD: brgphy.c,v 1.24 2005/12/08 03:16:43 jonathan Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.23 2005/02/27 00:27:31 perry Exp $");
__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.24 2005/12/08 03:16:43 jonathan Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -159,8 +159,8 @@ static const struct mii_phydesc brgphys[] = {
{ MII_OUI_BROADCOM, MII_MODEL_BROADCOM_BCM5704,
MII_STR_BROADCOM_BCM5704 },
{ MII_OUI_BROADCOM, MII_MODEL_BROADCOM_BCM5705,
MII_STR_BROADCOM_BCM5705 },
{ MII_OUI_BROADCOM, MII_MODEL_BROADCOM_BCM5714,
MII_STR_BROADCOM_BCM5714 },
{ MII_OUI_BROADCOM, MII_MODEL_BROADCOM_BCM5750,
MII_STR_BROADCOM_BCM5750 },
@ -244,6 +244,7 @@ brgphyattach(struct device *parent, struct device *self, void *aux)
sc->mii_funcs = &brgphy_5705_funcs;
break;
case MII_MODEL_BROADCOM_BCM5714:
case MII_MODEL_BROADCOM_BCM5750:
sc->mii_funcs = &brgphy_5750_funcs;
break;

View File

@ -1,4 +1,4 @@
$NetBSD: miidevs,v 1.60 2005/08/28 14:59:34 kiyohara Exp $
$NetBSD: miidevs,v 1.61 2005/12/08 03:16:43 jonathan Exp $
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@ -137,7 +137,8 @@ model BROADCOM BCM5703 0x0016 BCM5703 1000BASE-T media interface
model BROADCOM BCM5704 0x0019 BCM5704 1000BASE-T media interface
model BROADCOM BCM5705 0x001a BCM5705 1000BASE-T media interface
model BROADCOM BCM5750 0x0018 BCM5750 1000BASE-T media interface
model BROADCOM BCM5714 0x0034 BCM5714 1000BASE-T media interface
/* Cicada Semiconductor PHYs (now owned by Vitesse?) */
model CICADA CS8201 0x0001 Cicada CS8201 10/100/1000TX PHY
model CICADA CS8201A 0x0020 Cicada CS8201 10/100/1000TX PHY