Re: [PATCH] NEWCARD: pccardc power support

2002-10-31 Thread Mitsuru IWASAKI
Hi,

 In message: [EMAIL PROTECTED]
 Mitsuru IWASAKI [EMAIL PROTECTED] 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.
[snip]
 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.

Yes, my understanding of the goal of devd is that.  Also I understand
that NEWCARD users will be eager for suggested features until devd
development is completed.  So I'll leave the patches for such a people
for a while at:
http://people.freebsd.org/~iwasaki/pccard/cbb-pccardc-power-support-20021029.diff

BTW, I think that some developers are interested in devd.
Do we have mailing list for it?

Thanks

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: [PATCH] NEWCARD: pccardc power support

2002-10-31 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Mitsuru IWASAKI [EMAIL PROTECTED] writes:
: BTW, I think that some developers are interested in devd.
: Do we have mailing list for it?

Not currently.  I can create one if people are interested.

I've also been thinking of a good way we can have the above power
support in current until we can make it generic.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: [PATCH] NEWCARD: pccardc power support

2002-10-30 Thread M. Warner Losh
In message: [EMAIL PROTECTED]
Mitsuru IWASAKI [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: [PATCH] NEWCARD: pccardc power support

2002-10-30 Thread Mark Santcroos
Hi Mitsuru,

I was also thinking about this so I'm very happy with your patch!
It works great here!

This is very usefull for me as I have an internal pccard that I prefer not to
be active all time.

Thanks

Mark

On Tue, Oct 29, 2002 at 08:55:32PM +0900, Mitsuru IWASAKI wrote:
 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 :)

-- 
Mark SantcroosRIPE Network Coordination Centre
http://www.ripe.net/home/mark/New Projects Group/TTM

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message