/*
* 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
*/
/*
*/
#ifndef _LIBFCOE_H
#define _LIBFCOE_H
#include <time.h>
#include <wchar.h>
#include <sys/ethernet.h>
#include <libnvpair.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* FCoE Port Type
*/
#define FCOE_PORTTYPE_INITIATOR 0
#define FCOE_SCF_ADD 0
#define FCOE_SUCCESS 0
typedef unsigned char FCOE_UINT8;
typedef char FCOE_INT8;
typedef unsigned short FCOE_UINT16;
typedef short FCOE_INT16;
typedef unsigned int FCOE_UINT32;
typedef int FCOE_INT32;
typedef unsigned int FCOE_STATUS;
#define FCOE_STATUS_OK 0
typedef struct fcoe_port_wwn {
typedef struct fcoe_port_attr {
/*
* FCoE port instance in smf repository
*/
typedef struct fcoe_smf_port_instance {
/*
* FCoE port instance list
*/
typedef struct fcoe_smf_port_list {
/*
* FCoE port property set
*/
typedef struct fcoe_port_prop {
/*
* macLinkName: mac name with maximum lenth 32
* portType: 0 (Initiator)/ 1(Target)
* pwwn: Port WWN
* nwwn: Nodw WWN
* promiscous: to enable promisc mode for mac interface
*/
);
const FCOE_UINT8 *macLinkName
);
/*
* Make sure to free the memory pointed by portlist
*/
);
/*
* Make sure to free the memory pointed by portlist
*/
);
/* Sets the priority property in the structure FCOE_PORT_PROP */
);
/* used to set multiple FCOE port properites */
const FCOE_UINT8 *macLinkName,
const FCOE_PORT_PROP *
);
#ifdef __cplusplus
}
#endif
#endif /* _LIBFCOE_H */