8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / fm / modules / common / eversholt / platform.h
blob30cab516ed0b44a14566a1b0cb06a25abb1065ca
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
25 * platform -- platform-specific access to configuration database
28 #ifndef _EFT_PLATFORM_H
29 #define _EFT_PLATFORM_H
31 #pragma ident "%Z%%M% %I% %E% SMI"
33 #include <libnvpair.h>
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
39 #include <config.h>
40 #include <fm/fmd_api.h>
42 nvlist_t *Action_nvl; /* nvl for problem with action=... prop on it */
44 void platform_init(void);
45 void platform_fini(void);
46 void platform_run_poller(const char *poller);
47 void platform_set_payloadnvp(nvlist_t *nvlp);
48 void platform_units_translate(int, struct config *, nvlist_t **, nvlist_t **,
49 nvlist_t **, char *);
51 struct cfgdata *platform_config_snapshot(void);
52 void platform_restore_config(fmd_hdl_t *hdl, fmd_case_t *fmcase);
53 void platform_save_config(fmd_hdl_t *hdl, fmd_case_t *fmcase);
54 struct node *platform_getpath(nvlist_t *nvl);
56 char **platform_get_eft_files(void);
57 void platform_free_eft_files(char **);
59 int platform_call(struct node *np, struct lut **globals, struct config *croot,
60 struct arrow *arrowp, struct evalue *valuep);
61 int platform_confcall(struct node *np, struct lut **globals,
62 struct config *croot, struct arrow *arrowp, struct evalue *valuep);
63 int platform_payloadprop(struct node *np, struct evalue *valuep);
64 struct evalue *platform_payloadprop_values(const char *s, int *nvals);
65 int platform_path_exists(nvlist_t *fmri);
66 const struct ipath *platform_fault2ipath(nvlist_t *flt);
68 #ifdef __cplusplus
70 #endif
72 #endif /* _EFT_PLATFORM_H */