/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PPMIO_H
#define _SYS_PPMIO_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* The following two ioctls are used for testing purposes only.
*/
#if defined(__x86)
#endif
/*
* PPMIOCGET
* Note: this ioctl command is available for Excalibur and Grover
* only, but will be removed in future, replacing with PPMGET_DPWR
*/
typedef struct ppmreq {
int ppmdev;
union ppmop {
struct idev_power {
int level;
} idev_power;
} ppmop;
} ppmreq_t;
/* definition for ppmdev */
/*
* PPMGET_DPWR
*/
struct ppm_dpwr {
};
/*
* PPMGET_DOMBYDEV
*/
struct ppm_bydev {
};
/*
* PPMGET_DEVBYDOM
*/
struct ppm_bydom {
};
/*
* PPM[GS]ET_NORM
*/
struct ppm_norm {
};
#ifdef _SYSCALL32
/*
* kernel view of ILP32 data structure
*/
struct ppm_dpwr32 {
};
struct ppm_bydev32 {
};
struct ppm_bydom32 {
};
struct ppm_norm32 {
};
#endif /* _SYSCALL32 */
/*
* .level may be the following
*/
#define PPMIO_POWER_OFF 0
/* (s10) */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PPMIO_H */