envctrl_ue250.h revision 29949e866e40b95795203f3ee46f44a197c946e4
29949e866e40b95795203f3ee46f44a197c946e4stevel/*
29949e866e40b95795203f3ee46f44a197c946e4stevel * CDDL HEADER START
29949e866e40b95795203f3ee46f44a197c946e4stevel *
29949e866e40b95795203f3ee46f44a197c946e4stevel * The contents of this file are subject to the terms of the
29949e866e40b95795203f3ee46f44a197c946e4stevel * Common Development and Distribution License (the "License").
29949e866e40b95795203f3ee46f44a197c946e4stevel * You may not use this file except in compliance with the License.
29949e866e40b95795203f3ee46f44a197c946e4stevel *
29949e866e40b95795203f3ee46f44a197c946e4stevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
29949e866e40b95795203f3ee46f44a197c946e4stevel * or http://www.opensolaris.org/os/licensing.
29949e866e40b95795203f3ee46f44a197c946e4stevel * See the License for the specific language governing permissions
29949e866e40b95795203f3ee46f44a197c946e4stevel * and limitations under the License.
29949e866e40b95795203f3ee46f44a197c946e4stevel *
29949e866e40b95795203f3ee46f44a197c946e4stevel * When distributing Covered Code, include this CDDL HEADER in each
29949e866e40b95795203f3ee46f44a197c946e4stevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
29949e866e40b95795203f3ee46f44a197c946e4stevel * If applicable, add the following below this CDDL HEADER, with the
29949e866e40b95795203f3ee46f44a197c946e4stevel * fields enclosed by brackets "[]" replaced with your own identifying
29949e866e40b95795203f3ee46f44a197c946e4stevel * information: Portions Copyright [yyyy] [name of copyright owner]
29949e866e40b95795203f3ee46f44a197c946e4stevel *
29949e866e40b95795203f3ee46f44a197c946e4stevel * CDDL HEADER END
29949e866e40b95795203f3ee46f44a197c946e4stevel */
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel/*
29949e866e40b95795203f3ee46f44a197c946e4stevel * Copyright 1998 Sun Microsystems, Inc. All rights reserved.
29949e866e40b95795203f3ee46f44a197c946e4stevel * Use is subject to license terms.
29949e866e40b95795203f3ee46f44a197c946e4stevel */
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#ifndef _SYS_ENVCTRL_UE250_H
29949e866e40b95795203f3ee46f44a197c946e4stevel#define _SYS_ENVCTRL_UE250_H
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#pragma ident "%Z%%M% %I% %E% SMI"
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#ifdef __cplusplus
29949e866e40b95795203f3ee46f44a197c946e4stevelextern "C" {
29949e866e40b95795203f3ee46f44a197c946e4stevel#endif
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel/*
29949e866e40b95795203f3ee46f44a197c946e4stevel * envctrl_ue250.h
29949e866e40b95795203f3ee46f44a197c946e4stevel *
29949e866e40b95795203f3ee46f44a197c946e4stevel * This header file contains environmental control definitions specific
29949e866e40b95795203f3ee46f44a197c946e4stevel * to the UltraEnterprise-250 platform.
29949e866e40b95795203f3ee46f44a197c946e4stevel */
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_OVERTEMP_TIMEOUT_USEC 60 * MICROSEC
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_BLINK_TIMEOUT_USEC 500 * (MICROSEC / MILLISEC)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel/* Keyswitch Definitions */
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_KEYMASK 0xC0
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_POMASK 0x20
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_KEYLOCKED 0x00
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_KEYOFF 0xC0
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_KEYDIAG 0x80
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_KEYON 0x40
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel/* Front Status Panel Definitions */
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_DISK_ERR 0x01
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_PS_ERR 0x02
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_TEMP_ERR 0x04
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_GEN_ERR 0x08
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_ACTIVE 0x10
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_POWER 0x20
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_USRMASK \
29949e866e40b95795203f3ee46f44a197c946e4stevel (ENVCTRL_UE250_FSP_DISK_ERR | ENVCTRL_UE250_FSP_GEN_ERR)
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_FSP_OFF 0x4F
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_MAX_DISKS 6
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_MAXPS 0x02 /* 0 based array */
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_PDB_TEMP_DEV 0x94
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_CPU_TEMP_DEV 0x9E
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_CPU0_PORT 0
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_CPU1_PORT 1
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_MB0_PORT 2
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_MB1_PORT 3
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_PDB_TEMP_PORT 0
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_SCSI_TEMP_PORT 3
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_CPU0_SENSOR 0
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_CPU1_SENSOR 1
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_MB0_SENSOR 2
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_MB1_SENSOR 3
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_PDB_SENSOR 4
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_SCSI_SENSOR 5
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_MAX_CPU_TEMP 80
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_PCF8591_BASE_ADDR 0x90
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_PCF8574A_BASE_ADDR 0x70
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_PCF8574_BASE_ADDR 0x40
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_DFLOP_INIT0 0x77
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_DFLOP_INIT1 0x7F
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_DEVINTR_INIT0 0xF7
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_DEVINTR_INIT1 0xFF
29949e866e40b95795203f3ee46f44a197c946e4stevel#define ENVCTRL_UE250_INTR_LATCH_CLR 0xFE
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#ifdef __cplusplus
29949e866e40b95795203f3ee46f44a197c946e4stevel}
29949e866e40b95795203f3ee46f44a197c946e4stevel#endif
29949e866e40b95795203f3ee46f44a197c946e4stevel
29949e866e40b95795203f3ee46f44a197c946e4stevel#endif /* _SYS_ENVCTRL_UE250_H */