From owner-freebsd-mobile Sat Jul 20 8:25:42 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DA9037B400; Sat, 20 Jul 2002 08:25:39 -0700 (PDT) Received: from valemount.com (mailgate.valemount.com [209.53.76.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEA5C43E31; Sat, 20 Jul 2002 08:25:38 -0700 (PDT) (envelope-from tony@valemount.com) Received: from master [209.53.76.138] by valemount.com [209.53.76.66] with SMTP (MDaemon.PRO.v5.0.7.R); Sat, 20 Jul 2002 08:24:34 -0700 Message-ID: <001b01c23001$d1f685d0$8a4c35d1@master> Reply-To: "Tony Toole" From: "Tony Toole" To: Cc: References: <09f301c22f87$05d23d70$114c35d1@tonyxp><20020719.231116.78708067.imp@bsdimp.com><005d01c22fb4$0bac86b0$8a4c35d1@master> <20020720.004449.29960453.imp@bsdimp.com> Subject: Re: pcmcia support with no ISA bus? Date: Sat, 20 Jul 2002 08:26:29 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Lookup-Warning: reverse lookup on original sender failed X-MDRemoteIP: 209.53.76.138 X-Return-Path: tony@valemount.com Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org You are awesome! Thanks a great deal! I'll have to give this a shot the first chance I get. Thanks! Tony Toole ----- Original Message ----- From: "M. Warner Losh" To: Cc: Sent: Friday, July 19, 2002 11:44 PM Subject: Re: pcmcia support with no ISA bus? > well, the following is completely untested. Lemme know if it works. > It is too green to go into the tree as-is, but will (if it works) get > you up and running. It won't work for anything but a real pci cardbus > bridge (or the wannabe cardbus bridge the ti-1031). Some ISA based > chips can also do it, but I don't plan on supporting those because > there are too many different ways to do it, it won't work on real ISA > cards, just funky wired chips in laptops, and there's little demand. > > this patch should also apply to -stable cleanly. > > Warner > > Index: pcic.c > =================================================================== > RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pcic.c,v > retrieving revision 1.176 > diff -u -r1.176 pcic.c > --- pcic.c 18 Jul 2002 08:13:45 -0000 1.176 > +++ pcic.c 20 Jul 2002 06:42:01 -0000 > @@ -232,6 +232,14 @@ > pcic_putw(sp, reg+2, (sys_addr + (mp->size >> 12) - 1) & 0xFFF); > pcic_putw(sp, reg+4, ((mp->card >> 12) - sys_addr) & 0x3FFF); > /* > + * Speical kludge for those users that need somewhere out of > + * the ISA window for their mapping who are using a cardbus > + * bridge. This will fail for those folks not using a yenta > + * bridge. XXX cleanup XXX > + */ > + if ((mp->start >> 24) != 0) > + sp->putb(sp, 0x40 + win, mp->start >> 24); > + /* > * Each 16 bit register has some flags in the upper bits. > */ > if (mp->flags & MDF_16BITS) > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-mobile" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message