/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2001 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SGENV_TAG_H
#define _SYS_SGENV_TAG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* We generate #define's for every possible HPU, however the SC only
* returns data for some of these HPUs. These are #defined in serengeti.h
* as they are common to both Serengeti and LightWeight8 platforms.
* However we keep track of the HPUs which return environmental data here
* as that info is SGENV specific.
*
* Below is a list of the HPU's which return environmental data.
*
* SG_HPU_TYPE_CPU_BOARD
*
* SG_HPU_TYPE_PCI_IO_BOARD
* SG_HPU_TYPE_CPCI_IO_BOARD
* SG_HPU_TYPE_CPCI_IO_BOARD_F3800
*
* SG_HPU_TYPE_REPEATER_BOARD
* SG_HPU_TYPE_LOGIC_ANALYZER_BOARD
* SG_HPU_TYPE_REPEATER_BOARD_F3800
*
* SG_HPU_TYPE_SYSTEM_CONTROLLER_BOARD
* SG_HPU_TYPE_SYSTEM_CONTROLLER_BOARD_F3800
*
* SG_HPU_TYPE_A123_POWER_SUPPLY
* SG_HPU_TYPE_A138_POWER_SUPPLY
* SG_HPU_TYPE_A145_POWER_SUPPLY
* SG_HPU_TYPE_A152_POWER_SUPPLY
* SG_HPU_TYPE_A153_POWER_SUPPLY
*
* SG_HPU_TYPE_FAN_TRAY_F6800_IO
* SG_HPU_TYPE_FAN_TRAY_F6800_CPU
* SG_HPU_TYPE_FAN_TRAY_RACK
* SG_HPU_TYPE_FAN_TRAY_F4810
* SG_HPU_TYPE_FAN_TRAY_F4800_IO
* SG_HPU_TYPE_FAN_TRAY_F4800_CPU
* SG_HPU_TYPE_FAN_TRAY_F4800_TOP_IO
* SG_HPU_TYPE_FAN_TRAY_F3800
* SG_HPU_TYPE_FAN_TRAY_F3800_ID
* SG_HPU_TYPE_FAN_TRAY_F4800_BOTTOM_IO
*
* The following are obsolete and have been superseded by entries in the
* list above and should not be used. They are simply present to support
* existing clients and will be deleted at some stage in the future.
*
* SG_HPU_TYPE_SP_CPCI_IO_BOARD
* SG_HPU_TYPE_SP_SYSTEM_CONTROLLER_BOARD
* SG_HPU_TYPE_L2_REPEATER_BOARD
* SG_HPU_TYPE_RACK_FAN_TRAY
* SG_HPU_TYPE_SP_FAN_TRAY
* SG_HPU_TYPE_MD_TOP_IO_FAN_TRAY
* SG_HPU_TYPE_MD_BOTTOM_IO_FAN_TRAY
* SG_HPU_TYPE_R12_THREE_FAN_TRAY
* SG_HPU_TYPE_K12_IO_ONE_FAN_TRAY
* SG_HPU_TYPE_K12_CPU_THREE_FAN_TRAY
* SG_HPU_TYPE_R24_IO_FOUR_FAN_TRAY
* SG_HPU_TYPE_R24_CPU_SIX_FAN_TRAY
*/
typedef union sensor_id {
struct {
uint32_t \
} id;
} sensor_id_t;
/*
* Known sensor parts (sensor_part)
*/
/*
* Known sensor types (sensor_type)
* Scaling factors (when applicable)
* N.b. Warning zone ranges are scaled, and
* the ..._RANGE definitions below are superceded
* by the scaled <sd_lo_warn> and <sd_hi_warn>
* fields in env_sensor_t.
*/
#define SG_1_5_VDC_RANGE 0
#define SG_1_8_VDC_RANGE 0
#define SG_3_3_VDC_RANGE 0
#define SG_5_VDC_RANGE 0
#define SG_12_VDC_RANGE 0
#define SG_48_VDC_RANGE 0
#define SG_2_5_VDC_RANGE 0
/*
* If we have to change the names of any of the #defines in the future,
* then we simply will define the old name to point to the new name.
* That way the clients do not know about the change and do not need
* to change their code.
*/
/* generic power supply FRUID string */
/*
* The following are obsolete and have been superseded by entries in the
* list above and should not be used. They are simply present to support
* existing clients.
*/
"SP System Controller Board"
#define SG_HPU_TYPE_SP_L2_REPEATER_BOARD_STR \
"SP L2 Repeater Board"
#define SG_HPU_TYPE_FAN_TRAY_BAY_STR \
"Fan Tray Bay"
#define SG_HPU_TYPE_R24_IO_FOUR_FAN_TRAY_STR \
"R24 IO Four Fan Tray"
#define SG_HPU_TYPE_R24_CPU_SIX_FAN_TRAY_STR \
"R24 CPU Six Fan Tray"
#define SG_HPU_TYPE_RACK_FAN_TRAY_STR \
"Rack Fan Tray"
#define SG_HPU_TYPE_R12_THREE_FAN_TRAY_STR \
"R12 Three Fan Tray"
#define SG_HPU_TYPE_K12_IO_ONE_FAN_TRAY_STR \
"K12 IO One Fan Tray"
#define SG_HPU_TYPE_K12_CPU_THREE_FAN_TRAY_STR \
"K12 CPU Three Fan Tray"
#define SG_HPU_TYPE_MD_TOP_IO_FAN_TRAY_STR \
"MD Top I/O Fan Tray"
#define SG_HPU_TYPE_SP_FAN_TRAY_STR \
"SP Fan Tray"
#define SG_HPU_TYPE_MD_BOTTOM_IO_FAN_TRAY_STR \
"MD Bottom I/O Fan Tray"
#define SG_HPU_TYPE_SP_CPCI_IO_BOARD_STR \
"SP CPCI I/O board"
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SGENV_TAG_H */