On Sat, Jul 25, 2009 at 08:49:59AM -0400, Brad wrote:
> Along with the jmphy(4) diff here is a diff to enable flow control
> support for jme(4) adapters.a
 
As I said for the jmphy(4) diff I had a user test this independently
(other than the sample boards jsg@ and I have).

OK?
 

> Index: if_jme.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/if_jme.c,v
> retrieving revision 1.19
> diff -u -p -r1.19 if_jme.c
> --- if_jme.c  5 Jun 2009 06:05:06 -0000       1.19
> +++ if_jme.c  25 Jul 2009 11:18:54 -0000
> @@ -635,7 +635,7 @@ jme_attach(struct device *parent, struct
>       ifmedia_init(&sc->sc_miibus.mii_media, 0, jme_mediachange,
>           jme_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) {
>               printf("%s: no PHY found!\n", sc->sc_dev.dv_xname);
> @@ -1369,12 +1369,10 @@ jme_mac_config(struct jme_softc *sc)
>               txmac &= ~(TXMAC_COLL_ENB | TXMAC_CARRIER_SENSE |
>                   TXMAC_BACKOFF | TXMAC_CARRIER_EXT |
>                   TXMAC_FRAME_BURST);
> -#ifdef notyet
>               if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_TXPAUSE) != 0)
>                       txpause |= TXPFC_PAUSE_ENB;
>               if ((IFM_OPTIONS(mii->mii_media_active) & IFM_ETH_RXPAUSE) != 0)
>                       rxmac |= RXMAC_FC_ENB;
> -#endif
>               /* Disable retry transmit timer/retry limit. */
>               CSR_WRITE_4(sc, JME_TXTRHD, CSR_READ_4(sc, JME_TXTRHD) &
>                   ~(TXTRHD_RT_PERIOD_ENB | TXTRHD_RT_LIMIT_ENB));
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to