diff options
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_em.c | 14 | ||||
-rw-r--r-- | sys/dev/pci/if_lge.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/if_nge.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/if_sk.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/if_ti.c | 10 |
6 files changed, 15 insertions, 29 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index ef382611832..65809a09afa 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.16 2002/11/26 05:09:36 nate Exp $ */ +/* $OpenBSD: if_bge.c,v 1.17 2002/11/26 06:01:28 nate Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2001 @@ -493,7 +493,7 @@ bge_miibus_statchg(dev) struct mii_data *mii = &sc->bge_mii; BGE_CLRBIT(sc, BGE_MAC_MODE, BGE_MACMODE_PORTMODE); - if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_TX) { + if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) { BGE_SETBIT(sc, BGE_MAC_MODE, BGE_PORTMODE_GMII); } else { BGE_SETBIT(sc, BGE_MAC_MODE, BGE_PORTMODE_MII); diff --git a/sys/dev/pci/if_em.c b/sys/dev/pci/if_em.c index cc0b004fd4b..4a0c3e24073 100644 --- a/sys/dev/pci/if_em.c +++ b/sys/dev/pci/if_em.c @@ -1100,11 +1100,7 @@ em_media_status(struct ifnet *ifp, struct ifmediareq *ifmr) ifmr->ifm_active |= IFM_100_TX; break; case 1000: -#if __FreeBSD_version < 500000 - ifmr->ifm_active |= IFM_1000_TX; -#else ifmr->ifm_active |= IFM_1000_T; -#endif break; } if (sc->link_duplex == FULL_DUPLEX) @@ -1140,11 +1136,7 @@ em_media_change(struct ifnet *ifp) sc->hw.autoneg_advertised = AUTONEG_ADV_DEFAULT; break; case IFM_1000_SX: -#if __FreeBSD_version < 500000 - case IFM_1000_TX: -#else case IFM_1000_T: -#endif sc->hw.autoneg = DO_AUTO_NEG; sc->hw.autoneg_advertised = ADVERTISE_1000_FULL; break; @@ -1448,15 +1440,9 @@ em_setup_interface(struct em_softc * sc) 0, NULL); ifmedia_add(&sc->media, IFM_ETHER | IFM_100_TX | IFM_FDX, 0, NULL); -#if __FreeBSD_version < 500000 - ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_TX | IFM_FDX, - 0, NULL); - ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_TX, 0, NULL); -#else ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_T | IFM_FDX, 0, NULL); ifmedia_add(&sc->media, IFM_ETHER | IFM_1000_T, 0, NULL); -#endif } ifmedia_add(&sc->media, IFM_ETHER | IFM_AUTO, 0, NULL); ifmedia_set(&sc->media, IFM_ETHER | IFM_AUTO); diff --git a/sys/dev/pci/if_lge.c b/sys/dev/pci/if_lge.c index d0338d6efaa..5d9fb4f1258 100644 --- a/sys/dev/pci/if_lge.c +++ b/sys/dev/pci/if_lge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lge.c,v 1.10 2002/07/10 18:08:13 deraadt Exp $ */ +/* $OpenBSD: if_lge.c,v 1.11 2002/11/26 06:01:28 nate Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -303,7 +303,7 @@ void lge_miibus_statchg(dev) LGE_CLRBIT(sc, LGE_GMIIMODE, LGE_GMIIMODE_SPEED); switch (IFM_SUBTYPE(mii->mii_media_active)) { - case IFM_1000_TX: + case IFM_1000_T: case IFM_1000_SX: LGE_SETBIT(sc, LGE_GMIIMODE, LGE_SPEED_1000); break; @@ -1147,7 +1147,7 @@ void lge_tick(xsc) IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) { sc->lge_link++; if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_SX|| - IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_TX) + IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) printf("%s: gigabit link up\n", sc->sc_dv.dv_xname); if (!IFQ_IS_EMPTY(&ifp->if_snd)) diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c index 28f202dbd11..3b52d48b07c 100644 --- a/sys/dev/pci/if_nge.c +++ b/sys/dev/pci/if_nge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nge.c,v 1.23 2002/09/22 17:53:43 nate Exp $ */ +/* $OpenBSD: if_nge.c,v 1.24 2002/11/26 06:01:28 nate Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -597,7 +597,7 @@ nge_miibus_statchg(dev) CSR_WRITE_4(sc, NGE_RX_CFG, rxcfg); /* If we have a 1000Mbps link, set the mode_1000 bit. */ - if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_TX) + if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) NGE_SETBIT(sc, NGE_CFG, NGE_CFG_MODE_1000); else NGE_CLRBIT(sc, NGE_CFG, NGE_CFG_MODE_1000); @@ -1549,7 +1549,7 @@ nge_tick(xsc) if (mii->mii_media_status & IFM_ACTIVE && IFM_SUBTYPE(mii->mii_media_active) != IFM_NONE) { sc->nge_link++; - if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_TX) + if (IFM_SUBTYPE(mii->mii_media_active) == IFM_1000_T) DPRINTF(("%s: gigabit link up\n", sc->sc_dv.dv_xname)); if (!IFQ_IS_EMPTY(&ifp->if_snd)) diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index 1648262ad30..449bf29feb7 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.25 2002/06/08 23:32:16 jason Exp $ */ +/* $OpenBSD: if_sk.c,v 1.26 2002/11/26 06:01:28 nate Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1175,7 +1175,7 @@ skc_attach(parent, self, aux) sc->sk_pmd = IFM_1000_CX; break; case SK_PMD_1000BASETX: - sc->sk_pmd = IFM_1000_TX; + sc->sk_pmd = IFM_1000_T; break; default: printf("%s: unknown media type: 0x%x\n", diff --git a/sys/dev/pci/if_ti.c b/sys/dev/pci/if_ti.c index 8aca9b39d64..11f0fd7225c 100644 --- a/sys/dev/pci/if_ti.c +++ b/sys/dev/pci/if_ti.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ti.c,v 1.39 2002/11/19 18:40:17 jason Exp $ */ +/* $OpenBSD: if_ti.c,v 1.40 2002/11/26 06:01:28 nate Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -1635,9 +1635,9 @@ ti_attach(parent, self, aux) ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_100_TX, 0, NULL); ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_100_TX|IFM_FDX, 0, NULL); - ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_1000_TX, 0, NULL); + ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_1000_T, 0, NULL); ifmedia_add(&sc->ifmedia, - IFM_ETHER|IFM_1000_TX|IFM_FDX, 0, NULL); + IFM_ETHER|IFM_1000_T|IFM_FDX, 0, NULL); } else { /* Fiber cards don't support 10/100 modes. */ ifmedia_add(&sc->ifmedia, IFM_ETHER|IFM_1000_SX, 0, NULL); @@ -2182,7 +2182,7 @@ int ti_ifmedia_upd(ifp) TI_CMD_CODE_NEGOTIATE_BOTH, 0); break; case IFM_1000_SX: - case IFM_1000_TX: + case IFM_1000_T: CSR_WRITE_4(sc, TI_GCR_GLINK, TI_GLNK_PREF|TI_GLNK_1000MB| TI_GLNK_RX_FLOWCTL_Y|TI_GLNK_ENB); CSR_WRITE_4(sc, TI_GCR_LINK, 0); @@ -2240,7 +2240,7 @@ void ti_ifmedia_sts(ifp, ifmr) if (sc->ti_linkstat == TI_EV_CODE_GIG_LINK_UP) { media = CSR_READ_4(sc, TI_GCR_GLINK_STAT); if (sc->ti_copper) - ifmr->ifm_active |= IFM_1000_TX; + ifmr->ifm_active |= IFM_1000_T; else ifmr->ifm_active |= IFM_1000_SX; if (media & TI_GLNK_FULL_DUPLEX) |