From owner-freebsd-mobile@FreeBSD.ORG Wed Feb 16 16:51:41 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 3FD8516A4CE for ; Wed, 16 Feb 2005 16:51:41 +0000 (GMT) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 777F143D54 for ; Wed, 16 Feb 2005 16:51:40 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) j1GGpZbj015409; Wed, 16 Feb 2005 11:51:36 -0500 (EST) Date: Wed, 16 Feb 2005 11:51:35 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: "M. Warner Losh" In-Reply-To: <20050216.084004.117280004.imp@bsdimp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) 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 Reply-To: Daniel Eischen List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2005 16:51:41 -0000 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); +} -- DE Feb 12 02:02:07 orion kernel: Status is 0x30000920 cbb1: card inserted: event=0x00000000, state=30000920 cbb1: cbb_power: 3V TUPLE: LINKTARGET [3]: 43 49 53 Product version: 5.0 Product name: Xircom | CardBus Ethernet II 10/100 | CBEII-10/100 | 1.03 TUPLE: Unknown(0x88) [4]: 48 f5 1b 00 TUPLE: Unknown(0x8a) [12]: 39 30 30 36 46 48 31 42 46 35 34 38 TUPLE: Unknown(0x8b) [4]: 00 00 00 00 Manufacturer ID: 0501030181 TUPLE: Unknown(0x44) [4]: e8 51 53 31 Functions: Network Adaptor, Multi-Functioned Function Extension: 04060010a41bf548 Function Extension: 0102 Function Extension: 0280969800 Function Extension: 0200e1f505 Function Extension: 0301 Function Extension: 0303 Function Extension: 0501 TUPLE: Unknown(0x1c) [4]: 02 4f 02 ff cardbus1: Opening BAR: type=IO, bar=10, len=0080 cardbus1: Opening BAR: type=MEM, bar=14, len=0800 (Prefetchable) cardbus1: Opening BAR: type=MEM, bar=18, len=0800 (Prefetchable) TUPLE: Unknown(0x04) [7]: 03 02 03 01 00 00 ff TUPLE: Unknown(0x05) [8]: 41 b0 b0 bc 8e 0e fb 04 TUPLE: Unknown(0x05) [9]: 02 b8 02 b0 bc 8e 1c fb 04 TUPLE: Unknown(0x14) [0]: CIS reading done pcib2: device cardbus0 requested decoded memory range 0xf4000000-0xfbffffff pcib2: device cardbus0 requested decoded memory range 0xf4000000-0xfbffffff pcib2: device cardbus0 requested decoded I/O range 0xe000-0xffff found-> vendor=0x115d, dev=0x0003, revid=0x03 bus=4, slot=0, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0000, statreg=0x0210, cachelnsz=8 (dwords) lattimer=0xa8 (5040 ns), mingnt=0x14 (5000 ns), maxlat=0x28 (10000 ns) intpin=a, irq=222 powerspec 2 supports D0 D1 D2 D3 current D0 dc0: port 0xe000-0xe07f mem 0xf4002000-0xf40027ff,0xf4002800-0xf4002fff irq 11 at device 0.0 on cardbus0 pcib2: device dc0 requested decoded I/O range 0xe000-0xe07f dc_mii_readreg: ack ok, read 0 last message repeated 31 times dc0: MII without any PHY!