#include "sun_fc.h"
#include "Trace.h"
HBA_STATUS HBA_RegisterLibrary(PHBA_ENTRYPOINTS entrypoints) {
Trace log("HBA_RegisterLibrary");
entrypoints->GetVersionHandler = Sun_fcGetVersion;
entrypoints->LoadLibraryHandler = Sun_fcLoadLibrary;
entrypoints->FreeLibraryHandler = Sun_fcFreeLibrary;
entrypoints->GetNumberOfAdaptersHandler = Sun_fcGetNumberOfAdapters;
entrypoints->GetAdapterNameHandler = Sun_fcGetAdapterName;
entrypoints->OpenAdapterHandler = Sun_fcOpenAdapter;
entrypoints->CloseAdapterHandler = Sun_fcCloseAdapter;
entrypoints->GetAdapterAttributesHandler = Sun_fcGetAdapterAttributes;
entrypoints->GetAdapterPortAttributesHandler =
Sun_fcGetAdapterPortAttributes;
entrypoints->GetPortStatisticsHandler = Sun_fcGetPortStatistics;
entrypoints->GetDiscoveredPortAttributesHandler =
Sun_fcGetDiscoveredPortAttributes;
entrypoints->GetPortAttributesByWWNHandler = Sun_fcGetPortAttributesByWWN;
entrypoints->SendCTPassThruHandler = Sun_fcSendCTPassThru;
entrypoints->RefreshInformationHandler = Sun_fcRefreshInformation;
entrypoints->ResetStatisticsHandler = Sun_fcResetStatistics;
entrypoints->GetFcpTargetMappingHandler = Sun_fcGetFcpTargetMapping;
entrypoints->GetFcpPersistentBindingHandler = Sun_fcGetFcpPersistentBinding;
entrypoints->GetEventBufferHandler = Sun_fcGetEventBuffer;
entrypoints->SetRNIDMgmtInfoHandler = Sun_fcSetRNIDMgmtInfo;
entrypoints->GetRNIDMgmtInfoHandler = Sun_fcGetRNIDMgmtInfo;
entrypoints->SendRNIDHandler = Sun_fcSendRNID;
entrypoints->ScsiInquiryHandler = Sun_fcSendScsiInquiry;
entrypoints->ReportLUNsHandler = Sun_fcSendReportLUNs;
entrypoints->ReadCapacityHandler = Sun_fcSendReadCapacity;
return (HBA_STATUS_OK);
}