/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LDMSVCS_UTILS_H
#define _LDMSVCS_UTILS_H
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Service Information
*/
typedef struct fds_svc {
char *name;
} fds_svc_t;
/*
* table of registered services
*/
typedef struct fds_reg_svcs {
typedef enum {
typedef struct fds_channel {
/*
* FMA services
*/
typedef struct {
/*
* definition of fma_pri_resp_t is not shown here. for more details,
* see ldmsvcs_utils.c:ldmsvcs_get_core_md().
*/
#define FMA_CPU_REQ_STATUS 0
#define FMA_CPU_RESP_OK 0
#define FMA_CPU_STAT_ONLINE 0
typedef struct {
typedef struct {
#define FMA_MEM_REQ_STATUS 0
#define FMA_MEM_RESP_OK 0
#define FMA_MEM_STAT_NOTRETIRED 0
typedef struct {
typedef struct {
#define FMA_IO_RESP_OK 0
typedef struct {
} fma_io_req_t;
typedef struct {
struct ldom_hdl {
};
/*
* so that higher levels in the software stack (ex: diagnosis engines)
* are not excessively delayed by ldmd's absence. both timeouts are tunable
* via SMF properties in ldmd's service manifest, and expected to be set
* thusly to appropriate values when ldmd is installed.
*
* timeouts are in seconds. init is the initial timeout; running is
* for subsequent timeouts.
*/
extern int ldmsvcs_check_channel(void);
#ifdef __cplusplus
}
#endif
#endif /* _LDMSVCS_UTILS_H */