summaryrefslogtreecommitdiffstats
path: root/sys/kern/device_if.m
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1998-11-14 21:58:51 +0000
committerwollman <wollman@FreeBSD.org>1998-11-14 21:58:51 +0000
commit2f0e3424ed6bcb975173592be454fab41a7d659a (patch)
tree570ac1a59a276154fa1ecdf8529f4edc007e8800 /sys/kern/device_if.m
parentd0ac456c883f5146f0c93ef654a57e02ffbffb87 (diff)
downloadFreeBSD-src-2f0e3424ed6bcb975173592be454fab41a7d659a.zip
FreeBSD-src-2f0e3424ed6bcb975173592be454fab41a7d659a.tar.gz
My changes to the new device interface:
- Interface wth the new resource manager. - Allow for multiple drivers implementing a single devclass. - Remove ordering dependencies between header files. - Style cleanup. - Add DEVICE_SUSPEND and DEVICE_RESUME methods. - Move to a single-phase interrupt setup scheme. Kernel builds on the Alpha are brken until Doug gets a chance to incorporate these changes on that side. Agreed to in principle by: dfr
Diffstat (limited to 'sys/kern/device_if.m')
-rw-r--r--sys/kern/device_if.m16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/kern/device_if.m b/sys/kern/device_if.m
index b86de7a..f429e67 100644
--- a/sys/kern/device_if.m
+++ b/sys/kern/device_if.m
@@ -23,7 +23,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: device_if.m,v 1.1 1998/06/14 13:53:10 dfr Exp $
+# $Id: device_if.m,v 1.2 1998/11/08 18:35:53 nsouch Exp $
#
INTERFACE device;
@@ -67,3 +67,17 @@ METHOD int detach {
METHOD int shutdown {
device_t dev;
};
+
+#
+# This is called by the power-management subsystem when a suspend has been
+# requested by the user or by some automatic mechanism. This gives
+# drivers a chance to veto the suspend or save their configuration before
+# power is removed.
+#
+METHOD int suspend {
+ device_t dev;
+};
+
+METHOD int resume {
+ device_t dev;
+};
OpenPOWER on IntegriCloud