1*a7949318SReed /* 2*a7949318SReed * CDDL HEADER START 3*a7949318SReed * 4*a7949318SReed * The contents of this file are subject to the terms of the 5*a7949318SReed * Common Development and Distribution License (the "License"). 6*a7949318SReed * You may not use this file except in compliance with the License. 7*a7949318SReed * 8*a7949318SReed * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*a7949318SReed * or http://www.opensolaris.org/os/licensing. 10*a7949318SReed * See the License for the specific language governing permissions 11*a7949318SReed * and limitations under the License. 12*a7949318SReed * 13*a7949318SReed * When distributing Covered Code, include this CDDL HEADER in each 14*a7949318SReed * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*a7949318SReed * If applicable, add the following below this CDDL HEADER, with the 16*a7949318SReed * fields enclosed by brackets "[]" replaced with your own identifying 17*a7949318SReed * information: Portions Copyright [yyyy] [name of copyright owner] 18*a7949318SReed * 19*a7949318SReed * CDDL HEADER END 20*a7949318SReed */ 21*a7949318SReed /* 22*a7949318SReed * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*a7949318SReed * Use is subject to license terms. 24*a7949318SReed */ 25*a7949318SReed 26*a7949318SReed #include "Handle.h" 27*a7949318SReed #include "Trace.h" 28*a7949318SReed #include "Exceptions.h" 29*a7949318SReed #ifdef __cplusplus 30*a7949318SReed extern "C" { 31*a7949318SReed #endif 32*a7949318SReed 33*a7949318SReed /** 34*a7949318SReed * @memo Retrieves the attributes for an adapter 35*a7949318SReed * @precondition Library must be loaded 36*a7949318SReed * @return HBA_STATUS_OK if attributes were filled in 37*a7949318SReed * @param handle The desired HBA 38*a7949318SReed * @param rval Return value 39*a7949318SReed * 40*a7949318SReed */ Sun_fcDoForceLip(HBA_HANDLE handle,int * rval)41*a7949318SReedHBA_STATUS Sun_fcDoForceLip(HBA_HANDLE handle, 42*a7949318SReed int *rval) { 43*a7949318SReed Trace log("Sun_fcDoForceLip"); 44*a7949318SReed 45*a7949318SReed try { 46*a7949318SReed Handle *myHandle = Handle::findHandle(handle); 47*a7949318SReed *rval = myHandle->doForceLip(); 48*a7949318SReed return (HBA_STATUS_OK); 49*a7949318SReed } catch (HBAException &e) { 50*a7949318SReed return (e.getErrorCode()); 51*a7949318SReed } catch (...) { 52*a7949318SReed log.internalError( 53*a7949318SReed "Uncaught exception"); 54*a7949318SReed return (HBA_STATUS_ERROR); 55*a7949318SReed } 56*a7949318SReed } 57*a7949318SReed 58*a7949318SReed #ifdef __cplusplus 59*a7949318SReed } 60*a7949318SReed #endif 61