Xircom XE2000 card

Scott Mitchell scott+lists.freebsd at fishballoon.org
Wed Nov 29 14:40:38 PST 2006


On Sun, Nov 26, 2006 at 06:10:39PM -0700, jvk-list at thekrafts.org wrote:
> 
> I've taken this about as far as I can, I need someone else with more
> knowledge about how the device drivers work to validate and actually
> get the issue fixed in the source. 

Hi Joe,

I've come into this thread a bit late and still catching up on everything
you went through to get to this point, but it looks like you have got to
the solution.

Your fix looks reasonable to me - I actually remember testing with a
borrowed XE2000 card year or so ago and honestly thought I had already
committed at least part of the fix in kern/85266, but apparently not.

Anyway, if Warner has no objections I can commit your fix, although it's
probably too late to get it into 6.2.  Warner, any problem with committing
Joe's changes described below?

> MY SOLUTION:
> The real answer to my problem which was how to get my Xircom XE2000 card
> to work with FreeBSD 6.1 took a bit of googleing and digging through the
> code.  The issue is evidentally that there are at least two incarnations
> of the XE2000 card, and as luck would have it the one I had was not
> recognized correctly by the xe driver.
> 
> The bottom line is that the card is recognized by the xe driver, but I
> had to add entries for it to the pccarddevs file as well as to the xe
> driver.
> 
> I apologize for not being able to create normal diffs.  With the setup
> I'm forced to live with right now, I'm lucky to have e-mail access.  I
> hope someone can decipher my freeform version, and generate a proper
> one so it can be comitted.
> 
> For the first part, src/sys/dev/pccard/pccarddevs must be modified.  For
> version 1.125, add the following after line 600:
> product XIRCOM XE2000_2            0x010a Xircom XE2000 10/100 Ethernet
> 
> The second part is in: src/sys/dev/pccard/if_xe_pccard.c.  The current
> version is 1.32, add the following after line 125:
> { PCMCIA_CARD_D(XIRCOM, XE2000),   0x53, XE_CARD_TYPE_FLAGS_MOHAWK },
> { PCMCIA_CARD_D(XIRCOM, XE2000_2), 0x53, XE_CARD_TYPE_FLAGS_MOHAWK },
> 
> This is essentially the same change as requested in kern/85266 in the
> bugs database, updated slightly for the new format of pccarddevs for
> 6.0.
> 
> UNRESOLVED ISSUE:
> I'm also a little concerned by the fact that the ed(4) driver tries to
> grab the device, I had to build a kernel without ed(4) to get the xe
> driver to recognize the card. 

The ed(4) driver claims to support the TDK CFE-10 card.  TDK's vendor ID in
pccarddevs is the same as Xircom's (0x0105) and the product ID of the
CFE-10 (0x010a) is the same as several Xircom cards, including your
XE2000.  Did you try your XE2000 against a kernel with xe(4) including your
patch, and ed(4)?  It looks like ed(4) tries to claim the card but fails to
attach it - xe(4) should get a chance to pick it up now it knows about the
card.  I'll dig through my box of old Xircom cards and see if I can find
one with the right product ID to test myself.

Thanks for going through all the pain to get this working!

Cheers,

	Scott

-- 
===========================================================================
Scott Mitchell           | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England       | 0x54B171B9 |  don't get sucked into jet engines"
scott at fishballoon.org | 0xAA775B8B |      -- Anon


More information about the freebsd-mobile mailing list