#ifndef _SYS_SGENV_TAG_H
#define _SYS_SGENV_TAG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/types.h>
typedef union sensor_id {
struct {
uint32_t \
hpu_type : 16,
hpu_slot : 8,
sensor_part : 8,
sensor_partnum : 8,
sensor_type : 8,
sensor_typenum : 8,
node_id : 4,
_pad : 4;
} id;
uint64_t tag_id;
} sensor_id_t;
#define SG_SENSOR_PART_SBBC 0x1
#define SG_SENSOR_PART_SBBC_STR "SBBC"
#define SG_SENSOR_PART_SDC 0x2
#define SG_SENSOR_PART_SDC_STR "SDC"
#define SG_SENSOR_PART_AR 0x3
#define SG_SENSOR_PART_AR_STR "AR"
#define SG_SENSOR_PART_CBH 0x4
#define SG_SENSOR_PART_CBH_STR "CBH"
#define SG_SENSOR_PART_DX 0x5
#define SG_SENSOR_PART_DX_STR "DX"
#define SG_SENSOR_PART_CHEETAH 0x6
#define SG_SENSOR_PART_CHEETAH_STR "Cheetah"
#define SG_SENSOR_PART_1_5_VDC 0x7
#define SG_SENSOR_PART_1_5_VDC_STR "1.5 VDC"
#define SG_SENSOR_PART_3_3_VDC 0x8
#define SG_SENSOR_PART_3_3_VDC_STR "3.3 VDC"
#define SG_SENSOR_PART_5_VDC 0x9
#define SG_SENSOR_PART_5_VDC_STR "5 VDC"
#define SG_SENSOR_PART_12_VDC 0xA
#define SG_SENSOR_PART_12_VDC_STR "12 VDC"
#define SG_SENSOR_PART_48_VDC 0xB
#define SG_SENSOR_PART_48_VDC_STR "48 VDC"
#define SG_SENSOR_PART_CURRENT 0xC
#define SG_SENSOR_PART_CURRENT_STR "Current"
#define SG_SENSOR_PART_BOARD 0xD
#define SG_SENSOR_PART_BOARD_STR "Board"
#define SG_SENSOR_PART_SCAPP 0xE
#define SG_SENSOR_PART_SCAPP_STR "SC-APP"
#define SG_SENSOR_PART_SCHIZO 0xF
#define SG_SENSOR_PART_SCHIZO_STR "Schizo"
#define SG_SENSOR_PART_FAN 0x10
#define SG_SENSOR_PART_FAN_STR "Fan"
#define SG_SENSOR_PART_INPUT 0x11
#define SG_SENSOR_PART_INPUT_STR "Input"
#define SG_SENSOR_TYPE_CURRENT 0x2
#define SG_SENSOR_TYPE_CURRENT_STR "Current"
#define SG_SENSOR_TYPE_CURRENT_UNITS "Amps"
#define SG_CURRENT_SCALE 100
#define SG_SENSOR_TYPE_TEMPERATURE 0x3
#define SG_SENSOR_TYPE_TEMPERATURE_STR "Temp."
#define SG_SENSOR_TYPE_TEMPERATURE_UNITS "Degrees C"
#define SG_TEMPERATURE_SCALE 100
#define SG_TEMPERATURE_RANGE 1000
#define SG_SENSOR_TYPE_COOLING 0x4
#define SG_SENSOR_TYPE_COOLING_STR "Cooling"
#define SG_SENSOR_TYPE_COOLING_UNITS ""
#define SG_SENSOR_TYPE_1_5_VDC 0x5
#define SG_SENSOR_TYPE_1_5_VDC_STR "1.5 VDC"
#define SG_SENSOR_TYPE_1_5_VDC_UNITS "Volts DC"
#define SG_1_5_VDC_SCALE 100
#define SG_1_5_VDC_RANGE 0
#define SG_SENSOR_TYPE_1_8_VDC 0x6
#define SG_SENSOR_TYPE_1_8_VDC_STR "1.8 VDC"
#define SG_SENSOR_TYPE_1_8_VDC_UNITS "Volts DC"
#define SG_1_8_VDC_SCALE 100
#define SG_1_8_VDC_RANGE 0
#define SG_SENSOR_TYPE_3_3_VDC 0x7
#define SG_SENSOR_TYPE_3_3_VDC_STR "3.3 VDC"
#define SG_SENSOR_TYPE_3_3_VDC_UNITS "Volts DC"
#define SG_3_3_VDC_SCALE 100
#define SG_3_3_VDC_RANGE 0
#define SG_SENSOR_TYPE_5_VDC 0x8
#define SG_SENSOR_TYPE_5_VDC_STR "5 VDC"
#define SG_SENSOR_TYPE_5_VDC_UNITS "Volts DC"
#define SG_5_VDC_SCALE 100
#define SG_5_VDC_RANGE 0
#define SG_SENSOR_TYPE_12_VDC 0x9
#define SG_SENSOR_TYPE_12_VDC_STR "12 VDC"
#define SG_SENSOR_TYPE_12_VDC_UNITS "Volts DC"
#define SG_12_VDC_SCALE 100
#define SG_12_VDC_RANGE 0
#define SG_SENSOR_TYPE_48_VDC 0xA
#define SG_SENSOR_TYPE_48_VDC_STR "48 VDC"
#define SG_SENSOR_TYPE_48_VDC_UNITS "Volts DC"
#define SG_48_VDC_SCALE 100
#define SG_48_VDC_RANGE 0
#define SG_SENSOR_TYPE_ENVDB 0xB
#define SG_SENSOR_TYPE_ENVDB_STR "Env."
#define SG_SENSOR_TYPE_ENVDB_UNITS "Gen."
#define SG_SENSOR_TYPE_2_5_VDC 0xC
#define SG_SENSOR_TYPE_2_5_VDC_STR "2.5 VDC"
#define SG_SENSOR_TYPE_2_5_VDC_UNITS "Volts DC"
#define SG_2_5_VDC_SCALE 100
#define SG_2_5_VDC_RANGE 0
#define SG_HPU_TYPE_UNKNOWN (0x0)
#define SG_HPU_TYPE_UNKNOWN_STR "Unknown"
#define SG_HPU_TYPE_UNKNOWN_ID "UNK"
#define SG_HPU_TYPE_POWER_SUPPLY_ID "PS"
#define SG_HPU_TYPE_SP_SYSTEM_CONTROLLER_BOARD ((1<<8)|2)
#define SG_HPU_TYPE_SP_SYSTEM_CONTROLLER_BOARD_STR \
"SP System Controller Board"
#define SG_HPU_TYPE_SP_SYSTEM_CONTROLLER_BOARD_ID "SSC"
#define SG_HPU_TYPE_SP_SYSTEM_CONTROLLER_BOARD_SHORTNAME "SSC"
#define SG_HPU_TYPE_L2_REPEATER_BOARD (0x301)
#define SG_HPU_TYPE_L2_REPEATER_BOARD_STR "L2 Repeater Board"
#define SG_HPU_TYPE_L2_REPEATER_BOARD_ID "RP"
#define SG_HPU_TYPE_L2_REPEATER_BOARD_SHORTNAME "RP"
#define SG_HPU_TYPE_SP_L2_REPEATER_BOARD ((3<<8)|3)
#define SG_HPU_TYPE_SP_L2_REPEATER_BOARD_STR \
"SP L2 Repeater Board"
#define SG_HPU_TYPE_SP_L2_REPEATER_BOARD_ID "RP"
#define SG_HPU_TYPE_SP_L2_REPEATER_BOARD_SHORTNAME "RP"
#define SG_HPU_TYPE_FAN_TRAY_BAY ((4<<8)|0)
#define SG_HPU_TYPE_FAN_TRAY_BAY_STR \
"Fan Tray Bay"
#define SG_HPU_TYPE_FAN_TRAY_BAY_ID "FT"
#define SG_HPU_TYPE_R24_IO_FOUR_FAN_TRAY ((4<<8)|1)
#define SG_HPU_TYPE_R24_IO_FOUR_FAN_TRAY_STR \
"R24 IO Four Fan Tray"
#define SG_HPU_TYPE_R24_IO_FOUR_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_R24_IO_FOUR_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_R24_CPU_SIX_FAN_TRAY ((4<<8)|2)
#define SG_HPU_TYPE_R24_CPU_SIX_FAN_TRAY_STR \
"R24 CPU Six Fan Tray"
#define SG_HPU_TYPE_R24_CPU_SIX_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_R24_CPU_SIX_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_RACK_FAN_TRAY ((4<<8)|3)
#define SG_HPU_TYPE_RACK_FAN_TRAY_STR \
"Rack Fan Tray"
#define SG_HPU_TYPE_RACK_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_RACK_FAN_TRAY_SHORTNAME "RACKFAN"
#define SG_HPU_TYPE_R12_THREE_FAN_TRAY ((4<<8)|4)
#define SG_HPU_TYPE_R12_THREE_FAN_TRAY_STR \
"R12 Three Fan Tray"
#define SG_HPU_TYPE_R12_THREE_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_R12_THREE_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_K12_IO_ONE_FAN_TRAY ((4<<8)|5)
#define SG_HPU_TYPE_K12_IO_ONE_FAN_TRAY_STR \
"K12 IO One Fan Tray"
#define SG_HPU_TYPE_K12_IO_ONE_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_K12_IO_ONE_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_K12_CPU_THREE_FAN_TRAY ((4<<8)|6)
#define SG_HPU_TYPE_K12_CPU_THREE_FAN_TRAY_STR \
"K12 CPU Three Fan Tray"
#define SG_HPU_TYPE_K12_CPU_THREE_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_K12_CPU_THREE_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_MD_TOP_IO_FAN_TRAY ((4<<8)|7)
#define SG_HPU_TYPE_MD_TOP_IO_FAN_TRAY_STR \
"MD Top I/O Fan Tray"
#define SG_HPU_TYPE_MD_TOP_IO_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_MD_TOP_IO_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_SP_FAN_TRAY ((4<<8)|8)
#define SG_HPU_TYPE_SP_FAN_TRAY_STR \
"SP Fan Tray"
#define SG_HPU_TYPE_SP_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_SP_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_MD_BOTTOM_IO_FAN_TRAY ((4<<8)|9)
#define SG_HPU_TYPE_MD_BOTTOM_IO_FAN_TRAY_STR \
"MD Bottom I/O Fan Tray"
#define SG_HPU_TYPE_MD_BOTTOM_IO_FAN_TRAY_ID "FT"
#define SG_HPU_TYPE_MD_BOTTOM_IO_FAN_TRAY_SHORTNAME "FAN"
#define SG_HPU_TYPE_SP_CPCI_IO_BOARD ((5<<8)|3)
#define SG_HPU_TYPE_SP_CPCI_IO_BOARD_STR \
"SP CPCI I/O board"
#define SG_HPU_TYPE_SP_CPCI_IO_BOARD_ID "IB"
#ifdef __cplusplus
}
#endif
#endif