From owner-freebsd-mobile Sun Jun 30 11:51:15 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 8AB0E37B400 for ; Sun, 30 Jun 2002 11:51:12 -0700 (PDT) Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64AE443E09 for ; Sun, 30 Jun 2002 11:51:11 -0700 (PDT) (envelope-from imp@village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g5UIpAY20656; Sun, 30 Jun 2002 12:51:10 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g5UIp9G13425; Sun, 30 Jun 2002 12:51:09 -0600 (MDT) (envelope-from imp@village.org) Date: Sun, 30 Jun 2002 12:49:58 -0600 (MDT) Message-Id: <20020630.124958.125360896.imp@village.org> To: jims@innerdot.com Cc: freebsd-mobile@FreeBSD.ORG Subject: Re: pccard recognition, irqs, and winmodems From: "M. Warner Losh" In-Reply-To: <20020629221433.ED929AB83@www.innerdot.com> References: <20020629221433.ED929AB83@www.innerdot.com> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 In message: <20020629221433.ED929AB83@www.innerdot.com> jims@innerdot.com (Jim Spring) writes: : First, why is it that no matter what configuration setting I use : in pccard.conf, the device inserted (both an orinoco wifi card and : this winmodem) insists on taking over IRQ 11. The irq line in the : pccard.conf file lists IRQ 3 5 9 10, for instance. 11 is not present, : yet it is acquired. I tried using pccardd manualling with the -i, : and -I flags, still it grabbed 11. Yes. You have a cardbus bridge, and that forces the IRQ to use. You MUST use the one that is routed to the PCI interrupt line that is connected to your cardbus bridge. : Second, how exactly are pccards detected? In other words, should : the modem be showing up in a scan using pciconf -lv? I can provide the : output, but the card does not show. However, when the modem is inserted, : pccardd recognizes, and starts the initialization that I configured : in pccard.conf. How exactly? Well, the driver checks to see if the CD lines have changed. If so, it checks the CD lines. If they are high, then the card isn't there, if they are low, then the card is present. From there we start the device attach proceedure. No, it won't show up after pciconf -lv. That's just for pci devices. PC Cards are not pci devices. : Last, how does ltmdm determine the type of modem loaded? Under windows, : the modem is recognized as a winmodem and running happily using the 8.22 : version of the driver from agere, prior to today it was running 5.87, : I believe. No clue. : Jun 26 00:59:09 chowder pccardd[54]: Card "LT WIN MODEM"("PC card") [] [] has fu : nction ID 2 : sio5 at port 0x2f8-0x2ff irq 11 flags 0x40000 slot 0 on pccard0 : sio5: type 16450 : sio5: unable to activate interrupt in fast mode - using normal mode : : Thoughts, comments? I don't think that the ltmdm driver supports this kind of lt modem. You'll need to create an PCCARD attachment for it at the very least. And there may be other difficulties in creating a driver for this 16-bit device. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message