From owner-freebsd-current Wed Oct 30 0:28:58 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C4CC37B401 for ; Wed, 30 Oct 2002 00:28:57 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F63A43E75 for ; Wed, 30 Oct 2002 00:28:56 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id g9U8Sspk043694; Wed, 30 Oct 2002 01:28:55 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 30 Oct 2002 01:27:35 -0700 (MST) Message-Id: <20021030.012735.23185149.imp@bsdimp.com> To: iwasaki@jp.FreeBSD.org Cc: current@FreeBSD.ORG Subject: Re: [PATCH] NEWCARD: pccardc power support From: "M. Warner Losh" In-Reply-To: <20021029.205532.85419285.iwasaki@jp.FreeBSD.org> References: <20021029.205532.85419285.iwasaki@jp.FreeBSD.org> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20021029.205532.85419285.iwasaki@jp.FreeBSD.org> Mitsuru IWASAKI writes: : I've implemented pccardc power and boot_deactivated support code for : NEWCARD. They are needed for some mobile users including me. : : - Add pccardc power support code. Yes, it's OLDCARD compatible. : - Add new loader tunable hw.cbb.boot_deactivated to prevent pccards : from attaching automatically. : : Some people want to keep pccards in slots all the time even if they : don't want to use the pccard. They can power pccard on via pccardc : command now (and in OLDCARD days) when it's required, so automatic : attaching pccards at boot time is not desired behavior for them. : : This is quick hack actually (took about 1 hour), so it's not : clean at all. : But it's good enough for prototype, working great for me actually :) Interesting. I'd like to be able to do this on my laptop with PCI devices that I'm not currently using (like say the sound chip, the usb bus, the firewire bus, and the one pci device that no driver attaches to). I'd also like the ability to turn on and off USB devices as well. These busses have different power interfaces (PCI gives you 4 levels of power, while USB gives you 2). While we're at it, I'd also like to see a way to attach/detach pccard devices w/o having to remove the card or unload the driver. I think that a good power/device control interface would be useful to have. So this is a good hack, and likely useful to a lot of people. However, I'd like to see a more thoughtful design of a good device control interface. I think that it dovetails nicely with the work I'm doing for devd. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message