Sun_fcGetFcpTargetMapping.cc revision 83bf661f7a0eb06268ce891fcad997e6a39830d8
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "Trace.h"
#include "Exceptions.h"
#include "sun_fc.h"
#include <string.h>
#include "Handle.h"
#include "HBA.h"
#include "HBAPort.h"
inline HBA_WWN
try {
} catch (...) { }
return (hba_wwn);
}
#ifdef __cplusplus
extern "C" {
#endif
/**
* @memo Retrieves the mapping between FCP targets and OS
* SCSI information
* @return HBA_STATUS_OK if the mapping structure contains valid
* mapping data.
* @param handle The HBA to fetch mappings for
* @param mapping The user-allocated mapping structure
*
* @doc This routine will call the V2 interface and convert
* the results to the old data structure. It will
* call the V2 interface for all ports on the HBA.
*/
int count;
HBA_UINT32 current = 0;
return (HBA_STATUS_ERROR_ARG);
}
/* get adapter attributes for number of ports */
if (status != HBA_STATUS_OK) {
return HBA_STATUS_ERROR;
}
sizeof (HBA_FCPTARGETMAPPINGV2)];
mapping->NumberOfEntries = 0;
return status;
}
/*
* need to copy from PHBA_FCPTARGETMAPPINGV2 to
* PHBA_FCPTARGETMAPPING
*/
}
}
delete(mappingV2);
return (status);
}
#ifdef __cplusplus
}
#endif