piclenvmond.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PICLENVMOND_H
#define _PICLENVMOND_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* debug flags */
#define PICL_NODE_CHASSIS "chassis"
#define PICL_NODE_CPU "CPU"
#define PICL_NODE_RTM "RTM"
#define PICL_PROP_CONF_FILE "conf_name"
#define TEMPERATURE_SENSOR_TYPE (0x1u)
typedef enum {
LOC_STATE_UNKNOWN = 0,
#define NULLREAD (int (*)(ptree_rarg_t *, void *))0
#define NULLWRITE (int (*)(ptree_warg_t *, const void *))0
#define POLL_TIMEOUT 5000
#define DEFAULT_FD -1
#define DEFAULT_SEQN 0xff
/* byte of pointer to signed integer */
#define PICL_ADMINLOCK_DISABLED "disabled"
#define PICL_ADMINLOCK_ENABLED "enabled"
#define PTREE_INIT_PROPINFO_FAILED_MSG \
gettext("SUNW_envmond:ptree_init_propinfo() failed, error = %d")
#define PTREE_CREATE_AND_ADD_PROP_FAILED_MSG \
gettext("SUNW_envmond: ptree_create_and_add_prop() failed error = %d")
#ifdef __cplusplus
}
#endif
#endif /* _PICLENVMOND_H */