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