1*1341Sstevel /* 2*1341Sstevel * CDDL HEADER START 3*1341Sstevel * 4*1341Sstevel * The contents of this file are subject to the terms of the 5*1341Sstevel * Common Development and Distribution License (the "License"). 6*1341Sstevel * You may not use this file except in compliance with the License. 7*1341Sstevel * 8*1341Sstevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*1341Sstevel * or http://www.opensolaris.org/os/licensing. 10*1341Sstevel * See the License for the specific language governing permissions 11*1341Sstevel * and limitations under the License. 12*1341Sstevel * 13*1341Sstevel * When distributing Covered Code, include this CDDL HEADER in each 14*1341Sstevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*1341Sstevel * If applicable, add the following below this CDDL HEADER, with the 16*1341Sstevel * fields enclosed by brackets "[]" replaced with your own identifying 17*1341Sstevel * information: Portions Copyright [yyyy] [name of copyright owner] 18*1341Sstevel * 19*1341Sstevel * CDDL HEADER END 20*1341Sstevel */ 21*1341Sstevel 22*1341Sstevel /* 23*1341Sstevel * Copyright 1998 Sun Microsystems, Inc. All rights reserved. 24*1341Sstevel * Use is subject to license terms. 25*1341Sstevel */ 26*1341Sstevel 27*1341Sstevel #ifndef _SYS_ENVIRON_H 28*1341Sstevel #define _SYS_ENVIRON_H 29*1341Sstevel 30*1341Sstevel #pragma ident "%Z%%M% %I% %E% SMI" 31*1341Sstevel 32*1341Sstevel #ifdef __cplusplus 33*1341Sstevel extern "C" { 34*1341Sstevel #endif 35*1341Sstevel 36*1341Sstevel /* useful debugging stuff */ 37*1341Sstevel #define ENVIRON_ATTACH_DEBUG 0x1 38*1341Sstevel #define ENVIRON_INTERRUPT_DEBUG 0x2 39*1341Sstevel #define ENVIRON_REGISTERS_DEBUG 0x4 40*1341Sstevel 41*1341Sstevel /* 42*1341Sstevel * OBP supplies us with 1 register set for the environment node 43*1341Sstevel * 44*1341Sstevel * It is: 45*1341Sstevel * 0 Temperature register 46*1341Sstevel */ 47*1341Sstevel 48*1341Sstevel #if defined(_KERNEL) 49*1341Sstevel 50*1341Sstevel /* Structures used in the driver to manage the hardware */ 51*1341Sstevel struct environ_soft_state { 52*1341Sstevel dev_info_t *dip; /* dev info of myself */ 53*1341Sstevel dev_info_t *pdip; /* dev info of parent */ 54*1341Sstevel struct environ_soft_state *next; 55*1341Sstevel int board; /* Board number for this FHC */ 56*1341Sstevel volatile uchar_t *temp_reg; /* VA of temperature register */ 57*1341Sstevel struct temp_stats tempstat; /* in memory storage of temperature */ 58*1341Sstevel kstat_t *environ_ksp; /* kstat pointer for temperature */ 59*1341Sstevel kstat_t *environ_oksp; /* kstat pointer for temp override */ 60*1341Sstevel }; 61*1341Sstevel 62*1341Sstevel #endif /* _KERNEL */ 63*1341Sstevel 64*1341Sstevel #ifdef __cplusplus 65*1341Sstevel } 66*1341Sstevel #endif 67*1341Sstevel 68*1341Sstevel #endif /* _SYS_ENVIRON_H */ 69