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