xref: /titanic_52/usr/src/uts/common/sys/srn.h (revision b6c3f7863936abeae522e48a13887dddeb691a45)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_SYS_SRN_H
28 #define	_SYS_SRN_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 /*
37  *	The following ioctl commands and structures may not exist
38  *	or may have a different interpretation in a future release.
39  */
40 
41 
42 #define	SRN_STANDBY_REQ		0xa01
43 #define	SRN_SUSPEND_REQ		0xa02
44 #define	SRN_NORMAL_RESUME	0xa03
45 #define	SRN_CRIT_RESUME		0xa04
46 #define	SRN_BATTERY_LOW		0xa05
47 #define	SRN_POWER_CHANGE	0xa06
48 #define	SRN_UPDATE_TIME		0xa07
49 #define	SRN_CRIT_SUSPEND_REQ	0xa08
50 #define	SRN_USER_STANDBY_REQ	0xa09
51 #define	SRN_USER_SUSPEND_REQ	0xa0a
52 #define	SRN_SYS_STANDBY_RESUME	0xa0b
53 #define	SRN_IOC_NEXTEVENT	0xa0c
54 #define	SRN_IOC_RESUME		0xa0d
55 #define	SRN_IOC_SUSPEND		0xa0e
56 #define	SRN_IOC_STANDBY		0xa0f
57 #define	SRN_IOC_AUTOSX		0xa10	/* change behavior of driver */
58 
59 typedef struct srn_event_info
60 {
61 	int	ae_type;
62 
63 } srn_event_info_t;
64 
65 #ifdef	_KERNEL
66 
67 #define	SRN_MAX_CLONE		8	/* only two consumer known */
68 
69 #define	SRN_TYPE_APM		1
70 #define	SRN_TYPE_AUTOSX		2
71 
72 #endif
73 
74 
75 #ifdef	__cplusplus
76 }
77 #endif
78 
79 #endif	/* _SYS_SRN_H */
80