From owner-freebsd-current Sat Aug 21 13:31:52 1999 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id A867E14C17 for ; Sat, 21 Aug 1999 13:31:50 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.1/8.9.1) id QAA12995; Sat, 21 Aug 1999 16:31:04 -0400 (EDT) (envelope-from wollman) Date: Sat, 21 Aug 1999 16:31:04 -0400 (EDT) From: Garrett Wollman Message-Id: <199908212031.QAA12995@khavrinen.lcs.mit.edu> To: Mike Smith Cc: Warner Losh , current@FreeBSD.ORG Subject: Re: HEADS UP: at_shutdown going away In-Reply-To: <199908211951.MAA00837@dingo.cdrom.com> References: <199908210701.BAA41654@harmony.village.org> <199908211951.MAA00837@dingo.cdrom.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < 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