diff options
| author | cegger <cegger@NetBSD.org> | 2009-08-04 13:17:55 +0000 |
|---|---|---|
| committer | cegger <cegger@NetBSD.org> | 2009-08-04 13:17:55 +0000 |
| commit | 32258d719af686e6e9abac7a2b11aee67e1be636 (patch) | |
| tree | 92d6ed8245ed0cc5b8458d11d033fc2e6670b68c /sys/dev | |
| parent | 3ec4aae3c4b2badc80a3e0705798bed761c55b05 (diff) | |
support flow control. from OpenBSD.
tested by hans@
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/pci/if_age.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c index 2eee0706c48..d71c5957575 100644 --- a/sys/dev/pci/if_age.c +++ b/sys/dev/pci/if_age.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_age.c,v 1.28 2009/04/28 11:47:56 cegger Exp $ */ +/* $NetBSD: if_age.c,v 1.29 2009/08/04 13:17:55 cegger Exp $ */ /* $OpenBSD: if_age.c,v 1.1 2009/01/16 05:00:34 kevlo Exp $ */ /*- @@ -31,7 +31,7 @@ /* Driver for Attansic Technology Corp. L1 Gigabit Ethernet. */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.28 2009/04/28 11:47:56 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_age.c,v 1.29 2009/08/04 13:17:55 cegger Exp $"); #include "bpfilter.h" #include "vlan.h" @@ -275,7 +275,7 @@ age_attach(device_t parent, device_t self, void *aux) ifmedia_init(&sc->sc_miibus.mii_media, 0, age_mediachange, age_mediastatus); mii_attach(self, &sc->sc_miibus, 0xffffffff, MII_PHY_ANY, - MII_OFFSET_ANY, 0); + MII_OFFSET_ANY, MIIF_DOPAUSE); if (LIST_FIRST(&sc->sc_miibus.mii_phys) == NULL) { aprint_error_dev(self, "no PHY found!\n"); @@ -1166,12 +1166,10 @@ age_mac_config(struct age_softc *sc) } if ((IFM_OPTIONS(mii->mii_media_active) & IFM_FDX) != 0) { reg |= MAC_CFG_FULL_DUPLEX; -#ifdef notyet if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_TXPAUSE) != 0) reg |= MAC_CFG_TX_FC; if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_RXPAUSE) != 0) reg |= MAC_CFG_RX_FC; -#endif } CSR_WRITE_4(sc, AGE_MAC_CFG, reg); |
