1*d91236feSeschrock /* 2*d91236feSeschrock * CDDL HEADER START 3*d91236feSeschrock * 4*d91236feSeschrock * The contents of this file are subject to the terms of the 5*d91236feSeschrock * Common Development and Distribution License (the "License"). 6*d91236feSeschrock * You may not use this file except in compliance with the License. 7*d91236feSeschrock * 8*d91236feSeschrock * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*d91236feSeschrock * or http://www.opensolaris.org/os/licensing. 10*d91236feSeschrock * See the License for the specific language governing permissions 11*d91236feSeschrock * and limitations under the License. 12*d91236feSeschrock * 13*d91236feSeschrock * When distributing Covered Code, include this CDDL HEADER in each 14*d91236feSeschrock * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*d91236feSeschrock * If applicable, add the following below this CDDL HEADER, with the 16*d91236feSeschrock * fields enclosed by brackets "[]" replaced with your own identifying 17*d91236feSeschrock * information: Portions Copyright [yyyy] [name of copyright owner] 18*d91236feSeschrock * 19*d91236feSeschrock * CDDL HEADER END 20*d91236feSeschrock */ 21*d91236feSeschrock 22*d91236feSeschrock /* 23*d91236feSeschrock * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*d91236feSeschrock * Use is subject to license terms. 25*d91236feSeschrock */ 26*d91236feSeschrock 27*d91236feSeschrock #ifndef _SES_H 28*d91236feSeschrock #define _SES_H 29*d91236feSeschrock 30*d91236feSeschrock #pragma ident "%Z%%M% %I% %E% SMI" 31*d91236feSeschrock 32*d91236feSeschrock #include <assert.h> 33*d91236feSeschrock 34*d91236feSeschrock #include <scsi/libses.h> 35*d91236feSeschrock 36*d91236feSeschrock #include <fm/topo_mod.h> 37*d91236feSeschrock #include <fm/topo_list.h> 38*d91236feSeschrock #include <fm/topo_method.h> 39*d91236feSeschrock 40*d91236feSeschrock #ifdef __cplusplus 41*d91236feSeschrock extern "C" { 42*d91236feSeschrock #endif 43*d91236feSeschrock 44*d91236feSeschrock extern ses_node_t *ses_node_get(topo_mod_t *, tnode_t *); 45*d91236feSeschrock 46*d91236feSeschrock extern int ses_node_enum_facility(topo_mod_t *, tnode_t *, topo_version_t, 47*d91236feSeschrock nvlist_t *, nvlist_t **); 48*d91236feSeschrock extern int ses_enc_enum_facility(topo_mod_t *, tnode_t *, topo_version_t, 49*d91236feSeschrock nvlist_t *, nvlist_t **); 50*d91236feSeschrock 51*d91236feSeschrock #define TOPO_PGROUP_SES "ses" 52*d91236feSeschrock #define TOPO_PROP_NODE_ID "node-id" 53*d91236feSeschrock #define TOPO_PROP_TARGET_PATH "target-path" 54*d91236feSeschrock 55*d91236feSeschrock #ifndef NDEBUG 56*d91236feSeschrock #define verify(x) assert(x) 57*d91236feSeschrock #else 58*d91236feSeschrock #define verify(x) ((void)(x)) 59*d91236feSeschrock #endif 60*d91236feSeschrock 61*d91236feSeschrock #ifdef __cplusplus 62*d91236feSeschrock } 63*d91236feSeschrock #endif 64*d91236feSeschrock 65*d91236feSeschrock #endif /* _SES_H */ 66