16 #define L2_KWQE_OPCODE_VALUE_FLUSH (4)
17 #define L2_KWQE_OPCODE_VALUE_VM_FREE_RX_QUEUE (8)
19 #define L4_KWQE_OPCODE_VALUE_CONNECT1 (50)
20 #define L4_KWQE_OPCODE_VALUE_CONNECT2 (51)
21 #define L4_KWQE_OPCODE_VALUE_CONNECT3 (52)
22 #define L4_KWQE_OPCODE_VALUE_RESET (53)
23 #define L4_KWQE_OPCODE_VALUE_CLOSE (54)
24 #define L4_KWQE_OPCODE_VALUE_UPDATE_SECRET (60)
25 #define L4_KWQE_OPCODE_VALUE_INIT_ULP (61)
27 #define L4_KWQE_OPCODE_VALUE_OFFLOAD_PG (1)
28 #define L4_KWQE_OPCODE_VALUE_UPDATE_PG (9)
29 #define L4_KWQE_OPCODE_VALUE_UPLOAD_PG (14)
31 #define L5CM_RAMROD_CMD_ID_BASE (0x80)
32 #define L5CM_RAMROD_CMD_ID_TCP_CONNECT (L5CM_RAMROD_CMD_ID_BASE + 3)
33 #define L5CM_RAMROD_CMD_ID_CLOSE (L5CM_RAMROD_CMD_ID_BASE + 12)
34 #define L5CM_RAMROD_CMD_ID_ABORT (L5CM_RAMROD_CMD_ID_BASE + 13)
35 #define L5CM_RAMROD_CMD_ID_SEARCHER_DELETE (L5CM_RAMROD_CMD_ID_BASE + 14)
36 #define L5CM_RAMROD_CMD_ID_TERMINATE_OFFLOAD (L5CM_RAMROD_CMD_ID_BASE + 15)
38 #define FCOE_RAMROD_CMD_ID_INIT_FUNC (FCOE_KCQE_OPCODE_INIT_FUNC)
39 #define FCOE_RAMROD_CMD_ID_DESTROY_FUNC (FCOE_KCQE_OPCODE_DESTROY_FUNC)
40 #define FCOE_RAMROD_CMD_ID_STAT_FUNC (FCOE_KCQE_OPCODE_STAT_FUNC)
41 #define FCOE_RAMROD_CMD_ID_OFFLOAD_CONN (FCOE_KCQE_OPCODE_OFFLOAD_CONN)
42 #define FCOE_RAMROD_CMD_ID_ENABLE_CONN (FCOE_KCQE_OPCODE_ENABLE_CONN)
43 #define FCOE_RAMROD_CMD_ID_DISABLE_CONN (FCOE_KCQE_OPCODE_DISABLE_CONN)
44 #define FCOE_RAMROD_CMD_ID_DESTROY_CONN (FCOE_KCQE_OPCODE_DESTROY_CONN)
45 #define FCOE_RAMROD_CMD_ID_TERMINATE_CONN (0x81)
48 #define L4_KCQE_OPCODE_VALUE_CLOSE_COMP (53)
49 #define L4_KCQE_OPCODE_VALUE_RESET_COMP (54)
50 #define L4_KCQE_OPCODE_VALUE_FW_TCP_UPDATE (55)
51 #define L4_KCQE_OPCODE_VALUE_CONNECT_COMPLETE (56)
52 #define L4_KCQE_OPCODE_VALUE_RESET_RECEIVED (57)
53 #define L4_KCQE_OPCODE_VALUE_CLOSE_RECEIVED (58)
54 #define L4_KCQE_OPCODE_VALUE_INIT_ULP (61)
56 #define L4_KCQE_OPCODE_VALUE_OFFLOAD_PG (1)
57 #define L4_KCQE_OPCODE_VALUE_UPDATE_PG (9)
58 #define L4_KCQE_OPCODE_VALUE_UPLOAD_PG (14)
61 #define L4_KCQE_COMPLETION_STATUS_SUCCESS (0)
62 #define L4_KCQE_COMPLETION_STATUS_NIC_ERROR (4)
63 #define L4_KCQE_COMPLETION_STATUS_PARITY_ERROR (0x81)
64 #define L4_KCQE_COMPLETION_STATUS_TIMEOUT (0x93)
66 #define L4_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAIL (0x83)
67 #define L4_KCQE_COMPLETION_STATUS_OFFLOADED_PG (0x89)
69 #define L4_KCQE_OPCODE_VALUE_OOO_EVENT_NOTIFICATION (0xa0)
70 #define L4_KCQE_OPCODE_VALUE_OOO_FLUSH (0xa1)
72 #define L4_LAYER_CODE (4)
73 #define L2_LAYER_CODE (2)
83 #if defined(__BIG_ENDIAN)
86 #elif defined(__LITTLE_ENDIAN)
91 #if defined(__BIG_ENDIAN)
93 #define L4_KCQ_RESERVED3 (0x7<<0)
94 #define L4_KCQ_RESERVED3_SHIFT 0
95 #define L4_KCQ_RAMROD_COMPLETION (0x1<<3)
96 #define L4_KCQ_RAMROD_COMPLETION_SHIFT 3
97 #define L4_KCQ_LAYER_CODE (0x7<<4)
98 #define L4_KCQ_LAYER_CODE_SHIFT 4
99 #define L4_KCQ_RESERVED4 (0x1<<7)
100 #define L4_KCQ_RESERVED4_SHIFT 7
103 #elif defined(__LITTLE_ENDIAN)
107 #define L4_KCQ_RESERVED3 (0xF<<0)
108 #define L4_KCQ_RESERVED3_SHIFT 0
109 #define L4_KCQ_RAMROD_COMPLETION (0x1<<3)
110 #define L4_KCQ_RAMROD_COMPLETION_SHIFT 3
111 #define L4_KCQ_LAYER_CODE (0x7<<4)
112 #define L4_KCQ_LAYER_CODE_SHIFT 4
113 #define L4_KCQ_RESERVED4 (0x1<<7)
114 #define L4_KCQ_RESERVED4_SHIFT 7
124 #if defined(__BIG_ENDIAN)
127 #elif defined(__LITTLE_ENDIAN)
132 #if defined(__BIG_ENDIAN)
134 #define L4_KCQ_UPLOAD_PG_RESERVED3 (0xF<<0)
135 #define L4_KCQ_UPLOAD_PG_RESERVED3_SHIFT 0
136 #define L4_KCQ_UPLOAD_PG_LAYER_CODE (0x7<<4)
137 #define L4_KCQ_UPLOAD_PG_LAYER_CODE_SHIFT 4
138 #define L4_KCQ_UPLOAD_PG_RESERVED4 (0x1<<7)
139 #define L4_KCQ_UPLOAD_PG_RESERVED4_SHIFT 7
142 #elif defined(__LITTLE_ENDIAN)
146 #define L4_KCQ_UPLOAD_PG_RESERVED3 (0xF<<0)
147 #define L4_KCQ_UPLOAD_PG_RESERVED3_SHIFT 0
148 #define L4_KCQ_UPLOAD_PG_LAYER_CODE (0x7<<4)
149 #define L4_KCQ_UPLOAD_PG_LAYER_CODE_SHIFT 4
150 #define L4_KCQ_UPLOAD_PG_RESERVED4 (0x1<<7)
151 #define L4_KCQ_UPLOAD_PG_RESERVED4_SHIFT 7
160 #if defined(__BIG_ENDIAN)
162 #define L4_KWQ_CLOSE_REQ_RESERVED1 (0xF<<0)
163 #define L4_KWQ_CLOSE_REQ_RESERVED1_SHIFT 0
164 #define L4_KWQ_CLOSE_REQ_LAYER_CODE (0x7<<4)
165 #define L4_KWQ_CLOSE_REQ_LAYER_CODE_SHIFT 4
166 #define L4_KWQ_CLOSE_REQ_LINKED_WITH_NEXT (0x1<<7)
167 #define L4_KWQ_CLOSE_REQ_LINKED_WITH_NEXT_SHIFT 7
170 #elif defined(__LITTLE_ENDIAN)
174 #define L4_KWQ_CLOSE_REQ_RESERVED1 (0xF<<0)
175 #define L4_KWQ_CLOSE_REQ_RESERVED1_SHIFT 0
176 #define L4_KWQ_CLOSE_REQ_LAYER_CODE (0x7<<4)
177 #define L4_KWQ_CLOSE_REQ_LAYER_CODE_SHIFT 4
178 #define L4_KWQ_CLOSE_REQ_LINKED_WITH_NEXT (0x1<<7)
179 #define L4_KWQ_CLOSE_REQ_LINKED_WITH_NEXT_SHIFT 7
190 #if defined(__BIG_ENDIAN)
192 #define L4_KWQ_CONNECT_REQ1_RESERVED1 (0xF<<0)
193 #define L4_KWQ_CONNECT_REQ1_RESERVED1_SHIFT 0
194 #define L4_KWQ_CONNECT_REQ1_LAYER_CODE (0x7<<4)
195 #define L4_KWQ_CONNECT_REQ1_LAYER_CODE_SHIFT 4
196 #define L4_KWQ_CONNECT_REQ1_LINKED_WITH_NEXT (0x1<<7)
197 #define L4_KWQ_CONNECT_REQ1_LINKED_WITH_NEXT_SHIFT 7
201 #define L4_KWQ_CONNECT_REQ1_IS_PG_HOST_OPAQUE (0x1<<0)
202 #define L4_KWQ_CONNECT_REQ1_IS_PG_HOST_OPAQUE_SHIFT 0
203 #define L4_KWQ_CONNECT_REQ1_IP_V6 (0x1<<1)
204 #define L4_KWQ_CONNECT_REQ1_IP_V6_SHIFT 1
205 #define L4_KWQ_CONNECT_REQ1_PASSIVE_FLAG (0x1<<2)
206 #define L4_KWQ_CONNECT_REQ1_PASSIVE_FLAG_SHIFT 2
207 #define L4_KWQ_CONNECT_REQ1_RSRV (0x1F<<3)
208 #define L4_KWQ_CONNECT_REQ1_RSRV_SHIFT 3
209 #elif defined(__LITTLE_ENDIAN)
211 #define L4_KWQ_CONNECT_REQ1_IS_PG_HOST_OPAQUE (0x1<<0)
212 #define L4_KWQ_CONNECT_REQ1_IS_PG_HOST_OPAQUE_SHIFT 0
213 #define L4_KWQ_CONNECT_REQ1_IP_V6 (0x1<<1)
214 #define L4_KWQ_CONNECT_REQ1_IP_V6_SHIFT 1
215 #define L4_KWQ_CONNECT_REQ1_PASSIVE_FLAG (0x1<<2)
216 #define L4_KWQ_CONNECT_REQ1_PASSIVE_FLAG_SHIFT 2
217 #define L4_KWQ_CONNECT_REQ1_RSRV (0x1F<<3)
218 #define L4_KWQ_CONNECT_REQ1_RSRV_SHIFT 3
222 #define L4_KWQ_CONNECT_REQ1_RESERVED1 (0xF<<0)
223 #define L4_KWQ_CONNECT_REQ1_RESERVED1_SHIFT 0
224 #define L4_KWQ_CONNECT_REQ1_LAYER_CODE (0x7<<4)
225 #define L4_KWQ_CONNECT_REQ1_LAYER_CODE_SHIFT 4
226 #define L4_KWQ_CONNECT_REQ1_LINKED_WITH_NEXT (0x1<<7)
227 #define L4_KWQ_CONNECT_REQ1_LINKED_WITH_NEXT_SHIFT 7
233 #if defined(__BIG_ENDIAN)
236 #elif defined(__LITTLE_ENDIAN)
240 #if defined(__BIG_ENDIAN)
243 #define L4_KWQ_CONNECT_REQ1_NO_DELAY_ACK (0x1<<0)
244 #define L4_KWQ_CONNECT_REQ1_NO_DELAY_ACK_SHIFT 0
245 #define L4_KWQ_CONNECT_REQ1_KEEP_ALIVE (0x1<<1)
246 #define L4_KWQ_CONNECT_REQ1_KEEP_ALIVE_SHIFT 1
247 #define L4_KWQ_CONNECT_REQ1_NAGLE_ENABLE (0x1<<2)
248 #define L4_KWQ_CONNECT_REQ1_NAGLE_ENABLE_SHIFT 2
249 #define L4_KWQ_CONNECT_REQ1_TIME_STAMP (0x1<<3)
250 #define L4_KWQ_CONNECT_REQ1_TIME_STAMP_SHIFT 3
251 #define L4_KWQ_CONNECT_REQ1_SACK (0x1<<4)
252 #define L4_KWQ_CONNECT_REQ1_SACK_SHIFT 4
253 #define L4_KWQ_CONNECT_REQ1_SEG_SCALING (0x1<<5)
254 #define L4_KWQ_CONNECT_REQ1_SEG_SCALING_SHIFT 5
255 #define L4_KWQ_CONNECT_REQ1_RESERVED2 (0x3<<6)
256 #define L4_KWQ_CONNECT_REQ1_RESERVED2_SHIFT 6
257 #elif defined(__LITTLE_ENDIAN)
259 #define L4_KWQ_CONNECT_REQ1_NO_DELAY_ACK (0x1<<0)
260 #define L4_KWQ_CONNECT_REQ1_NO_DELAY_ACK_SHIFT 0
261 #define L4_KWQ_CONNECT_REQ1_KEEP_ALIVE (0x1<<1)
262 #define L4_KWQ_CONNECT_REQ1_KEEP_ALIVE_SHIFT 1
263 #define L4_KWQ_CONNECT_REQ1_NAGLE_ENABLE (0x1<<2)
264 #define L4_KWQ_CONNECT_REQ1_NAGLE_ENABLE_SHIFT 2
265 #define L4_KWQ_CONNECT_REQ1_TIME_STAMP (0x1<<3)
266 #define L4_KWQ_CONNECT_REQ1_TIME_STAMP_SHIFT 3
267 #define L4_KWQ_CONNECT_REQ1_SACK (0x1<<4)
268 #define L4_KWQ_CONNECT_REQ1_SACK_SHIFT 4
269 #define L4_KWQ_CONNECT_REQ1_SEG_SCALING (0x1<<5)
270 #define L4_KWQ_CONNECT_REQ1_SEG_SCALING_SHIFT 5
271 #define L4_KWQ_CONNECT_REQ1_RESERVED2 (0x3<<6)
272 #define L4_KWQ_CONNECT_REQ1_RESERVED2_SHIFT 6
284 #if defined(__BIG_ENDIAN)
286 #define L4_KWQ_CONNECT_REQ2_RESERVED1 (0xF<<0)
287 #define L4_KWQ_CONNECT_REQ2_RESERVED1_SHIFT 0
288 #define L4_KWQ_CONNECT_REQ2_LAYER_CODE (0x7<<4)
289 #define L4_KWQ_CONNECT_REQ2_LAYER_CODE_SHIFT 4
290 #define L4_KWQ_CONNECT_REQ2_LINKED_WITH_NEXT (0x1<<7)
291 #define L4_KWQ_CONNECT_REQ2_LINKED_WITH_NEXT_SHIFT 7
295 #elif defined(__LITTLE_ENDIAN)
300 #define L4_KWQ_CONNECT_REQ2_RESERVED1 (0xF<<0)
301 #define L4_KWQ_CONNECT_REQ2_RESERVED1_SHIFT 0
302 #define L4_KWQ_CONNECT_REQ2_LAYER_CODE (0x7<<4)
303 #define L4_KWQ_CONNECT_REQ2_LAYER_CODE_SHIFT 4
304 #define L4_KWQ_CONNECT_REQ2_LINKED_WITH_NEXT (0x1<<7)
305 #define L4_KWQ_CONNECT_REQ2_LINKED_WITH_NEXT_SHIFT 7
322 #if defined(__BIG_ENDIAN)
324 #define L4_KWQ_CONNECT_REQ3_RESERVED1 (0xF<<0)
325 #define L4_KWQ_CONNECT_REQ3_RESERVED1_SHIFT 0
326 #define L4_KWQ_CONNECT_REQ3_LAYER_CODE (0x7<<4)
327 #define L4_KWQ_CONNECT_REQ3_LAYER_CODE_SHIFT 4
328 #define L4_KWQ_CONNECT_REQ3_LINKED_WITH_NEXT (0x1<<7)
329 #define L4_KWQ_CONNECT_REQ3_LINKED_WITH_NEXT_SHIFT 7
332 #elif defined(__LITTLE_ENDIAN)
336 #define L4_KWQ_CONNECT_REQ3_RESERVED1 (0xF<<0)
337 #define L4_KWQ_CONNECT_REQ3_RESERVED1_SHIFT 0
338 #define L4_KWQ_CONNECT_REQ3_LAYER_CODE (0x7<<4)
339 #define L4_KWQ_CONNECT_REQ3_LAYER_CODE_SHIFT 4
340 #define L4_KWQ_CONNECT_REQ3_LINKED_WITH_NEXT (0x1<<7)
341 #define L4_KWQ_CONNECT_REQ3_LINKED_WITH_NEXT_SHIFT 7
345 #if defined(__BIG_ENDIAN)
349 u8 ka_max_probe_count;
350 #elif defined(__LITTLE_ENDIAN)
351 u8 ka_max_probe_count;
356 #if defined(__BIG_ENDIAN)
359 #elif defined(__LITTLE_ENDIAN)
373 #if defined(__BIG_ENDIAN)
375 #define L4_KWQ_OFFLOAD_PG_RESERVED1 (0xF<<0)
376 #define L4_KWQ_OFFLOAD_PG_RESERVED1_SHIFT 0
377 #define L4_KWQ_OFFLOAD_PG_LAYER_CODE (0x7<<4)
378 #define L4_KWQ_OFFLOAD_PG_LAYER_CODE_SHIFT 4
379 #define L4_KWQ_OFFLOAD_PG_LINKED_WITH_NEXT (0x1<<7)
380 #define L4_KWQ_OFFLOAD_PG_LINKED_WITH_NEXT_SHIFT 7
383 #elif defined(__LITTLE_ENDIAN)
387 #define L4_KWQ_OFFLOAD_PG_RESERVED1 (0xF<<0)
388 #define L4_KWQ_OFFLOAD_PG_RESERVED1_SHIFT 0
389 #define L4_KWQ_OFFLOAD_PG_LAYER_CODE (0x7<<4)
390 #define L4_KWQ_OFFLOAD_PG_LAYER_CODE_SHIFT 4
391 #define L4_KWQ_OFFLOAD_PG_LINKED_WITH_NEXT (0x1<<7)
392 #define L4_KWQ_OFFLOAD_PG_LINKED_WITH_NEXT_SHIFT 7
394 #if defined(__BIG_ENDIAN)
397 #define L4_KWQ_OFFLOAD_PG_SNAP_ENCAP (0x1<<0)
398 #define L4_KWQ_OFFLOAD_PG_SNAP_ENCAP_SHIFT 0
399 #define L4_KWQ_OFFLOAD_PG_VLAN_TAGGING (0x1<<1)
400 #define L4_KWQ_OFFLOAD_PG_VLAN_TAGGING_SHIFT 1
401 #define L4_KWQ_OFFLOAD_PG_RESERVED2 (0x3F<<2)
402 #define L4_KWQ_OFFLOAD_PG_RESERVED2_SHIFT 2
405 #elif defined(__LITTLE_ENDIAN)
409 #define L4_KWQ_OFFLOAD_PG_SNAP_ENCAP (0x1<<0)
410 #define L4_KWQ_OFFLOAD_PG_SNAP_ENCAP_SHIFT 0
411 #define L4_KWQ_OFFLOAD_PG_VLAN_TAGGING (0x1<<1)
412 #define L4_KWQ_OFFLOAD_PG_VLAN_TAGGING_SHIFT 1
413 #define L4_KWQ_OFFLOAD_PG_RESERVED2 (0x3F<<2)
414 #define L4_KWQ_OFFLOAD_PG_RESERVED2_SHIFT 2
417 #if defined(__BIG_ENDIAN)
422 #elif defined(__LITTLE_ENDIAN)
428 #if defined(__BIG_ENDIAN)
433 #elif defined(__LITTLE_ENDIAN)
439 #if defined(__BIG_ENDIAN)
443 #elif defined(__LITTLE_ENDIAN)
448 #if defined(__BIG_ENDIAN)
451 #elif defined(__LITTLE_ENDIAN)
455 #if defined(__BIG_ENDIAN)
458 #elif defined(__LITTLE_ENDIAN)
470 #if defined(__BIG_ENDIAN)
472 #define L4_KWQ_RESET_REQ_RESERVED1 (0xF<<0)
473 #define L4_KWQ_RESET_REQ_RESERVED1_SHIFT 0
474 #define L4_KWQ_RESET_REQ_LAYER_CODE (0x7<<4)
475 #define L4_KWQ_RESET_REQ_LAYER_CODE_SHIFT 4
476 #define L4_KWQ_RESET_REQ_LINKED_WITH_NEXT (0x1<<7)
477 #define L4_KWQ_RESET_REQ_LINKED_WITH_NEXT_SHIFT 7
480 #elif defined(__LITTLE_ENDIAN)
484 #define L4_KWQ_RESET_REQ_RESERVED1 (0xF<<0)
485 #define L4_KWQ_RESET_REQ_RESERVED1_SHIFT 0
486 #define L4_KWQ_RESET_REQ_LAYER_CODE (0x7<<4)
487 #define L4_KWQ_RESET_REQ_LAYER_CODE_SHIFT 4
488 #define L4_KWQ_RESET_REQ_LINKED_WITH_NEXT (0x1<<7)
489 #define L4_KWQ_RESET_REQ_LINKED_WITH_NEXT_SHIFT 7
500 #if defined(__BIG_ENDIAN)
502 #define L4_KWQ_UPDATE_PG_RESERVED1 (0xF<<0)
503 #define L4_KWQ_UPDATE_PG_RESERVED1_SHIFT 0
504 #define L4_KWQ_UPDATE_PG_LAYER_CODE (0x7<<4)
505 #define L4_KWQ_UPDATE_PG_LAYER_CODE_SHIFT 4
506 #define L4_KWQ_UPDATE_PG_LINKED_WITH_NEXT (0x1<<7)
507 #define L4_KWQ_UPDATE_PG_LINKED_WITH_NEXT_SHIFT 7
510 #elif defined(__LITTLE_ENDIAN)
514 #define L4_KWQ_UPDATE_PG_RESERVED1 (0xF<<0)
515 #define L4_KWQ_UPDATE_PG_RESERVED1_SHIFT 0
516 #define L4_KWQ_UPDATE_PG_LAYER_CODE (0x7<<4)
517 #define L4_KWQ_UPDATE_PG_LAYER_CODE_SHIFT 4
518 #define L4_KWQ_UPDATE_PG_LINKED_WITH_NEXT (0x1<<7)
519 #define L4_KWQ_UPDATE_PG_LINKED_WITH_NEXT_SHIFT 7
523 #if defined(__BIG_ENDIAN)
525 #define L4_KWQ_UPDATE_PG_VALIDS_IPID_COUNT (0x1<<0)
526 #define L4_KWQ_UPDATE_PG_VALIDS_IPID_COUNT_SHIFT 0
527 #define L4_KWQ_UPDATE_PG_VALIDS_DA (0x1<<1)
528 #define L4_KWQ_UPDATE_PG_VALIDS_DA_SHIFT 1
529 #define L4_KWQ_UPDATE_PG_RESERVERD2 (0x3F<<2)
530 #define L4_KWQ_UPDATE_PG_RESERVERD2_SHIFT 2
533 #elif defined(__LITTLE_ENDIAN)
537 #define L4_KWQ_UPDATE_PG_VALIDS_IPID_COUNT (0x1<<0)
538 #define L4_KWQ_UPDATE_PG_VALIDS_IPID_COUNT_SHIFT 0
539 #define L4_KWQ_UPDATE_PG_VALIDS_DA (0x1<<1)
540 #define L4_KWQ_UPDATE_PG_VALIDS_DA_SHIFT 1
541 #define L4_KWQ_UPDATE_PG_RESERVERD2 (0x3F<<2)
542 #define L4_KWQ_UPDATE_PG_RESERVERD2_SHIFT 2
544 #if defined(__BIG_ENDIAN)
548 #elif defined(__LITTLE_ENDIAN)
553 #if defined(__BIG_ENDIAN)
558 #elif defined(__LITTLE_ENDIAN)
573 #if defined(__BIG_ENDIAN)
575 #define L4_KWQ_UPLOAD_RESERVED1 (0xF<<0)
576 #define L4_KWQ_UPLOAD_RESERVED1_SHIFT 0
577 #define L4_KWQ_UPLOAD_LAYER_CODE (0x7<<4)
578 #define L4_KWQ_UPLOAD_LAYER_CODE_SHIFT 4
579 #define L4_KWQ_UPLOAD_LINKED_WITH_NEXT (0x1<<7)
580 #define L4_KWQ_UPLOAD_LINKED_WITH_NEXT_SHIFT 7
583 #elif defined(__LITTLE_ENDIAN)
587 #define L4_KWQ_UPLOAD_RESERVED1 (0xF<<0)
588 #define L4_KWQ_UPLOAD_RESERVED1_SHIFT 0
589 #define L4_KWQ_UPLOAD_LAYER_CODE (0x7<<4)
590 #define L4_KWQ_UPLOAD_LAYER_CODE_SHIFT 4
591 #define L4_KWQ_UPLOAD_LINKED_WITH_NEXT (0x1<<7)
592 #define L4_KWQ_UPLOAD_LINKED_WITH_NEXT_SHIFT 7
607 #define CSTORM_ISCSI_AG_CONTEXT_STATE (0xFF<<0)
608 #define CSTORM_ISCSI_AG_CONTEXT_STATE_SHIFT 0
609 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<8)
610 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 8
611 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<9)
612 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 9
613 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<10)
614 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 10
615 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<11)
616 #define __CSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 11
617 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_SE_CF_EN (0x1<<12)
618 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_SE_CF_EN_SHIFT 12
619 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_INV_CF_EN (0x1<<13)
620 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED_ULP_RX_INV_CF_EN_SHIFT 13
621 #define __CSTORM_ISCSI_AG_CONTEXT_AUX4_CF (0x3<<14)
622 #define __CSTORM_ISCSI_AG_CONTEXT_AUX4_CF_SHIFT 14
623 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED66 (0x3<<16)
624 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED66_SHIFT 16
625 #define __CSTORM_ISCSI_AG_CONTEXT_FIN_RECEIVED_CF_EN (0x1<<18)
626 #define __CSTORM_ISCSI_AG_CONTEXT_FIN_RECEIVED_CF_EN_SHIFT 18
627 #define __CSTORM_ISCSI_AG_CONTEXT_AUX1_CF_EN (0x1<<19)
628 #define __CSTORM_ISCSI_AG_CONTEXT_AUX1_CF_EN_SHIFT 19
629 #define __CSTORM_ISCSI_AG_CONTEXT_AUX2_CF_EN (0x1<<20)
630 #define __CSTORM_ISCSI_AG_CONTEXT_AUX2_CF_EN_SHIFT 20
631 #define __CSTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN (0x1<<21)
632 #define __CSTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN_SHIFT 21
633 #define __CSTORM_ISCSI_AG_CONTEXT_AUX4_CF_EN (0x1<<22)
634 #define __CSTORM_ISCSI_AG_CONTEXT_AUX4_CF_EN_SHIFT 22
635 #define __CSTORM_ISCSI_AG_CONTEXT_REL_SEQ_RULE (0x7<<23)
636 #define __CSTORM_ISCSI_AG_CONTEXT_REL_SEQ_RULE_SHIFT 23
637 #define CSTORM_ISCSI_AG_CONTEXT_HQ_PROD_RULE (0x3<<26)
638 #define CSTORM_ISCSI_AG_CONTEXT_HQ_PROD_RULE_SHIFT 26
639 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED52 (0x3<<28)
640 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED52_SHIFT 28
641 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED53 (0x3<<30)
642 #define __CSTORM_ISCSI_AG_CONTEXT_RESERVED53_SHIFT 30
643 #if defined(__BIG_ENDIAN)
647 #elif defined(__LITTLE_ENDIAN)
654 #if defined(__BIG_ENDIAN)
657 #elif defined(__LITTLE_ENDIAN)
661 #if defined(__BIG_ENDIAN)
666 #elif defined(__LITTLE_ENDIAN)
672 #if defined(__BIG_ENDIAN)
675 #elif defined(__LITTLE_ENDIAN)
680 #if defined(__BIG_ENDIAN)
683 #elif defined(__LITTLE_ENDIAN)
687 #if defined(__BIG_ENDIAN)
690 #elif defined(__LITTLE_ENDIAN)
701 #if defined(__BIG_ENDIAN)
705 #elif defined(__LITTLE_ENDIAN)
710 #if defined(__BIG_ENDIAN)
714 #elif defined(__LITTLE_ENDIAN)
725 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<0)
726 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 0
727 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_LAST_PACKET_FIN_FLAG (0x1<<1)
728 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_LAST_PACKET_FIN_FLAG_SHIFT 1
729 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_WND_UPD_CF (0x3<<2)
730 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_WND_UPD_CF_SHIFT 2
731 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TIMEOUT_CF (0x3<<4)
732 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TIMEOUT_CF_SHIFT 4
733 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_WND_UPD_CF_EN (0x1<<6)
734 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_WND_UPD_CF_EN_SHIFT 6
735 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TIMEOUT_CF_EN (0x1<<7)
736 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TIMEOUT_CF_EN_SHIFT 7
737 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RETRANSMIT_SEQ_EN (0x1<<8)
738 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RETRANSMIT_SEQ_EN_SHIFT 8
739 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_LCQ_SND_EN (0x1<<9)
740 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_LCQ_SND_EN_SHIFT 9
741 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_FLAG (0x1<<10)
742 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_FLAG_SHIFT 10
743 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX2_FLAG (0x1<<11)
744 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX2_FLAG_SHIFT 11
745 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_CF_EN (0x1<<12)
746 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_CF_EN_SHIFT 12
747 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX2_CF_EN (0x1<<13)
748 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX2_CF_EN_SHIFT 13
749 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_CF (0x3<<14)
750 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_CF_SHIFT 14
751 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX2_CF (0x3<<16)
752 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX2_CF_SHIFT 16
753 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TX_BLOCKED (0x1<<18)
754 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TX_BLOCKED_SHIFT 18
755 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX10_CF_EN (0x1<<19)
756 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX10_CF_EN_SHIFT 19
757 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX11_CF_EN (0x1<<20)
758 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX11_CF_EN_SHIFT 20
759 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX12_CF_EN (0x1<<21)
760 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX12_CF_EN_SHIFT 21
761 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED1 (0x3<<22)
762 #define __TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED1_SHIFT 22
763 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RETRANSMIT_PEND_SEQ (0xF<<24)
764 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RETRANSMIT_PEND_SEQ_SHIFT 24
765 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RETRANSMIT_DONE_SEQ (0xF<<28)
766 #define TSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RETRANSMIT_DONE_SEQ_SHIFT 28
776 #if defined(__BIG_ENDIAN)
779 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
780 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
781 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
782 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
783 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
784 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
785 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
786 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
787 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF (0x3<<4)
788 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF_SHIFT 4
789 #define __TSTORM_FCOE_AG_CONTEXT_AUX3_FLAG (0x1<<6)
790 #define __TSTORM_FCOE_AG_CONTEXT_AUX3_FLAG_SHIFT 6
791 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_FLAG (0x1<<7)
792 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_FLAG_SHIFT 7
794 #elif defined(__LITTLE_ENDIAN)
797 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
798 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
799 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
800 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
801 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
802 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
803 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
804 #define TSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
805 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF (0x3<<4)
806 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF_SHIFT 4
807 #define __TSTORM_FCOE_AG_CONTEXT_AUX3_FLAG (0x1<<6)
808 #define __TSTORM_FCOE_AG_CONTEXT_AUX3_FLAG_SHIFT 6
809 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_FLAG (0x1<<7)
810 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_FLAG_SHIFT 7
813 #if defined(__BIG_ENDIAN)
816 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_FLAG (0x1<<0)
817 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_FLAG_SHIFT 0
818 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_FLAG (0x1<<1)
819 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_FLAG_SHIFT 1
820 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_CF (0x3<<2)
821 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_CF_SHIFT 2
822 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_CF (0x3<<4)
823 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_CF_SHIFT 4
824 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_CF (0x3<<6)
825 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_CF_SHIFT 6
826 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_CF (0x3<<8)
827 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_CF_SHIFT 8
828 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_FLAG (0x1<<10)
829 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_FLAG_SHIFT 10
830 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF_EN (0x1<<11)
831 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF_EN_SHIFT 11
832 #define TSTORM_FCOE_AG_CONTEXT_AUX4_CF_EN (0x1<<12)
833 #define TSTORM_FCOE_AG_CONTEXT_AUX4_CF_EN_SHIFT 12
834 #define TSTORM_FCOE_AG_CONTEXT_AUX5_CF_EN (0x1<<13)
835 #define TSTORM_FCOE_AG_CONTEXT_AUX5_CF_EN_SHIFT 13
836 #define TSTORM_FCOE_AG_CONTEXT_AUX6_CF_EN (0x1<<14)
837 #define TSTORM_FCOE_AG_CONTEXT_AUX6_CF_EN_SHIFT 14
838 #define TSTORM_FCOE_AG_CONTEXT_AUX7_CF_EN (0x1<<15)
839 #define TSTORM_FCOE_AG_CONTEXT_AUX7_CF_EN_SHIFT 15
840 #elif defined(__LITTLE_ENDIAN)
842 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_FLAG (0x1<<0)
843 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_FLAG_SHIFT 0
844 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_FLAG (0x1<<1)
845 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_FLAG_SHIFT 1
846 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_CF (0x3<<2)
847 #define __TSTORM_FCOE_AG_CONTEXT_AUX4_CF_SHIFT 2
848 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_CF (0x3<<4)
849 #define __TSTORM_FCOE_AG_CONTEXT_AUX5_CF_SHIFT 4
850 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_CF (0x3<<6)
851 #define __TSTORM_FCOE_AG_CONTEXT_AUX6_CF_SHIFT 6
852 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_CF (0x3<<8)
853 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_CF_SHIFT 8
854 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_FLAG (0x1<<10)
855 #define __TSTORM_FCOE_AG_CONTEXT_AUX7_FLAG_SHIFT 10
856 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF_EN (0x1<<11)
857 #define __TSTORM_FCOE_AG_CONTEXT_QUEUE0_FLUSH_CF_EN_SHIFT 11
858 #define TSTORM_FCOE_AG_CONTEXT_AUX4_CF_EN (0x1<<12)
859 #define TSTORM_FCOE_AG_CONTEXT_AUX4_CF_EN_SHIFT 12
860 #define TSTORM_FCOE_AG_CONTEXT_AUX5_CF_EN (0x1<<13)
861 #define TSTORM_FCOE_AG_CONTEXT_AUX5_CF_EN_SHIFT 13
862 #define TSTORM_FCOE_AG_CONTEXT_AUX6_CF_EN (0x1<<14)
863 #define TSTORM_FCOE_AG_CONTEXT_AUX6_CF_EN_SHIFT 14
864 #define TSTORM_FCOE_AG_CONTEXT_AUX7_CF_EN (0x1<<15)
865 #define TSTORM_FCOE_AG_CONTEXT_AUX7_CF_EN_SHIFT 15
878 #if defined(__BIG_ENDIAN)
882 #elif defined(__LITTLE_ENDIAN)
887 #if defined(__BIG_ENDIAN)
891 #elif defined(__LITTLE_ENDIAN)
902 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<0)
903 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 0
904 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_LAST_PACKET_FIN_FLAG (0x1<<1)
905 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_LAST_PACKET_FIN_FLAG_SHIFT 1
906 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_WND_UPD_CF (0x3<<2)
907 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_WND_UPD_CF_SHIFT 2
908 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_TIMEOUT_CF (0x3<<4)
909 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_TIMEOUT_CF_SHIFT 4
910 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_WND_UPD_CF_EN (0x1<<6)
911 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_WND_UPD_CF_EN_SHIFT 6
912 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_TIMEOUT_CF_EN (0x1<<7)
913 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_TIMEOUT_CF_EN_SHIFT 7
914 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RETRANSMIT_SEQ_EN (0x1<<8)
915 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RETRANSMIT_SEQ_EN_SHIFT 8
916 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_SND_NXT_EN (0x1<<9)
917 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_SND_NXT_EN_SHIFT 9
918 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_FLAG (0x1<<10)
919 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_FLAG_SHIFT 10
920 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX2_FLAG (0x1<<11)
921 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX2_FLAG_SHIFT 11
922 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_CF_EN (0x1<<12)
923 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_CF_EN_SHIFT 12
924 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX2_CF_EN (0x1<<13)
925 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX2_CF_EN_SHIFT 13
926 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_CF (0x3<<14)
927 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_CF_SHIFT 14
928 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX2_CF (0x3<<16)
929 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX2_CF_SHIFT 16
930 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_BLOCKED (0x1<<18)
931 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_BLOCKED_SHIFT 18
932 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX10_CF_EN (0x1<<19)
933 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX10_CF_EN_SHIFT 19
934 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX11_CF_EN (0x1<<20)
935 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX11_CF_EN_SHIFT 20
936 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX12_CF_EN (0x1<<21)
937 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX12_CF_EN_SHIFT 21
938 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RESERVED1 (0x3<<22)
939 #define __TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RESERVED1_SHIFT 22
940 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RETRANSMIT_PEND_SEQ (0xF<<24)
941 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RETRANSMIT_PEND_SEQ_SHIFT 24
942 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RETRANSMIT_DONE_SEQ (0xF<<28)
943 #define TSTORM_TCP_TCP_AG_CONTEXT_SECTION_RETRANSMIT_DONE_SEQ_SHIFT 28
953 #if defined(__BIG_ENDIAN)
956 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
957 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
958 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
959 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
960 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
961 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
962 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
963 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
964 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF (0x3<<4)
965 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_SHIFT 4
966 #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG (0x1<<6)
967 #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG_SHIFT 6
968 #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG (0x1<<7)
969 #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG_SHIFT 7
971 #elif defined(__LITTLE_ENDIAN)
974 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
975 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
976 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
977 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
978 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
979 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
980 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
981 #define TSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
982 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF (0x3<<4)
983 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_SHIFT 4
984 #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG (0x1<<6)
985 #define __TSTORM_ISCSI_AG_CONTEXT_AUX3_FLAG_SHIFT 6
986 #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG (0x1<<7)
987 #define __TSTORM_ISCSI_AG_CONTEXT_ACK_ON_FIN_SENT_FLAG_SHIFT 7
990 #if defined(__BIG_ENDIAN)
993 #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG (0x1<<0)
994 #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG_SHIFT 0
995 #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG (0x1<<1)
996 #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG_SHIFT 1
997 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF (0x3<<2)
998 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_SHIFT 2
999 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF (0x3<<4)
1000 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_SHIFT 4
1001 #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF (0x3<<6)
1002 #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_SHIFT 6
1003 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF (0x3<<8)
1004 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_SHIFT 8
1005 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG (0x1<<10)
1006 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG_SHIFT 10
1007 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN (0x1<<11)
1008 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN_SHIFT 11
1009 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN (0x1<<12)
1010 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN_SHIFT 12
1011 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN (0x1<<13)
1012 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN_SHIFT 13
1013 #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN (0x1<<14)
1014 #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN_SHIFT 14
1015 #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN (0x1<<15)
1016 #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN_SHIFT 15
1017 #elif defined(__LITTLE_ENDIAN)
1019 #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG (0x1<<0)
1020 #define __TSTORM_ISCSI_AG_CONTEXT_MSL_TIMER_SET_FLAG_SHIFT 0
1021 #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG (0x1<<1)
1022 #define __TSTORM_ISCSI_AG_CONTEXT_FIN_SENT_FIRST_FLAG_SHIFT 1
1023 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF (0x3<<2)
1024 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_SHIFT 2
1025 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF (0x3<<4)
1026 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_SHIFT 4
1027 #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF (0x3<<6)
1028 #define __TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_SHIFT 6
1029 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF (0x3<<8)
1030 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_SHIFT 8
1031 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG (0x1<<10)
1032 #define __TSTORM_ISCSI_AG_CONTEXT_AUX7_FLAG_SHIFT 10
1033 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN (0x1<<11)
1034 #define __TSTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN_SHIFT 11
1035 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN (0x1<<12)
1036 #define __TSTORM_ISCSI_AG_CONTEXT_RST_SENT_CF_EN_SHIFT 12
1037 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN (0x1<<13)
1038 #define __TSTORM_ISCSI_AG_CONTEXT_WAKEUP_CALL_CF_EN_SHIFT 13
1039 #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN (0x1<<14)
1040 #define TSTORM_ISCSI_AG_CONTEXT_AUX6_CF_EN_SHIFT 14
1041 #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN (0x1<<15)
1042 #define TSTORM_ISCSI_AG_CONTEXT_AUX7_CF_EN_SHIFT 15
1054 #if defined(__BIG_ENDIAN)
1055 u8 __aux_counter_flags;
1057 #define USTORM_FCOE_AG_CONTEXT_TX_CF (0x3<<0)
1058 #define USTORM_FCOE_AG_CONTEXT_TX_CF_SHIFT 0
1059 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF (0x3<<2)
1060 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF_SHIFT 2
1061 #define USTORM_FCOE_AG_CONTEXT_AGG_MISC4_RULE (0x7<<4)
1062 #define USTORM_FCOE_AG_CONTEXT_AGG_MISC4_RULE_SHIFT 4
1063 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL2_MASK (0x1<<7)
1064 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL2_MASK_SHIFT 7
1066 #define __USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1067 #define __USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1068 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1069 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1070 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
1071 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
1072 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
1073 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
1074 #define USTORM_FCOE_AG_CONTEXT_INV_CF (0x3<<4)
1075 #define USTORM_FCOE_AG_CONTEXT_INV_CF_SHIFT 4
1076 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF (0x3<<6)
1077 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF_SHIFT 6
1079 #elif defined(__LITTLE_ENDIAN)
1082 #define __USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1083 #define __USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1084 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1085 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1086 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
1087 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
1088 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
1089 #define USTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
1090 #define USTORM_FCOE_AG_CONTEXT_INV_CF (0x3<<4)
1091 #define USTORM_FCOE_AG_CONTEXT_INV_CF_SHIFT 4
1092 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF (0x3<<6)
1093 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF_SHIFT 6
1095 #define USTORM_FCOE_AG_CONTEXT_TX_CF (0x3<<0)
1096 #define USTORM_FCOE_AG_CONTEXT_TX_CF_SHIFT 0
1097 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF (0x3<<2)
1098 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF_SHIFT 2
1099 #define USTORM_FCOE_AG_CONTEXT_AGG_MISC4_RULE (0x7<<4)
1100 #define USTORM_FCOE_AG_CONTEXT_AGG_MISC4_RULE_SHIFT 4
1101 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL2_MASK (0x1<<7)
1102 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL2_MASK_SHIFT 7
1103 u8 __aux_counter_flags;
1105 #if defined(__BIG_ENDIAN)
1109 #elif defined(__LITTLE_ENDIAN)
1115 #if defined(__BIG_ENDIAN)
1119 #elif defined(__LITTLE_ENDIAN)
1126 #if defined(__BIG_ENDIAN)
1129 #elif defined(__LITTLE_ENDIAN)
1133 #if defined(__BIG_ENDIAN)
1136 #define USTORM_FCOE_AG_CONTEXT_CQ_DEC_RULE (0x7<<0)
1137 #define USTORM_FCOE_AG_CONTEXT_CQ_DEC_RULE_SHIFT 0
1138 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3)
1139 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3
1140 #define USTORM_FCOE_AG_CONTEXT_CQ_ARM_N_FLAG (0x1<<6)
1141 #define USTORM_FCOE_AG_CONTEXT_CQ_ARM_N_FLAG_SHIFT 6
1142 #define __USTORM_FCOE_AG_CONTEXT_RESERVED1 (0x1<<7)
1143 #define __USTORM_FCOE_AG_CONTEXT_RESERVED1_SHIFT 7
1144 u8 decision_rule_enable_bits;
1145 #define __USTORM_FCOE_AG_CONTEXT_RESERVED_INV_CF_EN (0x1<<0)
1146 #define __USTORM_FCOE_AG_CONTEXT_RESERVED_INV_CF_EN_SHIFT 0
1147 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF_EN (0x1<<1)
1148 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF_EN_SHIFT 1
1149 #define USTORM_FCOE_AG_CONTEXT_TX_CF_EN (0x1<<2)
1150 #define USTORM_FCOE_AG_CONTEXT_TX_CF_EN_SHIFT 2
1151 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF_EN (0x1<<3)
1152 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF_EN_SHIFT 3
1153 #define __USTORM_FCOE_AG_CONTEXT_AUX1_CF_EN (0x1<<4)
1154 #define __USTORM_FCOE_AG_CONTEXT_AUX1_CF_EN_SHIFT 4
1155 #define __USTORM_FCOE_AG_CONTEXT_QUEUE0_CF_EN (0x1<<5)
1156 #define __USTORM_FCOE_AG_CONTEXT_QUEUE0_CF_EN_SHIFT 5
1157 #define __USTORM_FCOE_AG_CONTEXT_AUX3_CF_EN (0x1<<6)
1158 #define __USTORM_FCOE_AG_CONTEXT_AUX3_CF_EN_SHIFT 6
1159 #define __USTORM_FCOE_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1160 #define __USTORM_FCOE_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1161 #elif defined(__LITTLE_ENDIAN)
1162 u8 decision_rule_enable_bits;
1163 #define __USTORM_FCOE_AG_CONTEXT_RESERVED_INV_CF_EN (0x1<<0)
1164 #define __USTORM_FCOE_AG_CONTEXT_RESERVED_INV_CF_EN_SHIFT 0
1165 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF_EN (0x1<<1)
1166 #define USTORM_FCOE_AG_CONTEXT_COMPLETION_CF_EN_SHIFT 1
1167 #define USTORM_FCOE_AG_CONTEXT_TX_CF_EN (0x1<<2)
1168 #define USTORM_FCOE_AG_CONTEXT_TX_CF_EN_SHIFT 2
1169 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF_EN (0x1<<3)
1170 #define __USTORM_FCOE_AG_CONTEXT_TIMER_CF_EN_SHIFT 3
1171 #define __USTORM_FCOE_AG_CONTEXT_AUX1_CF_EN (0x1<<4)
1172 #define __USTORM_FCOE_AG_CONTEXT_AUX1_CF_EN_SHIFT 4
1173 #define __USTORM_FCOE_AG_CONTEXT_QUEUE0_CF_EN (0x1<<5)
1174 #define __USTORM_FCOE_AG_CONTEXT_QUEUE0_CF_EN_SHIFT 5
1175 #define __USTORM_FCOE_AG_CONTEXT_AUX3_CF_EN (0x1<<6)
1176 #define __USTORM_FCOE_AG_CONTEXT_AUX3_CF_EN_SHIFT 6
1177 #define __USTORM_FCOE_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1178 #define __USTORM_FCOE_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1180 #define USTORM_FCOE_AG_CONTEXT_CQ_DEC_RULE (0x7<<0)
1181 #define USTORM_FCOE_AG_CONTEXT_CQ_DEC_RULE_SHIFT 0
1182 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3)
1183 #define __USTORM_FCOE_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3
1184 #define USTORM_FCOE_AG_CONTEXT_CQ_ARM_N_FLAG (0x1<<6)
1185 #define USTORM_FCOE_AG_CONTEXT_CQ_ARM_N_FLAG_SHIFT 6
1186 #define __USTORM_FCOE_AG_CONTEXT_RESERVED1 (0x1<<7)
1187 #define __USTORM_FCOE_AG_CONTEXT_RESERVED1_SHIFT 7
1197 #if defined(__BIG_ENDIAN)
1198 u8 __aux_counter_flags;
1200 #define USTORM_ISCSI_AG_CONTEXT_TX_CF (0x3<<0)
1201 #define USTORM_ISCSI_AG_CONTEXT_TX_CF_SHIFT 0
1202 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF (0x3<<2)
1203 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF_SHIFT 2
1204 #define USTORM_ISCSI_AG_CONTEXT_AGG_MISC4_RULE (0x7<<4)
1205 #define USTORM_ISCSI_AG_CONTEXT_AGG_MISC4_RULE_SHIFT 4
1206 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_MASK (0x1<<7)
1207 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_MASK_SHIFT 7
1209 #define __USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1210 #define __USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1211 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1212 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1213 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
1214 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
1215 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
1216 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
1217 #define USTORM_ISCSI_AG_CONTEXT_INV_CF (0x3<<4)
1218 #define USTORM_ISCSI_AG_CONTEXT_INV_CF_SHIFT 4
1219 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF (0x3<<6)
1220 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF_SHIFT 6
1222 #elif defined(__LITTLE_ENDIAN)
1225 #define __USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1226 #define __USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1227 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1228 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1229 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
1230 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
1231 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
1232 #define USTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
1233 #define USTORM_ISCSI_AG_CONTEXT_INV_CF (0x3<<4)
1234 #define USTORM_ISCSI_AG_CONTEXT_INV_CF_SHIFT 4
1235 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF (0x3<<6)
1236 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF_SHIFT 6
1238 #define USTORM_ISCSI_AG_CONTEXT_TX_CF (0x3<<0)
1239 #define USTORM_ISCSI_AG_CONTEXT_TX_CF_SHIFT 0
1240 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF (0x3<<2)
1241 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF_SHIFT 2
1242 #define USTORM_ISCSI_AG_CONTEXT_AGG_MISC4_RULE (0x7<<4)
1243 #define USTORM_ISCSI_AG_CONTEXT_AGG_MISC4_RULE_SHIFT 4
1244 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_MASK (0x1<<7)
1245 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_MASK_SHIFT 7
1246 u8 __aux_counter_flags;
1248 #if defined(__BIG_ENDIAN)
1251 u16 __cq_local_comp_itt_val;
1252 #elif defined(__LITTLE_ENDIAN)
1253 u16 __cq_local_comp_itt_val;
1258 #if defined(__BIG_ENDIAN)
1262 #elif defined(__LITTLE_ENDIAN)
1269 #if defined(__BIG_ENDIAN)
1272 #elif defined(__LITTLE_ENDIAN)
1276 #if defined(__BIG_ENDIAN)
1279 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE (0x7<<0)
1280 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE_SHIFT 0
1281 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3)
1282 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3
1283 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG (0x1<<6)
1284 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG_SHIFT 6
1285 #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1 (0x1<<7)
1286 #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1_SHIFT 7
1287 u8 decision_rule_enable_bits;
1288 #define USTORM_ISCSI_AG_CONTEXT_INV_CF_EN (0x1<<0)
1289 #define USTORM_ISCSI_AG_CONTEXT_INV_CF_EN_SHIFT 0
1290 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF_EN (0x1<<1)
1291 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF_EN_SHIFT 1
1292 #define USTORM_ISCSI_AG_CONTEXT_TX_CF_EN (0x1<<2)
1293 #define USTORM_ISCSI_AG_CONTEXT_TX_CF_EN_SHIFT 2
1294 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF_EN (0x1<<3)
1295 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF_EN_SHIFT 3
1296 #define __USTORM_ISCSI_AG_CONTEXT_CQ_LOCAL_COMP_CF_EN (0x1<<4)
1297 #define __USTORM_ISCSI_AG_CONTEXT_CQ_LOCAL_COMP_CF_EN_SHIFT 4
1298 #define __USTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN (0x1<<5)
1299 #define __USTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN_SHIFT 5
1300 #define __USTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN (0x1<<6)
1301 #define __USTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN_SHIFT 6
1302 #define __USTORM_ISCSI_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1303 #define __USTORM_ISCSI_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1304 #elif defined(__LITTLE_ENDIAN)
1305 u8 decision_rule_enable_bits;
1306 #define USTORM_ISCSI_AG_CONTEXT_INV_CF_EN (0x1<<0)
1307 #define USTORM_ISCSI_AG_CONTEXT_INV_CF_EN_SHIFT 0
1308 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF_EN (0x1<<1)
1309 #define USTORM_ISCSI_AG_CONTEXT_COMPLETION_CF_EN_SHIFT 1
1310 #define USTORM_ISCSI_AG_CONTEXT_TX_CF_EN (0x1<<2)
1311 #define USTORM_ISCSI_AG_CONTEXT_TX_CF_EN_SHIFT 2
1312 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF_EN (0x1<<3)
1313 #define __USTORM_ISCSI_AG_CONTEXT_TIMER_CF_EN_SHIFT 3
1314 #define __USTORM_ISCSI_AG_CONTEXT_CQ_LOCAL_COMP_CF_EN (0x1<<4)
1315 #define __USTORM_ISCSI_AG_CONTEXT_CQ_LOCAL_COMP_CF_EN_SHIFT 4
1316 #define __USTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN (0x1<<5)
1317 #define __USTORM_ISCSI_AG_CONTEXT_QUEUES_FLUSH_Q0_CF_EN_SHIFT 5
1318 #define __USTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN (0x1<<6)
1319 #define __USTORM_ISCSI_AG_CONTEXT_AUX3_CF_EN_SHIFT 6
1320 #define __USTORM_ISCSI_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1321 #define __USTORM_ISCSI_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1323 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE (0x7<<0)
1324 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_RULE_SHIFT 0
1325 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE (0x7<<3)
1326 #define __USTORM_ISCSI_AG_CONTEXT_AGG_VAL3_RULE_SHIFT 3
1327 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG (0x1<<6)
1328 #define USTORM_ISCSI_AG_CONTEXT_AGG_VAL2_ARM_N_FLAG_SHIFT 6
1329 #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1 (0x1<<7)
1330 #define __USTORM_ISCSI_AG_CONTEXT_RESERVED1_SHIFT 7
1340 #if defined(__BIG_ENDIAN)
1342 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED51 (0x3<<0)
1343 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED51_SHIFT 0
1344 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED (0x3<<2)
1345 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_SHIFT 2
1346 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF (0x3<<4)
1347 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_SHIFT 4
1348 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_CLEAR_DA_TIMER_EN (0x1<<6)
1349 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_CLEAR_DA_TIMER_EN_SHIFT 6
1350 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_DA_EXPIRATION_FLAG (0x1<<7)
1351 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_DA_EXPIRATION_FLAG_SHIFT 7
1352 u8 __reserved_da_cnt;
1354 #elif defined(__LITTLE_ENDIAN)
1356 u8 __reserved_da_cnt;
1358 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED51 (0x3<<0)
1359 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED51_SHIFT 0
1360 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED (0x3<<2)
1361 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_SHIFT 2
1362 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF (0x3<<4)
1363 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_SHIFT 4
1364 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_CLEAR_DA_TIMER_EN (0x1<<6)
1365 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_CLEAR_DA_TIMER_EN_SHIFT 6
1366 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_DA_EXPIRATION_FLAG (0x1<<7)
1367 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_DA_EXPIRATION_FLAG_SHIFT 7
1373 #if defined(__BIG_ENDIAN)
1377 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED57 (0x1<<0)
1378 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED57_SHIFT 0
1379 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED58 (0x1<<1)
1380 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED58_SHIFT 1
1381 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED59 (0x1<<2)
1382 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED59_SHIFT 2
1383 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX3_FLAG (0x1<<3)
1384 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX3_FLAG_SHIFT 3
1385 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX4_FLAG (0x1<<4)
1386 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX4_FLAG_SHIFT 4
1387 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED60 (0x1<<5)
1388 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED60_SHIFT 5
1389 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_ACK_TO_FE_UPDATED_EN (0x1<<6)
1390 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_ACK_TO_FE_UPDATED_EN_SHIFT 6
1391 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN (0x1<<7)
1392 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN_SHIFT 7
1393 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_TX_FIN_FLAG_EN (0x1<<8)
1394 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_TX_FIN_FLAG_EN_SHIFT 8
1395 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_FLAG (0x1<<9)
1396 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_FLAG_SHIFT 9
1397 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SET_RTO_CF (0x3<<10)
1398 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SET_RTO_CF_SHIFT 10
1399 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF (0x3<<12)
1400 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF_SHIFT 12
1401 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF (0x3<<14)
1402 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF_SHIFT 14
1403 #elif defined(__LITTLE_ENDIAN)
1405 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED57 (0x1<<0)
1406 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED57_SHIFT 0
1407 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED58 (0x1<<1)
1408 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED58_SHIFT 1
1409 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED59 (0x1<<2)
1410 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED59_SHIFT 2
1411 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX3_FLAG (0x1<<3)
1412 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX3_FLAG_SHIFT 3
1413 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX4_FLAG (0x1<<4)
1414 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX4_FLAG_SHIFT 4
1415 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED60 (0x1<<5)
1416 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED60_SHIFT 5
1417 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_ACK_TO_FE_UPDATED_EN (0x1<<6)
1418 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_ACK_TO_FE_UPDATED_EN_SHIFT 6
1419 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN (0x1<<7)
1420 #define XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN_SHIFT 7
1421 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_TX_FIN_FLAG_EN (0x1<<8)
1422 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_RESERVED_TX_FIN_FLAG_EN_SHIFT 8
1423 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_FLAG (0x1<<9)
1424 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_AUX1_FLAG_SHIFT 9
1425 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SET_RTO_CF (0x3<<10)
1426 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_SET_RTO_CF_SHIFT 10
1427 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF (0x3<<12)
1428 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF_SHIFT 12
1429 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF (0x3<<14)
1430 #define __XSTORM_FCOE_EXTRA_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF_SHIFT 14
1438 #if defined(__BIG_ENDIAN)
1441 #elif defined(__LITTLE_ENDIAN)
1445 #if defined(__BIG_ENDIAN)
1449 u8 __reserved_force_pure_ack_cnt;
1450 #elif defined(__LITTLE_ENDIAN)
1451 u8 __reserved_force_pure_ack_cnt;
1457 #if defined(__BIG_ENDIAN)
1459 u16 __tcp_agg_vars7;
1460 #elif defined(__LITTLE_ENDIAN)
1461 u16 __tcp_agg_vars7;
1466 #if defined(__BIG_ENDIAN)
1470 #elif defined(__LITTLE_ENDIAN)
1481 #if defined(__BIG_ENDIAN)
1484 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1485 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1486 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1487 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1488 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED51 (0x1<<2)
1489 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED51_SHIFT 2
1490 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED52 (0x1<<3)
1491 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED52_SHIFT 3
1492 #define __XSTORM_FCOE_AG_CONTEXT_MORE_TO_SEND_EN (0x1<<4)
1493 #define __XSTORM_FCOE_AG_CONTEXT_MORE_TO_SEND_EN_SHIFT 4
1494 #define XSTORM_FCOE_AG_CONTEXT_NAGLE_EN (0x1<<5)
1495 #define XSTORM_FCOE_AG_CONTEXT_NAGLE_EN_SHIFT 5
1496 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG (0x1<<6)
1497 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG_SHIFT 6
1498 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED_UNA_GT_NXT_EN (0x1<<7)
1499 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED_UNA_GT_NXT_EN_SHIFT 7
1501 #elif defined(__LITTLE_ENDIAN)
1504 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1505 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1506 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1507 #define __XSTORM_FCOE_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1508 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED51 (0x1<<2)
1509 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED51_SHIFT 2
1510 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED52 (0x1<<3)
1511 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED52_SHIFT 3
1512 #define __XSTORM_FCOE_AG_CONTEXT_MORE_TO_SEND_EN (0x1<<4)
1513 #define __XSTORM_FCOE_AG_CONTEXT_MORE_TO_SEND_EN_SHIFT 4
1514 #define XSTORM_FCOE_AG_CONTEXT_NAGLE_EN (0x1<<5)
1515 #define XSTORM_FCOE_AG_CONTEXT_NAGLE_EN_SHIFT 5
1516 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG (0x1<<6)
1517 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG_SHIFT 6
1518 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED_UNA_GT_NXT_EN (0x1<<7)
1519 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED_UNA_GT_NXT_EN_SHIFT 7
1522 #if defined(__BIG_ENDIAN)
1526 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0)
1527 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0
1528 #define __XSTORM_FCOE_AG_CONTEXT_AUX19_CF (0x3<<6)
1529 #define __XSTORM_FCOE_AG_CONTEXT_AUX19_CF_SHIFT 6
1531 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF (0x3<<0)
1532 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF_SHIFT 0
1533 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG_EN (0x1<<2)
1534 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG_EN_SHIFT 2
1535 #define __XSTORM_FCOE_AG_CONTEXT_AUX8_FLAG (0x1<<3)
1536 #define __XSTORM_FCOE_AG_CONTEXT_AUX8_FLAG_SHIFT 3
1537 #define __XSTORM_FCOE_AG_CONTEXT_AUX9_FLAG (0x1<<4)
1538 #define __XSTORM_FCOE_AG_CONTEXT_AUX9_FLAG_SHIFT 4
1539 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE1 (0x3<<5)
1540 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE1_SHIFT 5
1541 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1542 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1543 #elif defined(__LITTLE_ENDIAN)
1545 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF (0x3<<0)
1546 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF_SHIFT 0
1547 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG_EN (0x1<<2)
1548 #define __XSTORM_FCOE_AG_CONTEXT_DQ_SPARE_FLAG_EN_SHIFT 2
1549 #define __XSTORM_FCOE_AG_CONTEXT_AUX8_FLAG (0x1<<3)
1550 #define __XSTORM_FCOE_AG_CONTEXT_AUX8_FLAG_SHIFT 3
1551 #define __XSTORM_FCOE_AG_CONTEXT_AUX9_FLAG (0x1<<4)
1552 #define __XSTORM_FCOE_AG_CONTEXT_AUX9_FLAG_SHIFT 4
1553 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE1 (0x3<<5)
1554 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE1_SHIFT 5
1555 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1556 #define __XSTORM_FCOE_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1558 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0)
1559 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0
1560 #define __XSTORM_FCOE_AG_CONTEXT_AUX19_CF (0x3<<6)
1561 #define __XSTORM_FCOE_AG_CONTEXT_AUX19_CF_SHIFT 6
1566 #if defined(__BIG_ENDIAN)
1568 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE5 (0x3<<0)
1569 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE5_SHIFT 0
1570 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM0 (0x3F<<2)
1571 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM0_SHIFT 2
1572 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM1 (0x3F<<8)
1573 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM1_SHIFT 8
1574 #define __XSTORM_FCOE_AG_CONTEXT_CONFQ_DEC_RULE (0x3<<14)
1575 #define __XSTORM_FCOE_AG_CONTEXT_CONFQ_DEC_RULE_SHIFT 14
1577 #elif defined(__LITTLE_ENDIAN)
1580 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE5 (0x3<<0)
1581 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE5_SHIFT 0
1582 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM0 (0x3F<<2)
1583 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM0_SHIFT 2
1584 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM1 (0x3F<<8)
1585 #define XSTORM_FCOE_AG_CONTEXT_PHYSICAL_QUEUE_NUM1_SHIFT 8
1586 #define __XSTORM_FCOE_AG_CONTEXT_CONFQ_DEC_RULE (0x3<<14)
1587 #define __XSTORM_FCOE_AG_CONTEXT_CONFQ_DEC_RULE_SHIFT 14
1590 #if defined(__BIG_ENDIAN)
1592 #define __XSTORM_FCOE_AG_CONTEXT_AGG_VAL11_DECISION_RULE (0x7<<0)
1593 #define __XSTORM_FCOE_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0
1594 #define __XSTORM_FCOE_AG_CONTEXT_AUX13_FLAG (0x1<<3)
1595 #define __XSTORM_FCOE_AG_CONTEXT_AUX13_FLAG_SHIFT 3
1596 #define __XSTORM_FCOE_AG_CONTEXT_QUEUE0_CF (0x3<<4)
1597 #define __XSTORM_FCOE_AG_CONTEXT_QUEUE0_CF_SHIFT 4
1598 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE3 (0x3<<6)
1599 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE3_SHIFT 6
1600 #define XSTORM_FCOE_AG_CONTEXT_AUX1_CF (0x3<<8)
1601 #define XSTORM_FCOE_AG_CONTEXT_AUX1_CF_SHIFT 8
1602 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED62 (0x1<<10)
1603 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED62_SHIFT 10
1604 #define __XSTORM_FCOE_AG_CONTEXT_AUX1_CF_EN (0x1<<11)
1605 #define __XSTORM_FCOE_AG_CONTEXT_AUX1_CF_EN_SHIFT 11
1606 #define __XSTORM_FCOE_AG_CONTEXT_AUX10_FLAG (0x1<<12)
1607 #define __XSTORM_FCOE_AG_CONTEXT_AUX10_FLAG_SHIFT 12
1608 #define __XSTORM_FCOE_AG_CONTEXT_AUX11_FLAG (0x1<<13)
1609 #define __XSTORM_FCOE_AG_CONTEXT_AUX11_FLAG_SHIFT 13
1610 #define __XSTORM_FCOE_AG_CONTEXT_AUX12_FLAG (0x1<<14)
1611 #define __XSTORM_FCOE_AG_CONTEXT_AUX12_FLAG_SHIFT 14
1612 #define __XSTORM_FCOE_AG_CONTEXT_AUX2_FLAG (0x1<<15)
1613 #define __XSTORM_FCOE_AG_CONTEXT_AUX2_FLAG_SHIFT 15
1616 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE6 (0x7<<0)
1617 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE6_SHIFT 0
1618 #define __XSTORM_FCOE_AG_CONTEXT_XFRQ_DEC_RULE (0x7<<3)
1619 #define __XSTORM_FCOE_AG_CONTEXT_XFRQ_DEC_RULE_SHIFT 3
1620 #define __XSTORM_FCOE_AG_CONTEXT_SQ_DEC_RULE (0x3<<6)
1621 #define __XSTORM_FCOE_AG_CONTEXT_SQ_DEC_RULE_SHIFT 6
1622 #elif defined(__LITTLE_ENDIAN)
1624 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE6 (0x7<<0)
1625 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE6_SHIFT 0
1626 #define __XSTORM_FCOE_AG_CONTEXT_XFRQ_DEC_RULE (0x7<<3)
1627 #define __XSTORM_FCOE_AG_CONTEXT_XFRQ_DEC_RULE_SHIFT 3
1628 #define __XSTORM_FCOE_AG_CONTEXT_SQ_DEC_RULE (0x3<<6)
1629 #define __XSTORM_FCOE_AG_CONTEXT_SQ_DEC_RULE_SHIFT 6
1632 #define __XSTORM_FCOE_AG_CONTEXT_AGG_VAL11_DECISION_RULE (0x7<<0)
1633 #define __XSTORM_FCOE_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0
1634 #define __XSTORM_FCOE_AG_CONTEXT_AUX13_FLAG (0x1<<3)
1635 #define __XSTORM_FCOE_AG_CONTEXT_AUX13_FLAG_SHIFT 3
1636 #define __XSTORM_FCOE_AG_CONTEXT_QUEUE0_CF (0x3<<4)
1637 #define __XSTORM_FCOE_AG_CONTEXT_QUEUE0_CF_SHIFT 4
1638 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE3 (0x3<<6)
1639 #define XSTORM_FCOE_AG_CONTEXT_DECISION_RULE3_SHIFT 6
1640 #define XSTORM_FCOE_AG_CONTEXT_AUX1_CF (0x3<<8)
1641 #define XSTORM_FCOE_AG_CONTEXT_AUX1_CF_SHIFT 8
1642 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED62 (0x1<<10)
1643 #define __XSTORM_FCOE_AG_CONTEXT_RESERVED62_SHIFT 10
1644 #define __XSTORM_FCOE_AG_CONTEXT_AUX1_CF_EN (0x1<<11)
1645 #define __XSTORM_FCOE_AG_CONTEXT_AUX1_CF_EN_SHIFT 11
1646 #define __XSTORM_FCOE_AG_CONTEXT_AUX10_FLAG (0x1<<12)
1647 #define __XSTORM_FCOE_AG_CONTEXT_AUX10_FLAG_SHIFT 12
1648 #define __XSTORM_FCOE_AG_CONTEXT_AUX11_FLAG (0x1<<13)
1649 #define __XSTORM_FCOE_AG_CONTEXT_AUX11_FLAG_SHIFT 13
1650 #define __XSTORM_FCOE_AG_CONTEXT_AUX12_FLAG (0x1<<14)
1651 #define __XSTORM_FCOE_AG_CONTEXT_AUX12_FLAG_SHIFT 14
1652 #define __XSTORM_FCOE_AG_CONTEXT_AUX2_FLAG (0x1<<15)
1653 #define __XSTORM_FCOE_AG_CONTEXT_AUX2_FLAG_SHIFT 15
1655 #if defined(__BIG_ENDIAN)
1658 #elif defined(__LITTLE_ENDIAN)
1662 #if defined(__BIG_ENDIAN)
1666 #elif defined(__LITTLE_ENDIAN)
1671 #if defined(__BIG_ENDIAN)
1674 #elif defined(__LITTLE_ENDIAN)
1679 #define XSTORM_FCOE_AG_CONTEXT_AGG_MISC2 (0xFFFFFF<<0)
1680 #define XSTORM_FCOE_AG_CONTEXT_AGG_MISC2_SHIFT 0
1681 #define XSTORM_FCOE_AG_CONTEXT_AGG_MISC3 (0xFF<<24)
1682 #define XSTORM_FCOE_AG_CONTEXT_AGG_MISC3_SHIFT 24
1683 #if defined(__BIG_ENDIAN)
1686 #elif defined(__LITTLE_ENDIAN)
1690 #if defined(__BIG_ENDIAN)
1695 #elif defined(__LITTLE_ENDIAN)
1701 #if defined(__BIG_ENDIAN)
1704 #elif defined(__LITTLE_ENDIAN)
1719 #if defined(__BIG_ENDIAN)
1721 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_DA_TIMER_CF (0x3<<0)
1722 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_DA_TIMER_CF_SHIFT 0
1723 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED (0x3<<2)
1724 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_SHIFT 2
1725 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF (0x3<<4)
1726 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_SHIFT 4
1727 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_CLEAR_DA_TIMER_EN (0x1<<6)
1728 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_CLEAR_DA_TIMER_EN_SHIFT 6
1729 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_EXPIRATION_FLAG (0x1<<7)
1730 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_EXPIRATION_FLAG_SHIFT 7
1733 #elif defined(__LITTLE_ENDIAN)
1737 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_DA_TIMER_CF (0x3<<0)
1738 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_DA_TIMER_CF_SHIFT 0
1739 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED (0x3<<2)
1740 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_SHIFT 2
1741 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF (0x3<<4)
1742 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_SHIFT 4
1743 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_CLEAR_DA_TIMER_EN (0x1<<6)
1744 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_CLEAR_DA_TIMER_EN_SHIFT 6
1745 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_EXPIRATION_FLAG (0x1<<7)
1746 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_EXPIRATION_FLAG_SHIFT 7
1752 #if defined(__BIG_ENDIAN)
1756 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG (0x1<<0)
1757 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG_SHIFT 0
1758 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_UNBLOCKED (0x1<<1)
1759 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_UNBLOCKED_SHIFT 1
1760 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_TIMER_ACTIVE (0x1<<2)
1761 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_TIMER_ACTIVE_SHIFT 2
1762 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX3_FLAG (0x1<<3)
1763 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX3_FLAG_SHIFT 3
1764 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX4_FLAG (0x1<<4)
1765 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX4_FLAG_SHIFT 4
1766 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_ENABLE (0x1<<5)
1767 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_ENABLE_SHIFT 5
1768 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_EN (0x1<<6)
1769 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_EN_SHIFT 6
1770 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN (0x1<<7)
1771 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN_SHIFT 7
1772 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG_EN (0x1<<8)
1773 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG_EN_SHIFT 8
1774 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_FLAG (0x1<<9)
1775 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_FLAG_SHIFT 9
1776 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_RTO_CF (0x3<<10)
1777 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_RTO_CF_SHIFT 10
1778 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF (0x3<<12)
1779 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF_SHIFT 12
1780 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF (0x3<<14)
1781 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF_SHIFT 14
1782 #elif defined(__LITTLE_ENDIAN)
1784 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG (0x1<<0)
1785 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG_SHIFT 0
1786 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_UNBLOCKED (0x1<<1)
1787 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_UNBLOCKED_SHIFT 1
1788 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_TIMER_ACTIVE (0x1<<2)
1789 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_TIMER_ACTIVE_SHIFT 2
1790 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX3_FLAG (0x1<<3)
1791 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX3_FLAG_SHIFT 3
1792 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX4_FLAG (0x1<<4)
1793 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX4_FLAG_SHIFT 4
1794 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_ENABLE (0x1<<5)
1795 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DA_ENABLE_SHIFT 5
1796 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_EN (0x1<<6)
1797 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ACK_TO_FE_UPDATED_EN_SHIFT 6
1798 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN (0x1<<7)
1799 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SIDEBAND_SENT_CF_EN_SHIFT 7
1800 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG_EN (0x1<<8)
1801 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_FIN_FLAG_EN_SHIFT 8
1802 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_FLAG (0x1<<9)
1803 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX1_FLAG_SHIFT 9
1804 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_RTO_CF (0x3<<10)
1805 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_SET_RTO_CF_SHIFT 10
1806 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF (0x3<<12)
1807 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TS_TO_ECHO_UPDATED_CF_SHIFT 12
1808 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF (0x3<<14)
1809 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF_SHIFT 14
1817 #if defined(__BIG_ENDIAN)
1820 #elif defined(__LITTLE_ENDIAN)
1824 #if defined(__BIG_ENDIAN)
1828 u8 __force_pure_ack_cnt;
1829 #elif defined(__LITTLE_ENDIAN)
1830 u8 __force_pure_ack_cnt;
1836 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TS_TO_ECHO_CF_EN (0x1<<0)
1837 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TS_TO_ECHO_CF_EN_SHIFT 0
1838 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF_EN (0x1<<1)
1839 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TX_DEST_UPDATED_CF_EN_SHIFT 1
1840 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX9_CF_EN (0x1<<2)
1841 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX9_CF_EN_SHIFT 2
1842 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX10_CF_EN (0x1<<3)
1843 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX10_CF_EN_SHIFT 3
1844 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX6_FLAG (0x1<<4)
1845 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX6_FLAG_SHIFT 4
1846 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX7_FLAG (0x1<<5)
1847 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX7_FLAG_SHIFT 5
1848 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX5_CF (0x3<<6)
1849 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX5_CF_SHIFT 6
1850 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX9_CF (0x3<<8)
1851 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX9_CF_SHIFT 8
1852 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX10_CF (0x3<<10)
1853 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX10_CF_SHIFT 10
1854 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX11_CF (0x3<<12)
1855 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX11_CF_SHIFT 12
1856 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX12_CF (0x3<<14)
1857 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX12_CF_SHIFT 14
1858 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX13_CF (0x3<<16)
1859 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX13_CF_SHIFT 16
1860 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX14_CF (0x3<<18)
1861 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX14_CF_SHIFT 18
1862 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX15_CF (0x3<<20)
1863 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX15_CF_SHIFT 20
1864 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX16_CF (0x3<<22)
1865 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX16_CF_SHIFT 22
1866 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX17_CF (0x3<<24)
1867 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_AUX17_CF_SHIFT 24
1868 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ECE_FLAG (0x1<<26)
1869 #define XSTORM_TCP_TCP_AG_CONTEXT_SECTION_ECE_FLAG_SHIFT 26
1870 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_RESERVED71 (0x1<<27)
1871 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_RESERVED71_SHIFT 27
1872 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_FORCE_PURE_ACK_CNT_DIRTY (0x1<<28)
1873 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_FORCE_PURE_ACK_CNT_DIRTY_SHIFT 28
1874 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TCP_AUTO_STOP_FLAG (0x1<<29)
1875 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_TCP_AUTO_STOP_FLAG_SHIFT 29
1876 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DO_TS_UPDATE_FLAG (0x1<<30)
1877 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_DO_TS_UPDATE_FLAG_SHIFT 30
1878 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_CANCEL_RETRANSMIT_FLAG (0x1<<31)
1879 #define __XSTORM_TCP_TCP_AG_CONTEXT_SECTION_CANCEL_RETRANSMIT_FLAG_SHIFT 31
1880 #if defined(__BIG_ENDIAN)
1882 u16 __tcp_agg_vars7;
1883 #elif defined(__LITTLE_ENDIAN)
1884 u16 __tcp_agg_vars7;
1889 #if defined(__BIG_ENDIAN)
1893 #elif defined(__LITTLE_ENDIAN)
1904 #if defined(__BIG_ENDIAN)
1907 #define __XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1908 #define __XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1909 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1910 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1911 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
1912 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
1913 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
1914 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
1915 #define __XSTORM_ISCSI_AG_CONTEXT_MORE_TO_SEND_EN (0x1<<4)
1916 #define __XSTORM_ISCSI_AG_CONTEXT_MORE_TO_SEND_EN_SHIFT 4
1917 #define XSTORM_ISCSI_AG_CONTEXT_NAGLE_EN (0x1<<5)
1918 #define XSTORM_ISCSI_AG_CONTEXT_NAGLE_EN_SHIFT 5
1919 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG (0x1<<6)
1920 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG_SHIFT 6
1921 #define __XSTORM_ISCSI_AG_CONTEXT_UNA_GT_NXT_EN (0x1<<7)
1922 #define __XSTORM_ISCSI_AG_CONTEXT_UNA_GT_NXT_EN_SHIFT 7
1924 #elif defined(__LITTLE_ENDIAN)
1927 #define __XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
1928 #define __XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
1929 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
1930 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
1931 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
1932 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
1933 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
1934 #define XSTORM_ISCSI_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
1935 #define __XSTORM_ISCSI_AG_CONTEXT_MORE_TO_SEND_EN (0x1<<4)
1936 #define __XSTORM_ISCSI_AG_CONTEXT_MORE_TO_SEND_EN_SHIFT 4
1937 #define XSTORM_ISCSI_AG_CONTEXT_NAGLE_EN (0x1<<5)
1938 #define XSTORM_ISCSI_AG_CONTEXT_NAGLE_EN_SHIFT 5
1939 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG (0x1<<6)
1940 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG_SHIFT 6
1941 #define __XSTORM_ISCSI_AG_CONTEXT_UNA_GT_NXT_EN (0x1<<7)
1942 #define __XSTORM_ISCSI_AG_CONTEXT_UNA_GT_NXT_EN_SHIFT 7
1945 #if defined(__BIG_ENDIAN)
1949 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0)
1950 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0
1951 #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF (0x3<<6)
1952 #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF_SHIFT 6
1954 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF (0x3<<0)
1955 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_SHIFT 0
1956 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG_EN (0x1<<2)
1957 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG_EN_SHIFT 2
1958 #define __XSTORM_ISCSI_AG_CONTEXT_AUX8_FLAG (0x1<<3)
1959 #define __XSTORM_ISCSI_AG_CONTEXT_AUX8_FLAG_SHIFT 3
1960 #define __XSTORM_ISCSI_AG_CONTEXT_AUX9_FLAG (0x1<<4)
1961 #define __XSTORM_ISCSI_AG_CONTEXT_AUX9_FLAG_SHIFT 4
1962 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE1 (0x3<<5)
1963 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE1_SHIFT 5
1964 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1965 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1966 #elif defined(__LITTLE_ENDIAN)
1968 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF (0x3<<0)
1969 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_SHIFT 0
1970 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG_EN (0x1<<2)
1971 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_SPARE_FLAG_EN_SHIFT 2
1972 #define __XSTORM_ISCSI_AG_CONTEXT_AUX8_FLAG (0x1<<3)
1973 #define __XSTORM_ISCSI_AG_CONTEXT_AUX8_FLAG_SHIFT 3
1974 #define __XSTORM_ISCSI_AG_CONTEXT_AUX9_FLAG (0x1<<4)
1975 #define __XSTORM_ISCSI_AG_CONTEXT_AUX9_FLAG_SHIFT 4
1976 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE1 (0x3<<5)
1977 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE1_SHIFT 5
1978 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_EN (0x1<<7)
1979 #define __XSTORM_ISCSI_AG_CONTEXT_DQ_CF_EN_SHIFT 7
1981 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0)
1982 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0
1983 #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF (0x3<<6)
1984 #define __XSTORM_ISCSI_AG_CONTEXT_RX_TS_EN_CF_SHIFT 6
1989 #if defined(__BIG_ENDIAN)
1991 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE5 (0x3<<0)
1992 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE5_SHIFT 0
1993 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM0 (0x3F<<2)
1994 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM0_SHIFT 2
1995 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM1 (0x3F<<8)
1996 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM1_SHIFT 8
1997 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE2 (0x3<<14)
1998 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE2_SHIFT 14
2000 #elif defined(__LITTLE_ENDIAN)
2003 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE5 (0x3<<0)
2004 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE5_SHIFT 0
2005 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM0 (0x3F<<2)
2006 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM0_SHIFT 2
2007 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM1 (0x3F<<8)
2008 #define XSTORM_ISCSI_AG_CONTEXT_PHYSICAL_QUEUE_NUM1_SHIFT 8
2009 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE2 (0x3<<14)
2010 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE2_SHIFT 14
2013 #if defined(__BIG_ENDIAN)
2015 #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE (0x7<<0)
2016 #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0
2017 #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG (0x1<<3)
2018 #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG_SHIFT 3
2019 #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF (0x3<<4)
2020 #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF_SHIFT 4
2021 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3 (0x3<<6)
2022 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3_SHIFT 6
2023 #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF (0x3<<8)
2024 #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF_SHIFT 8
2025 #define __XSTORM_ISCSI_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK (0x1<<10)
2026 #define __XSTORM_ISCSI_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK_SHIFT 10
2027 #define __XSTORM_ISCSI_AG_CONTEXT_AUX1_CF_EN (0x1<<11)
2028 #define __XSTORM_ISCSI_AG_CONTEXT_AUX1_CF_EN_SHIFT 11
2029 #define __XSTORM_ISCSI_AG_CONTEXT_AUX10_FLAG (0x1<<12)
2030 #define __XSTORM_ISCSI_AG_CONTEXT_AUX10_FLAG_SHIFT 12
2031 #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG (0x1<<13)
2032 #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG_SHIFT 13
2033 #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG (0x1<<14)
2034 #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG_SHIFT 14
2035 #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN (0x1<<15)
2036 #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN_SHIFT 15
2039 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE6 (0x7<<0)
2040 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE6_SHIFT 0
2041 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE7 (0x7<<3)
2042 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE7_SHIFT 3
2043 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE4 (0x3<<6)
2044 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE4_SHIFT 6
2045 #elif defined(__LITTLE_ENDIAN)
2047 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE6 (0x7<<0)
2048 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE6_SHIFT 0
2049 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE7 (0x7<<3)
2050 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE7_SHIFT 3
2051 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE4 (0x3<<6)
2052 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE4_SHIFT 6
2055 #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE (0x7<<0)
2056 #define __XSTORM_ISCSI_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0
2057 #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG (0x1<<3)
2058 #define __XSTORM_ISCSI_AG_CONTEXT_AUX13_FLAG_SHIFT 3
2059 #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF (0x3<<4)
2060 #define __XSTORM_ISCSI_AG_CONTEXT_STORMS_SYNC_CF_SHIFT 4
2061 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3 (0x3<<6)
2062 #define XSTORM_ISCSI_AG_CONTEXT_DECISION_RULE3_SHIFT 6
2063 #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF (0x3<<8)
2064 #define XSTORM_ISCSI_AG_CONTEXT_AUX1_CF_SHIFT 8
2065 #define __XSTORM_ISCSI_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK (0x1<<10)
2066 #define __XSTORM_ISCSI_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK_SHIFT 10
2067 #define __XSTORM_ISCSI_AG_CONTEXT_AUX1_CF_EN (0x1<<11)
2068 #define __XSTORM_ISCSI_AG_CONTEXT_AUX1_CF_EN_SHIFT 11
2069 #define __XSTORM_ISCSI_AG_CONTEXT_AUX10_FLAG (0x1<<12)
2070 #define __XSTORM_ISCSI_AG_CONTEXT_AUX10_FLAG_SHIFT 12
2071 #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG (0x1<<13)
2072 #define __XSTORM_ISCSI_AG_CONTEXT_AUX11_FLAG_SHIFT 13
2073 #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG (0x1<<14)
2074 #define __XSTORM_ISCSI_AG_CONTEXT_AUX12_FLAG_SHIFT 14
2075 #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN (0x1<<15)
2076 #define __XSTORM_ISCSI_AG_CONTEXT_RX_WND_SCL_EN_SHIFT 15
2078 #if defined(__BIG_ENDIAN)
2081 #elif defined(__LITTLE_ENDIAN)
2085 #if defined(__BIG_ENDIAN)
2089 #elif defined(__LITTLE_ENDIAN)
2094 #if defined(__BIG_ENDIAN)
2097 #elif defined(__LITTLE_ENDIAN)
2102 #define XSTORM_ISCSI_AG_CONTEXT_AGG_MISC2 (0xFFFFFF<<0)
2103 #define XSTORM_ISCSI_AG_CONTEXT_AGG_MISC2_SHIFT 0
2104 #define XSTORM_ISCSI_AG_CONTEXT_AGG_MISC3 (0xFF<<24)
2105 #define XSTORM_ISCSI_AG_CONTEXT_AGG_MISC3_SHIFT 24
2106 #if defined(__BIG_ENDIAN)
2109 #elif defined(__LITTLE_ENDIAN)
2113 #if defined(__BIG_ENDIAN)
2118 #elif defined(__LITTLE_ENDIAN)
2124 #if defined(__BIG_ENDIAN)
2127 #elif defined(__LITTLE_ENDIAN)
2141 #if defined(__BIG_ENDIAN)
2144 #define __XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
2145 #define __XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
2146 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
2147 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
2148 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
2149 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
2150 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
2151 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
2152 #define __XSTORM_L5CM_AG_CONTEXT_MORE_TO_SEND_EN (0x1<<4)
2153 #define __XSTORM_L5CM_AG_CONTEXT_MORE_TO_SEND_EN_SHIFT 4
2154 #define XSTORM_L5CM_AG_CONTEXT_NAGLE_EN (0x1<<5)
2155 #define XSTORM_L5CM_AG_CONTEXT_NAGLE_EN_SHIFT 5
2156 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG (0x1<<6)
2157 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG_SHIFT 6
2158 #define __XSTORM_L5CM_AG_CONTEXT_UNA_GT_NXT_EN (0x1<<7)
2159 #define __XSTORM_L5CM_AG_CONTEXT_UNA_GT_NXT_EN_SHIFT 7
2161 #elif defined(__LITTLE_ENDIAN)
2164 #define __XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM0 (0x1<<0)
2165 #define __XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM0_SHIFT 0
2166 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM1 (0x1<<1)
2167 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM1_SHIFT 1
2168 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM2 (0x1<<2)
2169 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM2_SHIFT 2
2170 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM3 (0x1<<3)
2171 #define XSTORM_L5CM_AG_CONTEXT_EXISTS_IN_QM3_SHIFT 3
2172 #define __XSTORM_L5CM_AG_CONTEXT_MORE_TO_SEND_EN (0x1<<4)
2173 #define __XSTORM_L5CM_AG_CONTEXT_MORE_TO_SEND_EN_SHIFT 4
2174 #define XSTORM_L5CM_AG_CONTEXT_NAGLE_EN (0x1<<5)
2175 #define XSTORM_L5CM_AG_CONTEXT_NAGLE_EN_SHIFT 5
2176 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG (0x1<<6)
2177 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG_SHIFT 6
2178 #define __XSTORM_L5CM_AG_CONTEXT_UNA_GT_NXT_EN (0x1<<7)
2179 #define __XSTORM_L5CM_AG_CONTEXT_UNA_GT_NXT_EN_SHIFT 7
2182 #if defined(__BIG_ENDIAN)
2186 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0)
2187 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0
2188 #define __XSTORM_L5CM_AG_CONTEXT_RX_TS_EN_CF (0x3<<6)
2189 #define __XSTORM_L5CM_AG_CONTEXT_RX_TS_EN_CF_SHIFT 6
2191 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF (0x3<<0)
2192 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF_SHIFT 0
2193 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG_EN (0x1<<2)
2194 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG_EN_SHIFT 2
2195 #define __XSTORM_L5CM_AG_CONTEXT_AUX8_FLAG (0x1<<3)
2196 #define __XSTORM_L5CM_AG_CONTEXT_AUX8_FLAG_SHIFT 3
2197 #define __XSTORM_L5CM_AG_CONTEXT_AUX9_FLAG (0x1<<4)
2198 #define __XSTORM_L5CM_AG_CONTEXT_AUX9_FLAG_SHIFT 4
2199 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE1 (0x3<<5)
2200 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE1_SHIFT 5
2201 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF_EN (0x1<<7)
2202 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF_EN_SHIFT 7
2203 #elif defined(__LITTLE_ENDIAN)
2205 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF (0x3<<0)
2206 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF_SHIFT 0
2207 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG_EN (0x1<<2)
2208 #define __XSTORM_L5CM_AG_CONTEXT_DQ_SPARE_FLAG_EN_SHIFT 2
2209 #define __XSTORM_L5CM_AG_CONTEXT_AUX8_FLAG (0x1<<3)
2210 #define __XSTORM_L5CM_AG_CONTEXT_AUX8_FLAG_SHIFT 3
2211 #define __XSTORM_L5CM_AG_CONTEXT_AUX9_FLAG (0x1<<4)
2212 #define __XSTORM_L5CM_AG_CONTEXT_AUX9_FLAG_SHIFT 4
2213 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE1 (0x3<<5)
2214 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE1_SHIFT 5
2215 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF_EN (0x1<<7)
2216 #define XSTORM_L5CM_AG_CONTEXT_AUX4_CF_EN_SHIFT 7
2218 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM2 (0x3F<<0)
2219 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM2_SHIFT 0
2220 #define __XSTORM_L5CM_AG_CONTEXT_RX_TS_EN_CF (0x3<<6)
2221 #define __XSTORM_L5CM_AG_CONTEXT_RX_TS_EN_CF_SHIFT 6
2226 #if defined(__BIG_ENDIAN)
2228 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE5 (0x3<<0)
2229 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE5_SHIFT 0
2230 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM0 (0x3F<<2)
2231 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM0_SHIFT 2
2232 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM1 (0x3F<<8)
2233 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM1_SHIFT 8
2234 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE2 (0x3<<14)
2235 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE2_SHIFT 14
2237 #elif defined(__LITTLE_ENDIAN)
2240 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE5 (0x3<<0)
2241 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE5_SHIFT 0
2242 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM0 (0x3F<<2)
2243 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM0_SHIFT 2
2244 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM1 (0x3F<<8)
2245 #define XSTORM_L5CM_AG_CONTEXT_PHYSICAL_QUEUE_NUM1_SHIFT 8
2246 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE2 (0x3<<14)
2247 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE2_SHIFT 14
2250 #if defined(__BIG_ENDIAN)
2252 #define __XSTORM_L5CM_AG_CONTEXT_AGG_VAL11_DECISION_RULE (0x7<<0)
2253 #define __XSTORM_L5CM_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0
2254 #define __XSTORM_L5CM_AG_CONTEXT_AUX13_FLAG (0x1<<3)
2255 #define __XSTORM_L5CM_AG_CONTEXT_AUX13_FLAG_SHIFT 3
2256 #define __XSTORM_L5CM_AG_CONTEXT_STORMS_SYNC_CF (0x3<<4)
2257 #define __XSTORM_L5CM_AG_CONTEXT_STORMS_SYNC_CF_SHIFT 4
2258 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE3 (0x3<<6)
2259 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE3_SHIFT 6
2260 #define XSTORM_L5CM_AG_CONTEXT_AUX1_CF (0x3<<8)
2261 #define XSTORM_L5CM_AG_CONTEXT_AUX1_CF_SHIFT 8
2262 #define __XSTORM_L5CM_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK (0x1<<10)
2263 #define __XSTORM_L5CM_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK_SHIFT 10
2264 #define __XSTORM_L5CM_AG_CONTEXT_AUX1_CF_EN (0x1<<11)
2265 #define __XSTORM_L5CM_AG_CONTEXT_AUX1_CF_EN_SHIFT 11
2266 #define __XSTORM_L5CM_AG_CONTEXT_AUX10_FLAG (0x1<<12)
2267 #define __XSTORM_L5CM_AG_CONTEXT_AUX10_FLAG_SHIFT 12
2268 #define __XSTORM_L5CM_AG_CONTEXT_AUX11_FLAG (0x1<<13)
2269 #define __XSTORM_L5CM_AG_CONTEXT_AUX11_FLAG_SHIFT 13
2270 #define __XSTORM_L5CM_AG_CONTEXT_AUX12_FLAG (0x1<<14)
2271 #define __XSTORM_L5CM_AG_CONTEXT_AUX12_FLAG_SHIFT 14
2272 #define __XSTORM_L5CM_AG_CONTEXT_RX_WND_SCL_EN (0x1<<15)
2273 #define __XSTORM_L5CM_AG_CONTEXT_RX_WND_SCL_EN_SHIFT 15
2276 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE6 (0x7<<0)
2277 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE6_SHIFT 0
2278 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE7 (0x7<<3)
2279 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE7_SHIFT 3
2280 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE4 (0x3<<6)
2281 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE4_SHIFT 6
2282 #elif defined(__LITTLE_ENDIAN)
2284 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE6 (0x7<<0)
2285 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE6_SHIFT 0
2286 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE7 (0x7<<3)
2287 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE7_SHIFT 3
2288 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE4 (0x3<<6)
2289 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE4_SHIFT 6
2292 #define __XSTORM_L5CM_AG_CONTEXT_AGG_VAL11_DECISION_RULE (0x7<<0)
2293 #define __XSTORM_L5CM_AG_CONTEXT_AGG_VAL11_DECISION_RULE_SHIFT 0
2294 #define __XSTORM_L5CM_AG_CONTEXT_AUX13_FLAG (0x1<<3)
2295 #define __XSTORM_L5CM_AG_CONTEXT_AUX13_FLAG_SHIFT 3
2296 #define __XSTORM_L5CM_AG_CONTEXT_STORMS_SYNC_CF (0x3<<4)
2297 #define __XSTORM_L5CM_AG_CONTEXT_STORMS_SYNC_CF_SHIFT 4
2298 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE3 (0x3<<6)
2299 #define XSTORM_L5CM_AG_CONTEXT_DECISION_RULE3_SHIFT 6
2300 #define XSTORM_L5CM_AG_CONTEXT_AUX1_CF (0x3<<8)
2301 #define XSTORM_L5CM_AG_CONTEXT_AUX1_CF_SHIFT 8
2302 #define __XSTORM_L5CM_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK (0x1<<10)
2303 #define __XSTORM_L5CM_AG_CONTEXT_COMPLETION_SEQ_DECISION_MASK_SHIFT 10
2304 #define __XSTORM_L5CM_AG_CONTEXT_AUX1_CF_EN (0x1<<11)
2305 #define __XSTORM_L5CM_AG_CONTEXT_AUX1_CF_EN_SHIFT 11
2306 #define __XSTORM_L5CM_AG_CONTEXT_AUX10_FLAG (0x1<<12)
2307 #define __XSTORM_L5CM_AG_CONTEXT_AUX10_FLAG_SHIFT 12
2308 #define __XSTORM_L5CM_AG_CONTEXT_AUX11_FLAG (0x1<<13)
2309 #define __XSTORM_L5CM_AG_CONTEXT_AUX11_FLAG_SHIFT 13
2310 #define __XSTORM_L5CM_AG_CONTEXT_AUX12_FLAG (0x1<<14)
2311 #define __XSTORM_L5CM_AG_CONTEXT_AUX12_FLAG_SHIFT 14
2312 #define __XSTORM_L5CM_AG_CONTEXT_RX_WND_SCL_EN (0x1<<15)
2313 #define __XSTORM_L5CM_AG_CONTEXT_RX_WND_SCL_EN_SHIFT 15
2315 #if defined(__BIG_ENDIAN)
2318 #elif defined(__LITTLE_ENDIAN)
2322 #if defined(__BIG_ENDIAN)
2326 #elif defined(__LITTLE_ENDIAN)
2331 #if defined(__BIG_ENDIAN)
2334 #elif defined(__LITTLE_ENDIAN)
2339 #define XSTORM_L5CM_AG_CONTEXT_AGG_MISC2 (0xFFFFFF<<0)
2340 #define XSTORM_L5CM_AG_CONTEXT_AGG_MISC2_SHIFT 0
2341 #define XSTORM_L5CM_AG_CONTEXT_AGG_MISC3 (0xFF<<24)
2342 #define XSTORM_L5CM_AG_CONTEXT_AGG_MISC3_SHIFT 24
2343 #if defined(__BIG_ENDIAN)
2346 #elif defined(__LITTLE_ENDIAN)
2350 #if defined(__BIG_ENDIAN)
2355 #elif defined(__LITTLE_ENDIAN)
2361 #if defined(__BIG_ENDIAN)
2364 #elif defined(__LITTLE_ENDIAN)
2433 #define FCOE_FCP_RSP_FLAGS_FCP_RSP_LEN_VALID (0x1<<0)
2434 #define FCOE_FCP_RSP_FLAGS_FCP_RSP_LEN_VALID_SHIFT 0
2435 #define FCOE_FCP_RSP_FLAGS_FCP_SNS_LEN_VALID (0x1<<1)
2436 #define FCOE_FCP_RSP_FLAGS_FCP_SNS_LEN_VALID_SHIFT 1
2437 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_OVER (0x1<<2)
2438 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_OVER_SHIFT 2
2439 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_UNDER (0x1<<3)
2440 #define FCOE_FCP_RSP_FLAGS_FCP_RESID_UNDER_SHIFT 3
2441 #define FCOE_FCP_RSP_FLAGS_FCP_CONF_REQ (0x1<<4)
2442 #define FCOE_FCP_RSP_FLAGS_FCP_CONF_REQ_SHIFT 4
2443 #define FCOE_FCP_RSP_FLAGS_FCP_BIDI_FLAGS (0x7<<5)
2444 #define FCOE_FCP_RSP_FLAGS_FCP_BIDI_FLAGS_SHIFT 5
2611 #define FCOE_KCQE_RESERVED0 (0x7<<0)
2612 #define FCOE_KCQE_RESERVED0_SHIFT 0
2613 #define FCOE_KCQE_RAMROD_COMPLETION (0x1<<3)
2614 #define FCOE_KCQE_RAMROD_COMPLETION_SHIFT 3
2615 #define FCOE_KCQE_LAYER_CODE (0x7<<4)
2616 #define FCOE_KCQE_LAYER_CODE_SHIFT 4
2617 #define FCOE_KCQE_LINKED_WITH_NEXT (0x1<<7)
2618 #define FCOE_KCQE_LINKED_WITH_NEXT_SHIFT 7
2629 #define FCOE_KWQE_HEADER_RESERVED0 (0xF<<0)
2630 #define FCOE_KWQE_HEADER_RESERVED0_SHIFT 0
2631 #define FCOE_KWQE_HEADER_LAYER_CODE (0x7<<4)
2632 #define FCOE_KWQE_HEADER_LAYER_CODE_SHIFT 4
2633 #define FCOE_KWQE_HEADER_RESERVED1 (0x1<<7)
2634 #define FCOE_KWQE_HEADER_RESERVED1_SHIFT 7
2654 #define FCOE_KWQE_INIT1_LOG_PAGE_SIZE (0xF<<0)
2655 #define FCOE_KWQE_INIT1_LOG_PAGE_SIZE_SHIFT 0
2656 #define FCOE_KWQE_INIT1_LOG_CACHED_PBES_PER_FUNC (0x7<<4)
2657 #define FCOE_KWQE_INIT1_LOG_CACHED_PBES_PER_FUNC_SHIFT 4
2658 #define FCOE_KWQE_INIT1_RESERVED1 (0x1<<7)
2659 #define FCOE_KWQE_INIT1_RESERVED1_SHIFT 7
2727 #define FCOE_KWQE_CONN_OFFLOAD3_VLAN_ID (0xFFF<<0)
2728 #define FCOE_KWQE_CONN_OFFLOAD3_VLAN_ID_SHIFT 0
2729 #define FCOE_KWQE_CONN_OFFLOAD3_CFI (0x1<<12)
2730 #define FCOE_KWQE_CONN_OFFLOAD3_CFI_SHIFT 12
2731 #define FCOE_KWQE_CONN_OFFLOAD3_PRIORITY (0x7<<13)
2732 #define FCOE_KWQE_CONN_OFFLOAD3_PRIORITY_SHIFT 13
2738 #define FCOE_KWQE_CONN_OFFLOAD3_B_MUL_N_PORT_IDS (0x1<<0)
2739 #define FCOE_KWQE_CONN_OFFLOAD3_B_MUL_N_PORT_IDS_SHIFT 0
2740 #define FCOE_KWQE_CONN_OFFLOAD3_B_E_D_TOV_RES (0x1<<1)
2741 #define FCOE_KWQE_CONN_OFFLOAD3_B_E_D_TOV_RES_SHIFT 1
2742 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONT_INCR_SEQ_CNT (0x1<<2)
2743 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONT_INCR_SEQ_CNT_SHIFT 2
2744 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONF_REQ (0x1<<3)
2745 #define FCOE_KWQE_CONN_OFFLOAD3_B_CONF_REQ_SHIFT 3
2746 #define FCOE_KWQE_CONN_OFFLOAD3_B_REC_VALID (0x1<<4)
2747 #define FCOE_KWQE_CONN_OFFLOAD3_B_REC_VALID_SHIFT 4
2748 #define FCOE_KWQE_CONN_OFFLOAD3_B_C2_VALID (0x1<<5)
2749 #define FCOE_KWQE_CONN_OFFLOAD3_B_C2_VALID_SHIFT 5
2750 #define FCOE_KWQE_CONN_OFFLOAD3_B_ACK_0 (0x1<<6)
2751 #define FCOE_KWQE_CONN_OFFLOAD3_B_ACK_0_SHIFT 6
2752 #define FCOE_KWQE_CONN_OFFLOAD3_B_VLAN_FLAG (0x1<<7)
2753 #define FCOE_KWQE_CONN_OFFLOAD3_B_VLAN_FLAG_SHIFT 7
2793 #define FCOE_KWQE_CONN_ENABLE_DISABLE_VLAN_ID (0xFFF<<0)
2794 #define FCOE_KWQE_CONN_ENABLE_DISABLE_VLAN_ID_SHIFT 0
2795 #define FCOE_KWQE_CONN_ENABLE_DISABLE_CFI (0x1<<12)
2796 #define FCOE_KWQE_CONN_ENABLE_DISABLE_CFI_SHIFT 12
2797 #define FCOE_KWQE_CONN_ENABLE_DISABLE_PRIORITY (0x7<<13)
2798 #define FCOE_KWQE_CONN_ENABLE_DISABLE_PRIORITY_SHIFT 13
2898 #define FCOE_S_STAT_CTX_ACTIVE (0x1<<0)
2899 #define FCOE_S_STAT_CTX_ACTIVE_SHIFT 0
2900 #define FCOE_S_STAT_CTX_ACK_ABORT_SEQ_COND (0x1<<1)
2901 #define FCOE_S_STAT_CTX_ACK_ABORT_SEQ_COND_SHIFT 1
2902 #define FCOE_S_STAT_CTX_ABTS_PERFORMED (0x1<<2)
2903 #define FCOE_S_STAT_CTX_ABTS_PERFORMED_SHIFT 2
2904 #define FCOE_S_STAT_CTX_SEQ_TIMEOUT (0x1<<3)
2905 #define FCOE_S_STAT_CTX_SEQ_TIMEOUT_SHIFT 3
2906 #define FCOE_S_STAT_CTX_P_RJT (0x1<<4)
2907 #define FCOE_S_STAT_CTX_P_RJT_SHIFT 4
2908 #define FCOE_S_STAT_CTX_ACK_EOFT (0x1<<5)
2909 #define FCOE_S_STAT_CTX_ACK_EOFT_SHIFT 5
2910 #define FCOE_S_STAT_CTX_RSRV1 (0x3<<6)
2911 #define FCOE_S_STAT_CTX_RSRV1_SHIFT 6
2942 #define FCOE_SQE_TASK_ID (0x7FFF<<0)
2943 #define FCOE_SQE_TASK_ID_SHIFT 0
2944 #define FCOE_SQE_TOGGLE_BIT (0x1<<15)
2945 #define FCOE_SQE_TOGGLE_BIT_SHIFT 15
2975 #define FCOE_TCE_TX_WR_RX_RD_CONST_TASK_TYPE (0x7<<0)
2976 #define FCOE_TCE_TX_WR_RX_RD_CONST_TASK_TYPE_SHIFT 0
2977 #define FCOE_TCE_TX_WR_RX_RD_CONST_DEV_TYPE (0x1<<3)
2978 #define FCOE_TCE_TX_WR_RX_RD_CONST_DEV_TYPE_SHIFT 3
2979 #define FCOE_TCE_TX_WR_RX_RD_CONST_CLASS_TYPE (0x1<<4)
2980 #define FCOE_TCE_TX_WR_RX_RD_CONST_CLASS_TYPE_SHIFT 4
2981 #define FCOE_TCE_TX_WR_RX_RD_CONST_CACHED_SGE (0x3<<5)
2982 #define FCOE_TCE_TX_WR_RX_RD_CONST_CACHED_SGE_SHIFT 5
2983 #define FCOE_TCE_TX_WR_RX_RD_CONST_SUPPORT_REC_TOV (0x1<<7)
2984 #define FCOE_TCE_TX_WR_RX_RD_CONST_SUPPORT_REC_TOV_SHIFT 7
2986 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_VALID (0x1<<0)
2987 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_VALID_SHIFT 0
2988 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_STATE (0xF<<1)
2989 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_STATE_SHIFT 1
2990 #define FCOE_TCE_TX_WR_RX_RD_CONST_RSRV1 (0x1<<5)
2991 #define FCOE_TCE_TX_WR_RX_RD_CONST_RSRV1_SHIFT 5
2992 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_SEQ_INIT (0x1<<6)
2993 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_SEQ_INIT_SHIFT 6
2994 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_COMP_TRNS (0x1<<7)
2995 #define FCOE_TCE_TX_WR_RX_RD_CONST_TX_COMP_TRNS_SHIFT 7
3014 #define FCOE_TCE_RX_WR_TX_RD_CONST_CID (0xFFFFFF<<0)
3015 #define FCOE_TCE_RX_WR_TX_RD_CONST_CID_SHIFT 0
3016 #define FCOE_TCE_RX_WR_TX_RD_CONST_RSRV0 (0xFF<<24)
3017 #define FCOE_TCE_RX_WR_TX_RD_CONST_RSRV0_SHIFT 24
3025 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV1 (0xF<<0)
3026 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV1_SHIFT 0
3027 #define FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE (0x7<<4)
3028 #define FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE_SHIFT 4
3029 #define FCOE_TCE_RX_WR_TX_RD_VAR_CONF_REQ (0x1<<7)
3030 #define FCOE_TCE_RX_WR_TX_RD_VAR_CONF_REQ_SHIFT 7
3031 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_STATE (0xF<<8)
3032 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_STATE_SHIFT 8
3033 #define FCOE_TCE_RX_WR_TX_RD_VAR_EXP_FIRST_FRAME (0x1<<12)
3034 #define FCOE_TCE_RX_WR_TX_RD_VAR_EXP_FIRST_FRAME_SHIFT 12
3035 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_SEQ_INIT (0x1<<13)
3036 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_SEQ_INIT_SHIFT 13
3037 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV2 (0x1<<14)
3038 #define FCOE_TCE_RX_WR_TX_RD_VAR_RSRV2_SHIFT 14
3039 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_VALID (0x1<<15)
3040 #define FCOE_TCE_RX_WR_TX_RD_VAR_RX_VALID_SHIFT 15
3085 #define FCOE_XFRQE_TASK_ID (0x7FFF<<0)
3086 #define FCOE_XFRQE_TASK_ID_SHIFT 0
3087 #define FCOE_XFRQE_TOGGLE_BIT (0x1<<15)
3088 #define FCOE_XFRQE_TOGGLE_BIT_SHIFT 15
3131 #if defined(__BIG_ENDIAN)
3132 u8 mid_seq_proc_flag;
3135 u8 en_cached_tce_flag;
3136 #elif defined(__LITTLE_ENDIAN)
3137 u8 en_cached_tce_flag;
3140 u8 mid_seq_proc_flag;
3142 #if defined(__BIG_ENDIAN)
3144 u8 cached_conn_flag;
3146 #elif defined(__LITTLE_ENDIAN)
3148 u8 cached_conn_flag;
3151 #if defined(__BIG_ENDIAN)
3152 u16 dma_tce_ram_addr;
3154 #elif defined(__LITTLE_ENDIAN)
3156 u16 dma_tce_ram_addr;
3158 #if defined(__BIG_ENDIAN)
3161 #elif defined(__LITTLE_ENDIAN)
3173 #if defined(__BIG_ENDIAN)
3176 #define USTORM_FCOE_PARAMS_B_MUL_N_PORT_IDS (0x1<<0)
3177 #define USTORM_FCOE_PARAMS_B_MUL_N_PORT_IDS_SHIFT 0
3178 #define USTORM_FCOE_PARAMS_B_E_D_TOV_RES (0x1<<1)
3179 #define USTORM_FCOE_PARAMS_B_E_D_TOV_RES_SHIFT 1
3180 #define USTORM_FCOE_PARAMS_B_CONT_INCR_SEQ_CNT (0x1<<2)
3181 #define USTORM_FCOE_PARAMS_B_CONT_INCR_SEQ_CNT_SHIFT 2
3182 #define USTORM_FCOE_PARAMS_B_CONF_REQ (0x1<<3)
3183 #define USTORM_FCOE_PARAMS_B_CONF_REQ_SHIFT 3
3184 #define USTORM_FCOE_PARAMS_B_REC_VALID (0x1<<4)
3185 #define USTORM_FCOE_PARAMS_B_REC_VALID_SHIFT 4
3186 #define USTORM_FCOE_PARAMS_B_CQ_TOGGLE_BIT (0x1<<5)
3187 #define USTORM_FCOE_PARAMS_B_CQ_TOGGLE_BIT_SHIFT 5
3188 #define USTORM_FCOE_PARAMS_B_XFRQ_TOGGLE_BIT (0x1<<6)
3189 #define USTORM_FCOE_PARAMS_B_XFRQ_TOGGLE_BIT_SHIFT 6
3190 #define USTORM_FCOE_PARAMS_RSRV0 (0x1FF<<7)
3191 #define USTORM_FCOE_PARAMS_RSRV0_SHIFT 7
3192 #elif defined(__LITTLE_ENDIAN)
3194 #define USTORM_FCOE_PARAMS_B_MUL_N_PORT_IDS (0x1<<0)
3195 #define USTORM_FCOE_PARAMS_B_MUL_N_PORT_IDS_SHIFT 0
3196 #define USTORM_FCOE_PARAMS_B_E_D_TOV_RES (0x1<<1)
3197 #define USTORM_FCOE_PARAMS_B_E_D_TOV_RES_SHIFT 1
3198 #define USTORM_FCOE_PARAMS_B_CONT_INCR_SEQ_CNT (0x1<<2)
3199 #define USTORM_FCOE_PARAMS_B_CONT_INCR_SEQ_CNT_SHIFT 2
3200 #define USTORM_FCOE_PARAMS_B_CONF_REQ (0x1<<3)
3201 #define USTORM_FCOE_PARAMS_B_CONF_REQ_SHIFT 3
3202 #define USTORM_FCOE_PARAMS_B_REC_VALID (0x1<<4)
3203 #define USTORM_FCOE_PARAMS_B_REC_VALID_SHIFT 4
3204 #define USTORM_FCOE_PARAMS_B_CQ_TOGGLE_BIT (0x1<<5)
3205 #define USTORM_FCOE_PARAMS_B_CQ_TOGGLE_BIT_SHIFT 5
3206 #define USTORM_FCOE_PARAMS_B_XFRQ_TOGGLE_BIT (0x1<<6)
3207 #define USTORM_FCOE_PARAMS_B_XFRQ_TOGGLE_BIT_SHIFT 6
3208 #define USTORM_FCOE_PARAMS_RSRV0 (0x1FF<<7)
3209 #define USTORM_FCOE_PARAMS_RSRV0_SHIFT 7
3212 #if defined(__BIG_ENDIAN)
3217 #elif defined(__LITTLE_ENDIAN)
3223 #if defined(__BIG_ENDIAN)
3224 u16 rx_total_conc_seqs;
3225 u16 rx_max_fc_pay_len;
3226 #elif defined(__LITTLE_ENDIAN)
3227 u16 rx_max_fc_pay_len;
3228 u16 rx_total_conc_seqs;
3230 #if defined(__BIG_ENDIAN)
3231 u8 task_pbe_idx_off;
3232 u8 task_in_page_log_size;
3233 u16 rx_max_conc_seqs;
3234 #elif defined(__LITTLE_ENDIAN)
3235 u16 rx_max_conc_seqs;
3236 u8 task_in_page_log_size;
3237 u8 task_pbe_idx_off;
3246 #define FCOE_IDX16_FIELDS_IDX (0x7FFF<<0)
3247 #define FCOE_IDX16_FIELDS_IDX_SHIFT 0
3248 #define FCOE_IDX16_FIELDS_MSB (0x1<<15)
3249 #define FCOE_IDX16_FIELDS_MSB_SHIFT 15
3264 #if defined(__BIG_ENDIAN)
3268 #elif defined(__LITTLE_ENDIAN)
3326 #if defined(__BIG_ENDIAN)
3329 #elif defined(__LITTLE_ENDIAN)
3333 #if defined(__BIG_ENDIAN)
3336 #elif defined(__LITTLE_ENDIAN)
3340 #if defined(__BIG_ENDIAN)
3342 u16 hc_cram_address;
3343 #elif defined(__LITTLE_ENDIAN)
3344 u16 hc_cram_address;
3347 #if defined(__BIG_ENDIAN)
3348 u16 sq_xfrq_lcq_confq_size;
3350 #elif defined(__LITTLE_ENDIAN)
3352 u16 sq_xfrq_lcq_confq_size;
3354 #if defined(__BIG_ENDIAN)
3359 #elif defined(__LITTLE_ENDIAN)
3365 #if defined(__BIG_ENDIAN)
3367 u16 pbf_ack_ram_addr;
3368 #elif defined(__LITTLE_ENDIAN)
3369 u16 pbf_ack_ram_addr;
3387 #if defined(__BIG_ENDIAN)
3392 #elif defined(__LITTLE_ENDIAN)
3398 #if defined(__BIG_ENDIAN)
3403 #elif defined(__LITTLE_ENDIAN)
3409 #if defined(__BIG_ENDIAN)
3410 u16 reserved_vlan_type;
3412 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_VLAN_ID (0xFFF<<0)
3413 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_VLAN_ID_SHIFT 0
3414 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_CFI (0x1<<12)
3415 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_CFI_SHIFT 12
3416 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_PRIORITY (0x7<<13)
3417 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_PRIORITY_SHIFT 13
3418 #elif defined(__LITTLE_ENDIAN)
3420 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_VLAN_ID (0xFFF<<0)
3421 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_VLAN_ID_SHIFT 0
3422 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_CFI (0x1<<12)
3423 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_CFI_SHIFT 12
3424 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_PRIORITY (0x7<<13)
3425 #define XSTORM_FCOE_ETH_CONTEXT_SECTION_PRIORITY_SHIFT 13
3426 u16 reserved_vlan_type;
3428 #if defined(__BIG_ENDIAN)
3433 #elif defined(__LITTLE_ENDIAN)
3446 #define XSTORM_FCOE_CONTEXT_FLAGS_B_PROC_Q (0x3<<0)
3447 #define XSTORM_FCOE_CONTEXT_FLAGS_B_PROC_Q_SHIFT 0
3448 #define XSTORM_FCOE_CONTEXT_FLAGS_B_MID_SEQ (0x1<<2)
3449 #define XSTORM_FCOE_CONTEXT_FLAGS_B_MID_SEQ_SHIFT 2
3450 #define XSTORM_FCOE_CONTEXT_FLAGS_B_BLOCK_SQ (0x1<<3)
3451 #define XSTORM_FCOE_CONTEXT_FLAGS_B_BLOCK_SQ_SHIFT 3
3452 #define XSTORM_FCOE_CONTEXT_FLAGS_B_REC_SUPPORT (0x1<<4)
3453 #define XSTORM_FCOE_CONTEXT_FLAGS_B_REC_SUPPORT_SHIFT 4
3454 #define XSTORM_FCOE_CONTEXT_FLAGS_B_SQ_TOGGLE (0x1<<5)
3455 #define XSTORM_FCOE_CONTEXT_FLAGS_B_SQ_TOGGLE_SHIFT 5
3456 #define XSTORM_FCOE_CONTEXT_FLAGS_B_XFRQ_TOGGLE (0x1<<6)
3457 #define XSTORM_FCOE_CONTEXT_FLAGS_B_XFRQ_TOGGLE_SHIFT 6
3458 #define XSTORM_FCOE_CONTEXT_FLAGS_B_VNTAG_VLAN (0x1<<7)
3459 #define XSTORM_FCOE_CONTEXT_FLAGS_B_VNTAG_VLAN_SHIFT 7
3472 #if defined(__BIG_ENDIAN)
3476 #elif defined(__LITTLE_ENDIAN)
3483 #if defined(__BIG_ENDIAN)
3484 u16 num_of_pending_tasks;
3486 #elif defined(__LITTLE_ENDIAN)
3488 u16 num_of_pending_tasks;
3492 #if defined(__BIG_ENDIAN)
3493 u16 task_pbe_idx_off;
3495 #elif defined(__LITTLE_ENDIAN)
3497 u16 task_pbe_idx_off;
3501 #if defined(__BIG_ENDIAN)
3504 #elif defined(__LITTLE_ENDIAN)
3515 #define XSTORM_FCOE_VLAN_CONF_PRIORITY (0x7<<0)
3516 #define XSTORM_FCOE_VLAN_CONF_PRIORITY_SHIFT 0
3517 #define XSTORM_FCOE_VLAN_CONF_INNER_VLAN_FLAG (0x1<<3)
3518 #define XSTORM_FCOE_VLAN_CONF_INNER_VLAN_FLAG_SHIFT 3
3519 #define XSTORM_FCOE_VLAN_CONF_RESERVED (0xF<<4)
3520 #define XSTORM_FCOE_VLAN_CONF_RESERVED_SHIFT 4
3528 #define FCOE_VLAN_FIELDS_VID (0xFFF<<0)
3529 #define FCOE_VLAN_FIELDS_VID_SHIFT 0
3530 #define FCOE_VLAN_FIELDS_CLI (0x1<<12)
3531 #define FCOE_VLAN_FIELDS_CLI_SHIFT 12
3532 #define FCOE_VLAN_FIELDS_PRI (0x7<<13)
3533 #define FCOE_VLAN_FIELDS_PRI_SHIFT 13
3556 #if defined(__BIG_ENDIAN)
3559 #elif defined(__LITTLE_ENDIAN)
3563 #if defined(__BIG_ENDIAN)
3566 #elif defined(__LITTLE_ENDIAN)
3570 #if defined(__BIG_ENDIAN)
3571 u16 sq_xfrq_lcq_confq_size;
3572 u16 tx_max_fc_pay_len;
3573 #elif defined(__LITTLE_ENDIAN)
3574 u16 tx_max_fc_pay_len;
3575 u16 sq_xfrq_lcq_confq_size;
3578 #if defined(__BIG_ENDIAN)
3583 #elif defined(__LITTLE_ENDIAN)
3589 #if defined(__BIG_ENDIAN)
3593 #elif defined(__LITTLE_ENDIAN)
3603 #if defined(__BIG_ENDIAN)
3604 u8 tx_max_conc_seqs_c3;
3607 u8 data_pb_cmd_size;
3608 #elif defined(__LITTLE_ENDIAN)
3609 u8 data_pb_cmd_size;
3612 u8 tx_max_conc_seqs_c3;
3614 #if defined(__BIG_ENDIAN)
3615 u16 fcoe_tx_stat_params_ram_addr;
3616 u16 fcoe_tx_fc_seq_ram_addr;
3617 #elif defined(__LITTLE_ENDIAN)
3618 u16 fcoe_tx_fc_seq_ram_addr;
3619 u16 fcoe_tx_stat_params_ram_addr;
3621 #if defined(__BIG_ENDIAN)
3622 u8 fcp_cmd_line_credit;
3625 #elif defined(__LITTLE_ENDIAN)
3628 u8 fcp_cmd_line_credit;
3630 #if defined(__BIG_ENDIAN)
3634 #elif defined(__LITTLE_ENDIAN)
3639 #if defined(__BIG_ENDIAN)
3640 u16 fcp_cmd_frame_size;
3642 #elif defined(__LITTLE_ENDIAN)
3644 u16 fcp_cmd_frame_size;
3646 #if defined(__BIG_ENDIAN)
3651 #elif defined(__LITTLE_ENDIAN)
3711 #if defined(__BIG_ENDIAN)
3714 #elif defined(__LITTLE_ENDIAN)
3745 #if defined(__BIG_ENDIAN)
3748 #elif defined(__LITTLE_ENDIAN)
3754 #if defined(__BIG_ENDIAN)
3756 u8 cq_proc_en_bit_map;
3757 u8 cq_pend_comp_itt_valid_bit_map;
3759 #elif defined(__LITTLE_ENDIAN)
3761 u8 cq_pend_comp_itt_valid_bit_map;
3762 u8 cq_proc_en_bit_map;
3766 #if defined(__BIG_ENDIAN)
3768 #define CSTORM_ISCSI_ST_CONTEXT_DATA_DIGEST_EN (0x1<<0)
3769 #define CSTORM_ISCSI_ST_CONTEXT_DATA_DIGEST_EN_SHIFT 0
3770 #define CSTORM_ISCSI_ST_CONTEXT_HDR_DIGEST_EN (0x1<<1)
3771 #define CSTORM_ISCSI_ST_CONTEXT_HDR_DIGEST_EN_SHIFT 1
3772 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_CTXT_VALID (0x1<<2)
3773 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_CTXT_VALID_SHIFT 2
3774 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_LCL_CMPLN_FLG (0x1<<3)
3775 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_LCL_CMPLN_FLG_SHIFT 3
3776 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_WRITE_TASK (0x1<<4)
3777 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_WRITE_TASK_SHIFT 4
3778 #define CSTORM_ISCSI_ST_CONTEXT_CTRL_FLAGS_RSRV (0x7FF<<5)
3779 #define CSTORM_ISCSI_ST_CONTEXT_CTRL_FLAGS_RSRV_SHIFT 5
3781 #elif defined(__LITTLE_ENDIAN)
3784 #define CSTORM_ISCSI_ST_CONTEXT_DATA_DIGEST_EN (0x1<<0)
3785 #define CSTORM_ISCSI_ST_CONTEXT_DATA_DIGEST_EN_SHIFT 0
3786 #define CSTORM_ISCSI_ST_CONTEXT_HDR_DIGEST_EN (0x1<<1)
3787 #define CSTORM_ISCSI_ST_CONTEXT_HDR_DIGEST_EN_SHIFT 1
3788 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_CTXT_VALID (0x1<<2)
3789 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_CTXT_VALID_SHIFT 2
3790 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_LCL_CMPLN_FLG (0x1<<3)
3791 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_LCL_CMPLN_FLG_SHIFT 3
3792 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_WRITE_TASK (0x1<<4)
3793 #define CSTORM_ISCSI_ST_CONTEXT_HQ_BD_WRITE_TASK_SHIFT 4
3794 #define CSTORM_ISCSI_ST_CONTEXT_CTRL_FLAGS_RSRV (0x7FF<<5)
3795 #define CSTORM_ISCSI_ST_CONTEXT_CTRL_FLAGS_RSRV_SHIFT 5
3805 #if defined(__BIG_ENDIAN)
3808 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_ATTRIBUTES (0x7<<0)
3809 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_ATTRIBUTES_SHIFT 0
3810 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_RSRV1 (0x3<<3)
3811 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 3
3812 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_WRITE_FLAG (0x1<<5)
3813 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_WRITE_FLAG_SHIFT 5
3814 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_READ_FLAG (0x1<<6)
3815 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_READ_FLAG_SHIFT 6
3816 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG (0x1<<7)
3817 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG_SHIFT 7
3819 #elif defined(__LITTLE_ENDIAN)
3822 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_ATTRIBUTES (0x7<<0)
3823 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_ATTRIBUTES_SHIFT 0
3824 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_RSRV1 (0x3<<3)
3825 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 3
3826 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_WRITE_FLAG (0x1<<5)
3827 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_WRITE_FLAG_SHIFT 5
3828 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_READ_FLAG (0x1<<6)
3829 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_READ_FLAG_SHIFT 6
3830 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG (0x1<<7)
3831 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG_SHIFT 7
3835 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH (0xFFFFFF<<0)
3836 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH_SHIFT 0
3837 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH (0xFF<<24)
3838 #define ISCSI_CMD_PDU_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH_SHIFT 24
3876 #if defined(__BIG_ENDIAN)
3879 #elif defined(__LITTLE_ENDIAN)
3893 #if defined(__BIG_ENDIAN)
3896 #elif defined(__LITTLE_ENDIAN)
3911 #if defined(__BIG_ENDIAN)
3912 u16 curr_sge_offset;
3913 u16 local_sge_0_size;
3914 #elif defined(__LITTLE_ENDIAN)
3915 u16 local_sge_0_size;
3916 u16 curr_sge_offset;
3920 #if defined(__BIG_ENDIAN)
3923 u16 local_sge_1_size;
3924 #elif defined(__LITTLE_ENDIAN)
3925 u16 local_sge_1_size;
3929 #if defined(__BIG_ENDIAN)
3931 u8 local_sge_index_2b;
3933 #elif defined(__LITTLE_ENDIAN)
3935 u8 local_sge_index_2b;
3940 #define USTORM_ISCSI_PLACEMENT_DB_REM_PDU_PAYLOAD (0xFFFFFF<<0)
3941 #define USTORM_ISCSI_PLACEMENT_DB_REM_PDU_PAYLOAD_SHIFT 0
3942 #define USTORM_ISCSI_PLACEMENT_DB_CQ_ID (0xFF<<24)
3943 #define USTORM_ISCSI_PLACEMENT_DB_CQ_ID_SHIFT 24
3945 #define USTORM_ISCSI_PLACEMENT_DB_BYTES_2_TRUNCATE (0xFFFFFF<<0)
3946 #define USTORM_ISCSI_PLACEMENT_DB_BYTES_2_TRUNCATE_SHIFT 0
3947 #define USTORM_ISCSI_PLACEMENT_DB_HOST_SGE_INDEX (0xFF<<24)
3948 #define USTORM_ISCSI_PLACEMENT_DB_HOST_SGE_INDEX_SHIFT 24
3950 #define USTORM_ISCSI_PLACEMENT_DB_REM_SGE_SIZE (0xFFFFFF<<0)
3951 #define USTORM_ISCSI_PLACEMENT_DB_REM_SGE_SIZE_SHIFT 0
3952 #define USTORM_ISCSI_PLACEMENT_DB_EXP_DIGEST_3B (0xFF<<24)
3953 #define USTORM_ISCSI_PLACEMENT_DB_EXP_DIGEST_3B_SHIFT 24
3968 #if defined(__BIG_ENDIAN)
3971 #elif defined(__LITTLE_ENDIAN)
3976 #if defined(__BIG_ENDIAN)
3977 u8 hdr_second_byte_union;
3979 #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU (0x1<<0)
3980 #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU_SHIFT 0
3981 #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE (0x1<<1)
3982 #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE_SHIFT 1
3983 #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC (0x1<<2)
3984 #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC_SHIFT 2
3985 #define USTORM_ISCSI_ST_CONTEXT_RESERVED1 (0x1F<<3)
3986 #define USTORM_ISCSI_ST_CONTEXT_RESERVED1_SHIFT 3
3987 u8 task_pdu_cache_index;
3988 u8 task_pbe_cache_index;
3989 #elif defined(__LITTLE_ENDIAN)
3990 u8 task_pbe_cache_index;
3991 u8 task_pdu_cache_index;
3993 #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU (0x1<<0)
3994 #define USTORM_ISCSI_ST_CONTEXT_BMIDDLEOFPDU_SHIFT 0
3995 #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE (0x1<<1)
3996 #define USTORM_ISCSI_ST_CONTEXT_BFENCECQE_SHIFT 1
3997 #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC (0x1<<2)
3998 #define USTORM_ISCSI_ST_CONTEXT_BRESETCRC_SHIFT 2
3999 #define USTORM_ISCSI_ST_CONTEXT_RESERVED1 (0x1F<<3)
4000 #define USTORM_ISCSI_ST_CONTEXT_RESERVED1_SHIFT 3
4001 u8 hdr_second_byte_union;
4003 #if defined(__BIG_ENDIAN)
4007 #elif defined(__LITTLE_ENDIAN)
4013 #if defined(__BIG_ENDIAN)
4017 #elif defined(__LITTLE_ENDIAN)
4023 #define USTORM_ISCSI_ST_CONTEXT_MAX_RECV_PDU_LENGTH (0xFFFFFF<<0)
4024 #define USTORM_ISCSI_ST_CONTEXT_MAX_RECV_PDU_LENGTH_SHIFT 0
4025 #define USTORM_ISCSI_ST_CONTEXT_MAX_OUTSTANDING_R2TS (0xFF<<24)
4026 #define USTORM_ISCSI_ST_CONTEXT_MAX_OUTSTANDING_R2TS_SHIFT 24
4028 #define USTORM_ISCSI_ST_CONTEXT_MAX_BURST_LENGTH (0xFFFFFF<<0)
4029 #define USTORM_ISCSI_ST_CONTEXT_MAX_BURST_LENGTH_SHIFT 0
4030 #define USTORM_ISCSI_ST_CONTEXT_B_CQE_POSTED_OR_HEADER_CACHED (0x1<<24)
4031 #define USTORM_ISCSI_ST_CONTEXT_B_CQE_POSTED_OR_HEADER_CACHED_SHIFT 24
4032 #define USTORM_ISCSI_ST_CONTEXT_B_HDR_DIGEST_EN (0x1<<25)
4033 #define USTORM_ISCSI_ST_CONTEXT_B_HDR_DIGEST_EN_SHIFT 25
4034 #define USTORM_ISCSI_ST_CONTEXT_B_DATA_DIGEST_EN (0x1<<26)
4035 #define USTORM_ISCSI_ST_CONTEXT_B_DATA_DIGEST_EN_SHIFT 26
4036 #define USTORM_ISCSI_ST_CONTEXT_B_PROTOCOL_ERROR (0x1<<27)
4037 #define USTORM_ISCSI_ST_CONTEXT_B_PROTOCOL_ERROR_SHIFT 27
4038 #define USTORM_ISCSI_ST_CONTEXT_B_TASK_VALID (0x1<<28)
4039 #define USTORM_ISCSI_ST_CONTEXT_B_TASK_VALID_SHIFT 28
4040 #define USTORM_ISCSI_ST_CONTEXT_TASK_TYPE (0x3<<29)
4041 #define USTORM_ISCSI_ST_CONTEXT_TASK_TYPE_SHIFT 29
4042 #define USTORM_ISCSI_ST_CONTEXT_B_ALL_DATA_ACKED (0x1<<31)
4043 #define USTORM_ISCSI_ST_CONTEXT_B_ALL_DATA_ACKED_SHIFT 31
4051 #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_SRTT (0xFFFFFF<<0)
4052 #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_SRTT_SHIFT 0
4053 #define TSTORM_TCP_ST_CONTEXT_SECTION_PAWS_INVALID (0x1<<24)
4054 #define TSTORM_TCP_ST_CONTEXT_SECTION_PAWS_INVALID_SHIFT 24
4055 #define TSTORM_TCP_ST_CONTEXT_SECTION_TIMESTAMP_EXISTS (0x1<<25)
4056 #define TSTORM_TCP_ST_CONTEXT_SECTION_TIMESTAMP_EXISTS_SHIFT 25
4057 #define TSTORM_TCP_ST_CONTEXT_SECTION_RESERVED0 (0x1<<26)
4058 #define TSTORM_TCP_ST_CONTEXT_SECTION_RESERVED0_SHIFT 26
4059 #define TSTORM_TCP_ST_CONTEXT_SECTION_STOP_RX_PAYLOAD (0x1<<27)
4060 #define TSTORM_TCP_ST_CONTEXT_SECTION_STOP_RX_PAYLOAD_SHIFT 27
4061 #define TSTORM_TCP_ST_CONTEXT_SECTION_KA_ENABLED (0x1<<28)
4062 #define TSTORM_TCP_ST_CONTEXT_SECTION_KA_ENABLED_SHIFT 28
4063 #define TSTORM_TCP_ST_CONTEXT_SECTION_FIRST_RTO_ESTIMATE (0x1<<29)
4064 #define TSTORM_TCP_ST_CONTEXT_SECTION_FIRST_RTO_ESTIMATE_SHIFT 29
4065 #define TSTORM_TCP_ST_CONTEXT_SECTION_MAX_SEG_RETRANSMIT_EN (0x1<<30)
4066 #define TSTORM_TCP_ST_CONTEXT_SECTION_MAX_SEG_RETRANSMIT_EN_SHIFT 30
4067 #define TSTORM_TCP_ST_CONTEXT_SECTION_LAST_ISLE_HAS_FIN (0x1<<31)
4068 #define TSTORM_TCP_ST_CONTEXT_SECTION_LAST_ISLE_HAS_FIN_SHIFT 31
4070 #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_VARIATION (0xFFFFFF<<0)
4071 #define TSTORM_TCP_ST_CONTEXT_SECTION_RTT_VARIATION_SHIFT 0
4072 #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_EN (0x1<<24)
4073 #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_EN_SHIFT 24
4074 #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_COUNTER_EN (0x1<<25)
4075 #define TSTORM_TCP_ST_CONTEXT_SECTION_DA_COUNTER_EN_SHIFT 25
4076 #define __TSTORM_TCP_ST_CONTEXT_SECTION_KA_PROBE_SENT (0x1<<26)
4077 #define __TSTORM_TCP_ST_CONTEXT_SECTION_KA_PROBE_SENT_SHIFT 26
4078 #define __TSTORM_TCP_ST_CONTEXT_SECTION_PERSIST_PROBE_SENT (0x1<<27)
4079 #define __TSTORM_TCP_ST_CONTEXT_SECTION_PERSIST_PROBE_SENT_SHIFT 27
4080 #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L2_STATSTICS (0x1<<28)
4081 #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L2_STATSTICS_SHIFT 28
4082 #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L4_STATSTICS (0x1<<29)
4083 #define TSTORM_TCP_ST_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 29
4084 #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_RST_ATTACK (0x1<<30)
4085 #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_RST_ATTACK_SHIFT 30
4086 #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_SYN_ATTACK (0x1<<31)
4087 #define __TSTORM_TCP_ST_CONTEXT_SECTION_IN_WINDOW_SYN_ATTACK_SHIFT 31
4088 #if defined(__BIG_ENDIAN)
4092 #elif defined(__LITTLE_ENDIAN)
4106 #if defined(__BIG_ENDIAN)
4107 u8 retransmit_count;
4108 u8 ka_max_probe_count;
4109 u8 persist_probe_count;
4111 #elif defined(__LITTLE_ENDIAN)
4113 u8 persist_probe_count;
4114 u8 ka_max_probe_count;
4115 u8 retransmit_count;
4117 #if defined(__BIG_ENDIAN)
4118 u8 statistics_counter_id;
4119 u8 ooo_support_mode;
4122 #elif defined(__LITTLE_ENDIAN)
4125 u8 ooo_support_mode;
4126 u8 statistics_counter_id;
4133 #if defined(__BIG_ENDIAN)
4134 u16 second_isle_address;
4136 #elif defined(__LITTLE_ENDIAN)
4138 u16 second_isle_address;
4140 #if defined(__BIG_ENDIAN)
4141 u8 max_isles_ever_happened;
4143 u16 last_isle_address;
4144 #elif defined(__LITTLE_ENDIAN)
4145 u16 last_isle_address;
4147 u8 max_isles_ever_happened;
4150 #if defined(__BIG_ENDIAN)
4151 u16 lsb_mac_address;
4153 #elif defined(__LITTLE_ENDIAN)
4155 u16 lsb_mac_address;
4157 #if defined(__BIG_ENDIAN)
4158 u16 msb_mac_address;
4159 u16 mid_mac_address;
4160 #elif defined(__LITTLE_ENDIAN)
4161 u16 mid_mac_address;
4162 u16 msb_mac_address;
4172 #define ISCSI_TERM_VARS_TCP_STATE (0xF<<0)
4173 #define ISCSI_TERM_VARS_TCP_STATE_SHIFT 0
4174 #define ISCSI_TERM_VARS_FIN_RECEIVED_SBIT (0x1<<4)
4175 #define ISCSI_TERM_VARS_FIN_RECEIVED_SBIT_SHIFT 4
4176 #define ISCSI_TERM_VARS_ACK_ON_FIN_RECEIVED_SBIT (0x1<<5)
4177 #define ISCSI_TERM_VARS_ACK_ON_FIN_RECEIVED_SBIT_SHIFT 5
4178 #define ISCSI_TERM_VARS_TERM_ON_CHIP (0x1<<6)
4179 #define ISCSI_TERM_VARS_TERM_ON_CHIP_SHIFT 6
4180 #define ISCSI_TERM_VARS_RSRV (0x1<<7)
4181 #define ISCSI_TERM_VARS_RSRV_SHIFT 7
4190 #if defined(__BIG_ENDIAN)
4193 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_HDR_DIGEST_EN (0x1<<0)
4194 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_HDR_DIGEST_EN_SHIFT 0
4195 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DATA_DIGEST_EN (0x1<<1)
4196 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DATA_DIGEST_EN_SHIFT 1
4197 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_PARTIAL_HEADER (0x1<<2)
4198 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_PARTIAL_HEADER_SHIFT 2
4199 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_FULL_FEATURE (0x1<<3)
4200 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_FULL_FEATURE_SHIFT 3
4201 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DROP_ALL_PDUS (0x1<<4)
4202 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DROP_ALL_PDUS_SHIFT 4
4203 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_NALLEN (0x3<<5)
4204 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_NALLEN_SHIFT 5
4205 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_RSRV0 (0x1<<7)
4206 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_RSRV0_SHIFT 7
4207 u8 hdr_bytes_2_fetch;
4208 #elif defined(__LITTLE_ENDIAN)
4209 u8 hdr_bytes_2_fetch;
4211 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_HDR_DIGEST_EN (0x1<<0)
4212 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_HDR_DIGEST_EN_SHIFT 0
4213 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DATA_DIGEST_EN (0x1<<1)
4214 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DATA_DIGEST_EN_SHIFT 1
4215 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_PARTIAL_HEADER (0x1<<2)
4216 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_PARTIAL_HEADER_SHIFT 2
4217 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_FULL_FEATURE (0x1<<3)
4218 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_FULL_FEATURE_SHIFT 3
4219 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DROP_ALL_PDUS (0x1<<4)
4220 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_B_DROP_ALL_PDUS_SHIFT 4
4221 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_NALLEN (0x3<<5)
4222 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_NALLEN_SHIFT 5
4223 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_RSRV0 (0x1<<7)
4224 #define TSTORM_ISCSI_ST_CONTEXT_SECTION_RSRV0_SHIFT 7
4228 #if defined(__BIG_ENDIAN)
4232 #elif defined(__LITTLE_ENDIAN)
4252 #if defined(__BIG_ENDIAN)
4257 #elif defined(__LITTLE_ENDIAN)
4263 #if defined(__BIG_ENDIAN)
4268 #elif defined(__LITTLE_ENDIAN)
4274 #if defined(__BIG_ENDIAN)
4275 u16 reserved_vlan_type;
4277 #define XSTORM_ETH_CONTEXT_SECTION_VLAN_ID (0xFFF<<0)
4278 #define XSTORM_ETH_CONTEXT_SECTION_VLAN_ID_SHIFT 0
4279 #define XSTORM_ETH_CONTEXT_SECTION_CFI (0x1<<12)
4280 #define XSTORM_ETH_CONTEXT_SECTION_CFI_SHIFT 12
4281 #define XSTORM_ETH_CONTEXT_SECTION_PRIORITY (0x7<<13)
4282 #define XSTORM_ETH_CONTEXT_SECTION_PRIORITY_SHIFT 13
4283 #elif defined(__LITTLE_ENDIAN)
4285 #define XSTORM_ETH_CONTEXT_SECTION_VLAN_ID (0xFFF<<0)
4286 #define XSTORM_ETH_CONTEXT_SECTION_VLAN_ID_SHIFT 0
4287 #define XSTORM_ETH_CONTEXT_SECTION_CFI (0x1<<12)
4288 #define XSTORM_ETH_CONTEXT_SECTION_CFI_SHIFT 12
4289 #define XSTORM_ETH_CONTEXT_SECTION_PRIORITY (0x7<<13)
4290 #define XSTORM_ETH_CONTEXT_SECTION_PRIORITY_SHIFT 13
4291 u16 reserved_vlan_type;
4293 #if defined(__BIG_ENDIAN)
4298 #elif defined(__LITTLE_ENDIAN)
4310 #if defined(__BIG_ENDIAN)
4311 u16 __pbf_hdr_cmd_rsvd_id;
4312 u16 __pbf_hdr_cmd_rsvd_flags_offset;
4313 #elif defined(__LITTLE_ENDIAN)
4314 u16 __pbf_hdr_cmd_rsvd_flags_offset;
4315 u16 __pbf_hdr_cmd_rsvd_id;
4317 #if defined(__BIG_ENDIAN)
4318 u8 __pbf_hdr_cmd_rsvd_ver_ihl;
4320 u16 __pbf_hdr_cmd_rsvd_length;
4321 #elif defined(__LITTLE_ENDIAN)
4322 u16 __pbf_hdr_cmd_rsvd_length;
4324 u8 __pbf_hdr_cmd_rsvd_ver_ihl;
4327 #if defined(__BIG_ENDIAN)
4329 u8 __pbf_hdr_cmd_rsvd_protocol;
4330 u16 __pbf_hdr_cmd_rsvd_csum;
4331 #elif defined(__LITTLE_ENDIAN)
4332 u16 __pbf_hdr_cmd_rsvd_csum;
4333 u8 __pbf_hdr_cmd_rsvd_protocol;
4352 #if defined(__BIG_ENDIAN)
4353 u16 pbf_hdr_cmd_rsvd_payload_len;
4354 u8 pbf_hdr_cmd_rsvd_nxt_hdr;
4356 #elif defined(__LITTLE_ENDIAN)
4358 u8 pbf_hdr_cmd_rsvd_nxt_hdr;
4359 u16 pbf_hdr_cmd_rsvd_payload_len;
4362 #define XSTORM_IP_V6_CONTEXT_SECTION_FLOW_LABEL (0xFFFFF<<0)
4363 #define XSTORM_IP_V6_CONTEXT_SECTION_FLOW_LABEL_SHIFT 0
4364 #define XSTORM_IP_V6_CONTEXT_SECTION_TRAFFIC_CLASS (0xFF<<20)
4365 #define XSTORM_IP_V6_CONTEXT_SECTION_TRAFFIC_CLASS_SHIFT 20
4366 #define XSTORM_IP_V6_CONTEXT_SECTION_PBF_HDR_CMD_RSVD_VER (0xF<<28)
4367 #define XSTORM_IP_V6_CONTEXT_SECTION_PBF_HDR_CMD_RSVD_VER_SHIFT 28
4388 #if defined(__BIG_ENDIAN)
4391 #elif defined(__LITTLE_ENDIAN)
4395 #if defined(__BIG_ENDIAN)
4396 u8 original_nagle_1b;
4399 #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE (0xFF<<0)
4400 #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE_SHIFT 0
4401 #define __XSTORM_TCP_CONTEXT_SECTION_ECT_BIT (0x1<<8)
4402 #define __XSTORM_TCP_CONTEXT_SECTION_ECT_BIT_SHIFT 8
4403 #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED (0x1<<9)
4404 #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED_SHIFT 9
4405 #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED (0x1<<10)
4406 #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED_SHIFT 10
4407 #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV (0x1<<11)
4408 #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV_SHIFT 11
4409 #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<12)
4410 #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 12
4411 #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED (0x1<<13)
4412 #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED_SHIFT 13
4413 #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER (0x3<<14)
4414 #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER_SHIFT 14
4415 #elif defined(__LITTLE_ENDIAN)
4417 #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE (0xFF<<0)
4418 #define XSTORM_TCP_CONTEXT_SECTION_TOTAL_HEADER_SIZE_SHIFT 0
4419 #define __XSTORM_TCP_CONTEXT_SECTION_ECT_BIT (0x1<<8)
4420 #define __XSTORM_TCP_CONTEXT_SECTION_ECT_BIT_SHIFT 8
4421 #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED (0x1<<9)
4422 #define __XSTORM_TCP_CONTEXT_SECTION_ECN_ENABLED_SHIFT 9
4423 #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED (0x1<<10)
4424 #define XSTORM_TCP_CONTEXT_SECTION_SACK_ENABLED_SHIFT 10
4425 #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV (0x1<<11)
4426 #define XSTORM_TCP_CONTEXT_SECTION_SMALL_WIN_ADV_SHIFT 11
4427 #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG (0x1<<12)
4428 #define XSTORM_TCP_CONTEXT_SECTION_FIN_SENT_FLAG_SHIFT 12
4429 #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED (0x1<<13)
4430 #define XSTORM_TCP_CONTEXT_SECTION_WINDOW_SATURATED_SHIFT 13
4431 #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER (0x3<<14)
4432 #define XSTORM_TCP_CONTEXT_SECTION_SLOWPATH_QUEUES_FLUSH_COUNTER_SHIFT 14
4434 u8 original_nagle_1b;
4436 #if defined(__BIG_ENDIAN)
4438 u16 window_scaling_factor;
4439 #elif defined(__LITTLE_ENDIAN)
4440 u16 window_scaling_factor;
4443 #if defined(__BIG_ENDIAN)
4445 u8 statistics_counter_id;
4446 u8 statistics_params;
4447 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L2_STATSTICS (0x1<<0)
4448 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L2_STATSTICS_SHIFT 0
4449 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L4_STATSTICS (0x1<<1)
4450 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 1
4451 #define XSTORM_TCP_CONTEXT_SECTION_RESERVED (0x3F<<2)
4452 #define XSTORM_TCP_CONTEXT_SECTION_RESERVED_SHIFT 2
4453 #elif defined(__LITTLE_ENDIAN)
4454 u8 statistics_params;
4455 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L2_STATSTICS (0x1<<0)
4456 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L2_STATSTICS_SHIFT 0
4457 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L4_STATSTICS (0x1<<1)
4458 #define XSTORM_TCP_CONTEXT_SECTION_UPDATE_L4_STATSTICS_SHIFT 1
4459 #define XSTORM_TCP_CONTEXT_SECTION_RESERVED (0x3F<<2)
4460 #define XSTORM_TCP_CONTEXT_SECTION_RESERVED_SHIFT 2
4461 u8 statistics_counter_id;
4475 #if defined(__BIG_ENDIAN)
4478 #define XSTORM_COMMON_CONTEXT_SECTION_PHYSQ_INITIALIZED (0x1<<0)
4479 #define XSTORM_COMMON_CONTEXT_SECTION_PHYSQ_INITIALIZED_SHIFT 0
4480 #define XSTORM_COMMON_CONTEXT_SECTION_PBF_PORT (0x7<<1)
4481 #define XSTORM_COMMON_CONTEXT_SECTION_PBF_PORT_SHIFT 1
4482 #define XSTORM_COMMON_CONTEXT_SECTION_VLAN_MODE (0x1<<4)
4483 #define XSTORM_COMMON_CONTEXT_SECTION_VLAN_MODE_SHIFT 4
4484 #define XSTORM_COMMON_CONTEXT_SECTION_ORIGINAL_PRIORITY (0x7<<5)
4485 #define XSTORM_COMMON_CONTEXT_SECTION_ORIGINAL_PRIORITY_SHIFT 5
4488 #elif defined(__LITTLE_ENDIAN)
4492 #define XSTORM_COMMON_CONTEXT_SECTION_PHYSQ_INITIALIZED (0x1<<0)
4493 #define XSTORM_COMMON_CONTEXT_SECTION_PHYSQ_INITIALIZED_SHIFT 0
4494 #define XSTORM_COMMON_CONTEXT_SECTION_PBF_PORT (0x7<<1)
4495 #define XSTORM_COMMON_CONTEXT_SECTION_PBF_PORT_SHIFT 1
4496 #define XSTORM_COMMON_CONTEXT_SECTION_VLAN_MODE (0x1<<4)
4497 #define XSTORM_COMMON_CONTEXT_SECTION_VLAN_MODE_SHIFT 4
4498 #define XSTORM_COMMON_CONTEXT_SECTION_ORIGINAL_PRIORITY (0x7<<5)
4499 #define XSTORM_COMMON_CONTEXT_SECTION_ORIGINAL_PRIORITY_SHIFT 5
4509 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_IMMEDIATE_DATA (0x1<<0)
4510 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_IMMEDIATE_DATA_SHIFT 0
4511 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_INITIAL_R2T (0x1<<1)
4512 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_INITIAL_R2T_SHIFT 1
4513 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_EN_HEADER_DIGEST (0x1<<2)
4514 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_EN_HEADER_DIGEST_SHIFT 2
4515 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_EN_DATA_DIGEST (0x1<<3)
4516 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_EN_DATA_DIGEST_SHIFT 3
4517 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_HQ_BD_WRITTEN (0x1<<4)
4518 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_HQ_BD_WRITTEN_SHIFT 4
4519 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_LAST_OP_SQ (0x1<<5)
4520 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_LAST_OP_SQ_SHIFT 5
4521 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_UPDATE_SND_NXT (0x1<<6)
4522 #define XSTORM_ISCSI_CONTEXT_FLAGS_B_UPDATE_SND_NXT_SHIFT 6
4523 #define XSTORM_ISCSI_CONTEXT_FLAGS_RESERVED4 (0x1<<7)
4524 #define XSTORM_ISCSI_CONTEXT_FLAGS_RESERVED4_SHIFT 7
4540 #if defined(__BIG_ENDIAN)
4544 #elif defined(__LITTLE_ENDIAN)
4564 #if defined(__BIG_ENDIAN)
4567 u8 task_pbl_cache_idx;
4568 #elif defined(__LITTLE_ENDIAN)
4569 u8 task_pbl_cache_idx;
4582 #if defined(__BIG_ENDIAN)
4583 u16 rxmit_sge_offset;
4585 #elif defined(__LITTLE_ENDIAN)
4587 u16 rxmit_sge_offset;
4589 #if defined(__BIG_ENDIAN)
4592 #define XSTORM_ISCSI_CONTEXT_SECTION_B_NEW_HQ_BD (0x1<<0)
4593 #define XSTORM_ISCSI_CONTEXT_SECTION_B_NEW_HQ_BD_SHIFT 0
4594 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PDU_HDR (0x1<<1)
4595 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PDU_HDR_SHIFT 1
4596 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_END_PDU (0x1<<2)
4597 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_END_PDU_SHIFT 2
4598 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_DR (0x1<<3)
4599 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_DR_SHIFT 3
4600 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_START_DR (0x1<<4)
4601 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_START_DR_SHIFT 4
4602 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PADDING (0x3<<5)
4603 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PADDING_SHIFT 5
4604 #define XSTORM_ISCSI_CONTEXT_SECTION_B_ISCSI_CONT_FAST_RXMIT (0x1<<7)
4605 #define XSTORM_ISCSI_CONTEXT_SECTION_B_ISCSI_CONT_FAST_RXMIT_SHIFT 7
4607 #elif defined(__LITTLE_ENDIAN)
4610 #define XSTORM_ISCSI_CONTEXT_SECTION_B_NEW_HQ_BD (0x1<<0)
4611 #define XSTORM_ISCSI_CONTEXT_SECTION_B_NEW_HQ_BD_SHIFT 0
4612 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PDU_HDR (0x1<<1)
4613 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PDU_HDR_SHIFT 1
4614 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_END_PDU (0x1<<2)
4615 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_END_PDU_SHIFT 2
4616 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_DR (0x1<<3)
4617 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_DR_SHIFT 3
4618 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_START_DR (0x1<<4)
4619 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_START_DR_SHIFT 4
4620 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PADDING (0x3<<5)
4621 #define XSTORM_ISCSI_CONTEXT_SECTION_B_RXMIT_PADDING_SHIFT 5
4622 #define XSTORM_ISCSI_CONTEXT_SECTION_B_ISCSI_CONT_FAST_RXMIT (0x1<<7)
4623 #define XSTORM_ISCSI_CONTEXT_SECTION_B_ISCSI_CONT_FAST_RXMIT_SHIFT 7
4659 #if defined(__BIG_ENDIAN)
4662 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_RSRV1 (0x7F<<0)
4663 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 0
4664 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG (0x1<<7)
4665 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG_SHIFT 7
4667 #elif defined(__LITTLE_ENDIAN)
4670 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_RSRV1 (0x7F<<0)
4671 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 0
4672 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG (0x1<<7)
4673 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_FINAL_FLAG_SHIFT 7
4677 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH (0xFFFFFF<<0)
4678 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH_SHIFT 0
4679 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH (0xFF<<24)
4680 #define ISCSI_DATA_PDU_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH_SHIFT 24
4697 #if defined(__BIG_ENDIAN)
4700 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_NSG (0x3<<0)
4701 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_NSG_SHIFT 0
4702 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CSG (0x3<<2)
4703 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CSG_SHIFT 2
4704 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_RSRV0 (0x3<<4)
4705 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_RSRV0_SHIFT 4
4706 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG (0x1<<6)
4707 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG_SHIFT 6
4708 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_TRANSIT (0x1<<7)
4709 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_TRANSIT_SHIFT 7
4712 #elif defined(__LITTLE_ENDIAN)
4716 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_NSG (0x3<<0)
4717 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_NSG_SHIFT 0
4718 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CSG (0x3<<2)
4719 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CSG_SHIFT 2
4720 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_RSRV0 (0x3<<4)
4721 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_RSRV0_SHIFT 4
4722 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG (0x1<<6)
4723 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG_SHIFT 6
4724 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_TRANSIT (0x1<<7)
4725 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_TRANSIT_SHIFT 7
4729 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH (0xFFFFFF<<0)
4730 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH_SHIFT 0
4731 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH (0xFF<<24)
4732 #define ISCSI_LOGIN_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH_SHIFT 24
4734 #if defined(__BIG_ENDIAN)
4737 #elif defined(__LITTLE_ENDIAN)
4742 #if defined(__BIG_ENDIAN)
4745 #elif defined(__LITTLE_ENDIAN)
4758 #if defined(__BIG_ENDIAN)
4761 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_REASON_CODE (0x7F<<0)
4762 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_REASON_CODE_SHIFT 0
4763 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_RSRV1_1 (0x1<<7)
4764 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_RSRV1_1_SHIFT 7
4766 #elif defined(__LITTLE_ENDIAN)
4769 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_REASON_CODE (0x7F<<0)
4770 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_REASON_CODE_SHIFT 0
4771 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_RSRV1_1 (0x1<<7)
4772 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_RSRV1_1_SHIFT 7
4776 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH (0xFFFFFF<<0)
4777 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH_SHIFT 0
4778 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH (0xFF<<24)
4779 #define ISCSI_LOGOUT_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH_SHIFT 24
4782 #if defined(__BIG_ENDIAN)
4785 #elif defined(__LITTLE_ENDIAN)
4798 #if defined(__BIG_ENDIAN)
4801 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_FUNCTION (0x7F<<0)
4802 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_FUNCTION_SHIFT 0
4803 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_RSRV1_1 (0x1<<7)
4804 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_RSRV1_1_SHIFT 7
4806 #elif defined(__LITTLE_ENDIAN)
4809 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_FUNCTION (0x7F<<0)
4810 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_FUNCTION_SHIFT 0
4811 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_RSRV1_1 (0x1<<7)
4812 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_RSRV1_1_SHIFT 7
4816 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH (0xFFFFFF<<0)
4817 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH_SHIFT 0
4818 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH (0xFF<<24)
4819 #define ISCSI_TMF_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH_SHIFT 24
4834 #if defined(__BIG_ENDIAN)
4837 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_RSRV1 (0x3F<<0)
4838 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 0
4839 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG (0x1<<6)
4840 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG_SHIFT 6
4841 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_FINAL (0x1<<7)
4842 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_FINAL_SHIFT 7
4844 #elif defined(__LITTLE_ENDIAN)
4847 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_RSRV1 (0x3F<<0)
4848 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 0
4849 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG (0x1<<6)
4850 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_CONTINUE_FLG_SHIFT 6
4851 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_FINAL (0x1<<7)
4852 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_FINAL_SHIFT 7
4856 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH (0xFFFFFF<<0)
4857 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH_SHIFT 0
4858 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH (0xFF<<24)
4859 #define ISCSI_TEXT_REQ_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH_SHIFT 24
4872 #if defined(__BIG_ENDIAN)
4875 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV1 (0x7F<<0)
4876 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 0
4877 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV2_1 (0x1<<7)
4878 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV2_1_SHIFT 7
4880 #elif defined(__LITTLE_ENDIAN)
4883 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV1 (0x7F<<0)
4884 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV1_SHIFT 0
4885 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV2_1 (0x1<<7)
4886 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_RSRV2_1_SHIFT 7
4890 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH (0xFFFFFF<<0)
4891 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_DATA_SEGMENT_LENGTH_SHIFT 0
4892 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH (0xFF<<24)
4893 #define ISCSI_NOP_OUT_HDR_LITTLE_ENDIAN_TOTAL_AHS_LENGTH_SHIFT 24
4918 #if defined(__BIG_ENDIAN)
4921 #elif defined(__LITTLE_ENDIAN)
4927 #if defined(__BIG_ENDIAN)
4931 #elif defined(__LITTLE_ENDIAN)
4968 #if defined(__BIG_ENDIAN)
4972 #elif defined(__LITTLE_ENDIAN)
4997 #if defined(__BIG_ENDIAN)
5000 #elif defined(__LITTLE_ENDIAN)
5054 #if defined(__BIG_ENDIAN)
5059 #elif defined(__LITTLE_ENDIAN)
5065 #if defined(__BIG_ENDIAN)
5067 #define L5CM_CONN_ADDR_PARAMS_IP_VERSION (0x1<<0)
5068 #define L5CM_CONN_ADDR_PARAMS_IP_VERSION_SHIFT 0
5069 #define L5CM_CONN_ADDR_PARAMS_RSRV (0x7FFF<<1)
5070 #define L5CM_CONN_ADDR_PARAMS_RSRV_SHIFT 1
5073 #elif defined(__LITTLE_ENDIAN)
5077 #define L5CM_CONN_ADDR_PARAMS_IP_VERSION (0x1<<0)
5078 #define L5CM_CONN_ADDR_PARAMS_IP_VERSION_SHIFT 0
5079 #define L5CM_CONN_ADDR_PARAMS_RSRV (0x7FFF<<1)
5080 #define L5CM_CONN_ADDR_PARAMS_RSRV_SHIFT 1
5086 #if defined(__BIG_ENDIAN)
5087 u16 remote_tcp_port;
5089 #elif defined(__LITTLE_ENDIAN)
5091 u16 remote_tcp_port;
5099 #if defined(__BIG_ENDIAN)
5102 #define L5CM_XSTORM_CONN_BUFFER_NAGLE_ENABLE (0x1<<0)
5103 #define L5CM_XSTORM_CONN_BUFFER_NAGLE_ENABLE_SHIFT 0
5104 #define L5CM_XSTORM_CONN_BUFFER_RSRV (0x7FFF<<1)
5105 #define L5CM_XSTORM_CONN_BUFFER_RSRV_SHIFT 1
5106 #elif defined(__LITTLE_ENDIAN)
5108 #define L5CM_XSTORM_CONN_BUFFER_NAGLE_ENABLE (0x1<<0)
5109 #define L5CM_XSTORM_CONN_BUFFER_NAGLE_ENABLE_SHIFT 0
5110 #define L5CM_XSTORM_CONN_BUFFER_RSRV (0x7FFF<<1)
5111 #define L5CM_XSTORM_CONN_BUFFER_RSRV_SHIFT 1
5114 #if defined(__BIG_ENDIAN)
5116 u16 pseudo_header_checksum;
5117 #elif defined(__LITTLE_ENDIAN)
5118 u16 pseudo_header_checksum;
5131 #if defined(__BIG_ENDIAN)
5133 #define L5CM_TSTORM_CONN_BUFFER_DELAYED_ACK_ENABLE (0x1<<0)
5134 #define L5CM_TSTORM_CONN_BUFFER_DELAYED_ACK_ENABLE_SHIFT 0
5135 #define L5CM_TSTORM_CONN_BUFFER_RSRV (0x7FFF<<1)
5136 #define L5CM_TSTORM_CONN_BUFFER_RSRV_SHIFT 1
5137 u8 ka_max_probe_count;
5139 #elif defined(__LITTLE_ENDIAN)
5141 u8 ka_max_probe_count;
5143 #define L5CM_TSTORM_CONN_BUFFER_DELAYED_ACK_ENABLE (0x1<<0)
5144 #define L5CM_TSTORM_CONN_BUFFER_DELAYED_ACK_ENABLE_SHIFT 0
5145 #define L5CM_TSTORM_CONN_BUFFER_RSRV (0x7FFF<<1)
5146 #define L5CM_TSTORM_CONN_BUFFER_RSRV_SHIFT 1
5169 #if defined(__BIG_ENDIAN)
5172 #elif defined(__LITTLE_ENDIAN)
5195 #define L5CM_PORT_LISTENER_DATA_ENABLE (0x1<<0)
5196 #define L5CM_PORT_LISTENER_DATA_ENABLE_SHIFT 0
5197 #define L5CM_PORT_LISTENER_DATA_IP_INDEX (0xF<<1)
5198 #define L5CM_PORT_LISTENER_DATA_IP_INDEX_SHIFT 1
5199 #define L5CM_PORT_LISTENER_DATA_NET_FILTER (0x1<<5)
5200 #define L5CM_PORT_LISTENER_DATA_NET_FILTER_SHIFT 5
5201 #define L5CM_PORT_LISTENER_DATA_DEFFERED_MODE (0x1<<6)
5202 #define L5CM_PORT_LISTENER_DATA_DEFFERED_MODE_SHIFT 6
5203 #define L5CM_PORT_LISTENER_DATA_MPA_MODE (0x1<<7)
5204 #define L5CM_PORT_LISTENER_DATA_MPA_MODE_SHIFT 7
5216 #if defined(__BIG_ENDIAN)
5220 #elif defined(__LITTLE_ENDIAN)
5260 #if defined(__BIG_ENDIAN)
5264 #define L5CM_PCS_ATTRIBUTES_NET_FILTER (0x1<<0)
5265 #define L5CM_PCS_ATTRIBUTES_NET_FILTER_SHIFT 0
5266 #define L5CM_PCS_ATTRIBUTES_CALCULATE_HASH (0x1<<1)
5267 #define L5CM_PCS_ATTRIBUTES_CALCULATE_HASH_SHIFT 1
5268 #define L5CM_PCS_ATTRIBUTES_COMPARE_HASH_RESULT (0x1<<2)
5269 #define L5CM_PCS_ATTRIBUTES_COMPARE_HASH_RESULT_SHIFT 2
5270 #define L5CM_PCS_ATTRIBUTES_QUERY_ULP_ACCEPT (0x1<<3)
5271 #define L5CM_PCS_ATTRIBUTES_QUERY_ULP_ACCEPT_SHIFT 3
5272 #define L5CM_PCS_ATTRIBUTES_FIND_DEST_MAC (0x1<<4)
5273 #define L5CM_PCS_ATTRIBUTES_FIND_DEST_MAC_SHIFT 4
5274 #define L5CM_PCS_ATTRIBUTES_L4_OFFLOAD (0x1<<5)
5275 #define L5CM_PCS_ATTRIBUTES_L4_OFFLOAD_SHIFT 5
5276 #define L5CM_PCS_ATTRIBUTES_FORWARD_PACKET (0x1<<6)
5277 #define L5CM_PCS_ATTRIBUTES_FORWARD_PACKET_SHIFT 6
5278 #define L5CM_PCS_ATTRIBUTES_RSRV (0x1<<7)
5279 #define L5CM_PCS_ATTRIBUTES_RSRV_SHIFT 7
5280 #elif defined(__LITTLE_ENDIAN)
5282 #define L5CM_PCS_ATTRIBUTES_NET_FILTER (0x1<<0)
5283 #define L5CM_PCS_ATTRIBUTES_NET_FILTER_SHIFT 0
5284 #define L5CM_PCS_ATTRIBUTES_CALCULATE_HASH (0x1<<1)
5285 #define L5CM_PCS_ATTRIBUTES_CALCULATE_HASH_SHIFT 1
5286 #define L5CM_PCS_ATTRIBUTES_COMPARE_HASH_RESULT (0x1<<2)
5287 #define L5CM_PCS_ATTRIBUTES_COMPARE_HASH_RESULT_SHIFT 2
5288 #define L5CM_PCS_ATTRIBUTES_QUERY_ULP_ACCEPT (0x1<<3)
5289 #define L5CM_PCS_ATTRIBUTES_QUERY_ULP_ACCEPT_SHIFT 3
5290 #define L5CM_PCS_ATTRIBUTES_FIND_DEST_MAC (0x1<<4)
5291 #define L5CM_PCS_ATTRIBUTES_FIND_DEST_MAC_SHIFT 4
5292 #define L5CM_PCS_ATTRIBUTES_L4_OFFLOAD (0x1<<5)
5293 #define L5CM_PCS_ATTRIBUTES_L4_OFFLOAD_SHIFT 5
5294 #define L5CM_PCS_ATTRIBUTES_FORWARD_PACKET (0x1<<6)
5295 #define L5CM_PCS_ATTRIBUTES_FORWARD_PACKET_SHIFT 6
5296 #define L5CM_PCS_ATTRIBUTES_RSRV (0x1<<7)
5297 #define L5CM_PCS_ATTRIBUTES_RSRV_SHIFT 7
5319 #if defined(__BIG_ENDIAN)
5322 #elif defined(__LITTLE_ENDIAN)
5381 #define L5CM_TERM_VARS_TCP_STATE (0xF<<0)
5382 #define L5CM_TERM_VARS_TCP_STATE_SHIFT 0
5383 #define L5CM_TERM_VARS_FIN_RECEIVED_SBIT (0x1<<4)
5384 #define L5CM_TERM_VARS_FIN_RECEIVED_SBIT_SHIFT 4
5385 #define L5CM_TERM_VARS_ACK_ON_FIN_RECEIVED_SBIT (0x1<<5)
5386 #define L5CM_TERM_VARS_ACK_ON_FIN_RECEIVED_SBIT_SHIFT 5
5387 #define L5CM_TERM_VARS_TERM_ON_CHIP (0x1<<6)
5388 #define L5CM_TERM_VARS_TERM_ON_CHIP_SHIFT 6
5389 #define L5CM_TERM_VARS_RSRV (0x1<<7)
5390 #define L5CM_TERM_VARS_RSRV_SHIFT 7
5401 #define TSTORM_L5CM_TCP_FLAGS_VLAN_ID (0xFFF<<0)
5402 #define TSTORM_L5CM_TCP_FLAGS_VLAN_ID_SHIFT 0
5403 #define TSTORM_L5CM_TCP_FLAGS_RSRV0 (0x1<<12)
5404 #define TSTORM_L5CM_TCP_FLAGS_RSRV0_SHIFT 12
5405 #define TSTORM_L5CM_TCP_FLAGS_TS_ENABLED (0x1<<13)
5406 #define TSTORM_L5CM_TCP_FLAGS_TS_ENABLED_SHIFT 13
5407 #define TSTORM_L5CM_TCP_FLAGS_RSRV1 (0x3<<14)
5408 #define TSTORM_L5CM_TCP_FLAGS_RSRV1_SHIFT 14
5417 #define XSTORM_L5CM_TCP_FLAGS_ENC_ENABLED (0x1<<0)
5418 #define XSTORM_L5CM_TCP_FLAGS_ENC_ENABLED_SHIFT 0
5419 #define XSTORM_L5CM_TCP_FLAGS_TS_ENABLED (0x1<<1)
5420 #define XSTORM_L5CM_TCP_FLAGS_TS_ENABLED_SHIFT 1
5421 #define XSTORM_L5CM_TCP_FLAGS_WND_SCL_EN (0x1<<2)
5422 #define XSTORM_L5CM_TCP_FLAGS_WND_SCL_EN_SHIFT 2
5423 #define XSTORM_L5CM_TCP_FLAGS_RSRV (0x1F<<3)
5424 #define XSTORM_L5CM_TCP_FLAGS_RSRV_SHIFT 3