xref: /titanic_50/usr/src/uts/common/sys/fc4/fcal_linkapp.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate  *
4*7c478bd9Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate  * with the License.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate  * and limitations under the License.
13*7c478bd9Sstevel@tonic-gate  *
14*7c478bd9Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate  *
20*7c478bd9Sstevel@tonic-gate  * CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate  */
22*7c478bd9Sstevel@tonic-gate /*
23*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1996-1998 by Sun Microsystems, Inc.
24*7c478bd9Sstevel@tonic-gate  * All rights reserved.
25*7c478bd9Sstevel@tonic-gate  */
26*7c478bd9Sstevel@tonic-gate 
27*7c478bd9Sstevel@tonic-gate #ifndef _SYS_FC4_FCAL_LINKAPP_H
28*7c478bd9Sstevel@tonic-gate #define	_SYS_FC4_FCAL_LINKAPP_H
29*7c478bd9Sstevel@tonic-gate 
30*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
31*7c478bd9Sstevel@tonic-gate 
32*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
33*7c478bd9Sstevel@tonic-gate extern "C" {
34*7c478bd9Sstevel@tonic-gate #endif
35*7c478bd9Sstevel@tonic-gate 
36*7c478bd9Sstevel@tonic-gate /*
37*7c478bd9Sstevel@tonic-gate  * linkapp.h
38*7c478bd9Sstevel@tonic-gate  *
39*7c478bd9Sstevel@tonic-gate  *	This file contains the definitions for structures and macros
40*7c478bd9Sstevel@tonic-gate  *	for fiber channel link application payloads and data.
41*7c478bd9Sstevel@tonic-gate  */
42*7c478bd9Sstevel@tonic-gate 
43*7c478bd9Sstevel@tonic-gate /*
44*7c478bd9Sstevel@tonic-gate  * Well Known Fiber Chaneel Addresses to reach the fabric for
45*7c478bd9Sstevel@tonic-gate  * various services.
46*7c478bd9Sstevel@tonic-gate  */
47*7c478bd9Sstevel@tonic-gate 
48*7c478bd9Sstevel@tonic-gate #define	MAX_FCODE_SIZE		0x2000
49*7c478bd9Sstevel@tonic-gate #define	FS_GENERAL_MULTICAST	0xfffff7
50*7c478bd9Sstevel@tonic-gate #define	FS_WELL_KNOWN_MULTICAST	0xfffff8
51*7c478bd9Sstevel@tonic-gate #define	FS_HUNT_GROUP		0xfffff9
52*7c478bd9Sstevel@tonic-gate #define	FS_MANAGEMENT_SERVER	0xfffffa
53*7c478bd9Sstevel@tonic-gate #define	FS_TIME_SERVER		0xfffffb
54*7c478bd9Sstevel@tonic-gate #define	FS_NAME_SERVER		0xfffffc
55*7c478bd9Sstevel@tonic-gate #define	FS_FABRIC_CONTROLLER	0xfffffd
56*7c478bd9Sstevel@tonic-gate #define	FS_FABRIC_F_PORT	0xfffffe
57*7c478bd9Sstevel@tonic-gate #define	FS_BROADCAST		0xffffff
58*7c478bd9Sstevel@tonic-gate 
59*7c478bd9Sstevel@tonic-gate /*
60*7c478bd9Sstevel@tonic-gate  * Link Application Opcodes.
61*7c478bd9Sstevel@tonic-gate  */
62*7c478bd9Sstevel@tonic-gate 
63*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RJT		0x01
64*7c478bd9Sstevel@tonic-gate #define	LA_ELS_ACC		0x02
65*7c478bd9Sstevel@tonic-gate #define	LA_ELS_PLOGI		0x03
66*7c478bd9Sstevel@tonic-gate #define	LA_ELS_FLOGI		0x04
67*7c478bd9Sstevel@tonic-gate #define	LA_ELS_LOGO		0x05
68*7c478bd9Sstevel@tonic-gate #define	LA_ELS_ABTX		0x06
69*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RCS		0x07
70*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RES		0x08
71*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RSS		0x09
72*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RSI		0x0a
73*7c478bd9Sstevel@tonic-gate #define	LA_ELS_ESTS		0x0b
74*7c478bd9Sstevel@tonic-gate #define	LA_ELS_ESTC		0x0c
75*7c478bd9Sstevel@tonic-gate #define	LA_ELS_ADVC		0x0d
76*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RTV		0x0e
77*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RLS		0x0f
78*7c478bd9Sstevel@tonic-gate #define	LA_ELS_ECHO		0x10
79*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RRQ		0x12
80*7c478bd9Sstevel@tonic-gate #define	LA_ELS_PRLI		0x20
81*7c478bd9Sstevel@tonic-gate #define	LA_ELS_PRLO		0x21
82*7c478bd9Sstevel@tonic-gate #define	LA_ELS_SCN		0x22
83*7c478bd9Sstevel@tonic-gate #define	LA_ELS_TPLS		0x23
84*7c478bd9Sstevel@tonic-gate #define	LA_ELS_GPRLO		0x24
85*7c478bd9Sstevel@tonic-gate #define	LA_ELS_GAID		0x30
86*7c478bd9Sstevel@tonic-gate #define	LA_ELS_FACT		0x31
87*7c478bd9Sstevel@tonic-gate #define	LA_ELS_FDACT		0x32
88*7c478bd9Sstevel@tonic-gate #define	LA_ELS_NACT		0x33
89*7c478bd9Sstevel@tonic-gate #define	LA_ELS_NDACT		0x34
90*7c478bd9Sstevel@tonic-gate #define	LA_ELS_QoSR		0x40
91*7c478bd9Sstevel@tonic-gate #define	LA_ELS_RVCS		0x41
92*7c478bd9Sstevel@tonic-gate #define	LA_ELS_PDISC		0x50
93*7c478bd9Sstevel@tonic-gate #define	LA_ELS_FDISC		0x51
94*7c478bd9Sstevel@tonic-gate #define	LA_ELS_ADISC		0x52
95*7c478bd9Sstevel@tonic-gate #define	LA_ELS_NEW_IDENT	0xf0	/* SMCC specific */
96*7c478bd9Sstevel@tonic-gate #define	LA_ELS_DISPLAY		0xf1	/* SMCC specific */
97*7c478bd9Sstevel@tonic-gate #define	LA_ELS_IDENT		0x20	/* SMCC specifi, SSA compat. */
98*7c478bd9Sstevel@tonic-gate 
99*7c478bd9Sstevel@tonic-gate /*
100*7c478bd9Sstevel@tonic-gate  * Events supported by soc+ HBA driver
101*7c478bd9Sstevel@tonic-gate  */
102*7c478bd9Sstevel@tonic-gate #define	FCAL_INSERT_EVENT	"SUNW,sf:DEVICE-INSERTION.1"
103*7c478bd9Sstevel@tonic-gate #define	FCAL_REMOVE_EVENT	"SUNW,sf:DEVICE-REMOVAL.1"
104*7c478bd9Sstevel@tonic-gate 
105*7c478bd9Sstevel@tonic-gate /* Basic Accept Payload. */
106*7c478bd9Sstevel@tonic-gate typedef struct la_ba_acc {
107*7c478bd9Sstevel@tonic-gate 	uchar_t		seq_id:8;
108*7c478bd9Sstevel@tonic-gate 	uchar_t		org_s_id[3];
109*7c478bd9Sstevel@tonic-gate 	ushort_t	ox_id;
110*7c478bd9Sstevel@tonic-gate 	ushort_t	rx_id;
111*7c478bd9Sstevel@tonic-gate } la_ba_acc_t;
112*7c478bd9Sstevel@tonic-gate 
113*7c478bd9Sstevel@tonic-gate /* Basic Reject. */
114*7c478bd9Sstevel@tonic-gate typedef struct la_ba_rjt {
115*7c478bd9Sstevel@tonic-gate 	uchar_t		reserved;
116*7c478bd9Sstevel@tonic-gate 	uchar_t		reason_code;
117*7c478bd9Sstevel@tonic-gate 	uchar_t		explanation;
118*7c478bd9Sstevel@tonic-gate 	uchar_t		vendor;
119*7c478bd9Sstevel@tonic-gate } la_ba_rjt_t;
120*7c478bd9Sstevel@tonic-gate 
121*7c478bd9Sstevel@tonic-gate /*
122*7c478bd9Sstevel@tonic-gate  * Basic Reject Reason Codes.
123*7c478bd9Sstevel@tonic-gate  */
124*7c478bd9Sstevel@tonic-gate #define	RJT_INVALID_CMD		0x01
125*7c478bd9Sstevel@tonic-gate #define	RJT_LOGICAL_ERR		0x03
126*7c478bd9Sstevel@tonic-gate #define	RJT_LOGICAL_BUSY	0x05
127*7c478bd9Sstevel@tonic-gate #define	RJT_PROTOCOL_ERR	0x07
128*7c478bd9Sstevel@tonic-gate #define	RJT_UNABLE		0x09
129*7c478bd9Sstevel@tonic-gate #define	RJT_UNSUPPORTED		0x0B
130*7c478bd9Sstevel@tonic-gate #define	RJT_VENDOR		0xFF
131*7c478bd9Sstevel@tonic-gate 
132*7c478bd9Sstevel@tonic-gate /*
133*7c478bd9Sstevel@tonic-gate  * Basic Reject Explanation Codes
134*7c478bd9Sstevel@tonic-gate  */
135*7c478bd9Sstevel@tonic-gate #define	RJT_NOEXPLANATION	0x00
136*7c478bd9Sstevel@tonic-gate #define	RJT_INVALID_OSID	0x01
137*7c478bd9Sstevel@tonic-gate #define	RJT_INVALID_OXID_RXID	0x03
138*7c478bd9Sstevel@tonic-gate #define	RJT_INVALID_SEQID	0x05
139*7c478bd9Sstevel@tonic-gate #define	RJT_ABORT_INACTIVE_SEQ	0x07
140*7c478bd9Sstevel@tonic-gate #define	RJT_UNABLE_TO_SUPPLY	0x09
141*7c478bd9Sstevel@tonic-gate 
142*7c478bd9Sstevel@tonic-gate /*
143*7c478bd9Sstevel@tonic-gate  * Service parameters.
144*7c478bd9Sstevel@tonic-gate  */
145*7c478bd9Sstevel@tonic-gate typedef struct common_service {
146*7c478bd9Sstevel@tonic-gate 	uint_t		fcph;
147*7c478bd9Sstevel@tonic-gate 	uint_t		btob_crdt;
148*7c478bd9Sstevel@tonic-gate 	uint_t		cmn_features;
149*7c478bd9Sstevel@tonic-gate 	uint_t		reserved;
150*7c478bd9Sstevel@tonic-gate } common_svc_t;
151*7c478bd9Sstevel@tonic-gate 
152*7c478bd9Sstevel@tonic-gate typedef struct service_param {
153*7c478bd9Sstevel@tonic-gate 	uchar_t		data[16];
154*7c478bd9Sstevel@tonic-gate } svc_param_t;
155*7c478bd9Sstevel@tonic-gate 
156*7c478bd9Sstevel@tonic-gate /* World Wide Name formats */
157*7c478bd9Sstevel@tonic-gate typedef union la_wwn {
158*7c478bd9Sstevel@tonic-gate 	uchar_t		raw_wwn[8];
159*7c478bd9Sstevel@tonic-gate 	struct {
160*7c478bd9Sstevel@tonic-gate 	    uint_t	naa_id : 4;
161*7c478bd9Sstevel@tonic-gate 	    uint_t	nport_id : 12;
162*7c478bd9Sstevel@tonic-gate 	    uint_t	wwn_hi : 16;
163*7c478bd9Sstevel@tonic-gate 	    uint_t	wwn_lo;
164*7c478bd9Sstevel@tonic-gate 	} w;
165*7c478bd9Sstevel@tonic-gate } la_wwn_t;
166*7c478bd9Sstevel@tonic-gate 
167*7c478bd9Sstevel@tonic-gate #define	FC_WWN_SIZE	8
168*7c478bd9Sstevel@tonic-gate 
169*7c478bd9Sstevel@tonic-gate /*
170*7c478bd9Sstevel@tonic-gate  * Values for naa_id
171*7c478bd9Sstevel@tonic-gate  */
172*7c478bd9Sstevel@tonic-gate #define	NAA_ID_IEEE		1
173*7c478bd9Sstevel@tonic-gate #define	NAA_ID_IEEE_EXTENDED	2
174*7c478bd9Sstevel@tonic-gate 
175*7c478bd9Sstevel@tonic-gate /* Login Payload. */
176*7c478bd9Sstevel@tonic-gate typedef struct la_els_logi {
177*7c478bd9Sstevel@tonic-gate 	uchar_t		ls_code;
178*7c478bd9Sstevel@tonic-gate 	uchar_t		mbz[3];
179*7c478bd9Sstevel@tonic-gate 	common_svc_t	common_service;
180*7c478bd9Sstevel@tonic-gate 
181*7c478bd9Sstevel@tonic-gate 	la_wwn_t	nport_ww_name;
182*7c478bd9Sstevel@tonic-gate 	la_wwn_t	node_ww_name;
183*7c478bd9Sstevel@tonic-gate 
184*7c478bd9Sstevel@tonic-gate 	svc_param_t	class_1;
185*7c478bd9Sstevel@tonic-gate 	svc_param_t	class_2;
186*7c478bd9Sstevel@tonic-gate 	svc_param_t	class_3;
187*7c478bd9Sstevel@tonic-gate 	uchar_t		reserved[16];
188*7c478bd9Sstevel@tonic-gate 	uchar_t		vendor_version_level[16];
189*7c478bd9Sstevel@tonic-gate } la_els_logi_t;
190*7c478bd9Sstevel@tonic-gate 
191*7c478bd9Sstevel@tonic-gate typedef	la_els_logi_t	la_els_logi_reply_t;
192*7c478bd9Sstevel@tonic-gate #define	la_logi_t	la_els_logi_t
193*7c478bd9Sstevel@tonic-gate 
194*7c478bd9Sstevel@tonic-gate #define	SP_F_PORT_LOGIN	0x10
195*7c478bd9Sstevel@tonic-gate 
196*7c478bd9Sstevel@tonic-gate /* Read Link Error Status */
197*7c478bd9Sstevel@tonic-gate typedef struct la_els_rls {
198*7c478bd9Sstevel@tonic-gate 	uchar_t		ls_code;
199*7c478bd9Sstevel@tonic-gate 	uchar_t		mbz[3];
200*7c478bd9Sstevel@tonic-gate 	uchar_t		reserved;
201*7c478bd9Sstevel@tonic-gate 	uchar_t		nport_id[3];
202*7c478bd9Sstevel@tonic-gate } la_els_rls_t;
203*7c478bd9Sstevel@tonic-gate 
204*7c478bd9Sstevel@tonic-gate /* Read Link Error Status Reply */
205*7c478bd9Sstevel@tonic-gate typedef struct la_els_rls_reply {
206*7c478bd9Sstevel@tonic-gate 	uchar_t		ls_code;
207*7c478bd9Sstevel@tonic-gate 	uchar_t		mbz[3];
208*7c478bd9Sstevel@tonic-gate 	uint_t	link_failure;
209*7c478bd9Sstevel@tonic-gate 	uint_t	loss_of_sync;
210*7c478bd9Sstevel@tonic-gate 	uint_t	loss_of_signal;
211*7c478bd9Sstevel@tonic-gate 	uint_t	primitive;
212*7c478bd9Sstevel@tonic-gate 	uint_t	invalid_transmission;
213*7c478bd9Sstevel@tonic-gate 	uint_t	invalid_crc;
214*7c478bd9Sstevel@tonic-gate } la_els_rls_reply_t;
215*7c478bd9Sstevel@tonic-gate 
216*7c478bd9Sstevel@tonic-gate /* Logout payload. */
217*7c478bd9Sstevel@tonic-gate typedef struct la_els_logo {
218*7c478bd9Sstevel@tonic-gate 	uchar_t		ls_code;
219*7c478bd9Sstevel@tonic-gate 	uchar_t		mbz[3];
220*7c478bd9Sstevel@tonic-gate 	uchar_t		reserved;
221*7c478bd9Sstevel@tonic-gate 	uchar_t		nport_id[3];
222*7c478bd9Sstevel@tonic-gate 	la_wwn_t	nport_ww_name;
223*7c478bd9Sstevel@tonic-gate } la_els_logo_t;
224*7c478bd9Sstevel@tonic-gate 
225*7c478bd9Sstevel@tonic-gate /* Logout reply payload. */
226*7c478bd9Sstevel@tonic-gate typedef la_els_logo_t la_els_logo_reply_t;
227*7c478bd9Sstevel@tonic-gate 
228*7c478bd9Sstevel@tonic-gate /* Reinstate recovery qualifier */
229*7c478bd9Sstevel@tonic-gate typedef	struct la_els_rrq {
230*7c478bd9Sstevel@tonic-gate 	uchar_t		ls_code;
231*7c478bd9Sstevel@tonic-gate 	uchar_t		mbz[3];
232*7c478bd9Sstevel@tonic-gate 	uchar_t		reserved;
233*7c478bd9Sstevel@tonic-gate 	uchar_t		source_id[3];
234*7c478bd9Sstevel@tonic-gate 	ushort_t	ox_id;
235*7c478bd9Sstevel@tonic-gate 	ushort_t	rx_id;
236*7c478bd9Sstevel@tonic-gate 	uchar_t		assoc_header[32];
237*7c478bd9Sstevel@tonic-gate } la_els_rrq_t;
238*7c478bd9Sstevel@tonic-gate 
239*7c478bd9Sstevel@tonic-gate /* Reinstate recovery qualifier reply */
240*7c478bd9Sstevel@tonic-gate typedef la_els_logo_t la_els_rrq_reply_t;
241*7c478bd9Sstevel@tonic-gate 
242*7c478bd9Sstevel@tonic-gate /* Process login */
243*7c478bd9Sstevel@tonic-gate typedef struct la_els_prli {
244*7c478bd9Sstevel@tonic-gate 	uchar_t		ls_code;
245*7c478bd9Sstevel@tonic-gate 	uchar_t		page_length;
246*7c478bd9Sstevel@tonic-gate 	ushort_t	payload_length;
247*7c478bd9Sstevel@tonic-gate 	uchar_t		service_params[16];
248*7c478bd9Sstevel@tonic-gate } la_els_prli_t;
249*7c478bd9Sstevel@tonic-gate 
250*7c478bd9Sstevel@tonic-gate /* Process login reply */
251*7c478bd9Sstevel@tonic-gate typedef	la_els_prli_t la_els_prli_reply_t;
252*7c478bd9Sstevel@tonic-gate 
253*7c478bd9Sstevel@tonic-gate /* Process logout */
254*7c478bd9Sstevel@tonic-gate typedef la_els_prli_t la_els_prlo_t;
255*7c478bd9Sstevel@tonic-gate 
256*7c478bd9Sstevel@tonic-gate /* process logout reply */
257*7c478bd9Sstevel@tonic-gate typedef	la_els_prli_t la_els_prlo_reply_t;
258*7c478bd9Sstevel@tonic-gate 
259*7c478bd9Sstevel@tonic-gate /* Port discovery */
260*7c478bd9Sstevel@tonic-gate typedef la_els_logi_t la_els_pdisc_t;
261*7c478bd9Sstevel@tonic-gate 
262*7c478bd9Sstevel@tonic-gate /* Port discovery reply */
263*7c478bd9Sstevel@tonic-gate typedef la_els_logi_reply_t la_els_pdisc_reply_t;
264*7c478bd9Sstevel@tonic-gate 
265*7c478bd9Sstevel@tonic-gate /* Address discovery */
266*7c478bd9Sstevel@tonic-gate typedef	struct la_els_adisc {
267*7c478bd9Sstevel@tonic-gate 	uchar_t	ls_code;
268*7c478bd9Sstevel@tonic-gate 	uchar_t	mbz[3];
269*7c478bd9Sstevel@tonic-gate 	uint_t	hard_address;
270*7c478bd9Sstevel@tonic-gate 	uchar_t	port_wwn[8];
271*7c478bd9Sstevel@tonic-gate 	uchar_t	node_wwn[8];
272*7c478bd9Sstevel@tonic-gate 	uint_t	nport_id;
273*7c478bd9Sstevel@tonic-gate } la_els_adisc_t;
274*7c478bd9Sstevel@tonic-gate 
275*7c478bd9Sstevel@tonic-gate /* Address discovery reply */
276*7c478bd9Sstevel@tonic-gate typedef	la_els_adisc_t la_els_adisc_reply_t;
277*7c478bd9Sstevel@tonic-gate 
278*7c478bd9Sstevel@tonic-gate /* Identify */
279*7c478bd9Sstevel@tonic-gate typedef	struct la_els_identify {
280*7c478bd9Sstevel@tonic-gate 	uint_t	ls_code;
281*7c478bd9Sstevel@tonic-gate 	uint_t	byte_count;
282*7c478bd9Sstevel@tonic-gate } la_els_identify_t;
283*7c478bd9Sstevel@tonic-gate 
284*7c478bd9Sstevel@tonic-gate /* Identify reply */
285*7c478bd9Sstevel@tonic-gate typedef	struct la_els_identify_reply {
286*7c478bd9Sstevel@tonic-gate 	uint_t	ls_code;
287*7c478bd9Sstevel@tonic-gate 	uchar_t	fcode[MAX_FCODE_SIZE];
288*7c478bd9Sstevel@tonic-gate } la_els_identify_reply;
289*7c478bd9Sstevel@tonic-gate 
290*7c478bd9Sstevel@tonic-gate /* Link Application Reject */
291*7c478bd9Sstevel@tonic-gate typedef struct la_els_rjt {
292*7c478bd9Sstevel@tonic-gate 	uchar_t	ls_code;
293*7c478bd9Sstevel@tonic-gate 	uchar_t	mbz[3];
294*7c478bd9Sstevel@tonic-gate 	uchar_t	reserved;
295*7c478bd9Sstevel@tonic-gate 	uchar_t	reason_code;
296*7c478bd9Sstevel@tonic-gate 	uchar_t	explanation;
297*7c478bd9Sstevel@tonic-gate 	uchar_t	vendor;
298*7c478bd9Sstevel@tonic-gate } la_els_rjt_t;
299*7c478bd9Sstevel@tonic-gate 
300*7c478bd9Sstevel@tonic-gate /*
301*7c478bd9Sstevel@tonic-gate  * LA_RJT Reason Codes.
302*7c478bd9Sstevel@tonic-gate  */
303*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID			0x01
304*7c478bd9Sstevel@tonic-gate #define	LA_RJT_LOGICAL_ERR		0x03
305*7c478bd9Sstevel@tonic-gate #define	LA_RJT_LOGICAL_BUSY		0x05
306*7c478bd9Sstevel@tonic-gate #define	LA_RJT_PROTOCOL_ERR		0x07
307*7c478bd9Sstevel@tonic-gate #define	LA_RJT_UNABLE_TO_PERFORM	0x09
308*7c478bd9Sstevel@tonic-gate #define	LA_RJT_NOT_SUPPORTED		0x0b
309*7c478bd9Sstevel@tonic-gate #define	LA_RJT_VENDOR			0xff
310*7c478bd9Sstevel@tonic-gate 
311*7c478bd9Sstevel@tonic-gate /*
312*7c478bd9Sstevel@tonic-gate  * LA_RJT explanations
313*7c478bd9Sstevel@tonic-gate  */
314*7c478bd9Sstevel@tonic-gate #define	LA_RJT_NOEXPLANATION	0x00
315*7c478bd9Sstevel@tonic-gate #define	LA_RJT_OPTIONS		0x01
316*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INITIATOR	0x03
317*7c478bd9Sstevel@tonic-gate #define	LA_RJT_RECIPIENT	0x05
318*7c478bd9Sstevel@tonic-gate #define	LA_RJT_DATA_FIELD_SIZE	0x07
319*7c478bd9Sstevel@tonic-gate #define	LA_RJT_CONCURRENT	0x09
320*7c478bd9Sstevel@tonic-gate #define	LA_RJT_CREDIT		0x0b
321*7c478bd9Sstevel@tonic-gate 
322*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID_PORT_WWNAME	0x0d
323*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID_NODE_WWNAME	0x0e
324*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID_COMMON_SVC	0x0f
325*7c478bd9Sstevel@tonic-gate 
326*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID_ASSOC_HEADER	0x11
327*7c478bd9Sstevel@tonic-gate #define	LA_RJT_ASSOC_HDR_REQD		0x13
328*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID_ORIG_SID		0x15
329*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID_FQXID		0x17
330*7c478bd9Sstevel@tonic-gate #define	LA_RJT_REQUEST_IN_PROGRESS	0x19
331*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INVALID_NPORT_ID		0x1f
332*7c478bd9Sstevel@tonic-gate 
333*7c478bd9Sstevel@tonic-gate #define	LA_RJT_ INVALID_SEQ_ID		0x21
334*7c478bd9Sstevel@tonic-gate #define	LA_RJT_ABT_INVALID_XID		0x23
335*7c478bd9Sstevel@tonic-gate #define	LA_RJT_ABT_INACTIVE_XID		0x25
336*7c478bd9Sstevel@tonic-gate #define	LA_RJT_RRQ_REQUIRED		0x27
337*7c478bd9Sstevel@tonic-gate #define	LA_RJT_INSUFFICENT		0x29
338*7c478bd9Sstevel@tonic-gate 
339*7c478bd9Sstevel@tonic-gate #define	LA_RJT_REQUESTED_DATA		0x2a
340*7c478bd9Sstevel@tonic-gate #define	LA_RJT_REQUEST_NOT_SUPPORTED	0x2c
341*7c478bd9Sstevel@tonic-gate 
342*7c478bd9Sstevel@tonic-gate #ifdef	__cplusplus
343*7c478bd9Sstevel@tonic-gate }
344*7c478bd9Sstevel@tonic-gate #endif
345*7c478bd9Sstevel@tonic-gate 
346*7c478bd9Sstevel@tonic-gate #endif	/* !_SYS_FC4_FCAL_LINKAPP_H */
347