[PATCH] CE2 support added to xe driver

Scott Mitchell scott+freebsd at fishballoon.org
Wed Apr 23 16:09:50 PDT 2003


On Wed, Apr 23, 2003 at 04:26:14PM -0600, M. Warner Losh wrote:
> In message: <20030423220837.GD521 at tuatara.fishballoon.org>
>             Scott Mitchell <scott+freebsd at fishballoon.org> writes:
> : Note that older combo cards like the CEM28 and CEM33 probably still won't
> : work.  I think I have a solution for this, but it still needs more work.
> 
> Is this because they have mutliple CIS entries, only one of which can
> be active at a time, or something else?

The CIS only advertises the modem function, so you end up with an 8-byte
I/O window for a serial port only.  The Ethernet registers apparently
immediately follow the modem regs, but the Ethernet function needs to be
enabled by furtling with the CCR regs (at 0x800 in attribute space).  The
existing xe_cem56fix() function does this (and more) for RealPort cards;
for the CE2 cards we also need to offset the I/O base address we use to
access the Ethernet registers, and I guess make sure we can actually
reserve the required 32 bytes of I/O space rather than the 8 you get by
default.  I can see how to hack this in, but I don't know if there's an
'approved' way of doing it.

How does NEWCARD handle this kind of grossness?  I've got zero experience
with it so far, since the ISA bridge in my trusty ThinkPad 380 isn't
recognised yet.

Hope that makes sense to you.  I need to sleep now :-(

	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