1*4582Scth /* 2*4582Scth * CDDL HEADER START 3*4582Scth * 4*4582Scth * The contents of this file are subject to the terms of the 5*4582Scth * Common Development and Distribution License (the "License"). 6*4582Scth * You may not use this file except in compliance with the License. 7*4582Scth * 8*4582Scth * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*4582Scth * or http://www.opensolaris.org/os/licensing. 10*4582Scth * See the License for the specific language governing permissions 11*4582Scth * and limitations under the License. 12*4582Scth * 13*4582Scth * When distributing Covered Code, include this CDDL HEADER in each 14*4582Scth * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*4582Scth * If applicable, add the following below this CDDL HEADER, with the 16*4582Scth * fields enclosed by brackets "[]" replaced with your own identifying 17*4582Scth * information: Portions Copyright [yyyy] [name of copyright owner] 18*4582Scth * 19*4582Scth * CDDL HEADER END 20*4582Scth */ 21*4582Scth 22*4582Scth /* 23*4582Scth * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*4582Scth * Use is subject to license terms. 25*4582Scth */ 26*4582Scth 27*4582Scth #ifndef _TOPO_GATHER_H 28*4582Scth #define _TOPO_GATHER_H 29*4582Scth 30*4582Scth #pragma ident "%Z%%M% %I% %E% SMI" 31*4582Scth 32*4582Scth /* 33*4582Scth * bay/disk libtopo plugin property consumer 34*4582Scth * (creates diskmon configuration objects) 35*4582Scth */ 36*4582Scth 37*4582Scth #ifdef __cplusplus 38*4582Scth extern "C" { 39*4582Scth #endif 40*4582Scth 41*4582Scth /* NOTE: some aspects of this code are still x4500 specific */ 42*4582Scth #define DISK_MONITOR_PROPERTIES "sfx4500-properties" 43*4582Scth 44*4582Scth /* Properties added to the machine-specific properties pgroup */ 45*4582Scth #define BAY_IND_NAME "indicator-name" 46*4582Scth #define BAY_IND_ACTION "indicator-action" 47*4582Scth #define BAY_INDRULE_STATES "indicator-rule-states" 48*4582Scth #define BAY_INDRULE_ACTIONS "indicator-rule-actions" 49*4582Scth 50*4582Scth #define TOPO_SUCCESS 0 51*4582Scth #define TOPO_WALK_ERROR 1 52*4582Scth #define TOPO_WALK_INIT_ERROR 2 53*4582Scth #define TOPO_SNAP_ERROR 3 54*4582Scth #define TOPO_OPEN_ERROR 4 55*4582Scth 56*4582Scth int update_configuration_from_topo(fmd_hdl_t *, diskmon_t *diskp); 57*4582Scth int init_configuration_from_topo(void); 58*4582Scth void fini_configuration_from_topo(void); 59*4582Scth diskmon_t *dm_fmri_to_diskmon(fmd_hdl_t *hdl, nvlist_t *fmri); 60*4582Scth 61*4582Scth #ifdef __cplusplus 62*4582Scth } 63*4582Scth #endif 64*4582Scth 65*4582Scth #endif /* _TOPO_GATHER_H */ 66