1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 * 26 * platform -- platform-specific access to configuration database 27 */ 28 29 #ifndef _EFT_PLATFORM_H 30 #define _EFT_PLATFORM_H 31 32 #pragma ident "%Z%%M% %I% %E% SMI" 33 34 #include <libnvpair.h> 35 36 #ifdef __cplusplus 37 extern "C" { 38 #endif 39 40 #include <config.h> 41 42 nvlist_t *Action_nvl; /* nvl for problem with action=... prop on it */ 43 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 *); 50 51 struct cfgdata *platform_config_snapshot(void); 52 struct node *platform_getpath(nvlist_t *nvl); 53 54 char **platform_get_eft_files(void); 55 void platform_free_eft_files(char **); 56 57 int platform_call(struct node *np, struct lut **globals, struct config *croot, 58 struct arrow *arrowp, struct evalue *valuep); 59 int platform_confcall(struct node *np, struct lut **globals, 60 struct config *croot, struct arrow *arrowp, struct evalue *valuep); 61 int platform_payloadprop(struct node *np, struct evalue *valuep); 62 struct evalue *platform_payloadprop_values(const char *s, int *nvals); 63 int platform_path_exists(nvlist_t *fmri); 64 65 #ifdef __cplusplus 66 } 67 #endif 68 69 #endif /* _EFT_PLATFORM_H */ 70