1*14b24e2bSVaishali Kulkarni /*
2*14b24e2bSVaishali Kulkarni * CDDL HEADER START
3*14b24e2bSVaishali Kulkarni *
4*14b24e2bSVaishali Kulkarni * The contents of this file are subject to the terms of the
5*14b24e2bSVaishali Kulkarni * Common Development and Distribution License, v.1,  (the "License").
6*14b24e2bSVaishali Kulkarni * You may not use this file except in compliance with the License.
7*14b24e2bSVaishali Kulkarni *
8*14b24e2bSVaishali Kulkarni * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*14b24e2bSVaishali Kulkarni * or http://opensource.org/licenses/CDDL-1.0.
10*14b24e2bSVaishali Kulkarni * See the License for the specific language governing permissions
11*14b24e2bSVaishali Kulkarni * and limitations under the License.
12*14b24e2bSVaishali Kulkarni *
13*14b24e2bSVaishali Kulkarni * When distributing Covered Code, include this CDDL HEADER in each
14*14b24e2bSVaishali Kulkarni * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*14b24e2bSVaishali Kulkarni * If applicable, add the following below this CDDL HEADER, with the
16*14b24e2bSVaishali Kulkarni * fields enclosed by brackets "[]" replaced with your own identifying
17*14b24e2bSVaishali Kulkarni * information: Portions Copyright [yyyy] [name of copyright owner]
18*14b24e2bSVaishali Kulkarni *
19*14b24e2bSVaishali Kulkarni * CDDL HEADER END
20*14b24e2bSVaishali Kulkarni */
21*14b24e2bSVaishali Kulkarni 
22*14b24e2bSVaishali Kulkarni /*
23*14b24e2bSVaishali Kulkarni * Copyright 2014-2017 Cavium, Inc.
24*14b24e2bSVaishali Kulkarni * The contents of this file are subject to the terms of the Common Development
25*14b24e2bSVaishali Kulkarni * and Distribution License, v.1,  (the "License").
26*14b24e2bSVaishali Kulkarni 
27*14b24e2bSVaishali Kulkarni * You may not use this file except in compliance with the License.
28*14b24e2bSVaishali Kulkarni 
29*14b24e2bSVaishali Kulkarni * You can obtain a copy of the License at available
30*14b24e2bSVaishali Kulkarni * at http://opensource.org/licenses/CDDL-1.0
31*14b24e2bSVaishali Kulkarni 
32*14b24e2bSVaishali Kulkarni * See the License for the specific language governing permissions and
33*14b24e2bSVaishali Kulkarni * limitations under the License.
34*14b24e2bSVaishali Kulkarni */
35*14b24e2bSVaishali Kulkarni 
36*14b24e2bSVaishali Kulkarni #ifndef __ECORE_HSI_ISCSI__
37*14b24e2bSVaishali Kulkarni #define __ECORE_HSI_ISCSI__
38*14b24e2bSVaishali Kulkarni /****************************************/
39*14b24e2bSVaishali Kulkarni /* Add include to common storage target */
40*14b24e2bSVaishali Kulkarni /****************************************/
41*14b24e2bSVaishali Kulkarni #include "storage_common.h"
42*14b24e2bSVaishali Kulkarni 
43*14b24e2bSVaishali Kulkarni /*************************************************************************/
44*14b24e2bSVaishali Kulkarni /* Add include to common iSCSI target for both eCore and protocol driver */
45*14b24e2bSVaishali Kulkarni /************************************************************************/
46*14b24e2bSVaishali Kulkarni #include "iscsi_common.h"
47*14b24e2bSVaishali Kulkarni 
48*14b24e2bSVaishali Kulkarni 
49*14b24e2bSVaishali Kulkarni /*
50*14b24e2bSVaishali Kulkarni  * The iscsi storm connection context of Ystorm
51*14b24e2bSVaishali Kulkarni  */
52*14b24e2bSVaishali Kulkarni struct ystorm_iscsi_conn_st_ctx
53*14b24e2bSVaishali Kulkarni {
54*14b24e2bSVaishali Kulkarni 	__le32 reserved[4];
55*14b24e2bSVaishali Kulkarni };
56*14b24e2bSVaishali Kulkarni 
57*14b24e2bSVaishali Kulkarni /*
58*14b24e2bSVaishali Kulkarni  * Combined iSCSI and TCP storm connection of Pstorm
59*14b24e2bSVaishali Kulkarni  */
60*14b24e2bSVaishali Kulkarni struct pstorm_iscsi_tcp_conn_st_ctx
61*14b24e2bSVaishali Kulkarni {
62*14b24e2bSVaishali Kulkarni 	__le32 tcp[32];
63*14b24e2bSVaishali Kulkarni 	__le32 iscsi[4];
64*14b24e2bSVaishali Kulkarni };
65*14b24e2bSVaishali Kulkarni 
66*14b24e2bSVaishali Kulkarni /*
67*14b24e2bSVaishali Kulkarni  * The combined tcp and iscsi storm context of Xstorm
68*14b24e2bSVaishali Kulkarni  */
69*14b24e2bSVaishali Kulkarni struct xstorm_iscsi_tcp_conn_st_ctx
70*14b24e2bSVaishali Kulkarni {
71*14b24e2bSVaishali Kulkarni 	__le32 reserved_iscsi[40];
72*14b24e2bSVaishali Kulkarni 	__le32 reserved_tcp[4];
73*14b24e2bSVaishali Kulkarni };
74*14b24e2bSVaishali Kulkarni 
75*14b24e2bSVaishali Kulkarni struct e4_xstorm_iscsi_conn_ag_ctx
76*14b24e2bSVaishali Kulkarni {
77*14b24e2bSVaishali Kulkarni 	u8 cdu_validation /* cdu_validation */;
78*14b24e2bSVaishali Kulkarni 	u8 state /* state */;
79*14b24e2bSVaishali Kulkarni 	u8 flags0;
80*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM0_MASK                0x1 /* exist_in_qm0 */
81*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM0_SHIFT               0
82*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM1_MASK                0x1 /* exist_in_qm1 */
83*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM1_SHIFT               1
84*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RESERVED1_MASK                   0x1 /* exist_in_qm2 */
85*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RESERVED1_SHIFT                  2
86*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM3_MASK                0x1 /* exist_in_qm3 */
87*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM3_SHIFT               3
88*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT4_MASK                        0x1 /* bit4 */
89*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT4_SHIFT                       4
90*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RESERVED2_MASK                   0x1 /* cf_array_active */
91*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RESERVED2_SHIFT                  5
92*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT6_MASK                        0x1 /* bit6 */
93*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT6_SHIFT                       6
94*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT7_MASK                        0x1 /* bit7 */
95*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT7_SHIFT                       7
96*14b24e2bSVaishali Kulkarni 	u8 flags1;
97*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT8_MASK                        0x1 /* bit8 */
98*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT8_SHIFT                       0
99*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT9_MASK                        0x1 /* bit9 */
100*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT9_SHIFT                       1
101*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT10_MASK                       0x1 /* bit10 */
102*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT10_SHIFT                      2
103*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT11_MASK                       0x1 /* bit11 */
104*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT11_SHIFT                      3
105*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT12_MASK                       0x1 /* bit12 */
106*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT12_SHIFT                      4
107*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT13_MASK                       0x1 /* bit13 */
108*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT13_SHIFT                      5
109*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT14_MASK                       0x1 /* bit14 */
110*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT14_SHIFT                      6
111*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TX_TRUNCATE_MASK                 0x1 /* bit15 */
112*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TX_TRUNCATE_SHIFT                7
113*14b24e2bSVaishali Kulkarni 	u8 flags2;
114*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF0_MASK                         0x3 /* timer0cf */
115*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF0_SHIFT                        0
116*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF1_MASK                         0x3 /* timer1cf */
117*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF1_SHIFT                        2
118*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF2_MASK                         0x3 /* timer2cf */
119*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF2_SHIFT                        4
120*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_MASK              0x3 /* timer_stop_all */
121*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_SHIFT             6
122*14b24e2bSVaishali Kulkarni 	u8 flags3;
123*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF4_MASK                         0x3 /* cf4 */
124*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF4_SHIFT                        0
125*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF5_MASK                         0x3 /* cf5 */
126*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF5_SHIFT                        2
127*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF6_MASK                         0x3 /* cf6 */
128*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF6_SHIFT                        4
129*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF7_MASK                         0x3 /* cf7 */
130*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF7_SHIFT                        6
131*14b24e2bSVaishali Kulkarni 	u8 flags4;
132*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF8_MASK                         0x3 /* cf8 */
133*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF8_SHIFT                        0
134*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF9_MASK                         0x3 /* cf9 */
135*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF9_SHIFT                        2
136*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF10_MASK                        0x3 /* cf10 */
137*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF10_SHIFT                       4
138*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF11_MASK                        0x3 /* cf11 */
139*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF11_SHIFT                       6
140*14b24e2bSVaishali Kulkarni 	u8 flags5;
141*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF12_MASK                        0x3 /* cf12 */
142*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF12_SHIFT                       0
143*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF13_MASK                        0x3 /* cf13 */
144*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF13_SHIFT                       2
145*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF14_MASK                        0x3 /* cf14 */
146*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF14_SHIFT                       4
147*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UPDATE_STATE_TO_BASE_CF_MASK     0x3 /* cf15 */
148*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UPDATE_STATE_TO_BASE_CF_SHIFT    6
149*14b24e2bSVaishali Kulkarni 	u8 flags6;
150*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF16_MASK                        0x3 /* cf16 */
151*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF16_SHIFT                       0
152*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF17_MASK                        0x3 /* cf_array_cf */
153*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF17_SHIFT                       2
154*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF18_MASK                        0x3 /* cf18 */
155*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF18_SHIFT                       4
156*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_DQ_FLUSH_MASK                    0x3 /* cf19 */
157*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_DQ_FLUSH_SHIFT                   6
158*14b24e2bSVaishali Kulkarni 	u8 flags7;
159*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_MST_XCM_Q0_FLUSH_CF_MASK         0x3 /* cf20 */
160*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_MST_XCM_Q0_FLUSH_CF_SHIFT        0
161*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UST_XCM_Q1_FLUSH_CF_MASK         0x3 /* cf21 */
162*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UST_XCM_Q1_FLUSH_CF_SHIFT        2
163*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_SLOW_PATH_MASK                   0x3 /* cf22 */
164*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_SLOW_PATH_SHIFT                  4
165*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF0EN_MASK                       0x1 /* cf0en */
166*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF0EN_SHIFT                      6
167*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF1EN_MASK                       0x1 /* cf1en */
168*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF1EN_SHIFT                      7
169*14b24e2bSVaishali Kulkarni 	u8 flags8;
170*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF2EN_MASK                       0x1 /* cf2en */
171*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF2EN_SHIFT                      0
172*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_EN_MASK           0x1 /* cf3en */
173*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_EN_SHIFT          1
174*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF4EN_MASK                       0x1 /* cf4en */
175*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF4EN_SHIFT                      2
176*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF5EN_MASK                       0x1 /* cf5en */
177*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF5EN_SHIFT                      3
178*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF6EN_MASK                       0x1 /* cf6en */
179*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF6EN_SHIFT                      4
180*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF7EN_MASK                       0x1 /* cf7en */
181*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF7EN_SHIFT                      5
182*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF8EN_MASK                       0x1 /* cf8en */
183*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF8EN_SHIFT                      6
184*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF9EN_MASK                       0x1 /* cf9en */
185*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF9EN_SHIFT                      7
186*14b24e2bSVaishali Kulkarni 	u8 flags9;
187*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF10EN_MASK                      0x1 /* cf10en */
188*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF10EN_SHIFT                     0
189*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF11EN_MASK                      0x1 /* cf11en */
190*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF11EN_SHIFT                     1
191*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF12EN_MASK                      0x1 /* cf12en */
192*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF12EN_SHIFT                     2
193*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF13EN_MASK                      0x1 /* cf13en */
194*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF13EN_SHIFT                     3
195*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF14EN_MASK                      0x1 /* cf14en */
196*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF14EN_SHIFT                     4
197*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UPDATE_STATE_TO_BASE_CF_EN_MASK  0x1 /* cf15en */
198*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UPDATE_STATE_TO_BASE_CF_EN_SHIFT 5
199*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF16EN_MASK                      0x1 /* cf16en */
200*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF16EN_SHIFT                     6
201*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF17EN_MASK                      0x1 /* cf_array_cf_en */
202*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF17EN_SHIFT                     7
203*14b24e2bSVaishali Kulkarni 	u8 flags10;
204*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF18EN_MASK                      0x1 /* cf18en */
205*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_CF18EN_SHIFT                     0
206*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_DQ_FLUSH_EN_MASK                 0x1 /* cf19en */
207*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_DQ_FLUSH_EN_SHIFT                1
208*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_MST_XCM_Q0_FLUSH_CF_EN_MASK      0x1 /* cf20en */
209*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_MST_XCM_Q0_FLUSH_CF_EN_SHIFT     2
210*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UST_XCM_Q1_FLUSH_CF_EN_MASK      0x1 /* cf21en */
211*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_UST_XCM_Q1_FLUSH_CF_EN_SHIFT     3
212*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_SLOW_PATH_EN_MASK                0x1 /* cf22en */
213*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_SLOW_PATH_EN_SHIFT               4
214*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_PROC_ONLY_CLEANUP_EN_MASK        0x1 /* cf23en */
215*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_PROC_ONLY_CLEANUP_EN_SHIFT       5
216*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE0EN_MASK                     0x1 /* rule0en */
217*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE0EN_SHIFT                    6
218*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_MORE_TO_SEND_DEC_RULE_EN_MASK    0x1 /* rule1en */
219*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_MORE_TO_SEND_DEC_RULE_EN_SHIFT   7
220*14b24e2bSVaishali Kulkarni 	u8 flags11;
221*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TX_BLOCKED_EN_MASK               0x1 /* rule2en */
222*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_TX_BLOCKED_EN_SHIFT              0
223*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE3EN_MASK                     0x1 /* rule3en */
224*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE3EN_SHIFT                    1
225*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RESERVED3_MASK                   0x1 /* rule4en */
226*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RESERVED3_SHIFT                  2
227*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE5EN_MASK                     0x1 /* rule5en */
228*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE5EN_SHIFT                    3
229*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE6EN_MASK                     0x1 /* rule6en */
230*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE6EN_SHIFT                    4
231*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE7EN_MASK                     0x1 /* rule7en */
232*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE7EN_SHIFT                    5
233*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED1_MASK                0x1 /* rule8en */
234*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED1_SHIFT               6
235*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE9EN_MASK                     0x1 /* rule9en */
236*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE9EN_SHIFT                    7
237*14b24e2bSVaishali Kulkarni 	u8 flags12;
238*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_SQ_DEC_RULE_EN_MASK              0x1 /* rule10en */
239*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_SQ_DEC_RULE_EN_SHIFT             0
240*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE11EN_MASK                    0x1 /* rule11en */
241*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE11EN_SHIFT                   1
242*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED2_MASK                0x1 /* rule12en */
243*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED2_SHIFT               2
244*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED3_MASK                0x1 /* rule13en */
245*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED3_SHIFT               3
246*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE14EN_MASK                    0x1 /* rule14en */
247*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE14EN_SHIFT                   4
248*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE15EN_MASK                    0x1 /* rule15en */
249*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE15EN_SHIFT                   5
250*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE16EN_MASK                    0x1 /* rule16en */
251*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE16EN_SHIFT                   6
252*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE17EN_MASK                    0x1 /* rule17en */
253*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_RULE17EN_SHIFT                   7
254*14b24e2bSVaishali Kulkarni 	u8 flags13;
255*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_R2TQ_DEC_RULE_EN_MASK            0x1 /* rule18en */
256*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_R2TQ_DEC_RULE_EN_SHIFT           0
257*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_HQ_DEC_RULE_EN_MASK              0x1 /* rule19en */
258*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_HQ_DEC_RULE_EN_SHIFT             1
259*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED4_MASK                0x1 /* rule20en */
260*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED4_SHIFT               2
261*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED5_MASK                0x1 /* rule21en */
262*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED5_SHIFT               3
263*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED6_MASK                0x1 /* rule22en */
264*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED6_SHIFT               4
265*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED7_MASK                0x1 /* rule23en */
266*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED7_SHIFT               5
267*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED8_MASK                0x1 /* rule24en */
268*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED8_SHIFT               6
269*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED9_MASK                0x1 /* rule25en */
270*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_A0_RESERVED9_SHIFT               7
271*14b24e2bSVaishali Kulkarni 	u8 flags14;
272*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT16_MASK                       0x1 /* bit16 */
273*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT16_SHIFT                      0
274*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT17_MASK                       0x1 /* bit17 */
275*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT17_SHIFT                      1
276*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT18_MASK                       0x1 /* bit18 */
277*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT18_SHIFT                      2
278*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT19_MASK                       0x1 /* bit19 */
279*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT19_SHIFT                      3
280*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT20_MASK                       0x1 /* bit20 */
281*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_BIT20_SHIFT                      4
282*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_DUMMY_READ_DONE_MASK             0x1 /* bit21 */
283*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_DUMMY_READ_DONE_SHIFT            5
284*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_PROC_ONLY_CLEANUP_MASK           0x3 /* cf23 */
285*14b24e2bSVaishali Kulkarni #define E4_XSTORM_ISCSI_CONN_AG_CTX_PROC_ONLY_CLEANUP_SHIFT          6
286*14b24e2bSVaishali Kulkarni 	u8 byte2 /* byte2 */;
287*14b24e2bSVaishali Kulkarni 	__le16 physical_q0 /* physical_q0 */;
288*14b24e2bSVaishali Kulkarni 	__le16 physical_q1 /* physical_q1 */;
289*14b24e2bSVaishali Kulkarni 	__le16 dummy_dorq_var /* physical_q2 */;
290*14b24e2bSVaishali Kulkarni 	__le16 sq_cons /* word3 */;
291*14b24e2bSVaishali Kulkarni 	__le16 sq_prod /* word4 */;
292*14b24e2bSVaishali Kulkarni 	__le16 word5 /* word5 */;
293*14b24e2bSVaishali Kulkarni 	__le16 slow_io_total_data_tx_update /* conn_dpi */;
294*14b24e2bSVaishali Kulkarni 	u8 byte3 /* byte3 */;
295*14b24e2bSVaishali Kulkarni 	u8 byte4 /* byte4 */;
296*14b24e2bSVaishali Kulkarni 	u8 byte5 /* byte5 */;
297*14b24e2bSVaishali Kulkarni 	u8 byte6 /* byte6 */;
298*14b24e2bSVaishali Kulkarni 	__le32 reg0 /* reg0 */;
299*14b24e2bSVaishali Kulkarni 	__le32 reg1 /* reg1 */;
300*14b24e2bSVaishali Kulkarni 	__le32 reg2 /* reg2 */;
301*14b24e2bSVaishali Kulkarni 	__le32 more_to_send_seq /* reg3 */;
302*14b24e2bSVaishali Kulkarni 	__le32 reg4 /* reg4 */;
303*14b24e2bSVaishali Kulkarni 	__le32 reg5 /* cf_array0 */;
304*14b24e2bSVaishali Kulkarni 	__le32 hq_scan_next_relevant_ack /* cf_array1 */;
305*14b24e2bSVaishali Kulkarni 	__le16 r2tq_prod /* word7 */;
306*14b24e2bSVaishali Kulkarni 	__le16 r2tq_cons /* word8 */;
307*14b24e2bSVaishali Kulkarni 	__le16 hq_prod /* word9 */;
308*14b24e2bSVaishali Kulkarni 	__le16 hq_cons /* word10 */;
309*14b24e2bSVaishali Kulkarni 	__le32 remain_seq /* reg7 */;
310*14b24e2bSVaishali Kulkarni 	__le32 bytes_to_next_pdu /* reg8 */;
311*14b24e2bSVaishali Kulkarni 	__le32 hq_tcp_seq /* reg9 */;
312*14b24e2bSVaishali Kulkarni 	u8 byte7 /* byte7 */;
313*14b24e2bSVaishali Kulkarni 	u8 byte8 /* byte8 */;
314*14b24e2bSVaishali Kulkarni 	u8 byte9 /* byte9 */;
315*14b24e2bSVaishali Kulkarni 	u8 byte10 /* byte10 */;
316*14b24e2bSVaishali Kulkarni 	u8 byte11 /* byte11 */;
317*14b24e2bSVaishali Kulkarni 	u8 byte12 /* byte12 */;
318*14b24e2bSVaishali Kulkarni 	u8 byte13 /* byte13 */;
319*14b24e2bSVaishali Kulkarni 	u8 byte14 /* byte14 */;
320*14b24e2bSVaishali Kulkarni 	u8 byte15 /* byte15 */;
321*14b24e2bSVaishali Kulkarni 	u8 e5_reserved /* e5_reserved */;
322*14b24e2bSVaishali Kulkarni 	__le16 word11 /* word11 */;
323*14b24e2bSVaishali Kulkarni 	__le32 reg10 /* reg10 */;
324*14b24e2bSVaishali Kulkarni 	__le32 reg11 /* reg11 */;
325*14b24e2bSVaishali Kulkarni 	__le32 exp_stat_sn /* reg12 */;
326*14b24e2bSVaishali Kulkarni 	__le32 ongoing_fast_rxmit_seq /* reg13 */;
327*14b24e2bSVaishali Kulkarni 	__le32 reg14 /* reg14 */;
328*14b24e2bSVaishali Kulkarni 	__le32 reg15 /* reg15 */;
329*14b24e2bSVaishali Kulkarni 	__le32 reg16 /* reg16 */;
330*14b24e2bSVaishali Kulkarni 	__le32 reg17 /* reg17 */;
331*14b24e2bSVaishali Kulkarni };
332*14b24e2bSVaishali Kulkarni 
333*14b24e2bSVaishali Kulkarni struct e4_tstorm_iscsi_conn_ag_ctx
334*14b24e2bSVaishali Kulkarni {
335*14b24e2bSVaishali Kulkarni 	u8 reserved0 /* cdu_validation */;
336*14b24e2bSVaishali Kulkarni 	u8 state /* state */;
337*14b24e2bSVaishali Kulkarni 	u8 flags0;
338*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM0_MASK       0x1 /* exist_in_qm0 */
339*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM0_SHIFT      0
340*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT1_MASK               0x1 /* exist_in_qm1 */
341*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT1_SHIFT              1
342*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT2_MASK               0x1 /* bit2 */
343*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT2_SHIFT              2
344*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT3_MASK               0x1 /* bit3 */
345*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT3_SHIFT              3
346*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT4_MASK               0x1 /* bit4 */
347*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT4_SHIFT              4
348*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT5_MASK               0x1 /* bit5 */
349*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_BIT5_SHIFT              5
350*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF0_MASK                0x3 /* timer0cf */
351*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF0_SHIFT               6
352*14b24e2bSVaishali Kulkarni 	u8 flags1;
353*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_P2T_FLUSH_CF_MASK       0x3 /* timer1cf */
354*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_P2T_FLUSH_CF_SHIFT      0
355*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_M2T_FLUSH_CF_MASK       0x3 /* timer2cf */
356*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_M2T_FLUSH_CF_SHIFT      2
357*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_MASK     0x3 /* timer_stop_all */
358*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_SHIFT    4
359*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF4_MASK                0x3 /* cf4 */
360*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF4_SHIFT               6
361*14b24e2bSVaishali Kulkarni 	u8 flags2;
362*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF5_MASK                0x3 /* cf5 */
363*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF5_SHIFT               0
364*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF6_MASK                0x3 /* cf6 */
365*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF6_SHIFT               2
366*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF7_MASK                0x3 /* cf7 */
367*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF7_SHIFT               4
368*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF8_MASK                0x3 /* cf8 */
369*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF8_SHIFT               6
370*14b24e2bSVaishali Kulkarni 	u8 flags3;
371*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_FLUSH_Q0_MASK           0x3 /* cf9 */
372*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_FLUSH_Q0_SHIFT          0
373*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF10_MASK               0x3 /* cf10 */
374*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF10_SHIFT              2
375*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF0EN_MASK              0x1 /* cf0en */
376*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF0EN_SHIFT             4
377*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_P2T_FLUSH_CF_EN_MASK    0x1 /* cf1en */
378*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_P2T_FLUSH_CF_EN_SHIFT   5
379*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_M2T_FLUSH_CF_EN_MASK    0x1 /* cf2en */
380*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_M2T_FLUSH_CF_EN_SHIFT   6
381*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_EN_MASK  0x1 /* cf3en */
382*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_TIMER_STOP_ALL_EN_SHIFT 7
383*14b24e2bSVaishali Kulkarni 	u8 flags4;
384*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF4EN_MASK              0x1 /* cf4en */
385*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF4EN_SHIFT             0
386*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF5EN_MASK              0x1 /* cf5en */
387*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF5EN_SHIFT             1
388*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF6EN_MASK              0x1 /* cf6en */
389*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF6EN_SHIFT             2
390*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF7EN_MASK              0x1 /* cf7en */
391*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF7EN_SHIFT             3
392*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF8EN_MASK              0x1 /* cf8en */
393*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF8EN_SHIFT             4
394*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_FLUSH_Q0_EN_MASK        0x1 /* cf9en */
395*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_FLUSH_Q0_EN_SHIFT       5
396*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF10EN_MASK             0x1 /* cf10en */
397*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_CF10EN_SHIFT            6
398*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE0EN_MASK            0x1 /* rule0en */
399*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE0EN_SHIFT           7
400*14b24e2bSVaishali Kulkarni 	u8 flags5;
401*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE1EN_MASK            0x1 /* rule1en */
402*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE1EN_SHIFT           0
403*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE2EN_MASK            0x1 /* rule2en */
404*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE2EN_SHIFT           1
405*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE3EN_MASK            0x1 /* rule3en */
406*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE3EN_SHIFT           2
407*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE4EN_MASK            0x1 /* rule4en */
408*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE4EN_SHIFT           3
409*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE5EN_MASK            0x1 /* rule5en */
410*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE5EN_SHIFT           4
411*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE6EN_MASK            0x1 /* rule6en */
412*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE6EN_SHIFT           5
413*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE7EN_MASK            0x1 /* rule7en */
414*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE7EN_SHIFT           6
415*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE8EN_MASK            0x1 /* rule8en */
416*14b24e2bSVaishali Kulkarni #define E4_TSTORM_ISCSI_CONN_AG_CTX_RULE8EN_SHIFT           7
417*14b24e2bSVaishali Kulkarni 	__le32 reg0 /* reg0 */;
418*14b24e2bSVaishali Kulkarni 	__le32 reg1 /* reg1 */;
419*14b24e2bSVaishali Kulkarni 	__le32 reg2 /* reg2 */;
420*14b24e2bSVaishali Kulkarni 	__le32 reg3 /* reg3 */;
421*14b24e2bSVaishali Kulkarni 	__le32 reg4 /* reg4 */;
422*14b24e2bSVaishali Kulkarni 	__le32 reg5 /* reg5 */;
423*14b24e2bSVaishali Kulkarni 	__le32 reg6 /* reg6 */;
424*14b24e2bSVaishali Kulkarni 	__le32 reg7 /* reg7 */;
425*14b24e2bSVaishali Kulkarni 	__le32 reg8 /* reg8 */;
426*14b24e2bSVaishali Kulkarni 	u8 cid_offload_cnt /* byte2 */;
427*14b24e2bSVaishali Kulkarni 	u8 byte3 /* byte3 */;
428*14b24e2bSVaishali Kulkarni 	__le16 word0 /* word0 */;
429*14b24e2bSVaishali Kulkarni };
430*14b24e2bSVaishali Kulkarni 
431*14b24e2bSVaishali Kulkarni struct e4_ustorm_iscsi_conn_ag_ctx
432*14b24e2bSVaishali Kulkarni {
433*14b24e2bSVaishali Kulkarni 	u8 byte0 /* cdu_validation */;
434*14b24e2bSVaishali Kulkarni 	u8 byte1 /* state */;
435*14b24e2bSVaishali Kulkarni 	u8 flags0;
436*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_BIT0_MASK     0x1 /* exist_in_qm0 */
437*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_BIT0_SHIFT    0
438*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_BIT1_MASK     0x1 /* exist_in_qm1 */
439*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_BIT1_SHIFT    1
440*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF0_MASK      0x3 /* timer0cf */
441*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF0_SHIFT     2
442*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF1_MASK      0x3 /* timer1cf */
443*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF1_SHIFT     4
444*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF2_MASK      0x3 /* timer2cf */
445*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF2_SHIFT     6
446*14b24e2bSVaishali Kulkarni 	u8 flags1;
447*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF3_MASK      0x3 /* timer_stop_all */
448*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF3_SHIFT     0
449*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF4_MASK      0x3 /* cf4 */
450*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF4_SHIFT     2
451*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF5_MASK      0x3 /* cf5 */
452*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF5_SHIFT     4
453*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF6_MASK      0x3 /* cf6 */
454*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF6_SHIFT     6
455*14b24e2bSVaishali Kulkarni 	u8 flags2;
456*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF0EN_MASK    0x1 /* cf0en */
457*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF0EN_SHIFT   0
458*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF1EN_MASK    0x1 /* cf1en */
459*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF1EN_SHIFT   1
460*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF2EN_MASK    0x1 /* cf2en */
461*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF2EN_SHIFT   2
462*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF3EN_MASK    0x1 /* cf3en */
463*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF3EN_SHIFT   3
464*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF4EN_MASK    0x1 /* cf4en */
465*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF4EN_SHIFT   4
466*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF5EN_MASK    0x1 /* cf5en */
467*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF5EN_SHIFT   5
468*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF6EN_MASK    0x1 /* cf6en */
469*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_CF6EN_SHIFT   6
470*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE0EN_MASK  0x1 /* rule0en */
471*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE0EN_SHIFT 7
472*14b24e2bSVaishali Kulkarni 	u8 flags3;
473*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE1EN_MASK  0x1 /* rule1en */
474*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE1EN_SHIFT 0
475*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE2EN_MASK  0x1 /* rule2en */
476*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE2EN_SHIFT 1
477*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE3EN_MASK  0x1 /* rule3en */
478*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE3EN_SHIFT 2
479*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE4EN_MASK  0x1 /* rule4en */
480*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE4EN_SHIFT 3
481*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE5EN_MASK  0x1 /* rule5en */
482*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE5EN_SHIFT 4
483*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE6EN_MASK  0x1 /* rule6en */
484*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE6EN_SHIFT 5
485*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE7EN_MASK  0x1 /* rule7en */
486*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE7EN_SHIFT 6
487*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE8EN_MASK  0x1 /* rule8en */
488*14b24e2bSVaishali Kulkarni #define E4_USTORM_ISCSI_CONN_AG_CTX_RULE8EN_SHIFT 7
489*14b24e2bSVaishali Kulkarni 	u8 byte2 /* byte2 */;
490*14b24e2bSVaishali Kulkarni 	u8 byte3 /* byte3 */;
491*14b24e2bSVaishali Kulkarni 	__le16 word0 /* conn_dpi */;
492*14b24e2bSVaishali Kulkarni 	__le16 word1 /* word1 */;
493*14b24e2bSVaishali Kulkarni 	__le32 reg0 /* reg0 */;
494*14b24e2bSVaishali Kulkarni 	__le32 reg1 /* reg1 */;
495*14b24e2bSVaishali Kulkarni 	__le32 reg2 /* reg2 */;
496*14b24e2bSVaishali Kulkarni 	__le32 reg3 /* reg3 */;
497*14b24e2bSVaishali Kulkarni 	__le16 word2 /* word2 */;
498*14b24e2bSVaishali Kulkarni 	__le16 word3 /* word3 */;
499*14b24e2bSVaishali Kulkarni };
500*14b24e2bSVaishali Kulkarni 
501*14b24e2bSVaishali Kulkarni /*
502*14b24e2bSVaishali Kulkarni  * The iscsi storm connection context of Tstorm
503*14b24e2bSVaishali Kulkarni  */
504*14b24e2bSVaishali Kulkarni struct tstorm_iscsi_conn_st_ctx
505*14b24e2bSVaishali Kulkarni {
506*14b24e2bSVaishali Kulkarni 	__le32 reserved[40];
507*14b24e2bSVaishali Kulkarni };
508*14b24e2bSVaishali Kulkarni 
509*14b24e2bSVaishali Kulkarni struct e4_mstorm_iscsi_conn_ag_ctx
510*14b24e2bSVaishali Kulkarni {
511*14b24e2bSVaishali Kulkarni 	u8 reserved /* cdu_validation */;
512*14b24e2bSVaishali Kulkarni 	u8 state /* state */;
513*14b24e2bSVaishali Kulkarni 	u8 flags0;
514*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_BIT0_MASK     0x1 /* exist_in_qm0 */
515*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_BIT0_SHIFT    0
516*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_BIT1_MASK     0x1 /* exist_in_qm1 */
517*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_BIT1_SHIFT    1
518*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF0_MASK      0x3 /* cf0 */
519*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF0_SHIFT     2
520*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF1_MASK      0x3 /* cf1 */
521*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF1_SHIFT     4
522*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF2_MASK      0x3 /* cf2 */
523*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF2_SHIFT     6
524*14b24e2bSVaishali Kulkarni 	u8 flags1;
525*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF0EN_MASK    0x1 /* cf0en */
526*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF0EN_SHIFT   0
527*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF1EN_MASK    0x1 /* cf1en */
528*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF1EN_SHIFT   1
529*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF2EN_MASK    0x1 /* cf2en */
530*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_CF2EN_SHIFT   2
531*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE0EN_MASK  0x1 /* rule0en */
532*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE0EN_SHIFT 3
533*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE1EN_MASK  0x1 /* rule1en */
534*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE1EN_SHIFT 4
535*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE2EN_MASK  0x1 /* rule2en */
536*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE2EN_SHIFT 5
537*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE3EN_MASK  0x1 /* rule3en */
538*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE3EN_SHIFT 6
539*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE4EN_MASK  0x1 /* rule4en */
540*14b24e2bSVaishali Kulkarni #define E4_MSTORM_ISCSI_CONN_AG_CTX_RULE4EN_SHIFT 7
541*14b24e2bSVaishali Kulkarni 	__le16 word0 /* word0 */;
542*14b24e2bSVaishali Kulkarni 	__le16 word1 /* word1 */;
543*14b24e2bSVaishali Kulkarni 	__le32 reg0 /* reg0 */;
544*14b24e2bSVaishali Kulkarni 	__le32 reg1 /* reg1 */;
545*14b24e2bSVaishali Kulkarni };
546*14b24e2bSVaishali Kulkarni 
547*14b24e2bSVaishali Kulkarni /*
548*14b24e2bSVaishali Kulkarni  * Combined iSCSI and TCP storm connection of Mstorm
549*14b24e2bSVaishali Kulkarni  */
550*14b24e2bSVaishali Kulkarni struct mstorm_iscsi_tcp_conn_st_ctx
551*14b24e2bSVaishali Kulkarni {
552*14b24e2bSVaishali Kulkarni 	__le32 reserved_tcp[20];
553*14b24e2bSVaishali Kulkarni 	__le32 reserved_iscsi[8];
554*14b24e2bSVaishali Kulkarni };
555*14b24e2bSVaishali Kulkarni 
556*14b24e2bSVaishali Kulkarni /*
557*14b24e2bSVaishali Kulkarni  * The iscsi storm context of Ustorm
558*14b24e2bSVaishali Kulkarni  */
559*14b24e2bSVaishali Kulkarni struct ustorm_iscsi_conn_st_ctx
560*14b24e2bSVaishali Kulkarni {
561*14b24e2bSVaishali Kulkarni 	__le32 reserved[52];
562*14b24e2bSVaishali Kulkarni };
563*14b24e2bSVaishali Kulkarni 
564*14b24e2bSVaishali Kulkarni /*
565*14b24e2bSVaishali Kulkarni  * iscsi connection context
566*14b24e2bSVaishali Kulkarni  */
567*14b24e2bSVaishali Kulkarni struct iscsi_conn_context
568*14b24e2bSVaishali Kulkarni {
569*14b24e2bSVaishali Kulkarni 	struct ystorm_iscsi_conn_st_ctx ystorm_st_context /* ystorm storm context */;
570*14b24e2bSVaishali Kulkarni 	struct regpair ystorm_st_padding[2] /* padding */;
571*14b24e2bSVaishali Kulkarni 	struct pstorm_iscsi_tcp_conn_st_ctx pstorm_st_context /* pstorm storm context */;
572*14b24e2bSVaishali Kulkarni 	struct regpair pstorm_st_padding[2] /* padding */;
573*14b24e2bSVaishali Kulkarni 	struct pb_context xpb2_context /* xpb2 context */;
574*14b24e2bSVaishali Kulkarni 	struct xstorm_iscsi_tcp_conn_st_ctx xstorm_st_context /* xstorm storm context */;
575*14b24e2bSVaishali Kulkarni 	struct regpair xstorm_st_padding[2] /* padding */;
576*14b24e2bSVaishali Kulkarni 	struct e4_xstorm_iscsi_conn_ag_ctx xstorm_ag_context /* xstorm aggregative context */;
577*14b24e2bSVaishali Kulkarni 	struct e4_tstorm_iscsi_conn_ag_ctx tstorm_ag_context /* tstorm aggregative context */;
578*14b24e2bSVaishali Kulkarni 	struct regpair tstorm_ag_padding[2] /* padding */;
579*14b24e2bSVaishali Kulkarni 	struct timers_context timer_context /* timer context */;
580*14b24e2bSVaishali Kulkarni 	struct e4_ustorm_iscsi_conn_ag_ctx ustorm_ag_context /* ustorm aggregative context */;
581*14b24e2bSVaishali Kulkarni 	struct pb_context upb_context /* upb context */;
582*14b24e2bSVaishali Kulkarni 	struct tstorm_iscsi_conn_st_ctx tstorm_st_context /* tstorm storm context */;
583*14b24e2bSVaishali Kulkarni 	struct regpair tstorm_st_padding[2] /* padding */;
584*14b24e2bSVaishali Kulkarni 	struct e4_mstorm_iscsi_conn_ag_ctx mstorm_ag_context /* mstorm aggregative context */;
585*14b24e2bSVaishali Kulkarni 	struct mstorm_iscsi_tcp_conn_st_ctx mstorm_st_context /* mstorm storm context */;
586*14b24e2bSVaishali Kulkarni 	struct ustorm_iscsi_conn_st_ctx ustorm_st_context /* ustorm storm context */;
587*14b24e2bSVaishali Kulkarni };
588*14b24e2bSVaishali Kulkarni 
589*14b24e2bSVaishali Kulkarni 
590*14b24e2bSVaishali Kulkarni /*
591*14b24e2bSVaishali Kulkarni  * iSCSI init params passed by driver to FW in iSCSI init ramrod
592*14b24e2bSVaishali Kulkarni  */
593*14b24e2bSVaishali Kulkarni struct iscsi_init_ramrod_params
594*14b24e2bSVaishali Kulkarni {
595*14b24e2bSVaishali Kulkarni 	struct iscsi_spe_func_init iscsi_init_spe /* parameters initialized by the miniport and handed to bus-driver */;
596*14b24e2bSVaishali Kulkarni 	struct tcp_init_params tcp_init /* TCP parameters initialized by the bus-driver */;
597*14b24e2bSVaishali Kulkarni };
598*14b24e2bSVaishali Kulkarni 
599*14b24e2bSVaishali Kulkarni 
600*14b24e2bSVaishali Kulkarni 
601*14b24e2bSVaishali Kulkarni 
602*14b24e2bSVaishali Kulkarni 
603*14b24e2bSVaishali Kulkarni 
604*14b24e2bSVaishali Kulkarni 
605*14b24e2bSVaishali Kulkarni 
606*14b24e2bSVaishali Kulkarni 
607*14b24e2bSVaishali Kulkarni 
608*14b24e2bSVaishali Kulkarni 
609*14b24e2bSVaishali Kulkarni 
610*14b24e2bSVaishali Kulkarni struct e4_ystorm_iscsi_conn_ag_ctx
611*14b24e2bSVaishali Kulkarni {
612*14b24e2bSVaishali Kulkarni 	u8 byte0 /* cdu_validation */;
613*14b24e2bSVaishali Kulkarni 	u8 byte1 /* state */;
614*14b24e2bSVaishali Kulkarni 	u8 flags0;
615*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_BIT0_MASK     0x1 /* exist_in_qm0 */
616*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_BIT0_SHIFT    0
617*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_BIT1_MASK     0x1 /* exist_in_qm1 */
618*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_BIT1_SHIFT    1
619*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF0_MASK      0x3 /* cf0 */
620*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF0_SHIFT     2
621*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF1_MASK      0x3 /* cf1 */
622*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF1_SHIFT     4
623*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF2_MASK      0x3 /* cf2 */
624*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF2_SHIFT     6
625*14b24e2bSVaishali Kulkarni 	u8 flags1;
626*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF0EN_MASK    0x1 /* cf0en */
627*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF0EN_SHIFT   0
628*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF1EN_MASK    0x1 /* cf1en */
629*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF1EN_SHIFT   1
630*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF2EN_MASK    0x1 /* cf2en */
631*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_CF2EN_SHIFT   2
632*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE0EN_MASK  0x1 /* rule0en */
633*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE0EN_SHIFT 3
634*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE1EN_MASK  0x1 /* rule1en */
635*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE1EN_SHIFT 4
636*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE2EN_MASK  0x1 /* rule2en */
637*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE2EN_SHIFT 5
638*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE3EN_MASK  0x1 /* rule3en */
639*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE3EN_SHIFT 6
640*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE4EN_MASK  0x1 /* rule4en */
641*14b24e2bSVaishali Kulkarni #define E4_YSTORM_ISCSI_CONN_AG_CTX_RULE4EN_SHIFT 7
642*14b24e2bSVaishali Kulkarni 	u8 byte2 /* byte2 */;
643*14b24e2bSVaishali Kulkarni 	u8 byte3 /* byte3 */;
644*14b24e2bSVaishali Kulkarni 	__le16 word0 /* word0 */;
645*14b24e2bSVaishali Kulkarni 	__le32 reg0 /* reg0 */;
646*14b24e2bSVaishali Kulkarni 	__le32 reg1 /* reg1 */;
647*14b24e2bSVaishali Kulkarni 	__le16 word1 /* word1 */;
648*14b24e2bSVaishali Kulkarni 	__le16 word2 /* word2 */;
649*14b24e2bSVaishali Kulkarni 	__le16 word3 /* word3 */;
650*14b24e2bSVaishali Kulkarni 	__le16 word4 /* word4 */;
651*14b24e2bSVaishali Kulkarni 	__le32 reg2 /* reg2 */;
652*14b24e2bSVaishali Kulkarni 	__le32 reg3 /* reg3 */;
653*14b24e2bSVaishali Kulkarni };
654*14b24e2bSVaishali Kulkarni 
655*14b24e2bSVaishali Kulkarni 
656*14b24e2bSVaishali Kulkarni struct e5_mstorm_iscsi_conn_ag_ctx
657*14b24e2bSVaishali Kulkarni {
658*14b24e2bSVaishali Kulkarni 	u8 reserved /* cdu_validation */;
659*14b24e2bSVaishali Kulkarni 	u8 state_and_core_id /* state_and_core_id */;
660*14b24e2bSVaishali Kulkarni 	u8 flags0;
661*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_BIT0_MASK     0x1 /* exist_in_qm0 */
662*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_BIT0_SHIFT    0
663*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_BIT1_MASK     0x1 /* exist_in_qm1 */
664*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_BIT1_SHIFT    1
665*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF0_MASK      0x3 /* cf0 */
666*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF0_SHIFT     2
667*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF1_MASK      0x3 /* cf1 */
668*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF1_SHIFT     4
669*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF2_MASK      0x3 /* cf2 */
670*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF2_SHIFT     6
671*14b24e2bSVaishali Kulkarni 	u8 flags1;
672*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF0EN_MASK    0x1 /* cf0en */
673*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF0EN_SHIFT   0
674*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF1EN_MASK    0x1 /* cf1en */
675*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF1EN_SHIFT   1
676*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF2EN_MASK    0x1 /* cf2en */
677*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_CF2EN_SHIFT   2
678*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE0EN_MASK  0x1 /* rule0en */
679*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE0EN_SHIFT 3
680*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE1EN_MASK  0x1 /* rule1en */
681*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE1EN_SHIFT 4
682*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE2EN_MASK  0x1 /* rule2en */
683*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE2EN_SHIFT 5
684*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE3EN_MASK  0x1 /* rule3en */
685*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE3EN_SHIFT 6
686*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE4EN_MASK  0x1 /* rule4en */
687*14b24e2bSVaishali Kulkarni #define E5_MSTORM_ISCSI_CONN_AG_CTX_RULE4EN_SHIFT 7
688*14b24e2bSVaishali Kulkarni 	__le16 word0 /* word0 */;
689*14b24e2bSVaishali Kulkarni 	__le16 word1 /* word1 */;
690*14b24e2bSVaishali Kulkarni 	__le32 reg0 /* reg0 */;
691*14b24e2bSVaishali Kulkarni 	__le32 reg1 /* reg1 */;
692*14b24e2bSVaishali Kulkarni };
693*14b24e2bSVaishali Kulkarni 
694*14b24e2bSVaishali Kulkarni 
695*14b24e2bSVaishali Kulkarni struct e5_tstorm_iscsi_conn_ag_ctx
696*14b24e2bSVaishali Kulkarni {
697*14b24e2bSVaishali Kulkarni 	u8 reserved0 /* cdu_validation */;
698*14b24e2bSVaishali Kulkarni 	u8 state_and_core_id /* state_and_core_id */;
699*14b24e2bSVaishali Kulkarni 	u8 flags0;
700*14b24e2bSVaishali Kulkarni #define E5_TSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM0_MASK       0x1 /* exist_in_qm0 */
701*14b24e2bSVaishali Kulkarni #define E5_TSTORM_ISCSI_CONN_AG_CTX_EXIST_IN_QM0_SHIFT      0
702*14b24e2bSVaishali Kulkarni #define E5_TSTORM_ISCSI_CONN_AG_CTX_BIT1_MASK               0x1 /* exist_in_qm1 */
703*14b24e2bSVaishali Kulkarni #define E5_TSTORM_ISCSI_CONN_AG_CTX_BIT1_SHIFT              1
704*14b24e2bSVaishali Kulkarni #define E5_TSTORM_ISCSI_CONN_AG_CTX_BIT2_MASK               0x1 /* bit2 */
705