From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 23 16:09:49 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B143937B401 for ; Wed, 23 Apr 2003 16:09:49 -0700 (PDT) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C99143FD7 for ; Wed, 23 Apr 2003 16:09:48 -0700 (PDT) (envelope-from scott@fishballoon.org) Received: from fishballoon.org ([81.104.195.199]) by mta06-svc.ntlworld.com ESMTP <20030423230947.DXKX12018.mta06-svc.ntlworld.com@fishballoon.org>; Thu, 24 Apr 2003 00:09:47 +0100 Received: from tuatara.fishballoon.org (tuatara [192.168.1.6]) by fishballoon.org (8.12.8p1/8.12.8) with ESMTP id h3NN964o035227; Thu, 24 Apr 2003 00:09:06 +0100 (BST) (envelope-from scott@tuatara.fishballoon.org) Received: (from scott@localhost) by tuatara.fishballoon.org (8.12.9/8.12.9/Submit) id h3NN96cD084074; Thu, 24 Apr 2003 00:09:06 +0100 (BST) (envelope-from scott) Date: Thu, 24 Apr 2003 00:09:06 +0100 From: Scott Mitchell To: "M. Warner Losh" Message-ID: <20030423230906.GU572@tuatara.fishballoon.org> References: <20030406160714.GF517@tuatara.fishballoon.org> <20030423220837.GD521@tuatara.fishballoon.org> <20030423.162614.23012781.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030423.162614.23012781.imp@bsdimp.com> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.8-STABLE i386 cc: freebsd-mobile@freebsd.org Subject: Re: [PATCH] CE2 support added to xe driver X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 23:09:50 -0000 On Wed, Apr 23, 2003 at 04:26:14PM -0600, M. Warner Losh wrote: > In message: <20030423220837.GD521@tuatara.fishballoon.org> > Scott Mitchell 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