xref: /onnv-gate/usr/src/lib/sun_sas/common/SMHBA_RegisterLibrary.c (revision 10652:9d0aff74d6fd)
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 HBA_STATUS
SMHBA_RegisterLibrary(PSMHBA_ENTRYPOINTS entrypoints)30*10652SHyon.Kim@Sun.COM SMHBA_RegisterLibrary(PSMHBA_ENTRYPOINTS entrypoints)
31*10652SHyon.Kim@Sun.COM {
32*10652SHyon.Kim@Sun.COM 	entrypoints->GetVersionHandler = Sun_sasGetVersion;
33*10652SHyon.Kim@Sun.COM 	entrypoints->LoadLibraryHandler = Sun_sasLoadLibrary;
34*10652SHyon.Kim@Sun.COM 	entrypoints->FreeLibraryHandler = Sun_sasFreeLibrary;
35*10652SHyon.Kim@Sun.COM 	entrypoints->GetNumberOfAdaptersHandler = Sun_sasGetNumberOfAdapters;
36*10652SHyon.Kim@Sun.COM 	entrypoints->RefreshInformationHandler = Sun_sasRefreshInformation;
37*10652SHyon.Kim@Sun.COM 	entrypoints->GetVendorLibraryAttributesHandler =
38*10652SHyon.Kim@Sun.COM 	    Sun_sasGetVendorLibraryAttributes;
39*10652SHyon.Kim@Sun.COM 	entrypoints->GetAdapterNameHandler = Sun_sasGetAdapterName;
40*10652SHyon.Kim@Sun.COM 	entrypoints->OpenAdapterHandler = Sun_sasOpenAdapter;
41*10652SHyon.Kim@Sun.COM 	entrypoints->CloseAdapterHandler = Sun_sasCloseAdapter;
42*10652SHyon.Kim@Sun.COM 	entrypoints->GetAdapterAttributesHandler = Sun_sasGetAdapterAttributes;
43*10652SHyon.Kim@Sun.COM 	entrypoints->GetNumberOfPortsHandler = Sun_sasGetNumberOfPorts;
44*10652SHyon.Kim@Sun.COM 	entrypoints->GetPortTypeHandler = Sun_sasGetPortType;
45*10652SHyon.Kim@Sun.COM 	entrypoints->GetAdapterPortAttributesHandler =
46*10652SHyon.Kim@Sun.COM 	    Sun_sasGetAdapterPortAttributes;
47*10652SHyon.Kim@Sun.COM 	entrypoints->GetDiscoveredPortAttributesHandler =
48*10652SHyon.Kim@Sun.COM 	    Sun_sasGetDiscoveredPortAttributes;
49*10652SHyon.Kim@Sun.COM 	entrypoints->GetPortAttributesByWWNHandler =
50*10652SHyon.Kim@Sun.COM 	    Sun_sasGetPortAttributesByWWN;
51*10652SHyon.Kim@Sun.COM 	entrypoints->GetFCPhyAttributesHandler = NULL;
52*10652SHyon.Kim@Sun.COM 	entrypoints->GetSASPhyAttributesHandler = Sun_sasGetSASPhyAttributes;
53*10652SHyon.Kim@Sun.COM 	entrypoints->GetProtocolStatisticsHandler =
54*10652SHyon.Kim@Sun.COM 	    Sun_sasGetProtocolStatistics;
55*10652SHyon.Kim@Sun.COM 	entrypoints->GetPhyStatisticsHandler = Sun_sasGetPhyStatistics;
56*10652SHyon.Kim@Sun.COM 	entrypoints->SendCTPassThruV2Handler = NULL;
57*10652SHyon.Kim@Sun.COM 	entrypoints->SetRNIDMgmtInfoHandler = NULL;
58*10652SHyon.Kim@Sun.COM 	entrypoints->GetRNIDMgmtInfoHandler = NULL;
59*10652SHyon.Kim@Sun.COM 	entrypoints->SendRNIDV2Handler = NULL;
60*10652SHyon.Kim@Sun.COM 	entrypoints->SendRPLHandler = NULL;
61*10652SHyon.Kim@Sun.COM 	entrypoints->SendRPSHandler = NULL;
62*10652SHyon.Kim@Sun.COM 	entrypoints->SendSRLHandler = NULL;
63*10652SHyon.Kim@Sun.COM 	entrypoints->SendLIRRHandler = NULL;
64*10652SHyon.Kim@Sun.COM 	entrypoints->SendRLSHandler = NULL;
65*10652SHyon.Kim@Sun.COM 	entrypoints->SendTESTHandler = NULL;
66*10652SHyon.Kim@Sun.COM 	entrypoints->SendECHOHandler = NULL;
67*10652SHyon.Kim@Sun.COM 	entrypoints->SendSMPPassThruHandler = Sun_sasSendSMPPassThru;
68*10652SHyon.Kim@Sun.COM 	entrypoints->GetBindingCapabilityHandler = NULL;
69*10652SHyon.Kim@Sun.COM 		/* Sun_sasGetBindingCapability; */
70*10652SHyon.Kim@Sun.COM 	entrypoints->GetBindingSupportHandler = NULL;
71*10652SHyon.Kim@Sun.COM 	entrypoints->SetBindingSupportHandler = NULL;
72*10652SHyon.Kim@Sun.COM 		/* Sun_sasSetBindingSupport; */
73*10652SHyon.Kim@Sun.COM 	entrypoints->GetTargetMappingHandler = Sun_sasGetTargetMapping;
74*10652SHyon.Kim@Sun.COM 	entrypoints->SetPersistentBindingHandler = Sun_sasSetPersistentBinding;
75*10652SHyon.Kim@Sun.COM 	entrypoints->GetPersistentBindingHandler = Sun_sasGetPersistentBinding;
76*10652SHyon.Kim@Sun.COM 	entrypoints->RemovePersistentBindingHandler = NULL;
77*10652SHyon.Kim@Sun.COM 		/* Sun_sasRemovePersistentBinding; */
78*10652SHyon.Kim@Sun.COM 	entrypoints->RemoveAllPersistentBindingsHandler = NULL;
79*10652SHyon.Kim@Sun.COM 		/* Sun_sasRemoveAllPersistentBindings; */
80*10652SHyon.Kim@Sun.COM 	entrypoints->GetLUNStatisticsHandler = Sun_sasGetLUNStatistics;
81*10652SHyon.Kim@Sun.COM 	entrypoints->ScsiInquiryHandler = Sun_sasScsiInquiry;
82*10652SHyon.Kim@Sun.COM 	entrypoints->ScsiReportLUNsHandler = Sun_sasScsiReportLUNs;
83*10652SHyon.Kim@Sun.COM 	entrypoints->ScsiReadCapacityHandler = Sun_sasScsiReadCapacity;
84*10652SHyon.Kim@Sun.COM 	entrypoints->RegisterForAdapterAddEventsHandler = NULL;
85*10652SHyon.Kim@Sun.COM 		/* Sun_sasRegisterForAdapterAddEvents; */
86*10652SHyon.Kim@Sun.COM 	entrypoints->RegisterForAdapterEventsHandler = NULL;
87*10652SHyon.Kim@Sun.COM 		/* Sun_sasRegisterForAdapterEvents; */
88*10652SHyon.Kim@Sun.COM 	entrypoints->RegisterForAdapterPortEventsHandler = NULL;
89*10652SHyon.Kim@Sun.COM 		/* Sun_sasRegisterForAdapterPortEvents; */
90*10652SHyon.Kim@Sun.COM 	entrypoints->RegisterForAdapterPortStatEventsHandler = NULL;
91*10652SHyon.Kim@Sun.COM 		/* Sun_sasRegisterForAdapterPortStatEvents; */
92*10652SHyon.Kim@Sun.COM 	entrypoints->RegisterForAdapterPhyStatEventsHandler = NULL;
93*10652SHyon.Kim@Sun.COM 		/* Sun_sasRegisterForAdapterPhyStatEvents; */
94*10652SHyon.Kim@Sun.COM 	entrypoints->RegisterForTargetEventsHandler = NULL;
95*10652SHyon.Kim@Sun.COM 		/* Sun_sasRegisterForTargetEvents; */
96*10652SHyon.Kim@Sun.COM 	entrypoints->RegisterForLinkEventsHandler = NULL;
97*10652SHyon.Kim@Sun.COM 		/* Sun_sasRegisterForLinkEvents; */
98*10652SHyon.Kim@Sun.COM 	entrypoints->RemoveCallbackHandler = NULL; /* Sun_sasRemoveCallback; */
99*10652SHyon.Kim@Sun.COM 	return (HBA_STATUS_OK);
100*10652SHyon.Kim@Sun.COM }
101