1*10156SZhang.Yi@Sun.COM /* 2*10156SZhang.Yi@Sun.COM * CDDL HEADER START 3*10156SZhang.Yi@Sun.COM * 4*10156SZhang.Yi@Sun.COM * The contents of this file are subject to the terms of the 5*10156SZhang.Yi@Sun.COM * Common Development and Distribution License (the "License"). 6*10156SZhang.Yi@Sun.COM * You may not use this file except in compliance with the License. 7*10156SZhang.Yi@Sun.COM * 8*10156SZhang.Yi@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*10156SZhang.Yi@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*10156SZhang.Yi@Sun.COM * See the License for the specific language governing permissions 11*10156SZhang.Yi@Sun.COM * and limitations under the License. 12*10156SZhang.Yi@Sun.COM * 13*10156SZhang.Yi@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*10156SZhang.Yi@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*10156SZhang.Yi@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*10156SZhang.Yi@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*10156SZhang.Yi@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*10156SZhang.Yi@Sun.COM * 19*10156SZhang.Yi@Sun.COM * CDDL HEADER END 20*10156SZhang.Yi@Sun.COM */ 21*10156SZhang.Yi@Sun.COM /* 22*10156SZhang.Yi@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*10156SZhang.Yi@Sun.COM * Use is subject to license terms. 24*10156SZhang.Yi@Sun.COM */ 25*10156SZhang.Yi@Sun.COM 26*10156SZhang.Yi@Sun.COM /* header file for iSCSI tunable parameters properties function */ 27*10156SZhang.Yi@Sun.COM 28*10156SZhang.Yi@Sun.COM #ifndef _LIBSUN_IMA_H 29*10156SZhang.Yi@Sun.COM #define _LIBSUN_IMA_H 30*10156SZhang.Yi@Sun.COM 31*10156SZhang.Yi@Sun.COM #ifdef __cplusplus 32*10156SZhang.Yi@Sun.COM extern "C" { 33*10156SZhang.Yi@Sun.COM #endif 34*10156SZhang.Yi@Sun.COM 35*10156SZhang.Yi@Sun.COM #include <ima.h> 36*10156SZhang.Yi@Sun.COM 37*10156SZhang.Yi@Sun.COM typedef enum { 38*10156SZhang.Yi@Sun.COM ISCSI_RX_TIMEOUT_VALUE = 1, 39*10156SZhang.Yi@Sun.COM ISCSI_CONN_DEFAULT_LOGIN_MAX = 2, 40*10156SZhang.Yi@Sun.COM ISCSI_LOGIN_POLLING_DELAY = 3 41*10156SZhang.Yi@Sun.COM } ISCSI_TUNABLE_OBJECT_TYPE; 42*10156SZhang.Yi@Sun.COM 43*10156SZhang.Yi@Sun.COM typedef struct _ISCSI_TUNABLE_PARAM { 44*10156SZhang.Yi@Sun.COM ISCSI_TUNABLE_OBJECT_TYPE tunable_objectType; 45*10156SZhang.Yi@Sun.COM IMA_CHAR *tunable_objectValue; 46*10156SZhang.Yi@Sun.COM } ISCSI_TUNABLE_PARAM; 47*10156SZhang.Yi@Sun.COM 48*10156SZhang.Yi@Sun.COM IMA_API IMA_STATUS SUN_IMA_SetTunableProperties( 49*10156SZhang.Yi@Sun.COM IMA_OID oid, 50*10156SZhang.Yi@Sun.COM ISCSI_TUNABLE_PARAM *param 51*10156SZhang.Yi@Sun.COM ); 52*10156SZhang.Yi@Sun.COM 53*10156SZhang.Yi@Sun.COM IMA_API IMA_STATUS SUN_IMA_GetTunableProperties( 54*10156SZhang.Yi@Sun.COM IMA_OID oid, 55*10156SZhang.Yi@Sun.COM ISCSI_TUNABLE_PARAM *param 56*10156SZhang.Yi@Sun.COM ); 57*10156SZhang.Yi@Sun.COM 58*10156SZhang.Yi@Sun.COM #ifdef __cplusplus 59*10156SZhang.Yi@Sun.COM } 60*10156SZhang.Yi@Sun.COM #endif 61*10156SZhang.Yi@Sun.COM 62*10156SZhang.Yi@Sun.COM #endif /* _LIBSUN_IMA_H */ 63