From owner-freebsd-stable Sun Sep 2 0:54: 6 2001 Delivered-To: freebsd-stable@freebsd.org Received: from ns.sanda.gr.jp (ns.sanda.gr.jp [210.232.122.18]) by hub.freebsd.org (Postfix) with ESMTP id 06D1737B403 for ; Sun, 2 Sep 2001 00:54:00 -0700 (PDT) Received: from ever.sanda.gr.jp (epoch [10.93.63.51]) by ns.sanda.gr.jp (8.9.3/3.7W) with ESMTP id QAA19903 for ; Sun, 2 Sep 2001 16:53:58 +0900 (JST) From: non@ever.sanda.gr.jp Received: from localhost (localhost [127.0.0.1]) by ever.sanda.gr.jp (8.8.8/3.3W9) with ESMTP id QAA09824 for ; Sun, 2 Sep 2001 16:53:58 +0900 (JST) To: stable@FreeBSD.ORG Subject: Re: PC Card memory window In-Reply-To: <20010825090731N.non@ever.sanda.gr.jp> References: <200108230755.f7N7tUW82259@harmony.village.org> <200108241855.f7OIt8W96250@harmony.village.org> <20010825090731N.non@ever.sanda.gr.jp> X-Mailer: Mew version 1.94 on Emacs 19.28 / Mule 2.3 =?iso-2022-jp?B?KBskQkt2RSYyVhsoQik=?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010902165357Q.non@ever.sanda.gr.jp> Date: Sun, 02 Sep 2001 16:53:57 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 35 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I found the reason why nsp in SMIT mode which uses iomem window does not work. The SMIT mode of nsp requires 16 bits access but the change in cardd.c (1.65->1.66 in -current) made the access into 8 bits. The patch below (diff with -current) fixed the problem, though I don't know if some other cards need 8 bits access. > From: Warner Losh > Date: Fri, 24 Aug 2001 12:55:08 -0600 > > : memory 0xd4000 96k > > : in /etc/defautls/pccard.conf seems to be ignored, > > > > OK. It should not be ignored. Still this configuration is ignored. // Noriaki Mitsunaga // Index: cardd.c =================================================================== RCS file: /home2/FreeBSD/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v retrieving revision 1.72 diff -u -r1.72 cardd.c --- cardd.c 2001/08/19 19:16:26 1.72 +++ cardd.c 2001/09/02 07:48:18 @@ -706,7 +706,7 @@ sp->mem.cardaddr = 0x4000; sp->mem.flags = MDF_ACTIVE | MDF_16BITS; } else { - sp->mem.flags = MDF_ACTIVE; + sp->mem.flags = MDF_ACTIVE | MDF_16BITS; } if (sp->mem.flags & MDF_ACTIVE) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message