From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 16 17:00:45 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DE3716A4CF; Wed, 16 Feb 2005 17:00:45 +0000 (GMT) Received: from smtp2.cistron.nl (smtp2.cistron.nl [62.216.30.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95E9D43D55; Wed, 16 Feb 2005 17:00:22 +0000 (GMT) (envelope-from robert@guldan.demon.nl) Received: from cust.13.38.adsl.cistron.nl ([62.216.13.38] helo=guldan.demon.nl) by smtp2.cistron.nl with esmtp (Exim 3.35 #1 (Debian)) id 1D1SXF-0000Ow-00; Wed, 16 Feb 2005 18:00:21 +0100 Received: from bombur.guldan.demon.nl ([192.168.201.3] helo=localhost) by guldan.demon.nl with esmtp (Exim 4.24; FreeBSD) id 1D1SXA-000EDC-Nn; Wed, 16 Feb 2005 18:00:16 +0100 Date: Wed, 16 Feb 2005 18:00:16 +0100 From: Robert Blacquiere To: Daniel Eischen Message-ID: <20050216170016.GE39477@bombur.guldan.demon.nl> References: <20050216.084004.117280004.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Disclaimer: running FreeBSD X-Spam-Score: 0.0 (/) cc: freebsd-mobile@freebsd.org Subject: Re: dc no worky with , also LOR X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 17:00:45 -0000 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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); > +} 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! --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_dc.diff" --- 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); --/9DWx/yDrRhgMJTb--