Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 1999 16:31:04 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Mike Smith <mike@smith.net.au>
Cc:        Warner Losh <imp@village.org>, current@FreeBSD.ORG
Subject:   Re: HEADS UP: at_shutdown going away 
Message-ID:  <199908212031.QAA12995@khavrinen.lcs.mit.edu>
In-Reply-To: <199908211951.MAA00837@dingo.cdrom.com>
References:  <199908210701.BAA41654@harmony.village.org> <199908211951.MAA00837@dingo.cdrom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Sat, 21 Aug 1999 12:51:29 -0700, Mike Smith <mike@smith.net.au> said:

>> [Quoting somebody unidentified, presumably Warner:]

>> Shouldn't the apm stuff use the new-bus hooks?  I've migraded a couple
>> of uses in pccard to using that now that I have newbus node to hang
>> them off of...

> APM is only attached to the ISA bus for crufty reasons; I'm going to 
> take it off shortly and use the kernel environment to pass it options.

You missed the point.  The bus hierarchy has support designed-in to
pass power-management requests down the device tree.  The only
functions which should be registering themselves with APM directly
are:

	1) Old device drivers using a compatibility shim, or

	2) Kernel code which is not a device driver.

If you need more functionality than DEVICE_SUSPEND and DEVICE_RESUME,
then add more methods.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick


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?199908212031.QAA12995>