1*fcf3ce44SJohn Forte /* 2*fcf3ce44SJohn Forte * CDDL HEADER START 3*fcf3ce44SJohn Forte * 4*fcf3ce44SJohn Forte * The contents of this file are subject to the terms of the 5*fcf3ce44SJohn Forte * Common Development and Distribution License (the "License"). 6*fcf3ce44SJohn Forte * You may not use this file except in compliance with the License. 7*fcf3ce44SJohn Forte * 8*fcf3ce44SJohn Forte * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*fcf3ce44SJohn Forte * or http://www.opensolaris.org/os/licensing. 10*fcf3ce44SJohn Forte * See the License for the specific language governing permissions 11*fcf3ce44SJohn Forte * and limitations under the License. 12*fcf3ce44SJohn Forte * 13*fcf3ce44SJohn Forte * When distributing Covered Code, include this CDDL HEADER in each 14*fcf3ce44SJohn Forte * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*fcf3ce44SJohn Forte * If applicable, add the following below this CDDL HEADER, with the 16*fcf3ce44SJohn Forte * fields enclosed by brackets "[]" replaced with your own identifying 17*fcf3ce44SJohn Forte * information: Portions Copyright [yyyy] [name of copyright owner] 18*fcf3ce44SJohn Forte * 19*fcf3ce44SJohn Forte * CDDL HEADER END 20*fcf3ce44SJohn Forte */ 21*fcf3ce44SJohn Forte /* 22*fcf3ce44SJohn Forte * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23*fcf3ce44SJohn Forte * Use is subject to license terms. 24*fcf3ce44SJohn Forte */ 25*fcf3ce44SJohn Forte 26*fcf3ce44SJohn Forte #ifndef _MPATHADM_TEXT_H 27*fcf3ce44SJohn Forte #define _MPATHADM_TEXT_H 28*fcf3ce44SJohn Forte 29*fcf3ce44SJohn Forte #ifdef __cplusplus 30*fcf3ce44SJohn Forte extern "C" { 31*fcf3ce44SJohn Forte #endif 32*fcf3ce44SJohn Forte 33*fcf3ce44SJohn Forte MP_CHAR * getTextString(int stringVal); 34*fcf3ce44SJohn Forte 35*fcf3ce44SJohn Forte /* define string values */ 36*fcf3ce44SJohn Forte enum textStrings { 37*fcf3ce44SJohn Forte TEXT_UNKNOWN, 38*fcf3ce44SJohn Forte TEXT_LBTYPE_FAILOVER_ONLY, 39*fcf3ce44SJohn Forte TEXT_LBTYPE_LBAREGION, 40*fcf3ce44SJohn Forte TEXT_LBTYPE_DEVICEPROD, 41*fcf3ce44SJohn Forte TEXT_LBTYPE_LEASTIO, 42*fcf3ce44SJohn Forte TEXT_LBTYPE_LEASTBLOCKS, 43*fcf3ce44SJohn Forte TEXT_LBTYPE_ROUNDROBIN, 44*fcf3ce44SJohn Forte TEXT_LBTYPE_UNKNOWN, 45*fcf3ce44SJohn Forte TEXT_LBTYPE_NONE, 46*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY1, 47*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY2, 48*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY3, 49*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY4, 50*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY5, 51*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY6, 52*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY7, 53*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY8, 54*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY9, 55*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY10, 56*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY11, 57*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY12, 58*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY13, 59*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY14, 60*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY15, 61*fcf3ce44SJohn Forte TEXT_LBTYPE_PROPRIETARY16, 62*fcf3ce44SJohn Forte TEXT_NA, 63*fcf3ce44SJohn Forte TEXT_YES, 64*fcf3ce44SJohn Forte TEXT_NO, 65*fcf3ce44SJohn Forte TEXT_ON, 66*fcf3ce44SJohn Forte TEXT_OFF, 67*fcf3ce44SJohn Forte TEXT_LB_VENDOR, 68*fcf3ce44SJohn Forte TEXT_LB_DRIVER_NAME, 69*fcf3ce44SJohn Forte TEXT_LB_DEFAULT_LB, 70*fcf3ce44SJohn Forte TEXT_LB_SUPPORTED_LB, 71*fcf3ce44SJohn Forte TEXT_LB_ALLOWS_ACT_TPG, 72*fcf3ce44SJohn Forte TEXT_LB_ALLOWS_PATH_OV, 73*fcf3ce44SJohn Forte TEXT_LB_SUPP_AUTO_FB, 74*fcf3ce44SJohn Forte TEXT_LB_AUTO_FB, 75*fcf3ce44SJohn Forte TEXT_LB_FB_POLLING_RATE, 76*fcf3ce44SJohn Forte TEXT_LB_SUPP_AUTO_P, 77*fcf3ce44SJohn Forte TEXT_LB_AUTO_PROB, 78*fcf3ce44SJohn Forte TEXT_LB_PR_POLLING_RATE, 79*fcf3ce44SJohn Forte TEXT_LB_SUPP_DEVICES, 80*fcf3ce44SJohn Forte TEXT_LB_SUPPORTED_DEVICES, 81*fcf3ce44SJohn Forte TEXT_LB_PRODUCT, 82*fcf3ce44SJohn Forte TEXT_LB_REVISION, 83*fcf3ce44SJohn Forte TEXT_LB_LOGICAL_UNIT, 84*fcf3ce44SJohn Forte TEXT_LB_INQUIRY_NAME_TYPE, 85*fcf3ce44SJohn Forte TEXT_NAME_TYPE_UNKNOWN, 86*fcf3ce44SJohn Forte TEXT_NAME_TYPE_VPD83_TYPE1, 87*fcf3ce44SJohn Forte TEXT_NAME_TYPE_VPD83_TYPE2, 88*fcf3ce44SJohn Forte TEXT_NAME_TYPE_VPD83_TYPE3, 89*fcf3ce44SJohn Forte TEXT_NAME_TYPE_DEVICE_SPECIFIC, 90*fcf3ce44SJohn Forte TEXT_LB_INQUIRY_NAME, 91*fcf3ce44SJohn Forte TEXT_LB_ASYMMETRIC, 92*fcf3ce44SJohn Forte TEXT_LB_EXPLICIT_FAILOVER, 93*fcf3ce44SJohn Forte TEXT_LB_CURR_LOAD_BALANCE, 94*fcf3ce44SJohn Forte TEXT_LB_LU_GROUP_ID, 95*fcf3ce44SJohn Forte TEXT_LB_PATH_INFO, 96*fcf3ce44SJohn Forte TEXT_LB_INIT_PORT_NAME, 97*fcf3ce44SJohn Forte TEXT_LB_TARGET_PORT_NAME, 98*fcf3ce44SJohn Forte TEXT_LB_OVERRIDE_PATH, 99*fcf3ce44SJohn Forte TEXT_LB_PATH_STATE, 100*fcf3ce44SJohn Forte TEXT_LB_TPG_INFO, 101*fcf3ce44SJohn Forte TEXT_LB_ACCESS_STATE, 102*fcf3ce44SJohn Forte TEXT_LB_ID, 103*fcf3ce44SJohn Forte TEXT_TPORT_LIST, 104*fcf3ce44SJohn Forte TEXT_LB_NAME, 105*fcf3ce44SJohn Forte TEXT_LB_RELATIVE_ID, 106*fcf3ce44SJohn Forte TEXT_LB_INITATOR_PORT, 107*fcf3ce44SJohn Forte TEXT_LB_TRANSPORT_TYPE, 108*fcf3ce44SJohn Forte TEXT_LB_OS_DEVICE_FILE, 109*fcf3ce44SJohn Forte TEXT_LB_PATH_COUNT, 110*fcf3ce44SJohn Forte TEXT_LB_OP_PATH_COUNT, 111*fcf3ce44SJohn Forte TEXT_LB_MPATH_SUPPORT, 112*fcf3ce44SJohn Forte TEXT_PROPRIETARY, 113*fcf3ce44SJohn Forte TEXT_LB_ENABLED, 114*fcf3ce44SJohn Forte TEXT_LB_DISABLED, 115*fcf3ce44SJohn Forte TEXT_UNKNOWN_OBJECT, 116*fcf3ce44SJohn Forte TEXT_MPSTATUS_SUCCESS, 117*fcf3ce44SJohn Forte TEXT_MPSTATUS_INV_PARAMETER, 118*fcf3ce44SJohn Forte TEXT_MPSTATUS_UNKNOWN_FN, 119*fcf3ce44SJohn Forte TEXT_MPSTATUS_FAILED, 120*fcf3ce44SJohn Forte TEXT_MPSTATUS_INSUFF_MEMORY, 121*fcf3ce44SJohn Forte TEXT_MPSTATUS_INV_OBJ_TYPE, 122*fcf3ce44SJohn Forte TEXT_MPSTATUS_OBJ_NOT_FOUND, 123*fcf3ce44SJohn Forte TEXT_MPSTATUS_UNSUPPORTED, 124*fcf3ce44SJohn Forte TEXT_MPSTATUS_FN_REPLACED, 125*fcf3ce44SJohn Forte TEXT_MPSTATUS_ACC_STATE_INVAL, 126*fcf3ce44SJohn Forte TEXT_MPSTATUS_PATH_NONOP, 127*fcf3ce44SJohn Forte TEXT_MPSTATUS_TRY_AGAIN, 128*fcf3ce44SJohn Forte TEXT_MPSTATUS_NOT_PERMITTED, 129*fcf3ce44SJohn Forte ERR_NO_MPATH_SUPPORT_LIST, 130*fcf3ce44SJohn Forte ERR_CANT_FIND_MPATH_SUPPORT, 131*fcf3ce44SJohn Forte ERR_CANT_FIND_MPATH_SUPPORT_WITH_NAME, 132*fcf3ce44SJohn Forte ERR_NO_PROPERTIES, 133*fcf3ce44SJohn Forte ERR_NO_SUPP_DEVICE_INFO, 134*fcf3ce44SJohn Forte ERR_NO_LU_LIST, 135*fcf3ce44SJohn Forte ERR_NO_ASSOCIATED_LU, 136*fcf3ce44SJohn Forte ERR_LU_NOT_FOUND_WITH_MISSING_LU_STR, 137*fcf3ce44SJohn Forte ERR_NO_LU_PATH_INFO_WITH_MISSING_LU_STR, 138*fcf3ce44SJohn Forte ERR_NO_LU_PATH_INFO, 139*fcf3ce44SJohn Forte ERR_NO_ASSOC_TPGS, 140*fcf3ce44SJohn Forte ERR_NO_ASSOC_TPORTS, 141*fcf3ce44SJohn Forte ERR_NO_INIT_PORTS, 142*fcf3ce44SJohn Forte ERR_NO_INIT_PORT_LIST_WITH_REASON, 143*fcf3ce44SJohn Forte ERR_INIT_PORT_NOT_FOUND_WITH_MISSING_LU_STR, 144*fcf3ce44SJohn Forte ERR_FAILED_TO_REGISTER_PLUGIN_NAME_WITH_REASON, 145*fcf3ce44SJohn Forte ERR_FAILED_TO_DEREGISTER_PLUGIN_NAME_WITH_REASON, 146*fcf3ce44SJohn Forte ERR_FAILED_TO_CHANGE_OPTION_WITH_REASON, 147*fcf3ce44SJohn Forte ERR_FAILED_TO_ENABLE_PATH_WITH_REASON, 148*fcf3ce44SJohn Forte ERR_FAILED_TO_DISABLE_PATH_WITH_REASON, 149*fcf3ce44SJohn Forte ERR_FAILED_TO_OVERRIDE_PATH_WITH_REASON, 150*fcf3ce44SJohn Forte ERR_LU_NOT_ASYMMETRIC, 151*fcf3ce44SJohn Forte ERR_NO_FAILOVER_ALLOWED, 152*fcf3ce44SJohn Forte ERR_FAILED_TO_FAILOVER_WITH_LU_AND_REASON, 153*fcf3ce44SJohn Forte ERR_FAILED_TO_FAILOVER_WITH_REASON, 154*fcf3ce44SJohn Forte ERR_FAILED_TO_CANCEL_OVERRIDE_PATH_WITH_REASON, 155*fcf3ce44SJohn Forte ERR_FAILED_TO_FIND_PATH, 156*fcf3ce44SJohn Forte LU_NOT_FOUND, 157*fcf3ce44SJohn Forte FAILED_TO_FIND_PATH, 158*fcf3ce44SJohn Forte MISSING_LU_NAME, 159*fcf3ce44SJohn Forte MISSING_INIT_PORT_NAME, 160*fcf3ce44SJohn Forte MISSING_TARGET_PORT_NAME, 161*fcf3ce44SJohn Forte ERR_MEMORY_ALLOCATION, 162*fcf3ce44SJohn Forte TEXT_MORE_INFO, 163*fcf3ce44SJohn Forte TEXT_UNABLE_TO_COMPLETE, 164*fcf3ce44SJohn Forte ERR_FILE_DESCRIPTOR, 165*fcf3ce44SJohn Forte ERR_DEVID, 166*fcf3ce44SJohn Forte ERR_LU_ACCESS_STATE_UNCHANGED, 167*fcf3ce44SJohn Forte TEXT_AUTO_FAILBACK, 168*fcf3ce44SJohn Forte TEXT_AUTO_PROBING, 169*fcf3ce44SJohn Forte TEXT_LOAD_BALANCE, 170*fcf3ce44SJohn Forte TEXT_ILLEGAL_ARGUMENT, 171*fcf3ce44SJohn Forte TEXT_MPATH_SUPPORT_NOT_FOUND, 172*fcf3ce44SJohn Forte TEXT_PATH_STATE_OKAY, 173*fcf3ce44SJohn Forte TEXT_PATH_STATE_PATH_ERR, 174*fcf3ce44SJohn Forte TEXT_PATH_STATE_LU_ERR, 175*fcf3ce44SJohn Forte TEXT_PATH_STATE_RESERVED, 176*fcf3ce44SJohn Forte TEXT_PATH_STATE_REMOVED, 177*fcf3ce44SJohn Forte TEXT_PATH_STATE_TRANSITIONING, 178*fcf3ce44SJohn Forte TEXT_PATH_STATE_OPERATIONAL_CLOSED, 179*fcf3ce44SJohn Forte TEXT_PATH_STATE_INVALID_CLOSED, 180*fcf3ce44SJohn Forte TEXT_PATH_STATE_OFFLINE_CLOSED, 181*fcf3ce44SJohn Forte TEXT_ACCESS_STATE_ACTIVE_OPTIMIZED, 182*fcf3ce44SJohn Forte TEXT_ACCESS_STATE_ACTIVE_NONOPTIMIZED, 183*fcf3ce44SJohn Forte TEXT_ACCESS_STATE_STANDBY, 184*fcf3ce44SJohn Forte TEXT_ACCESS_STATE_UNAVAILABLE, 185*fcf3ce44SJohn Forte TEXT_ACCESS_STATE_TRANSITIONING, 186*fcf3ce44SJohn Forte TEXT_ACCESS_STATE_ACTIVE, 187*fcf3ce44SJohn Forte TEXT_ANY_DEVICE, 188*fcf3ce44SJohn Forte TEXT_TRANS_PORT_TYPE_MPNODE, 189*fcf3ce44SJohn Forte TEXT_TRANS_PORT_TYPE_FC, 190*fcf3ce44SJohn Forte TEXT_TRANS_PORT_TYPE_SPI, 191*fcf3ce44SJohn Forte TEXT_TRANS_PORT_TYPE_ISCSI, 192*fcf3ce44SJohn Forte TEXT_TRANS_PORT_TYPE_IFB 193*fcf3ce44SJohn Forte }; 194*fcf3ce44SJohn Forte 195*fcf3ce44SJohn Forte #ifdef __cplusplus 196*fcf3ce44SJohn Forte } 197*fcf3ce44SJohn Forte #endif 198*fcf3ce44SJohn Forte 199*fcf3ce44SJohn Forte #endif /* _MPATHADM_TEXT_H */ 200