From owner-freebsd-mobile@FreeBSD.ORG Fri Dec 31 20:32:03 2004 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 5643D16A4CE for ; Fri, 31 Dec 2004 20:32:03 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E42FD43D49 for ; Fri, 31 Dec 2004 20:32:02 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iBVKVLPK008404; Fri, 31 Dec 2004 13:31:22 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 31 Dec 2004 13:31:31 -0700 (MST) Message-Id: <20041231.133131.26533686.imp@bsdimp.com> To: mike@sentex.net From: "M. Warner Losh" In-Reply-To: <6.2.0.14.0.20041230161833.05a71598@64.7.153.2> References: <6.2.0.14.0.20041230161833.05a71598@64.7.153.2> X-Mailer: Mew version 3.3 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: resetting a cardbus device 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: Fri, 31 Dec 2004 20:32:03 -0000 In message: <6.2.0.14.0.20041230161833.05a71598@64.7.153.2> Mike Tancsa writes: : I am working with a cardbus modem that is somewhat buggy. Unfortunately, I : dont have much documentation for its AT Command set (its a GPRS modem) and : at&f or atz does not seem to reset it properly when it goes "wonky". The : only way is to pull it out and put it back in. Unfortunately, I want to : remotely deploy this device so I cant physically do that. A reboot seems : to work, but thats not the greatest thing to do either. : : dmesg shows : : : cbb0: mem 0xe6400000-0xe6400fff irq 12 at : device 10.0 on pci0 : cardbus0: on cbb0 : pccard0: <16-bit PCCard bus> on cbb0 : cbb1: mem 0xe6405000-0xe6405fff irq 5 at : device 10.1 on pci0 : cardbus1: on cbb1 : pccard1: <16-bit PCCard bus> on cbb1 : : sio4: at port 0x3e8-0x3ef irq 12 function 0 : config 32 on pccard0 : sio4: type 16550A : sio4: unable to activate interrupt in fast mode - using normal mode : : This is a RELENG_5 box from 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Dec 22 You could create a sio_pci.ko module that just has the sio_pci.c file in it. You can also create a custom sio.ko module w/o this. Then you can unload/load that module. Warner