envctrl_ue250.h revision 1341:6d7c4f090a72
1188943Sthompsa/*
2188943Sthompsa * CDDL HEADER START
3188943Sthompsa *
4188943Sthompsa * The contents of this file are subject to the terms of the
5188943Sthompsa * Common Development and Distribution License (the "License").
6188943Sthompsa * You may not use this file except in compliance with the License.
7188943Sthompsa *
8188943Sthompsa * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9188943Sthompsa * or http://www.opensolaris.org/os/licensing.
10188943Sthompsa * See the License for the specific language governing permissions
11188943Sthompsa * and limitations under the License.
12188943Sthompsa *
13188943Sthompsa * When distributing Covered Code, include this CDDL HEADER in each
14188943Sthompsa * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15188943Sthompsa * If applicable, add the following below this CDDL HEADER, with the
16188943Sthompsa * fields enclosed by brackets "[]" replaced with your own identifying
17188943Sthompsa * information: Portions Copyright [yyyy] [name of copyright owner]
18188943Sthompsa *
19188943Sthompsa * CDDL HEADER END
20188943Sthompsa */
21188943Sthompsa
22188943Sthompsa/*
23188943Sthompsa * Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
24188943Sthompsa * Use is subject to license terms.
25188943Sthompsa */
26188943Sthompsa
27188943Sthompsa#ifndef	_SYS_ENVCTRL_UE250_H
28188943Sthompsa#define	_SYS_ENVCTRL_UE250_H
29188943Sthompsa
30188943Sthompsa#pragma ident	"%Z%%M%	%I%	%E% SMI"
31188943Sthompsa
32188943Sthompsa#ifdef	__cplusplus
33226154Smariusextern "C" {
34226154Smarius#endif
35188943Sthompsa
36188943Sthompsa/*
37 * envctrl_ue250.h
38 *
39 * This header file contains environmental control definitions specific
40 * to the UltraEnterprise-250 platform.
41 */
42
43#define	ENVCTRL_UE250_OVERTEMP_TIMEOUT_USEC	60 * MICROSEC
44#define	ENVCTRL_UE250_BLINK_TIMEOUT_USEC	500 * (MICROSEC / MILLISEC)
45
46/* Keyswitch Definitions */
47#define	ENVCTRL_UE250_FSP_KEYMASK	0xC0
48#define	ENVCTRL_UE250_FSP_POMASK	0x20
49#define	ENVCTRL_UE250_FSP_KEYLOCKED	0x00
50#define	ENVCTRL_UE250_FSP_KEYOFF	0xC0
51#define	ENVCTRL_UE250_FSP_KEYDIAG	0x80
52#define	ENVCTRL_UE250_FSP_KEYON		0x40
53
54/* Front Status Panel Definitions */
55#define	ENVCTRL_UE250_FSP_DISK_ERR	0x01
56#define	ENVCTRL_UE250_FSP_PS_ERR	0x02
57#define	ENVCTRL_UE250_FSP_TEMP_ERR	0x04
58#define	ENVCTRL_UE250_FSP_GEN_ERR	0x08
59#define	ENVCTRL_UE250_FSP_ACTIVE	0x10
60#define	ENVCTRL_UE250_FSP_POWER	0x20
61#define	ENVCTRL_UE250_FSP_USRMASK		\
62	(ENVCTRL_UE250_FSP_DISK_ERR | ENVCTRL_UE250_FSP_GEN_ERR)
63
64#define	ENVCTRL_UE250_FSP_OFF		0x4F
65
66#define	ENVCTRL_UE250_MAX_DISKS		6
67#define	ENVCTRL_UE250_MAXPS 		0x02	/* 0 based array */
68
69#define	ENVCTRL_UE250_PDB_TEMP_DEV	0x94
70#define	ENVCTRL_UE250_CPU_TEMP_DEV	0x9E
71#define	ENVCTRL_UE250_CPU0_PORT		0
72#define	ENVCTRL_UE250_CPU1_PORT		1
73#define	ENVCTRL_UE250_MB0_PORT		2
74#define	ENVCTRL_UE250_MB1_PORT		3
75#define	ENVCTRL_UE250_PDB_TEMP_PORT	0
76#define	ENVCTRL_UE250_SCSI_TEMP_PORT	3
77
78#define	ENVCTRL_UE250_CPU0_SENSOR	0
79#define	ENVCTRL_UE250_CPU1_SENSOR	1
80#define	ENVCTRL_UE250_MB0_SENSOR	2
81#define	ENVCTRL_UE250_MB1_SENSOR	3
82#define	ENVCTRL_UE250_PDB_SENSOR	4
83#define	ENVCTRL_UE250_SCSI_SENSOR	5
84
85#define	ENVCTRL_UE250_MAX_CPU_TEMP	80
86
87#define	ENVCTRL_UE250_PCF8591_BASE_ADDR		0x90
88#define	ENVCTRL_UE250_PCF8574A_BASE_ADDR	0x70
89#define	ENVCTRL_UE250_PCF8574_BASE_ADDR		0x40
90
91#define	ENVCTRL_UE250_DFLOP_INIT0		0x77
92#define	ENVCTRL_UE250_DFLOP_INIT1		0x7F
93#define	ENVCTRL_UE250_DEVINTR_INIT0		0xF7
94#define	ENVCTRL_UE250_DEVINTR_INIT1		0xFF
95#define	ENVCTRL_UE250_INTR_LATCH_CLR		0xFE
96
97#ifdef	__cplusplus
98}
99#endif
100
101#endif	/* _SYS_ENVCTRL_UE250_H */
102