Date: Thu, 24 Apr 2003 00:09:06 +0100 From: Scott Mitchell <scott+freebsd@fishballoon.org> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-mobile@freebsd.org Subject: Re: [PATCH] CE2 support added to xe driver Message-ID: <20030423230906.GU572@tuatara.fishballoon.org> In-Reply-To: <20030423.162614.23012781.imp@bsdimp.com> References: <20030406160714.GF517@tuatara.fishballoon.org> <20030423220837.GD521@tuatara.fishballoon.org> <20030423.162614.23012781.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 23, 2003 at 04:26:14PM -0600, M. Warner Losh wrote: > In message: <20030423220837.GD521@tuatara.fishballoon.org> > Scott Mitchell <scott+freebsd@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030423230906.GU572>