xref: /illumos-gate/usr/src/uts/common/sys/srn.h (revision 2d6eb4a5)
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 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 /*
35  *	The following ioctl commands and structures may not exist
36  *	or may have a different interpretation in a future release.
37  */
38 
39 
40 #define	SRN_STANDBY_REQ		0xa01
41 #define	SRN_SUSPEND_REQ		0xa02
42 #define	SRN_NORMAL_RESUME	0xa03
43 #define	SRN_CRIT_RESUME		0xa04
44 #define	SRN_BATTERY_LOW		0xa05
45 #define	SRN_POWER_CHANGE	0xa06
46 #define	SRN_UPDATE_TIME		0xa07
47 #define	SRN_CRIT_SUSPEND_REQ	0xa08
48 #define	SRN_USER_STANDBY_REQ	0xa09
49 #define	SRN_USER_SUSPEND_REQ	0xa0a
50 #define	SRN_SYS_STANDBY_RESUME	0xa0b
51 #define	SRN_IOC_NEXTEVENT	0xa0c
52 #define	SRN_IOC_RESUME		0xa0d
53 #define	SRN_IOC_SUSPEND		0xa0e
54 #define	SRN_IOC_STANDBY		0xa0f
55 #define	SRN_IOC_AUTOSX		0xa10	/* change behavior of driver */
56 
57 typedef struct srn_event_info
58 {
59 	int	ae_type;
60 
61 } srn_event_info_t;
62 
63 #ifdef	_KERNEL
64 
65 #define	SRN_MAX_CLONE		8	/* only two consumer known */
66 
67 #define	SRN_TYPE_APM		1
68 #define	SRN_TYPE_AUTOSX		2
69 
70 #endif
71 
72 
73 #ifdef	__cplusplus
74 }
75 #endif
76 
77 #endif	/* _SYS_SRN_H */
78