From owner-freebsd-stable Thu Jun 29 11:22:34 2000 Delivered-To: freebsd-stable@freebsd.org Received: from smtp23.singnet.com.sg (smtp23.singnet.com.sg [165.21.101.203]) by hub.freebsd.org (Postfix) with ESMTP id C839037BC8F for ; Thu, 29 Jun 2000 11:22:22 -0700 (PDT) (envelope-from twchan@singnet.com.sg) Received: from twchan.singnet.com.sg (tns01125.singnet.com.sg [165.21.186.155]) by smtp23.singnet.com.sg (8.9.3/8.9.3) with ESMTP id CAA16909; Fri, 30 Jun 2000 02:22:12 +0800 (envelope-from twchan@singnet.com.sg) Message-Id: <4.3.1.2.20000630021523.00aa54b0@zaapth> X-Sender: twchan@zaapth (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 30 Jun 2000 02:20:53 +0800 To: freebsd-stable@FreeBSD.ORG From: Chan Tur Wei Subject: Re: Xircom PCMCIA card support Cc: "Kevin M. Dulzo" In-Reply-To: <20000622161825.A18963@caffeine.gerp.org> References: <200006220212.UAA85390@harmony.village.org> <20000621182406.A9734@caffeine.gerp.org> <200006220212.UAA85390@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, On Thu, 22 Jun 2000, Kevin M. Dulzo wrote: > Date: Thu, 22 Jun 2000 16:18:25 -0500 > From: Kevin M. Dulzo > Reply-To: kdulzo@gerp.org > To: Warner Losh > Cc: freebsd-stable@FreeBSD.ORG > Subject: Re: Xircom PCMCIA card support > > On Wed, Jun 21, 2000 at 08:12:55PM -0600, Warner Losh wrote: > > > > What's your pccard.conf entry for this card? The config id 35 not > > present looks bad. > > > > Warner > This is using a default out of the box /etc/defaults/pccard.conf > CVSup'd to June 20th iirc. pccard.conf shows 2 entries one modem/one ether > the modem is NOT attached either. > > card "Xircom" "CreditCard Ethernet 10/100 + Modem 56" > config 0x27 "xe0" ? > insert logger -t pccard:$device -s Xircom CreditCard Modem inserted > insert /etc/pccard_ether $device > remove logger -t pccard:$device -s Xircom CreditCard Modem removed > remove /sbin/ifconfig $device delete > > pccardc dumpcis output - I am sure someone will ask for this =) [...snip...] I was hoping to see an update regarding this problem Kevin brought up as I was having the same problem. Anyway, I dug into the cardd.c code in pccardd, and I realised that pccardd was matching against the following entry in /etc/defaults/pccard.conf: # Xircom CreditCard Ethernet+Modem (Modem only !!!) card "Xircom" "CreditCard Ethernet" config 0x23 "sio2" ? insert logger -t pccard:$device -s Xircom CreditCard Modem inserted remove logger -t pccard:$device -s Xircom CreditCard Modem removed which happens to happen before my (our?) desired entry: # Xircom CreditCard Ethernet 10/100 + modem (Ethernet part) card "Xircom" "CreditCard Ethernet 10/100 + Modem 56" config 0x27 "xe0" ? insert logger -t pccard:$device -s Xircom CreditCard Modem inserted insert /etc/pccard_ether $device remove logger -t pccard:$device -s Xircom CreditCard Modem removed remove /sbin/ifconfig $device delete It seems cis_strcmp() in cardd.c would return a match for "CreditCard Ethernet 10/100 + Modem 56" and "CreditCard Ethernet"; hence pccardd will try to use config 0x23 to configure the card, which doesn't work. I got around this by creating my own pccard.conf in /etc, ensuring that the Ethernet bit is before the modem stuff, then pointing rc.conf to my /etc/pccard.conf, then *wallah* things worked. Regards -T.W.Chan- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message