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 #pragma ident "%Z%%M% %I% %E% SMI" 322bda830bSap25164 332bda830bSap25164 #ifdef __cplusplus 342bda830bSap25164 extern "C" { 352bda830bSap25164 #endif 362bda830bSap25164 372bda830bSap25164 #define TZ_DEFAULT_PERIOD 30 382bda830bSap25164 392bda830bSap25164 #define TZ_NUM_LEVELS 10 402bda830bSap25164 412bda830bSap25164 typedef struct thermal_zone { 422bda830bSap25164 struct thermal_zone *next; 432bda830bSap25164 kmutex_t lock; 442bda830bSap25164 ACPI_HANDLE obj; 452bda830bSap25164 ddi_taskq_t *taskq; 46*044802ffSap25164 void *zone_name; 472bda830bSap25164 482bda830bSap25164 int ac[TZ_NUM_LEVELS]; 492bda830bSap25164 ACPI_BUFFER al[TZ_NUM_LEVELS]; 502bda830bSap25164 int crt; 512bda830bSap25164 int hot; 522bda830bSap25164 ACPI_BUFFER psl; 532bda830bSap25164 int psv; 542bda830bSap25164 int tc1; 552bda830bSap25164 int tc2; 562bda830bSap25164 int tsp; 572bda830bSap25164 int tzp; 582bda830bSap25164 592bda830bSap25164 int polling_period; 602bda830bSap25164 int current_level; 612bda830bSap25164 } thermal_zone_t; 622bda830bSap25164 632bda830bSap25164 642bda830bSap25164 #ifdef __cplusplus 652bda830bSap25164 } 662bda830bSap25164 #endif 672bda830bSap25164 682bda830bSap25164 #endif /* _TZMON_H */ 69