Date: Wed, 16 Feb 2005 18:00:16 +0100 From: Robert Blacquiere <freebsd@guldan.demon.nl> To: Daniel Eischen <deischen@freebsd.org> Cc: freebsd-mobile@freebsd.org Subject: Re: dc no worky with <Xircom X3201 10/100BaseTX>, also LOR Message-ID: <20050216170016.GE39477@bombur.guldan.demon.nl> In-Reply-To: <Pine.GSO.4.43.0502161138360.3661-100000@sea.ntplx.net> References: <20050216.084004.117280004.imp@bsdimp.com> <Pine.GSO.4.43.0502161138360.3661-100000@sea.ntplx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Wed, Feb 16, 2005 at 11:51:35AM -0500, Daniel Eischen wrote:
> On Wed, 16 Feb 2005, M. Warner Losh wrote:
>
> > Dan,
> >
> > My Xircom cardbus cards work here for me, and I didn't see anything
> > odd enough to explain WHY things went south, only that they did.
> > Which one is the X3201? Maybe I don't see this because I'm trying the
> > wrong cards or don't yet own one (shocking, I know!).
>
> Both the Xircom Ethernet II w/modem and Xircom Ethernet II
> (w/out modem) show themselves as X3201. But the card without
> the modem doesn't work. dc_mii_readreg() always reads 0
> whenever called. There doesn't seem to be any MII device
> out there (well, responding).
>
> Here's some debug info. I added a printf in if_dc.c:736:
>
> if (ack)
> +{
> +printf("dc_mii_readreg: ack ok, read %d\n", frame->mii_data);
> return (1);
> +}
<snip>
Someone send a patch to this mailling list. As i was also having problems
with the mii bus failed to attach.
The patch he send is attached
Robert
--
Microsoft: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming or what?
OpenBSD: Hey guys you left some holes out there!
[-- Attachment #2 --]
--- if_dc.c~ Fri Oct 15 17:53:44 2004
+++ if_dc.c Mon Dec 20 14:22:48 2004
@@ -2151,8 +2151,8 @@
}
/* Allocate a busdma tag for mbufs. */
- error = bus_dma_tag_create(NULL, PAGE_SIZE, 0, BUS_SPACE_MAXADDR_32BIT,
- BUS_SPACE_MAXADDR, NULL, NULL, MCLBYTES * DC_TX_LIST_CNT,
+ error = bus_dma_tag_create(NULL, 1, 0, BUS_SPACE_MAXADDR_32BIT,
+ BUS_SPACE_MAXADDR, NULL, NULL, MCLBYTES,
DC_TX_LIST_CNT, MCLBYTES, 0, NULL, NULL, &sc->dc_mtag);
if (error) {
printf("dc%d: failed to allocate busdma tag\n", unit);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050216170016.GE39477>
