Date: Wed, 30 Oct 2002 01:27:35 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: iwasaki@jp.FreeBSD.org Cc: current@FreeBSD.ORG Subject: Re: [PATCH] NEWCARD: pccardc power support Message-ID: <20021030.012735.23185149.imp@bsdimp.com> In-Reply-To: <20021029.205532.85419285.iwasaki@jp.FreeBSD.org> References: <20021029.205532.85419285.iwasaki@jp.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20021029.205532.85419285.iwasaki@jp.FreeBSD.org> Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021030.012735.23185149.imp>