From owner-freebsd-mobile Sun Nov 25 16:45:51 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 37FDD37B417; Sun, 25 Nov 2001 16:45:41 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id fAQ0jea96875; Sun, 25 Nov 2001 17:45:40 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id fAQ0jd753519; Sun, 25 Nov 2001 17:45:39 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200111260045.fAQ0jd753519@harmony.village.org> To: YAMAMOTO Shigeru Subject: Re: patch to support sio with NEWCARD Cc: freebsd-mobile@FreeBSD.ORG, freebsd-current@FreeBSD.ORG In-reply-to: Your message of "Mon, 26 Nov 2001 08:19:12 +0900." <20011126.081912.33968257.shigeru@iij.ad.jp> References: <20011126.081912.33968257.shigeru@iij.ad.jp> Date: Sun, 25 Nov 2001 17:45:39 -0700 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <20011126.081912.33968257.shigeru@iij.ad.jp> YAMAMOTO Shigeru writes: : I make a patch to support sio with NEWCARD. : This patch is to avoid ghost interrupt when a PC-Card was removed. : : This patch has one assamption, : - all Serial PC-Card have a 16450/16550 compatible interface. This is a reasonable assumption. If not, it should be easy to tweak to return a small negative number so that other device have a chance at this hardware. : I tested it on my NotePC and there is no problems. : Please try it if you have an interest. I've tried it here too. From what I can tell in my breif tests, the interrupt patches aren't strictly required, unless you eject while the card is busy. Since bde is the main maintainer for sio, I'll clean them up a little and run them by him. The other part of the patch I went ahead and committed. I've wanted this for a while now. This would be an excellent example of how to do, for example, the ata pccard driver if someone was so inclined. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message