/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SUNPM_H
#define _SYS_SUNPM_H
/*
* Sun Specific Power Management definitions
*/
#include <sys/isa_defs.h>
#include <sys/dditypes.h>
#include <sys/ddipropdefs.h>
#include <sys/ddidevmap.h>
#include <sys/ddi_implfuncs.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/*
* Power cycle transition check is supported for SCSI and SATA devices.
*/
struct pm_scsi_cycles {
};
struct pm_smart_count {
};
struct pm_trans_data {
union {
} un;
};
/*
* Power levels for devices supporting ACPI based D0, D1, D2, D3 states.
*
* Note that 0 is off in Solaris PM framework but D0 is full power
* for these devices.
*/
/*
* Useful strings for creating pm-components property for these devices.
* If a device driver wishes to provide more specific description of power
* levels (highly recommended), it should NOT use following generic defines.
*/
/*
* Generic Sun PM definitions.
*/
/*
* These are obsolete power management interfaces, they will be removed from
* a subsequent release.
*/
/*
* These are power management interfaces.
*/
int pm_power_has_changed(dev_info_t *, int, int);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SUNPM_H */