Re: [PATCH] Re: Linksys PCM200

From: Ketrien I. Saihr-Kesenchedra (ketrien_at_error404.nls.net)
Date: 10/24/04

  • Next message: soralx_at_cydem.org: "Re: [PATCH] Re: Linksys PCM200"
    Date: Sun, 24 Oct 2004 13:19:13 -0400
    To: hackers@freebsd.org, soralx@cydem.org
    
    

    Okay, so I got unlazy and threw some stuff together. Try these patches;
    this will default the PCM200 cards to store-and-forward. This might help.
    -ksaihr

    --- /usr/src/sys/pci/if_dc.c Sun Oct 24 13:09:28 2004
    +++ if_dc.c Sun Oct 24 12:59:07 2004
    @@ -3022,6 +3022,16 @@
                    }
            }

    + if (DC_IS_LINKSYS(sc)) {
    + /*
    + * The Linksys PCM200 fails into store and forward mode
    very quickly,
    + * so instead of waiting, start it there.
    + */
    + printf("dc%d: setting card to store and forward mode\n",
    sc->dc_unit);
    + DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_STORENFWD);
    + }
    +
    +
            printf("dc%d: TX underrun -- ", sc->dc_unit);
            sc->dc_txthresh += DC_TXTHRESH_INC;
            if (sc->dc_txthresh > DC_TXTHRESH_MAX) {

    --- /usr/src/sys/pci/if_dcreg.h Thu Aug 5 13:46:14 2004
    +++ if_dcreg.h Sun Oct 24 13:09:31 2004
    @@ -98,6 +98,13 @@
     #define DC_IS_XIRCOM(x) (x->dc_type == DC_TYPE_XIRCOM)
     #define DC_IS_CONEXANT(x) (x->dc_type == DC_TYPE_CONEXANT)

    +/* Cards requiring specific workaround */
    + /* Linksys PCM200 */
    +#define DC_IS_LINKSYS(x) \
    + (x->dc_type == DC_TYPE_AN985 && \
    + pci_get_vendor(dev) == DC_VENDORID_LINKSYS && \
    + pci_get_device(dev) == DC_DEVICEID_PCM200_AB08)
    +
     /* MII/symbol mode port types */
     #define DC_PMODE_MII 0x1
     #define DC_PMODE_SYM 0x2

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: soralx_at_cydem.org: "Re: [PATCH] Re: Linksys PCM200"

    Relevant Pages

    • Re: [PATCH] Re: Linksys PCM200
      ... :> Okay, so I got unlazy and threw some stuff together. ... Try these patches; ... :> this will default the PCM200 cards to store-and-forward. ...
      (freebsd-hackers)
    • RE: Mshtml.dll Error
      ... tool I have All patches maybe to many as well it's ever since Sept I get this ... Both memory cards ... ModVer: 6.0.2900.3020 Offset: 0006ccf7 sometimes I'll get a different ...
      (microsoft.public.windowsxp.help_and_support)
    • [PATCH 4/3] Radeon acpi vgapost only Rv250 (M9)
      ... >> radeonfb by reposting the video bios. ... > These patches break resume from S3 for me. ... attached is a patch to only attempt a vga post on Rv250 cards ...
      (Linux-Kernel)
    • Re: 2.6.25 regression: vivi - scheduling while atomic
      ... This happenes on a vanilla 2.6.25 with loaded nvidia graphics module. ... I can rebase the patches for 2.6.25 but they are too big to go into the ... recently I was close to give up on forwarding a fix to ... affected drivers and cards and had a 9 months history. ...
      (Linux-Kernel)
    • Re: Hi all.. Novice user having woes getting Atheros card up in FreeBSD 6.0
      ... All the posts on BSDForums.org list that the athdriver in FreeBSD 6.0 ... When buying wireless cards, the chipset is the only thing that matters. ... Update your system to RELENG_6 and apply the patches that Sam ...
      (freebsd-stable)