summaryrefslogtreecommitdiffstats
path: root/sys/sys/device.h
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2009-11-22 18:40:13 +0000
committerpirofti <pirofti@openbsd.org>2009-11-22 18:40:13 +0000
commit82903ef2ad45c2a28ab333991b713b4a45ede2de (patch)
tree8f20da2caa4bc00e3bf72e1c4ae9c890b5c70d18 /sys/sys/device.h
parentSMP support on MIPS clock. (diff)
downloadwireguard-openbsd-82903ef2ad45c2a28ab333991b713b4a45ede2de.tar.xz
wireguard-openbsd-82903ef2ad45c2a28ab333991b713b4a45ede2de.zip
Add basic suspend/resume autoconf functionality.
Okay deraadt@, kettenis@, mlarkin@.
Diffstat (limited to 'sys/sys/device.h')
-rw-r--r--sys/sys/device.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/device.h b/sys/sys/device.h
index 8ae891d0526..e2201ddcec9 100644
--- a/sys/sys/device.h
+++ b/sys/sys/device.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: device.h,v 1.38 2009/10/13 19:33:19 pirofti Exp $ */
+/* $OpenBSD: device.h,v 1.39 2009/11/22 18:40:13 pirofti Exp $ */
/* $NetBSD: device.h,v 1.15 1996/04/09 20:55:24 cgd Exp $ */
/*
@@ -64,6 +64,8 @@ enum devclass {
*/
#define DVACT_ACTIVATE 0 /* activate the device */
#define DVACT_DEACTIVATE 1 /* deactivate the device */
+#define DVACT_SUSPEND 2 /* suspend the device */
+#define DVACT_RESUME 3 /* resume the device */
struct device {
enum devclass dv_class; /* this device's classification */
@@ -78,6 +80,7 @@ struct device {
/* dv_flags */
#define DVF_ACTIVE 0x0001 /* device is activated */
+#define DVF_SUSPEND 0x0002 /* device is suspended */
TAILQ_HEAD(devicelist, device);