xref: /illumos-gate/usr/src/uts/i86pc/io/tzmon/tzmon.h (revision 2d6eb4a5e0a47d30189497241345dc5466bb68ab)
12bda830bSap25164 /*
22bda830bSap25164  * CDDL HEADER START
32bda830bSap25164  *
42bda830bSap25164  * The contents of this file are subject to the terms of the
52bda830bSap25164  * Common Development and Distribution License (the "License").
62bda830bSap25164  * You may not use this file except in compliance with the License.
72bda830bSap25164  *
82bda830bSap25164  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92bda830bSap25164  * or http://www.opensolaris.org/os/licensing.
102bda830bSap25164  * See the License for the specific language governing permissions
112bda830bSap25164  * and limitations under the License.
122bda830bSap25164  *
132bda830bSap25164  * When distributing Covered Code, include this CDDL HEADER in each
142bda830bSap25164  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152bda830bSap25164  * If applicable, add the following below this CDDL HEADER, with the
162bda830bSap25164  * fields enclosed by brackets "[]" replaced with your own identifying
172bda830bSap25164  * information: Portions Copyright [yyyy] [name of copyright owner]
182bda830bSap25164  *
192bda830bSap25164  * CDDL HEADER END
202bda830bSap25164  */
212bda830bSap25164 
222bda830bSap25164 /*
232bda830bSap25164  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
242bda830bSap25164  * Use is subject to license terms.
252bda830bSap25164  */
262bda830bSap25164 
272bda830bSap25164 
282bda830bSap25164 #ifndef	_TZMON_H
292bda830bSap25164 #define	_TZMON_H
302bda830bSap25164 
312bda830bSap25164 #ifdef	__cplusplus
322bda830bSap25164 extern "C" {
332bda830bSap25164 #endif
342bda830bSap25164 
352bda830bSap25164 #define	TZ_DEFAULT_PERIOD	30
362bda830bSap25164 
372bda830bSap25164 #define	TZ_NUM_LEVELS		10
382bda830bSap25164 
392bda830bSap25164 typedef struct thermal_zone {
402bda830bSap25164 	struct thermal_zone	*next;
412bda830bSap25164 	kmutex_t		lock;
422bda830bSap25164 	ACPI_HANDLE		obj;
432bda830bSap25164 	ddi_taskq_t		*taskq;
44*044802ffSap25164 	void			*zone_name;
452bda830bSap25164 
462bda830bSap25164 	int			ac[TZ_NUM_LEVELS];
472bda830bSap25164 	ACPI_BUFFER		al[TZ_NUM_LEVELS];
482bda830bSap25164 	int			crt;
492bda830bSap25164 	int			hot;
502bda830bSap25164 	ACPI_BUFFER		psl;
512bda830bSap25164 	int			psv;
522bda830bSap25164 	int			tc1;
532bda830bSap25164 	int			tc2;
542bda830bSap25164 	int			tsp;
552bda830bSap25164 	int			tzp;
562bda830bSap25164 
572bda830bSap25164 	int			polling_period;
582bda830bSap25164 	int			current_level;
592bda830bSap25164 } thermal_zone_t;
602bda830bSap25164 
612bda830bSap25164 
622bda830bSap25164 #ifdef	__cplusplus
632bda830bSap25164 }
642bda830bSap25164 #endif
652bda830bSap25164 
662bda830bSap25164 #endif	/* _TZMON_H */
67