2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A#include <sun_sas.h>
2N/A
2N/AHBA_STATUS
2N/ASMHBA_RegisterLibrary(PSMHBA_ENTRYPOINTS entrypoints)
2N/A{
2N/A entrypoints->GetVersionHandler = Sun_sasGetVersion;
2N/A entrypoints->LoadLibraryHandler = Sun_sasLoadLibrary;
2N/A entrypoints->FreeLibraryHandler = Sun_sasFreeLibrary;
2N/A entrypoints->GetNumberOfAdaptersHandler = Sun_sasGetNumberOfAdapters;
2N/A entrypoints->RefreshInformationHandler = Sun_sasRefreshInformation;
2N/A entrypoints->GetVendorLibraryAttributesHandler =
2N/A Sun_sasGetVendorLibraryAttributes;
2N/A entrypoints->GetAdapterNameHandler = Sun_sasGetAdapterName;
2N/A entrypoints->OpenAdapterHandler = Sun_sasOpenAdapter;
2N/A entrypoints->CloseAdapterHandler = Sun_sasCloseAdapter;
2N/A entrypoints->GetAdapterAttributesHandler = Sun_sasGetAdapterAttributes;
2N/A entrypoints->GetNumberOfPortsHandler = Sun_sasGetNumberOfPorts;
2N/A entrypoints->GetPortTypeHandler = Sun_sasGetPortType;
2N/A entrypoints->GetAdapterPortAttributesHandler =
2N/A Sun_sasGetAdapterPortAttributes;
2N/A entrypoints->GetDiscoveredPortAttributesHandler =
2N/A Sun_sasGetDiscoveredPortAttributes;
2N/A entrypoints->GetPortAttributesByWWNHandler =
2N/A Sun_sasGetPortAttributesByWWN;
2N/A entrypoints->GetFCPhyAttributesHandler = NULL;
2N/A entrypoints->GetSASPhyAttributesHandler = Sun_sasGetSASPhyAttributes;
2N/A entrypoints->GetProtocolStatisticsHandler =
2N/A Sun_sasGetProtocolStatistics;
2N/A entrypoints->GetPhyStatisticsHandler = Sun_sasGetPhyStatistics;
2N/A entrypoints->SendCTPassThruV2Handler = NULL;
2N/A entrypoints->SetRNIDMgmtInfoHandler = NULL;
2N/A entrypoints->GetRNIDMgmtInfoHandler = NULL;
2N/A entrypoints->SendRNIDV2Handler = NULL;
2N/A entrypoints->SendRPLHandler = NULL;
2N/A entrypoints->SendRPSHandler = NULL;
2N/A entrypoints->SendSRLHandler = NULL;
2N/A entrypoints->SendLIRRHandler = NULL;
2N/A entrypoints->SendRLSHandler = NULL;
2N/A entrypoints->SendTESTHandler = NULL;
2N/A entrypoints->SendECHOHandler = NULL;
2N/A entrypoints->SendSMPPassThruHandler = Sun_sasSendSMPPassThru;
2N/A entrypoints->GetBindingCapabilityHandler = NULL;
2N/A /* Sun_sasGetBindingCapability; */
2N/A entrypoints->GetBindingSupportHandler = NULL;
2N/A entrypoints->SetBindingSupportHandler = NULL;
2N/A /* Sun_sasSetBindingSupport; */
2N/A entrypoints->GetTargetMappingHandler = Sun_sasGetTargetMapping;
2N/A entrypoints->SetPersistentBindingHandler = Sun_sasSetPersistentBinding;
2N/A entrypoints->GetPersistentBindingHandler = Sun_sasGetPersistentBinding;
2N/A entrypoints->RemovePersistentBindingHandler = NULL;
2N/A /* Sun_sasRemovePersistentBinding; */
2N/A entrypoints->RemoveAllPersistentBindingsHandler = NULL;
2N/A /* Sun_sasRemoveAllPersistentBindings; */
2N/A entrypoints->GetLUNStatisticsHandler = Sun_sasGetLUNStatistics;
2N/A entrypoints->ScsiInquiryHandler = Sun_sasScsiInquiry;
2N/A entrypoints->ScsiReportLUNsHandler = Sun_sasScsiReportLUNs;
2N/A entrypoints->ScsiReadCapacityHandler = Sun_sasScsiReadCapacity;
2N/A entrypoints->RegisterForAdapterAddEventsHandler = NULL;
2N/A /* Sun_sasRegisterForAdapterAddEvents; */
2N/A entrypoints->RegisterForAdapterEventsHandler = NULL;
2N/A /* Sun_sasRegisterForAdapterEvents; */
2N/A entrypoints->RegisterForAdapterPortEventsHandler = NULL;
2N/A /* Sun_sasRegisterForAdapterPortEvents; */
2N/A entrypoints->RegisterForAdapterPortStatEventsHandler = NULL;
2N/A /* Sun_sasRegisterForAdapterPortStatEvents; */
2N/A entrypoints->RegisterForAdapterPhyStatEventsHandler = NULL;
2N/A /* Sun_sasRegisterForAdapterPhyStatEvents; */
2N/A entrypoints->RegisterForTargetEventsHandler = NULL;
2N/A /* Sun_sasRegisterForTargetEvents; */
2N/A entrypoints->RegisterForLinkEventsHandler = NULL;
2N/A /* Sun_sasRegisterForLinkEvents; */
2N/A entrypoints->RemoveCallbackHandler = NULL; /* Sun_sasRemoveCallback; */
2N/A return (HBA_STATUS_OK);
2N/A}