Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/sys Pull up revision 1.123 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/3f4fc42ebf8c
branches:  netbsd-1-5
changeset: 491648:3f4fc42ebf8c
user:      he <he%NetBSD.org@localhost>
date:      Sun May 06 15:08:02 2001 +0000

description:
Pull up revision 1.123 (requested by he):
  Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
  PWR_SOFTRESUME.  Apm calls powerhook with the values in normal interrupt
  priority level while others are protected with splhigh().

diffstat:

 sys/sys/systm.h |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 9a93088f1481 -r 3f4fc42ebf8c sys/sys/systm.h
--- a/sys/sys/systm.h   Sun May 06 15:07:45 2001 +0000
+++ b/sys/sys/systm.h   Sun May 06 15:08:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.111.2.2 2000/07/14 18:10:51 thorpej Exp $  */
+/*     $NetBSD: systm.h,v 1.111.2.3 2001/05/06 15:08:02 he Exp $       */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -265,9 +265,12 @@
 void   *powerhook_establish __P((void (*)(int, void *), void *));
 void   powerhook_disestablish __P((void *));
 void   dopowerhooks __P((int));
-#define PWR_RESUME 0
-#define PWR_SUSPEND 1
-#define PWR_STANDBY 2
+#define PWR_RESUME     0
+#define PWR_SUSPEND    1
+#define PWR_STANDBY    2
+#define PWR_SOFTRESUME 3
+#define PWR_SOFTSUSPEND        4
+#define PWR_SOFTSTANDBY        5
 
 /*
  * Mountroot hooks.  Device drivers establish these to be executed



Home | Main Index | Thread Index | Old Index