xref: /onnv-gate/usr/src/uts/i86pc/io/tzmon/tzmon.h (revision 1977:5c509f7b8f2f)
11884Sap25164 /*
21884Sap25164  * CDDL HEADER START
31884Sap25164  *
41884Sap25164  * The contents of this file are subject to the terms of the
51884Sap25164  * Common Development and Distribution License (the "License").
61884Sap25164  * You may not use this file except in compliance with the License.
71884Sap25164  *
81884Sap25164  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91884Sap25164  * or http://www.opensolaris.org/os/licensing.
101884Sap25164  * See the License for the specific language governing permissions
111884Sap25164  * and limitations under the License.
121884Sap25164  *
131884Sap25164  * When distributing Covered Code, include this CDDL HEADER in each
141884Sap25164  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151884Sap25164  * If applicable, add the following below this CDDL HEADER, with the
161884Sap25164  * fields enclosed by brackets "[]" replaced with your own identifying
171884Sap25164  * information: Portions Copyright [yyyy] [name of copyright owner]
181884Sap25164  *
191884Sap25164  * CDDL HEADER END
201884Sap25164  */
211884Sap25164 
221884Sap25164 /*
231884Sap25164  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
241884Sap25164  * Use is subject to license terms.
251884Sap25164  */
261884Sap25164 
271884Sap25164 
281884Sap25164 #ifndef	_TZMON_H
291884Sap25164 #define	_TZMON_H
301884Sap25164 
311884Sap25164 #pragma ident	"%Z%%M%	%I%	%E% SMI"
321884Sap25164 
331884Sap25164 #ifdef	__cplusplus
341884Sap25164 extern "C" {
351884Sap25164 #endif
361884Sap25164 
371884Sap25164 #define	TZ_DEFAULT_PERIOD	30
381884Sap25164 
391884Sap25164 #define	TZ_NUM_LEVELS		10
401884Sap25164 
411884Sap25164 typedef struct thermal_zone {
421884Sap25164 	struct thermal_zone	*next;
431884Sap25164 	kmutex_t		lock;
441884Sap25164 	ACPI_HANDLE		obj;
451884Sap25164 	ddi_taskq_t		*taskq;
46*1977Sap25164 	void			*zone_name;
471884Sap25164 
481884Sap25164 	int			ac[TZ_NUM_LEVELS];
491884Sap25164 	ACPI_BUFFER		al[TZ_NUM_LEVELS];
501884Sap25164 	int			crt;
511884Sap25164 	int			hot;
521884Sap25164 	ACPI_BUFFER		psl;
531884Sap25164 	int			psv;
541884Sap25164 	int			tc1;
551884Sap25164 	int			tc2;
561884Sap25164 	int			tsp;
571884Sap25164 	int			tzp;
581884Sap25164 
591884Sap25164 	int			polling_period;
601884Sap25164 	int			current_level;
611884Sap25164 } thermal_zone_t;
621884Sap25164 
631884Sap25164 
641884Sap25164 #ifdef	__cplusplus
651884Sap25164 }
661884Sap25164 #endif
671884Sap25164 
681884Sap25164 #endif	/* _TZMON_H */
69