picloids.h revision 0d63ce2b32a9e1cc8ed71d4d92536c44d66a530a
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * CDDL HEADER START
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * The contents of this file are subject to the terms of the
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Common Development and Distribution License (the "License").
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * You may not use this file except in compliance with the License.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * See the License for the specific language governing permissions
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * and limitations under the License.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * When distributing Covered Code, include this CDDL HEADER in each
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * If applicable, add the following below this CDDL HEADER, with the
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * fields enclosed by brackets "[]" replaced with your own identifying
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * information: Portions Copyright [yyyy] [name of copyright owner]
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * CDDL HEADER END
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Use is subject to license terms.
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#pragma ident "%Z%%M% %I% %E% SMI"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkiextern "C" {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * IETF OIDs (not all are used by PICL)
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalVendorType OID_entPhysicalEntry ".3"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalContainedIn OID_entPhysicalEntry ".4"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalParentRelPos OID_entPhysicalEntry ".6"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalHardwareRev OID_entPhysicalEntry ".8"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalFirmwareRev OID_entPhysicalEntry ".9"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalSoftwareRev OID_entPhysicalEntry ".10"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalSerialNum OID_entPhysicalEntry ".11"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalMfgName OID_entPhysicalEntry ".12"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalModelName OID_entPhysicalEntry ".13"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalAlias OID_entPhysicalEntry ".14"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalAssetID OID_entPhysicalEntry ".15"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_entPhysicalIsFRU OID_entPhysicalEntry ".16"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Conceptual row change time for handling hotplug/hotswap events
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Sun Platform MIB OIDs used by PICL
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatMIBPhysicalObjects OID_sunPlatMIBObjects ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Equipment Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatEquipmentTable OID_sunPlatMIBPhysicalObjects ".2"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatEquipmentEntry OID_sunPlatEquipmentTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Equipment Holder Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatEquipmentHolderTable OID_sunPlatMIBPhysicalObjects ".3"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatEquipmentHolderEntry OID_sunPlatEquipmentHolderTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Circuit Pack Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatCircuitPackTable OID_sunPlatMIBPhysicalObjects ".4"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatCircuitPackEntry OID_sunPlatCircuitPackTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Physical Class Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatPhysicalTable OID_sunPlatMIBPhysicalObjects ".5"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatPhysicalEntry OID_sunPlatPhysicalTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatPhysicalClass OID_sunPlatPhysicalEntry ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Sensor Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatSensorTable OID_sunPlatMIBPhysicalObjects ".6"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatSensorEntry OID_sunPlatSensorTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatSensorClass OID_sunPlatSensorEntry ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatSensorType OID_sunPlatSensorEntry ".2"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Binary Sensor Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatBinarySensorTable OID_sunPlatMIBPhysicalObjects ".7"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatBinarySensorEntry OID_sunPlatBinarySensorTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatBinarySensorCurrent OID_sunPlatBinarySensorEntry ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatBinarySensorExpected OID_sunPlatBinarySensorEntry ".2"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Numeric Sensor Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatNumericSensorTable OID_sunPlatMIBPhysicalObjects ".8"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatNumericSensorEntry OID_sunPlatNumericSensorTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatNumericSensorCurrent OID_sunPlatNumericSensorEntry ".4"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatNumericSensorLowerThresholdNonCritical \
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatNumericSensorUpperThresholdNonCritical \
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatNumericSensorLowerThresholdCritical \
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatNumericSensorUpperThresholdCritical \
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Alarm Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatAlarmTable OID_sunPlatMIBPhysicalObjects ".12"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatAlarmEntry OID_sunPlatAlarmTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatAlarmType OID_sunPlatAlarmEntry ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatAlarmState OID_sunPlatAlarmEntry ".2"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Power Supply Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatPowerSupplyTable OID_sunPlatMIBPhysicalObjects ".14"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatPowerSupplyEntry OID_sunPlatPowerSupplyTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatPowerSupplyClass OID_sunPlatPowerSupplyEntry ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Battery Table
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatBatteryTable OID_sunPlatMIBPhysicalObjects ".15"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatBatteryEntry OID_sunPlatBatteryTable ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define OID_sunPlatBatteryStatus OID_sunPlatBatteryEntry ".1"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Integer enumeration classes used by PICL
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Note that the truth values could be much longer than the length
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * of the strings "true" or "false", since we actuallly interpret them
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * using InterpretTrue and InterpretFalse values in the MIB. Currently
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * we limit them to be 32 (see MAX_TRUTHVAL_LEN definition below)
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/* entPhysicalClass */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/* sunPlatEquipmentOperationalState */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Update MAX_OPSTATE_LEN below if these strings are changed
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/* sunPlatPhysicalClass */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/* sunPlatSensorClass */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/* sunPlatSensorType */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/* sunPlatAlarmType */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki/* sunPlatAlarmState */
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Update MAX_ALARMSTATE_LEN below if these strings are changed
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Bit masks for the sunPlatNumericSensorEnabledThresholds
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * sunPlatPowerSupplyClass
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * sunPlatBatteryStatus
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenkitypedef enum {
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Update MAX_BATTERYSTATUS_LEN below if these strings are changed
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#define STR_SSBS_CHARGING_AND_CRITICAL "Charging and Critical"
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki * Max limits of all volatiles
0d63ce2b32a9e1cc8ed71d4d92536c44d66a530avenki#endif /* _PICLOIDS_H */