/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _ADM1031_IMPL_H
#define _ADM1031_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* This register has the value of fan speeds */
/* This register has the value of temperatures */
#define ADM1031_TEMPERATURES 0
/*
* Maximum speed for a fan is 0xf(100% PWM duty cycle) and minimum is
* 0x0(0% PWM duty cycle).
*/
/*
* Check if the minor node corresponds with the correct function.
*/
#define ADM1031_CHECK_FAN_CMD(x) \
(((x >= 6) && (x < 11)) || ((x >= 36) && (x < 41)))
#define ADM1031_CHECK_TEMPERATURE_CMD(x) \
(((x >= 11) && (x < 27)) || ((x >= 41) && (x < 57)))
#define ADM1031_CHECK_CONTROL_CMD(x) \
(((x >= 1) && (x < 6)) || ((x >= 34) && (x < 36)))
typedef struct adm1031_cpr_state {
typedef struct adm1031_unit {
int adm1031_cvwaiting;
int adm1031_flags;
int adm1031_oflag;
typedef struct minor_info {
char *minor_name;
} minor_info;
#ifdef __cplusplus
}
#endif
#endif /* _ADM1031_IMPL_H */