Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/hpcmips/dev Pull up revision 1.9 (requested by...



details:   https://anonhg.NetBSD.org/src/rev/9e56cc221c8d
branches:  netbsd-1-5
changeset: 488899:9e56cc221c8d
user:      takemura <takemura%NetBSD.org@localhost>
date:      Sun Aug 06 04:16:43 2000 +0000

description:
Pull up revision 1.9 (requested by takemura)

Map BUTTONEVENT_POWER-> PMEVENT_SUSPENDREQ for power management.

diffstat:

 sys/arch/hpcmips/dev/btnmgr.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 43c8cdc1983c -r 9e56cc221c8d sys/arch/hpcmips/dev/btnmgr.c
--- a/sys/arch/hpcmips/dev/btnmgr.c     Sun Aug 06 04:14:19 2000 +0000
+++ b/sys/arch/hpcmips/dev/btnmgr.c     Sun Aug 06 04:16:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: btnmgr.c,v 1.8 2000/05/18 03:27:22 sato Exp $  */
+/*     $NetBSD: btnmgr.c,v 1.8.4.1 2000/08/06 04:16:43 takemura Exp $  */
 
 /*-
  * Copyright (c) 1999
@@ -234,6 +234,11 @@
                            button_config[id].keycode);
        }
 
+       if (id == CONFIG_HOOK_BUTTONEVENT_POWER && msg)
+               config_hook_call(CONFIG_HOOK_PMEVENT, 
+                                CONFIG_HOOK_PMEVENT_SUSPENDREQ, NULL);
+
+
        return (0);
 }
 



Home | Main Index | Thread Index | Old Index