1724365f7Ssethg /*
2724365f7Ssethg  * CDDL HEADER START
3724365f7Ssethg  *
4724365f7Ssethg  * The contents of this file are subject to the terms of the
5724365f7Ssethg  * Common Development and Distribution License (the "License").
6724365f7Ssethg  * You may not use this file except in compliance with the License.
7724365f7Ssethg  *
8724365f7Ssethg  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9724365f7Ssethg  * or http://www.opensolaris.org/os/licensing.
10724365f7Ssethg  * See the License for the specific language governing permissions
11724365f7Ssethg  * and limitations under the License.
12724365f7Ssethg  *
13724365f7Ssethg  * When distributing Covered Code, include this CDDL HEADER in each
14724365f7Ssethg  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15724365f7Ssethg  * If applicable, add the following below this CDDL HEADER, with the
16724365f7Ssethg  * fields enclosed by brackets "[]" replaced with your own identifying
17724365f7Ssethg  * information: Portions Copyright [yyyy] [name of copyright owner]
18724365f7Ssethg  *
19724365f7Ssethg  * CDDL HEADER END
20724365f7Ssethg  */
21724365f7Ssethg 
22724365f7Ssethg /*
23*184cd04cScth  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24724365f7Ssethg  * Use is subject to license terms.
25724365f7Ssethg  */
26724365f7Ssethg 
27724365f7Ssethg #ifndef	_TOPO_GATHER_H
28724365f7Ssethg #define	_TOPO_GATHER_H
29724365f7Ssethg 
30724365f7Ssethg /*
31*184cd04cScth  * bay/disk libtopo plugin property consumer
32724365f7Ssethg  * (creates diskmon configuration objects)
33724365f7Ssethg  */
34724365f7Ssethg 
35724365f7Ssethg #ifdef __cplusplus
36724365f7Ssethg extern "C" {
37724365f7Ssethg #endif
38724365f7Ssethg 
39*184cd04cScth /* NOTE: some aspects of this code are still x4500 specific */
40*184cd04cScth #define	DISK_MONITOR_PROPERTIES	"sfx4500-properties"
41*184cd04cScth 
42*184cd04cScth /* Properties added to the machine-specific properties pgroup */
43*184cd04cScth #define	BAY_IND_NAME		"indicator-name"
44*184cd04cScth #define	BAY_IND_ACTION		"indicator-action"
45*184cd04cScth #define	BAY_INDRULE_STATES	"indicator-rule-states"
46*184cd04cScth #define	BAY_INDRULE_ACTIONS	"indicator-rule-actions"
47*184cd04cScth 
48724365f7Ssethg #define	TOPO_SUCCESS		0
49724365f7Ssethg #define	TOPO_WALK_ERROR		1
50724365f7Ssethg #define	TOPO_WALK_INIT_ERROR	2
51724365f7Ssethg #define	TOPO_SNAP_ERROR		3
52724365f7Ssethg #define	TOPO_OPEN_ERROR		4
53724365f7Ssethg 
540eb822a1Scindi int		update_configuration_from_topo(fmd_hdl_t *, diskmon_t *diskp);
557a0b67e3Ssethg int		init_configuration_from_topo(void);
567a0b67e3Ssethg void		fini_configuration_from_topo(void);
57724365f7Ssethg diskmon_t	*dm_fmri_to_diskmon(fmd_hdl_t *hdl, nvlist_t *fmri);
58724365f7Ssethg 
59724365f7Ssethg #ifdef __cplusplus
60724365f7Ssethg }
61724365f7Ssethg #endif
62724365f7Ssethg 
63724365f7Ssethg #endif /* _TOPO_GATHER_H */
64