dc no worky with <Xircom X3201 10/100BaseTX>, also LOR
Robert Blacquiere
freebsd at guldan.demon.nl
Wed Feb 16 09:00:45 PST 2005
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!
-------------- next part --------------
--- 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);
More information about the freebsd-mobile
mailing list