From owner-freebsd-mobile Wed Jun 28 4:33:16 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 4F95037BE9E for ; Wed, 28 Jun 2000 04:33:13 -0700 (PDT) (envelope-from iwasaki@jp.FreeBSD.org) Received: from localhost (isdnb28.imasy.or.jp [202.227.24.156]) by tasogare.imasy.or.jp (8.10.1+3.3W/3.7W-tasogare/smtpfeed 1.07) with ESMTP id e5SBXAp36433; Wed, 28 Jun 2000 20:33:10 +0900 (JST) (envelope-from 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 In-Reply-To: References: X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20000628203310X.iwasaki@jp.FreeBSD.org> Date: Wed, 28 Jun 2000 20:33:10 +0900 From: Mitsuru IWASAKI X-Dispatcher: imput version 20000228(IM140) Lines: 47 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > 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