/*
* 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 _SYS_IB_EOIB_FIP_H
#define _SYS_IB_EOIB_FIP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/ethernet.h>
/*
* Sizes of various objects in FIP headers
*/
/*
* EoIB Pkeys and Qkeys
*/
/*
* EoIB Advertise and Solicit MCG GUIDs
*/
/*
* FIP_Protocol_Version
*/
#define FIP_PROTO_VERSION 0
typedef struct fip_proto_s {
} fip_proto_t;
/*
* Basic FIP Header: Opcodes and subcodes for EoIB
*/
/*
* Basic FIP Header: Flags relevant to EoIB
*/
/*
* FIP_Basic_Header
*/
typedef struct fip_basic_hdr_s {
/*
* FIP_Descriptor_Infiniband_Address
*/
typedef struct fip_desc_iba_s {
/*
* FIP Solicitation Control Message:
*
* FIP_Protocol_Version
* FIP_Basic_Header
* FIP_Descriptor_Infiniband_Address
*/
typedef struct fip_solicit_s {
/*
* FIP_Descriptor_EoIB_Gateway_Information
*/
typedef struct fip_desc_gwinfo_s {
/*
* FIP_Descriptor_Gateway_Identifier
*/
typedef struct fip_desc_gwid_s {
/*
* FIP_Descriptor_Keep_Alive_Parameters
*/
typedef struct fip_desc_keepalive_s {
/*
* FIP Advertise Control Message:
*
* FIP_Protocol_Version
* FIP_Basic_Header
* FIP_Descriptor_Infiniband_Address
* FIP_Descriptor_EoIB_Gateway_Information
* FIP_Descriptor_Gateway_Identifier
* FIP_Descriptor_Keep_Alive_Parameters
*/
typedef struct fip_advertise_s {
/*
* FIP_Descriptor_vNIC_Login
*/
typedef struct fip_desc_vnic_login_s {
/*
* Flags, masks and error codes for FIP_Descriptor_vNIC_Login
*/
#define FIP_VL_SYN_SUCCESS 0
/*
* FIP_Descriptor_Partition
*/
typedef struct fip_desc_partition_s {
/*
* FIP Login Control Message:
*
* FIP_Protocol_Version
* FIP_Basic_Header
* FIP_Descriptor_Infiniband_Address
* FIP_Descriptor_vNIC_Login
*/
typedef struct fip_login_s {
} fip_login_t;
/*
* FIP Login ACK Control Message:
*
* FIP_Protocol_Version
* FIP_Basic_Header
* FIP_Descriptor_Infiniband_Address
* FIP_Descriptor_vNIC_Login
* FIP_Descriptor_Partition
*/
typedef struct fip_login_ack_s {
/*
* FIP_Descriptor_vNIC_Identity
*/
typedef struct fip_desc_vnic_identity_s {
/*
* FIP Keep Alive Control Message:
*
* FIP_Protocol_Version
* FIP_Basic_Header
* FIP_Descriptor_vNIC_Identity
*/
typedef struct fip_keep_alive_s {
/*
* FIP_vHUB_Table_Entry
*/
typedef struct fip_vhub_table_entry_s {
/*
* FIP_Descriptor_vHUB_Update
*/
typedef struct fip_desc_vhub_update_s {
/*
* FIP_Descriptor_vHUB_Table
*/
typedef struct fip_desc_vhub_table_s {
/*
* FIP_vHUB_Table_Entry
* FIP_vHUB_Table_Entry
* .
* .
* .
* uint32_t Checksum
*/
/*
* FIP vHUB Table Message:
*
* FIP_Protocol_Version
* FIP_Basic_Header
* FIP_Descriptor_vHUB_Table
*/
typedef struct fip_vhub_table_s {
/*
* FIP vHUB Update Message:
*
* FIP_Protocol_Version
* FIP_Basic_Header
* FIP_Descriptor_vHUB_Update
*/
typedef struct fip_vhub_update_s {
/*
* Just a generic container to handle either type of VHUB
* messages
*/
typedef struct fip_vhub_pkt_s {
#ifdef __cplusplus
}
#endif
#endif /* _SYS_IB_EOIB_FIP_H */