fcgs2.h revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_FIBRE_CHANNEL_IMPL_FCGS2_H
#define _SYS_FIBRE_CHANNEL_IMPL_FCGS2_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* A device handle describes the characterics of a device
* Node. Each device handle also contains information
* on the serveral different ports it is discovered on.
*
* Classification of Name Server Objects
*
* +-----------------------------------+---------------------------+
* | Device (node) Specific | Port Specific |
* +-----------------------------------+---------------------------+
* | Node Name (NN) | Port type (PT) |
* | Symbolic Node Name Length | Port Id (ID) |
* | Symbloic Node Name(SNN) | Symbolic Port Name length |
* | Initial Process associator(IPA) | Symbolic Port Name (SPN) |
* | | Class of Service (CS) |
* | | fc4 types (FT) |
* | | IP Address (IP) |
* +-----------------------------------+---------------------------+
*
* The above classification causes some inconvenience in not having
* the ability to directly copy all the nameserver objects into a
* contiguous piece of memory. But we'll live with it.
*/
/* FCS types */
#define FCSTYPE_KEYSERVICE 0xF7
#define FCSTYPE_ALIAS 0xF8
#define FCSTYPE_MGMTSERVICE 0xFA
#define FCSTYPE_TIMESERVICE 0xFB
#define FCSTYPE_DIRECTORY 0xFC
#define FCSTYEP_FABRIC 0xFD
/*
* FCS subtypes for Directory Service
*/
/*
* FCS subtypes for Management Service
*/
/*
* FCS subtypes for Time Service
*/
/*
* FCS subtypes for Alias Service
*/
/*
* FCS subtypes for Key Service
*/
/* FC-CT response codes */
#define FS_RJT_IU 0x8001
#define FS_ACC_IU 0x8002
/* FS_RJT Reason Codes */
/* Name Service Command Codes */
/* Name service reject explanation codes */
#define FC_NS_CLASSF 0x01
#define FC_NS_CLASS1 0x02
#define FC_NS_CLASS2 0x04
#define FC_NS_CLASS3 0x08
#define FC_NS_CLASS4 0x10
#define FC_NS_CLASS5 0x20
#define FC_NS_CLASS6 0x40
#define FC_NS_PORT_UNKNOWN 0x00
#define FC_NS_PORT_N 0x01
#define FC_NS_PORT_NL 0x02
#define FC_NS_PORT_F_NL 0x03
#define FC_NS_PORT_NX 0x7F
#define FC_NS_PORT_F 0x81
#define FC_NS_PORT_FL 0x82
#define FC_NS_PORT_E 0x84
#define NS_GAN_RESP_LEN (sizeof (ns_resp_gan_t))
/*
* SCR registration function codes
*/
#define FC_SCR_FABRIC_REGISTRATION 0x01
#define FC_SCR_NPORT_REGISTRATION 0x02
#define FC_SCR_FULL_REGISTRATION 0x03
#define FC_SCR_CLEAR_REGISTRATION 0xFF
/*
*
* 'x' means either P (port) or N (node)
*/
typedef struct rxn_id {
} ns_rxn_req_t;
/*
* Register Class of service request payload
*/
typedef struct rcos {
} ns_rcos_t;
/*
* Register FC-4 TYPEs request payload
*/
typedef struct rfc_type {
/*
* Register symbolic port name request payload
*/
typedef struct spn {
/*
* What follows here is the actual name
* which is allocated on the fly during
* packet allocation.
*/
} ns_spn_t;
/*
* Register port type request payload
*/
typedef struct rpt {
} ns_rpt_t;
/*
* Register IP address request payload
*/
typedef struct rip {
} ns_rip_t;
/*
* Register Initial Process Associator request payload
*/
typedef struct ipa {
} ns_ipa_t;
/*
* Register Symbolic Node Name request payload
*/
typedef struct snn {
/*
* What follows here is the actual name
* which is allocated on the fly during
* packet allocation.
*/
} ns_snn_t;
/*
* Remove all request payload
*/
typedef struct remall {
} ns_remall_t;
typedef fc_ct_header_t fc_reg_resp_t;
typedef fc_ct_header_t fc_query_resp_t;
typedef struct ns_req_gid_pt {
typedef struct ns_resp_gid_pt {
typedef struct ns_req_gan {
} ns_req_gan_t;
typedef struct ns_resp_gan {
typedef struct ns_req_gid_pn {
typedef struct ns_resp_gid_pn {
typedef struct ns_req_gpn_id {
typedef struct ns_resp_gpn_id {
typedef struct ns_req_gpt_id {
typedef struct ns_resp_gpt_id {
#if !defined(__lint)
#endif /* __lint */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_FIBRE_CHANNEL_IMPL_FCGS2_H */