Date: Wed, 28 Jun 2000 20:33:10 +0900 From: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> To: dmlb@ragnet.demon.co.uk Cc: freebsd-mobile@freebsd.org, imp@village.org, iwasaki@jp.FreeBSD.org Subject: RE: pccard differences between -current and -stable Message-ID: <20000628203310X.iwasaki@jp.FreeBSD.org> In-Reply-To: <XFMail.000628081346.dmlb@computer.my.domain> References: <XFMail.000628081346.dmlb@computer.my.domain>
next in thread | previous in thread | raw e-mail | index | archive | help
> > I don't think so as Warners more recent changes to pccard get all this right.
> > I have no problem in setting up the raylink cards with a config entry of
>
> The recent changes to reading CIS tuples seem to get this information
> correctly for the Webgear/Raylink cards I am writing for.
>
> I used the cardmem mechanism from PAO for the 3.x version of the driver and it
> worked reasonably well. Does this exist in -current and -stable?
No, it doesn't.
It seems that the problem is pccardd force to set 0x4000 to
mem.cardaddr and MDF_16BITS to mem.flags...
I'm not sure how to set 8bits/16bits flags correctly though.
Is the following changes for pccardd whar you expect?
I've tested this with several cards w/o problems, but I don't have any
cards which uses cardmem.
# I'm not still clear, I could be wrong.
Index: cardd.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/pccard/pccardd/cardd.c,v
retrieving revision 1.53
diff -u -r1.53 cardd.c
--- cardd.c 2000/05/30 15:33:56 1.53
+++ cardd.c 2000/06/28 10:38:22
@@ -582,7 +582,9 @@
return (-2);
sp->config->driver->mem = sp->mem.addr;
}
+#if 0
sp->mem.cardaddr = 0x4000;
+#endif
sp->flags |= MEM_ASSIGNED;
if (debug_level > 0) {
logmsg("Using mem addr 0x%x, size %d, card addr 0x%x\n",
@@ -740,7 +742,11 @@
}
if (sp->flags & MEM_ASSIGNED) {
mem.window = 0;
+#if 0
mem.flags = sp->mem.flags | MDF_ACTIVE | MDF_16BITS;
+#else
+ mem.flags = sp->mem.flags | MDF_ACTIVE;
+#endif
mem.start = (caddr_t) sp->mem.addr;
mem.card = sp->mem.cardaddr;
mem.size = sp->mem.size;
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000628203310X.iwasaki>
