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