From owner-freebsd-mobile@FreeBSD.ORG Fri Jun 27 21:19:48 2003 Return-Path: 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 B617837B401 for ; Fri, 27 Jun 2003 21:19:48 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84FC343F93 for ; Fri, 27 Jun 2003 21:19:47 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h5S4JkE1084764; Fri, 27 Jun 2003 22:19:46 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 27 Jun 2003 22:19:42 -0600 (MDT) Message-Id: <20030627.221942.54184835.imp@bsdimp.com> To: lambert@lambertfam.org From: "M. Warner Losh" In-Reply-To: <20030628015829.GA685@laptop.lambertfam.org> References: <20030628015829.GA685@laptop.lambertfam.org> X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: FreeBSD-mobile@freebsd.org Subject: Re: Trying to add support for a Linksys WCF12 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2003 04:19:49 -0000 In message: <20030628015829.GA685@laptop.lambertfam.org> Scott Lambert writes: : I bought a Linksys WCF12 for my new Zaurus and just decided to see what : would happen if I popped it into my CF to PCMCIA adapter and put it into : my laptop. : : pccard1: CIS version unknown (major=1, minor=0) : pccard1: CIS info: Linksys, Wireless CompactFlash Card, , : pccard1: Manufacturer code 0x28a, product 0x673 : pccard1: function 0: network adapter, ccr addr 3e0 mask 1 : pccard1: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, iospace 0-3f; io16 irqshare irqpulse irqlevel : pccard1: (manufacturer=0x028a, product=0x0673) at function 0 : pccard1: CIS info: Linksys, Wireless CompactFlash Card, : : So I said to myself "Hey, I'll add a couple of lines to some equivalent : of usbdevs." I found pccarddevs and found that Manufacturer code 0x28a : is already taken by IODATA2, so maybe IO Data makes them and LinkSys : brands them. : : >From pccarddevs: : vendor IODATA2 0x028a I-O DATA : : : I added this line to the IODATA2 section: : product IODATA2 WCF12 0x0673 Linksys, Wireless CompactFlash Card : : I ran makefile -f Makefile.pccarddevs, which did regenerate : pccarddevs.h. I made a new kernel and modules with make kernel : KERNCONF=LAPTOP and rebooted. According to dmesg, it still doesn't : recognize the card. : : Since I see the WCF11 in pccarddevs, I suppose that it is possible to : use a cf card as a pccard. Obviously, I've missed modifying somthing to : know about this card. Could somebody point me in the right direction? Add: PCMCIA_CARD(IODATA2, WCF12, 0), to the table in if_wi_pccard.c Warner