2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf/*
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * CDDL HEADER START
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf *
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * The contents of this file are subject to the terms of the
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * Common Development and Distribution License (the "License").
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * You may not use this file except in compliance with the License.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf *
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * or http://www.opensolaris.org/os/licensing.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * See the License for the specific language governing permissions
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * and limitations under the License.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf *
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * When distributing Covered Code, include this CDDL HEADER in each
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * If applicable, add the following below this CDDL HEADER, with the
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * fields enclosed by brackets "[]" replaced with your own identifying
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * information: Portions Copyright [yyyy] [name of copyright owner]
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf *
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * CDDL HEADER END
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf */
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf/*
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * Use is subject to license terms.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf */
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#ifndef _SYS_SRN_H
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define _SYS_SRN_H
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#pragma ident "%Z%%M% %I% %E% SMI"
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#ifdef __cplusplus
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyfextern "C" {
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#endif
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf/*
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * The following ioctl commands and structures may not exist
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf * or may have a different interpretation in a future release.
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf */
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_STANDBY_REQ 0xa01
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_SUSPEND_REQ 0xa02
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_NORMAL_RESUME 0xa03
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_CRIT_RESUME 0xa04
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_BATTERY_LOW 0xa05
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_POWER_CHANGE 0xa06
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_UPDATE_TIME 0xa07
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_CRIT_SUSPEND_REQ 0xa08
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_USER_STANDBY_REQ 0xa09
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_USER_SUSPEND_REQ 0xa0a
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_SYS_STANDBY_RESUME 0xa0b
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_IOC_NEXTEVENT 0xa0c
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_IOC_RESUME 0xa0d
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_IOC_SUSPEND 0xa0e
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_IOC_STANDBY 0xa0f
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_IOC_AUTOSX 0xa10 /* change behavior of driver */
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyftypedef struct srn_event_info
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf{
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf int ae_type;
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf} srn_event_info_t;
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#ifdef _KERNEL
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_MAX_CLONE 8 /* only two consumer known */
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_TYPE_APM 1
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#define SRN_TYPE_AUTOSX 2
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#endif
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#ifdef __cplusplus
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf}
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#endif
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf
2df1fe9ca32bb227b9158c67f5c00b54c20b10fdrandyf#endif /* _SYS_SRN_H */