diff options
author | David Coppa <dcoppa@cvs.openbsd.org> | 2015-02-06 08:16:51 +0000 |
---|---|---|
committer | David Coppa <dcoppa@cvs.openbsd.org> | 2015-02-06 08:16:51 +0000 |
commit | be4ca90160180f092bf4c3ba13b390c55602f9b6 (patch) | |
tree | 22a53003c76177c88e11af1bb996d047980d6410 /sys/arch/i386/include | |
parent | dad025b572ca97b7fa36aca36d0f559016a92a40 (diff) |
Handle hibernate button in the same way as suspend does: send an
APM_USER_HIBERNATE_REQ event so apmd(8) can get it if it's running.
ok mlarkin@, deraadt@, miod@
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/apmvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/i386/include/apmvar.h b/sys/arch/i386/include/apmvar.h index 522016ea777..41f1d617b93 100644 --- a/sys/arch/i386/include/apmvar.h +++ b/sys/arch/i386/include/apmvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: apmvar.h,v 1.19 2012/07/08 18:02:45 guenther Exp $ */ +/* $OpenBSD: apmvar.h,v 1.20 2015/02/06 08:16:49 dcoppa Exp $ */ /* * Copyright (c) 1995 John T. Kohl @@ -172,6 +172,7 @@ #define APM_SYS_STANDBY_RESUME 0x000B #define APM_CAPABILITY_CHANGE 0x000C /* apm v1.2 */ /* 0x000d - 0x00ff Reserved system events */ +#define APM_USER_HIBERNATE_REQ 0x000D /* 0x0100 - 0x01ff Reserved device events */ /* 0x0200 - 0x02ff OEM-defined APM events */ /* 0x0300 - 0xffff Reserved */ |