From owner-freebsd-stable Sun Sep 2 1:38:45 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 44E8637B401 for ; Sun, 2 Sep 2001 01:38:39 -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 RAA21272 for ; Sun, 2 Sep 2001 17:38:38 +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 RAA11091 for ; Sun, 2 Sep 2001 17:38:37 +0900 (JST) To: stable@FreeBSD.ORG Subject: Re: PC Card memory window In-Reply-To: <20010902165357Q.non@ever.sanda.gr.jp> References: <200108241855.f7OIt8W96250@harmony.village.org> <20010825090731N.non@ever.sanda.gr.jp> <20010902165357Q.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: <20010902173837I.non@ever.sanda.gr.jp> Date: Sun, 02 Sep 2001 17:38:37 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 58 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 Sorry, I found that I have tested with PIO mode and still does not work with SMIT mode. Below is from /var/log/messages, /boot/kernel/kernel: pccard: card inserted, slot 0 pccardd[1039]: Card "WBT"("NinjaSCSI-3") [R1.0] [(null)] matched "WBT" ("NinjaSCSI-3") [(null)] [(null)] pccardd[1039]: Using mem addr 0xd4000, size 4096, card addr 0x4000, flags 0x41 pccardd[1039]: Using I/O addr 0x240, size 16 pccardd[1039]: Setting config reg at offs 0x200 to 0x41, Reset time = 50 ms /boot/kernel/kernel: nsp0 at port 0x240-0x24f iomem 0xc8800-0xc97ff irq 5 slot 0 on pccard0 /boot/kernel/kernel: /boot/kernel/kernel: nsp0: try to reset scsi bus /boot/kernel/kernel: nsp0: scsi_low: probing all devices ... It seems that pccardd is reading and assignning iomem correctly but kernel is ignoring it. From: non@ever.sanda.gr.jp Date: Sun, 02 Sep 2001 16:53:57 +0900 > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message