summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-03-26 16:21:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-03-26 16:21:35 +0000
commitaf5b48bacedc23f697101a1b01e8f0f35fbdb277 (patch)
treec9166146cf2772be96d59765d264f72ca8985917 /sys
parent4ac206d01035fca15c436fdc6ace3f9ba322ddc0 (diff)
Add APM_IOC_HIBERNATE
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/include/apmvar.h3
-rw-r--r--sys/arch/arm/include/apmvar.h3
-rw-r--r--sys/arch/i386/include/apmvar.h3
-rw-r--r--sys/arch/loongson/include/apmvar.h3
-rw-r--r--sys/arch/macppc/include/apmvar.h3
-rw-r--r--sys/arch/sparc/include/apmvar.h3
-rw-r--r--sys/arch/sparc64/include/apmvar.h3
7 files changed, 14 insertions, 7 deletions
diff --git a/sys/arch/amd64/include/apmvar.h b/sys/arch/amd64/include/apmvar.h
index 1a3925ec0b9..c4bf82d8ec1 100644
--- a/sys/arch/amd64/include/apmvar.h
+++ b/sys/arch/amd64/include/apmvar.h
@@ -1,5 +1,5 @@
/* XXX - DSR */
-/* $OpenBSD: apmvar.h,v 1.3 2011/03/23 16:54:34 pirofti Exp $ */
+/* $OpenBSD: apmvar.h,v 1.4 2012/03/26 16:21:34 deraadt Exp $ */
/*
* Copyright (c) 1995 John T. Kohl
@@ -290,6 +290,7 @@ struct apm_ctl {
if the percentage changes */
#define APM_IOC_STANDBY_REQ _IO('A', 7) /* request standby */
#define APM_IOC_SUSPEND_REQ _IO('A', 8) /* request suspend */
+#define APM_IOC_HIBERNATE _IO('A', 9) /* put system into hibernate */
#ifdef _KERNEL
extern void apm_cpu_busy(void);
diff --git a/sys/arch/arm/include/apmvar.h b/sys/arch/arm/include/apmvar.h
index b65096ac4c5..9323a4751d6 100644
--- a/sys/arch/arm/include/apmvar.h
+++ b/sys/arch/arm/include/apmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmvar.h,v 1.2 2009/02/26 17:19:47 oga Exp $ */
+/* $OpenBSD: apmvar.h,v 1.3 2012/03/26 16:21:34 deraadt Exp $ */
/*
* Copyright (c) 2001 Alexander Guy
@@ -116,5 +116,6 @@ struct apm_ctl {
if the percentage changes */
#define APM_IOC_STANDBY_REQ _IO('A', 7) /* request standby */
#define APM_IOC_SUSPEND_REQ _IO('A', 8) /* request suspend */
+#define APM_IOC_HIBERNATE _IO('A', 9) /* put system into hibernate */
#endif /* _ARM_APMVAR_H_ */
diff --git a/sys/arch/i386/include/apmvar.h b/sys/arch/i386/include/apmvar.h
index 3844f7ee89d..9b7a1454b07 100644
--- a/sys/arch/i386/include/apmvar.h
+++ b/sys/arch/i386/include/apmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmvar.h,v 1.17 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: apmvar.h,v 1.18 2012/03/26 16:21:34 deraadt Exp $ */
/*
* Copyright (c) 1995 John T. Kohl
@@ -289,6 +289,7 @@ struct apm_ctl {
if the percentage changes */
#define APM_IOC_STANDBY_REQ _IO('A', 7) /* request standby */
#define APM_IOC_SUSPEND_REQ _IO('A', 8) /* request suspend */
+#define APM_IOC_HIBERNATE _IO('A', 9) /* put system into hibernate */
#ifdef _KERNEL
diff --git a/sys/arch/loongson/include/apmvar.h b/sys/arch/loongson/include/apmvar.h
index 0930f0340b9..8ae70c55774 100644
--- a/sys/arch/loongson/include/apmvar.h
+++ b/sys/arch/loongson/include/apmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmvar.h,v 1.2 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: apmvar.h,v 1.3 2012/03/26 16:21:34 deraadt Exp $ */
/*
* Copyright (c) 2001 Alexander Guy
@@ -116,6 +116,7 @@ struct apm_ctl {
if the percentage changes */
#define APM_IOC_STANDBY_REQ _IO('A', 7) /* request standby */
#define APM_IOC_SUSPEND_REQ _IO('A', 8) /* request suspend */
+#define APM_IOC_HIBERNATE _IO('A', 9) /* put system into hibernate */
#ifdef _KERNEL
void apm_setinfohook(int (*)(struct apm_power_info *));
diff --git a/sys/arch/macppc/include/apmvar.h b/sys/arch/macppc/include/apmvar.h
index bd00bfdfd9c..3c4d2b78767 100644
--- a/sys/arch/macppc/include/apmvar.h
+++ b/sys/arch/macppc/include/apmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmvar.h,v 1.6 2011/03/23 16:54:36 pirofti Exp $ */
+/* $OpenBSD: apmvar.h,v 1.7 2012/03/26 16:21:34 deraadt Exp $ */
/*
* Copyright (c) 2001 Alexander Guy
@@ -116,5 +116,6 @@ struct apm_ctl {
if the percentage changes */
#define APM_IOC_STANDBY_REQ _IO('A', 7) /* request standby */
#define APM_IOC_SUSPEND_REQ _IO('A', 8) /* request suspend */
+#define APM_IOC_HIBERNATE _IO('A', 9) /* put system into hibernate */
#endif /* _MACHINE_APMVAR_H_ */
diff --git a/sys/arch/sparc/include/apmvar.h b/sys/arch/sparc/include/apmvar.h
index c0fa7753179..e8f5d5ce385 100644
--- a/sys/arch/sparc/include/apmvar.h
+++ b/sys/arch/sparc/include/apmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmvar.h,v 1.2 2009/02/26 17:19:47 oga Exp $ */
+/* $OpenBSD: apmvar.h,v 1.3 2012/03/26 16:21:34 deraadt Exp $ */
/*
* Copyright (c) 1995 John T. Kohl
@@ -122,5 +122,6 @@ struct apm_ctl {
if the percentage changes */
#define APM_IOC_STANDBY_REQ _IO('A', 7) /* request standby */
#define APM_IOC_SUSPEND_REQ _IO('A', 8) /* request suspend */
+#define APM_IOC_HIBERNATE _IO('A', 9) /* put system into hibernate */
#endif /* _MACHINE_APMVAR_H_ */
diff --git a/sys/arch/sparc64/include/apmvar.h b/sys/arch/sparc64/include/apmvar.h
index 96c6be8bc36..93a22652809 100644
--- a/sys/arch/sparc64/include/apmvar.h
+++ b/sys/arch/sparc64/include/apmvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: apmvar.h,v 1.3 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: apmvar.h,v 1.4 2012/03/26 16:21:34 deraadt Exp $ */
/*
* Copyright (c) 2001 Alexander Guy
@@ -116,5 +116,6 @@ struct apm_ctl {
if the percentage changes */
#define APM_IOC_STANDBY_REQ _IO('A', 7) /* request standby */
#define APM_IOC_SUSPEND_REQ _IO('A', 8) /* request suspend */
+#define APM_IOC_HIBERNATE _IO('A', 9) /* put system into hibernate */
#endif /* _MACHINE_APMVAR_H_ */