Date: Sun, 02 Sep 2001 17:38:37 +0900 From: non@ever.sanda.gr.jp To: stable@FreeBSD.ORG Subject: Re: PC Card memory window Message-ID: <20010902173837I.non@ever.sanda.gr.jp> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <imp@harmony.village.org> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010902173837I.non>