1*10652SHyon.Kim@Sun.COM /*
2*10652SHyon.Kim@Sun.COM * CDDL HEADER START
3*10652SHyon.Kim@Sun.COM *
4*10652SHyon.Kim@Sun.COM * The contents of this file are subject to the terms of the
5*10652SHyon.Kim@Sun.COM * Common Development and Distribution License (the "License").
6*10652SHyon.Kim@Sun.COM * You may not use this file except in compliance with the License.
7*10652SHyon.Kim@Sun.COM *
8*10652SHyon.Kim@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*10652SHyon.Kim@Sun.COM * or http://www.opensolaris.org/os/licensing.
10*10652SHyon.Kim@Sun.COM * See the License for the specific language governing permissions
11*10652SHyon.Kim@Sun.COM * and limitations under the License.
12*10652SHyon.Kim@Sun.COM *
13*10652SHyon.Kim@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each
14*10652SHyon.Kim@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*10652SHyon.Kim@Sun.COM * If applicable, add the following below this CDDL HEADER, with the
16*10652SHyon.Kim@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying
17*10652SHyon.Kim@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner]
18*10652SHyon.Kim@Sun.COM *
19*10652SHyon.Kim@Sun.COM * CDDL HEADER END
20*10652SHyon.Kim@Sun.COM */
21*10652SHyon.Kim@Sun.COM
22*10652SHyon.Kim@Sun.COM /*
23*10652SHyon.Kim@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24*10652SHyon.Kim@Sun.COM * Use is subject to license terms.
25*10652SHyon.Kim@Sun.COM */
26*10652SHyon.Kim@Sun.COM
27*10652SHyon.Kim@Sun.COM #include <sun_sas.h>
28*10652SHyon.Kim@Sun.COM
29*10652SHyon.Kim@Sun.COM #define SUN_SMHBA_VENDOR_LIB VSL_NAME
30*10652SHyon.Kim@Sun.COM #define SUN_SMHBA_VENDOR_LIB_PATH "/usr/lib/libsun_sas.so"
31*10652SHyon.Kim@Sun.COM #define SUN_SMHBA_VENDOR_LIB_VERSION VSL_STRING_VERSION
32*10652SHyon.Kim@Sun.COM
33*10652SHyon.Kim@Sun.COM HBA_UINT32
Sun_sasGetVendorLibraryAttributes(SMHBA_LIBRARYATTRIBUTES * attrs)34*10652SHyon.Kim@Sun.COM Sun_sasGetVendorLibraryAttributes(SMHBA_LIBRARYATTRIBUTES *attrs) {
35*10652SHyon.Kim@Sun.COM const char ROUTINE[] = "Sun_sasGetVendorLibraryAttributes";
36*10652SHyon.Kim@Sun.COM
37*10652SHyon.Kim@Sun.COM /* Validate the arguments */
38*10652SHyon.Kim@Sun.COM if (attrs == NULL) {
39*10652SHyon.Kim@Sun.COM log(LOG_DEBUG, ROUTINE, "NULL attrs structure");
40*10652SHyon.Kim@Sun.COM return (SMHBA_LIBRARY_VERSION1);
41*10652SHyon.Kim@Sun.COM }
42*10652SHyon.Kim@Sun.COM (void) strlcpy(attrs->LibPath, SUN_SMHBA_VENDOR_LIB_PATH,
43*10652SHyon.Kim@Sun.COM sizeof (attrs->LibPath));
44*10652SHyon.Kim@Sun.COM (void) strlcpy(attrs->VName, SUN_SMHBA_VENDOR_LIB,
45*10652SHyon.Kim@Sun.COM sizeof (attrs->VName));
46*10652SHyon.Kim@Sun.COM (void) strlcpy(attrs->VVersion, SUN_SMHBA_VENDOR_LIB_VERSION,
47*10652SHyon.Kim@Sun.COM sizeof (attrs->VVersion));
48*10652SHyon.Kim@Sun.COM
49*10652SHyon.Kim@Sun.COM return (SMHBA_LIBRARY_VERSION1);
50*10652SHyon.Kim@Sun.COM }
51