Date: Fri, 30 Jun 2000 02:20:53 +0800 From: Chan Tur Wei <twchan@singnet.com.sg> To: freebsd-stable@FreeBSD.ORG Cc: "Kevin M. Dulzo" <kdulzo@caffeine.gerp.org> Subject: Re: Xircom PCMCIA card support Message-ID: <4.3.1.2.20000630021523.00aa54b0@zaapth> In-Reply-To: <20000622161825.A18963@caffeine.gerp.org> References: <200006220212.UAA85390@harmony.village.org> <20000621182406.A9734@caffeine.gerp.org> <200006220212.UAA85390@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Thu, 22 Jun 2000, Kevin M. Dulzo wrote: > Date: Thu, 22 Jun 2000 16:18:25 -0500 > From: Kevin M. Dulzo <kdulzo@caffeine.gerp.org> > Reply-To: kdulzo@gerp.org > To: Warner Losh <imp@village.org> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.1.2.20000630021523.00aa54b0>